Home » MODDING HQ 1.13 » v1.13 General Development Talk » Any introduction to the code?
Re: Any introduction to the code?[message #357791 is a reply to message #357790]
|
Wed, 07 August 2019 07:51 ![Go to previous message Go to previous message](/theme/Bear_Classic_Brown/images/up.png)
|
|
MH17 |
![](/images/ranks/corporal.png) |
Messages:46
Registered:November 2018 Location: Antarctica |
|
|
silversurfer wrote on Tue, 06 August 2019 19:16It seems you had multiple groups of enemies, not all in the sector but some recently departed. They should appear after some time because reinforcements take time. At least that is my guess what happened here.
Hi, SilverSurfer!
Yeah, I got two groups of enemies (with pTSoldier->ubGroupID equal to 23 and 24), each group has 14 soldiers.
But all of them are staying in the sector for sure, cause for each one of the 28 soldiers:
1. I checked flag "pTSoldier->bInSector", it is equal 1.
2. I manually found all the soldiers on the tactical map using cheatcode Alt+E.
After using Alt+O everyone dies in tactics, but in strategic map one of the groups stays untouched.
In order to find out which enemy group has managed to survive after Alt+O I tried to check the ubGroupID in "NumHostilesInSector" and suddenly it gave me ubGroupID is equal to 24.
Do you know where I can find a code responsible for update of gpGroupList->ubGroupID after the death of last soldier in the group? I believe the problem is going to be somewhere around.
UPD: After some walking around the code with debugger I can conclude, that one enemy group (with ubGroupID = 23) was correctly deleted in function "ProcessQueenCmdImplicationsOfDeath" (file "Queen Command.cpp", line 1371, does anyone understands its logic?). The second group (with ubGroupID = 24) left as it is despite the fact, that all the soldiers were killed by the cheat code Alt+O. It seems to me that the call of the function "ProcessQueenCmdImplicationsOfDeath" has been missed somewhere...
UPD 2: Finally: after some extra research I see, that the soldiers from one of the groups with ubGroupID = 24 just absent in vector MercSlots (file "Overhead.cpp"). I have no idea why instead of 24 there are soldiers with ubGroupID = 25. As a result a function "ExecuteOverhead" cant process the array properly. Does anyone know what is the purpose of the vector MercSlots? Any advices or recomendations will be highly appreciated!
[Updated on: Wed, 07 August 2019 15:18] Report message to a moderator
|
Corporal
|
|
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
![icon12.gif](/images/message_icons/icon12.gif) |
Any introduction to the code?
By: MH17 on Tue, 23 July 2019 01:45
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Tue, 30 July 2019 05:04
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Wed, 31 July 2019 09:39
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Sat, 03 August 2019 12:08
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: Deleted. on Sat, 03 August 2019 21:27
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Sun, 04 August 2019 08:43
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: Deleted. on Sun, 04 August 2019 09:58
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Sun, 04 August 2019 10:26
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Sun, 04 August 2019 11:12
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Mon, 05 August 2019 10:36
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: Deleted. on Mon, 05 August 2019 14:41
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
![icon14.gif](/images/message_icons/icon14.gif) |
Re: Any introduction to the code?
By: MH17 on Tue, 06 August 2019 05:25
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
![icon9.gif](/images/message_icons/icon9.gif) |
Re: Any introduction to the code?
By: MH17 on Tue, 06 August 2019 07:28
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Wed, 07 August 2019 07:51
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Thu, 08 August 2019 11:35
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: Deleted. on Thu, 08 August 2019 11:43
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Thu, 08 August 2019 12:12
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: Deleted. on Thu, 08 August 2019 12:39
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Thu, 08 August 2019 12:59
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: Deleted. on Thu, 08 August 2019 13:10
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Thu, 08 August 2019 13:45
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Thu, 08 August 2019 20:53
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Sun, 11 August 2019 14:57
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
![film28.png](/images/message_icons/film28.png) |
Re: Any introduction to the code?
By: MH17 on Thu, 22 August 2019 11:35
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Fri, 23 August 2019 03:22
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Fri, 23 August 2019 12:56
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: Deleted. on Fri, 23 August 2019 13:13
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Sat, 24 August 2019 10:29
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Sat, 24 August 2019 12:00
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
By: MH17 on Sun, 25 August 2019 01:35
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Any introduction to the code?
|
Goto Forum:
Current Time: Wed Feb 12 15:28:48 GMT+2 2025
Total time taken to generate the page: 0.01765 seconds
|