Home » MODDING HQ 1.13 » v1.13 General Development Talk » Any introduction to the code?
Re: Any introduction to the code?[message #357949 is a reply to message #357947] Fri, 23 August 2019 12:56 Go to previous messageGo to previous message
MH17 is currently offline MH17

 
Messages:46
Registered:November 2018
Location: Antarctica
silversurfer wrote on Fri, 23 August 2019 10:26
I don't have UC so I can't comment on map specific issues. I assume the ubNumCreatures is higher than 30 after you enter the sector or are there 30 zombies?
If there are e.g. 20 Zombies and the counter goes to 50 and after you kill them all the counter is reduced properly and goes back to 30 it means at least the fix for zombies in ProcessQueenCmdImplicationsOfDeath() is working. In this case maybe you can figure out where the 30 is coming from.
Hi, SilverSurfer!

Yeah, it looks like after your update the counter of zombies has been correctly increased and decreased.
But its initial value upon arriving my team into city sector D13 is equal to 30. It is before any zombie was generated and long before any enemy was killed.

My girlfriend just started the game and she never ever been before in this location during the short campaign.
This is Callisto Mine in UC (or Drassen Mine in the Vanilla).
Using cheat codes I couldn't find any zombies or monsters in the sector, just some enemy troops.

And very interesting moment: just look at the function "ValidateAndCorrectInBattleCounters" (file "strategic\prebattle interface.cpp").
This function sets some of combat counters to 0 in line 270.
May be it make sense to zeroize all of them?

All of this looks extremely strange to me.

[Updated on: Fri, 23 August 2019 12:57]

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:11:59 GMT+2 2025

Total time taken to generate the page: 0.01129 seconds