Home » MODDING HQ 1.13 » v1.13 Bug Reports » Semi-common infinite loops, includes solution.
Semi-common infinite loops, includes solution.[message #328791] Wed, 04 December 2013 03:40 Go to next message
Deathwyrm is currently offline Deathwyrm

 
Messages:11
Registered:June 2012
I was getting a lot of infinite loops at somewhat random times, and traced it to the loop in AIUtils.cpp around line 861 where the comment says "probably need some counter to prevent eventual endless loop."

Adding a counter there (and the one shortly after it, just in case) has greatly reduced my game hangs. Might want to fix those, I can provide a patch if you want but it's only like 4 lines. Smile

Report message to a moderator

Private
Re: Semi-common infinite loops, includes solution.[message #328797] Wed, 04 December 2013 09:51 Go to previous messageGo to next message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1961
Registered:October 2005
Location: Austria
Hello Mae,

please upload the patch file and I will commit the fix to the 1.13 source trunk. Thanks.

Greets

Report message to a moderator

Sergeant Major

Re: Semi-common infinite loops, includes solution.[message #328810] Thu, 05 December 2013 02:05 Go to previous messageGo to next message
Deathwyrm is currently offline Deathwyrm

 
Messages:11
Registered:June 2012
Okay. I tried to follow your coding style as much as possible while minimizing lines changed.

AIUtils.cpp.patch

Report message to a moderator

Private
Re: Semi-common infinite loops, includes solution.[message #328813] Thu, 05 December 2013 10:15 Go to previous message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1961
Registered:October 2005
Location: Austria
thanks, the patch is committed.

Report message to a moderator

Sergeant Major

Previous Topic: Helm camo problem
Next Topic: Enemies can flee to invalid sectors
Goto Forum:
  


Current Time: Thu Apr 18 08:09:14 GMT+3 2024

Total time taken to generate the page: 0.00769 seconds