wargus icon indicating copy to clipboard operation
wargus copied to clipboard

Beyond The Dark Portal Human Campaign mission 10, not responding

Open Erenussocrates opened this issue 8 years ago • 3 comments

Mission 10 in human beyond the dark portal campaign freezes after some time. I know that this is unlike the other crashes which are caused by the errors made in .sms files in the campaign folders, because the game does not crash instantly, the program just freezes and forces you to terminate. And also there's nothing written inside stderr text file. This happens in both vanilla wargus (the version you guys provide) and in my own modified version. So I think that freeze is something related to engine problems maybe. I'm not sure, but it would be great if you could find out why it happens and try to fix it.

You can play that mission to see it for yourself. But do not be impatient, it will surely happen before all gold mines collapse in the map (default debug speed).

Erenussocrates avatar Nov 01 '16 19:11 Erenussocrates

I did multiple tests using the currently latest stable version (3.3.2) Playing the map on Easy difficulty doesn't cause this freeze but playing on Normal or Hard the problem starts to appear and during the mission it freezes. The cause could be the scripted A.Is for this mission in particular but I'm not 100% since I tried to modify a little the A.I but still got the freeze.

SimoneStarace avatar Oct 01 '23 00:10 SimoneStarace

Thank you @SimoneStarace, that precise testing is very helpful!

timfel avatar Oct 01 '23 14:10 timfel

I did multiple tests today and those are the results.

  1. The first time I played the game with the debug messages enabled and I noticed this message
./src/unit/unit_find.cpp:951: Compute: BUG: RangeTargetFinder::FillBadGood.Compute out of range. size: 18, pos: -18, x: 0, xx: 0, y: -2, yy: 0
./src/unit/unit_find.cpp:951: Compute: BUG: RangeTargetFinder::FillBadGood.Compute out of range. size: 18, pos: -9, x: 0, xx: 0, y: -2, yy: 1
./src/unit/unit_find.cpp:951: Compute: BUG: RangeTargetFinder::FillBadGood.Compute out of range. size: 18, pos: -8, x: 10, xx: 0, y: -2, yy: 0

After this message appears the game freezes.

  1. The second time is even more weird. I played it with the asserts checks in engine code enabled and during the game it even crashed. This is what I got from the terminal:
Can't reduce unit-great-hall from build list.
Assertion failed at ./src/unit/unit.cpp:380: RefsIncrease: !Refs || (Refs && !Destroyed)
  1. I decided to cheat and change the A.I script on that mission and I'm still getting the game freezing but what I did noticed is this freezing happens when I attack the green Orc clan. Destroying the white clan didn't made any issue but I don't know if nothing happens attacking Purple.

SimoneStarace avatar Oct 01 '23 17:10 SimoneStarace