Toma400 / The_Isle_of_Ansur

Python-based text RPG game, successor of Between Shadows and Light.
Other
9 stars 0 forks source link

Crash after running IoA for a while #75

Closed Toma400 closed 1 year ago

Toma400 commented 1 year ago

Happens on version using "outsourced" objects system, so not commited thus far.

In short, after a while game crashes. Possible explanation is that game loops change image path, or somehow requests None value. The cause of it is not truly known, but I think important factor is that it happens after a while, not immediately (so you can change menus even).

Log: 2022_12_6_16_21_8_log.log

Toma400 commented 1 year ago

Most probably fixed in upcoming commit (Image got self.is_res checking variable). Issue was that image was generated once, but during put(screen) command, the path was changing again and again through the loop, nesting itself until its limits. To avoid having two new variables being modified_path, I decided to simply make check, as this seems to be less code-heavy solution.