Home » MODDING HQ 1.13 » v1.13 General Development Talk » Any introduction to the code?
film28.png  Re: Any introduction to the code?[message #357939 is a reply to message #357833] Thu, 22 August 2019 11:35 Go to previous messageGo to previous message
MH17 is currently offline MH17

 
Messages:46
Registered:November 2018
Location: Antarctica
silversurfer wrote on Sun, 11 August 2019 12:15
I couldn't apply the patch posted earlier so I made the changes manually. I also added SOLDIER_CLASS_ZOMBIE to function "ProcessQueenCmdImplicationsOfDeath" so the pSector->ubNumCreatures counter is decreased when a zombie dies. Changes are in r8686.

Hi, SilverSurfer!

It is a kinda frustrating for me to report that the commit r8686 didnt solve the problem with zombies.

My game setup: r8690 + Urban Chaos Mod
Description: after killing last zombie in sector D13 I still enjoy an issue with "Movement Orders? This is a hostile sector!".

Walking around the function "ProcessQueenCmdImplicationsOfDeath" with debugger I can see that pSector->ubNumCreatures counter is decreased when last zombie dies, but its value is still equal 30. And this creates a mess in function "NumHostilesInSector" which doesnt allow me to sent my troops out of sector on the global map.

May be it makes sense to implement a radical solution proposed by a fellow SevenFM in his message #357784 (reply to message #357781) where he suggests to change a function "RemoveStaticEnemiesFromSectorInfo"?

PS: I tried to test his patch in "RemoveStaticEnemiesFromSectorInfo":
pSectorInfo->ubNumCreatures = 0;
pSectorInfo->ubCreaturesInBattle = 0;
It works.

Report message to a moderator

Corporal
 
Read Message icon12.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message film28.png
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: An easy way of editing the XML files in dev builds (XML Editor broken?)
Next Topic: How to change loading screens?
Goto Forum:
  


Current Time: Wed Feb 12 15:28:20 GMT+2 2025

Total time taken to generate the page: 0.01096 seconds