Home » MODDING HQ 1.13 » v1.13 General Development Talk » Any introduction to the code?
icon9.gif  Re: Any introduction to the code?[message #357788 is a reply to message #357787] Tue, 06 August 2019 07:28 Go to previous messageGo to previous message
MH17 is currently offline MH17

 
Messages:46
Registered:November 2018
Location: Antarctica
Hello again, gentlemen!

As it was suggested in the previous post I have managed to reproduce a similar bug with the sector's enemy counters.

Problem description:
I moved my squad from A9 (Atremo Airport, Urban Chaos Mod) to sector B9, where I never ever been before. In the beginning there were 28 enemies.
Right after arrival I pressed Alt+O to kill all of them, but after using the cheat-code 14 soldiers left on the strategic map (as a red dots) together with my team (yellow dots).
But in the tactical screen (Alt+E) each visible enemy died. The zombi-option is OFF, noone of them raised up again.
Moreover, on the tactical screen for the DEBUG version of the code the bug has been announced by debug message "Sector troop counters are bad. What were the last 2-3 things to die, and how? Save game and send to KM with info!!!"
Direction of Work:
It makes me think that comrade SevenFM was right when he mentioned the function "ProcessQueenCmdImplicationsOfDeath" ("Strategic\Queen Command.cpp"), cause the function contains the debug message in line 1428.
Staying on the strategic map with the 14 enemies I tried to send my squad out and got the same old song: "Movement Orders? This is a hostile sector!", but after some walking around the code with debugger I found out that the reason is NOT related to sector counters!!! suprised All of them are correct and equal to zero!

As I see, like in the previous bug (related to zombi) the movement order was blocked by function "NumHostilesInSector" ("Strategic\Queen Command.cpp"). But this time problem comes from loop in line 179:
while( pGroup )

As I understand in this situation one of the enemy groups was not affected by the cheat-code and its size didnt change (still equal to 14).
I tried to have a look into "ObliterateSector" -> "EVENT_SoldierGotHit", but failed to find anything of interest.
I'd like to explore how the gamecode changes the number of enemy red markers on the strategic screen and how it modifies the number of groups/number of individuals in groups. Could you please tell me where it is located?
Thank you in advance!

[Updated on: Tue, 06 August 2019 07:34]

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 17:46:56 GMT+2 2025

Total time taken to generate the page: 0.01089 seconds