forkserf / forkserf

a continuation of "FreeSerf"

Home Page:https://forkserf.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the game shuts down

zdechlak opened this issue · comments

I don't know the reason - but from the very beginning when I follow the project, the game crashes after some time without any error message

exactly in such a way that the game window closes

I have a save here (put it on super speed) in a few moments the game should crash

12312321.zip

ai_Player1.txt
console_out.txt

Interesting... it crashes for me also, checking with debugger...

this was due to an array out of bounds issue, the odd thing is it looks like couldn't possibly work, I would have expected to run into crash issues myself many times but I never saw this trigger. Is this a very large map size? I don't think I've ever actually tried size >8 and I rarely play above size 7

The bug was due to using map position as index to array instead of object type, I'm guessing if map is large enough the map pos goes too far out of bounds or something. Anyway, this is fixed in unstable. I'll push a new release w/ working Windows realease in next day or two

I only play on max maps I'm a fanatic

ah, okay good (for me)! you are likely to discover bugs I have not encountered as I haven't tested huge maps myself

one thing I have noticed on larger maps is that the AI loops take long enough to complete as the game progresses that playing on high speed results in AI not being able to "keep up" with the state of the game. However, if you play at normal game speed (ex. 2-4) it should not be a problem. It is only a problem for me with high-speed debug-testing

similar bugs were in other projects, they did limit the size of the maps to 8
I hope to play on map 10

there is also an error on smaller maps - but I don't have a record to send it

I played on ubuntu 24.04, map size 8, no speedup, Forkserf 0.6.3
console_out.txt
ai_Player1.txt
test.zip
Loading this game crashes with the hint:
terminate called after throwing an instance of 'ExceptionFreeserf'
what(): [Unspecified] Failed to draw triangle up (2).
On Linux Mint (VirtualBox) I played the game with speedup and map size 10, but it also crashed by loading a saved game:
Error: [serf.cc] inside Serf::update, serf with excessively high counter detected! with index 2203 at pos 456669 with type Serf::TypeFarmer and state name PLANNING FARMING has counter 65976 and animation 40
Error: [serf.cc] inside Serf::update, serf with excessively high counter detected! setting this serf counter to 0
I assume it only crashes because of the Farmer.