[GH-ISSUE #114] Game import generates progress of over 100 #58

Closed
opened 2026-02-17 17:06:01 -05:00 by yindo · 1 comment
Owner

Originally created by @DecDuck on GitHub (Jun 8, 2025).
Original GitHub issue: https://github.com/Drop-OSS/drop/issues/114

Image

Originally created by @DecDuck on GitHub (Jun 8, 2025). Original GitHub issue: https://github.com/Drop-OSS/drop/issues/114 ![Image](https://github.com/user-attachments/assets/33133606-bc81-424d-aa52-145dc9cc961f)
yindo closed this issue 2026-02-17 17:06:01 -05:00
Author
Owner

@DecDuck commented on GitHub (Jun 8, 2025):

This is likely due to the objectHandler's use of the TaskRunContext. The logic was half-assed when I was half asleep, and probably makes no sense.

For anyone that's fixing this (me), the logic should look something like this:

progress = 0
incre = 100 / num

for loop
    progress += incre
@DecDuck commented on GitHub (Jun 8, 2025): This is likely due to the objectHandler's use of the TaskRunContext. The logic was half-assed when I was half asleep, and probably makes no sense. For anyone that's fixing this (me), the logic should look something like this: ``` progress = 0 incre = 100 / num for loop progress += incre ```
yindo changed title from Game import generates progress of over 100 to [GH-ISSUE #114] Game import generates progress of over 100 2026-06-05 14:21:11 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Drop-OSS/drop#58