Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: individual militia
Re: New feature: individual militia[message #349717 is a reply to message #347531]
|
Fri, 05 May 2017 16:11
|
|
RunAwayScientist |
|
Messages:84
Registered:September 2001 |
|
|
Hey Flugente, as promised (late) I am proud to announce I figured out the issue regarding the previously mentioned bug and would like to submit it to be committed to the SVN.
Turns out the issue was with the alias types GREEN_MILITIA, REGULAR_MILITIA, ELITE_MILITIA and their scope. The alias scope did not apply to PMC.cpp or Assignments.cpp or MilitiaIndividual.cpp
Instead use SOLDIER_CLASS_REG_MILITIA or SOLDIER_CLASS_ELITE_MILITIA for function CreateNewIndividualMilitia() or include the appropriate .h/scope for those aliases to work inside of MilitiaIndividual.cpp
The alias works for StrategicAddMilitiaToSector() just fine, which is quite confusing.
[[ PMC.cpp ]] { BUGGED CODE } :
Toggle Spoiler // Flugente: create individual militia
for ( int i = 0; i < (*it).usRegulars; ++i )
CreateNewIndividualMilitia( REGULAR_MILITIA, MO_PMC, (*it).usSectorToArrive );
for ( int i = 0; i < (*it).usVeterans; ++i )
CreateNewIndividualMilitia( ELITE_MILITIA, MO_PMC, (*it).usSectorToArrive );
[[ PMC.cpp ]] { CORRECTED CODE } :
Toggle Spoiler // Flugente: create individual militia
for ( int i = 0; i < (*it).usRegulars; ++i )
CreateNewIndividualMilitia( SOLDIER_CLASS_REG_MILITIA, MO_PMC, (*it).usSectorToArrive );
for ( int i = 0; i < (*it).usVeterans; ++i )
CreateNewIndividualMilitia( SOLDIER_CLASS_ELITE_MILITIA, MO_PMC, (*it).usSectorToArrive );
[[ Assignments.cpp ]] { BUGGED CODE } :
Toggle Spoiler
// Flugente: create individual militia
for ( int i = 0; i < turnedmilitia[PRISONER_ADMIN]; ++i )
CreateNewIndividualMilitia( GREEN_MILITIA, MO_DEFECTOR, SECTOR( sMapX, sMapY ) );
for ( int i = 0; i < turnedmilitia[PRISONER_REGULAR]; ++i )
CreateNewIndividualMilitia( REGULAR_MILITIA, MO_DEFECTOR, SECTOR( sMapX, sMapY ) );
for ( int i = 0; i < turnedmilitia[PRISONER_ELITE] + turnedmilitia[PRISONER_OFFICER]; ++i )
CreateNewIndividualMilitia( ELITE_MILITIA, MO_DEFECTOR, SECTOR( sMapX, sMapY ) );
[[ Assignments.cpp ]] { CORRECTED CODE } :
Toggle Spoiler
// Flugente: create individual militia
for ( int i = 0; i < turnedmilitia[PRISONER_ADMIN]; ++i )
CreateNewIndividualMilitia( SOLDIER_CLASS_GREEN_MILITIA, MO_DEFECTOR, SECTOR( sMapX, sMapY ) );
for ( int i = 0; i < turnedmilitia[PRISONER_REGULAR]; ++i )
CreateNewIndividualMilitia( SOLDIER_CLASS_REG_MILITIA, MO_DEFECTOR, SECTOR( sMapX, sMapY ) );
for ( int i = 0; i < turnedmilitia[PRISONER_ELITE] + turnedmilitia[PRISONER_OFFICER]; ++i )
CreateNewIndividualMilitia( SOLDIER_CLASS_ELITE_MILITIA, MO_DEFECTOR, SECTOR( sMapX, sMapY ) );
Report message to a moderator
|
|
|
|
|
|
New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Panzer on Fri, 06 May 2016 21:30
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Fri, 20 May 2016 04:03
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Sat, 21 May 2016 21:47
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Sun, 22 May 2016 14:35
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: 3iff on Mon, 23 May 2016 10:06
|
|
|
Re: New feature: individual militia
By: ratpaz on Mon, 23 May 2016 14:51
|
|
|
Re: New feature: individual militia
By: 3iff on Wed, 25 May 2016 10:15
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: 3iff on Thu, 26 May 2016 11:49
|
|
|
Re: New feature: individual militia
By: Uriens on Fri, 03 June 2016 13:24
|
|
|
Re: New feature: individual militia
By: Elvis_A on Wed, 06 July 2016 20:03
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Elvis_A on Wed, 06 July 2016 21:16
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Elvis_A on Wed, 06 July 2016 22:45
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Sun, 17 July 2016 00:30
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Sun, 17 July 2016 10:13
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Sun, 17 July 2016 17:45
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Tue, 19 July 2016 14:33
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Wed, 20 July 2016 07:46
|
|
|
Re: New feature: individual militia
By: Thor on Mon, 25 July 2016 20:25
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Thor on Tue, 26 July 2016 02:00
|
|
|
Re: New feature: individual militia
By: ratpaz on Tue, 02 August 2016 09:05
|
|
|
Re: New feature: individual militia
By: Flugente on Tue, 02 August 2016 13:14
|
|
|
Re: New feature: individual militia
By: Inukshuk on Tue, 02 August 2016 16:38
|
|
|
Re: New feature: individual militia
By: ratpaz on Tue, 02 August 2016 21:07
|
|
|
Re: New feature: individual militia
By: Uriens on Sun, 07 August 2016 20:25
|
|
|
Re: New feature: individual militia
By: Boojum on Fri, 02 September 2016 06:30
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Boojum on Fri, 02 September 2016 19:19
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Boojum on Sat, 03 September 2016 09:52
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Enneagon on Sat, 03 September 2016 13:47
|
|
|
Re: New feature: individual militia
By: Boojum on Sat, 03 September 2016 19:48
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Elvis_A on Mon, 05 February 2018 08:35
|
|
|
Re: New feature: individual militia
By: Flugente on Sun, 04 March 2018 23:16
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Mon, 14 November 2016 01:04
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Fri, 13 January 2017 20:42
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Fri, 13 January 2017 21:46
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Fri, 13 January 2017 22:23
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Sat, 14 January 2017 02:22
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Sat, 14 January 2017 02:34
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Sat, 14 January 2017 02:53
|
|
|
Re: New feature: individual militia
By: Hawkeye on Sun, 15 January 2017 04:08
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Wed, 25 January 2017 21:19
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Hawkeye on Sat, 14 January 2017 02:59
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Thu, 21 September 2017 21:40
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Thu, 05 October 2017 23:01
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Shadow on Fri, 12 January 2018 23:59
|
|
|
Re: New feature: individual militia
By: LatZee on Thu, 22 March 2018 10:41
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Thu, 12 April 2018 21:44
|
|
|
Re: New feature: individual militia
By: LatZee on Fri, 13 April 2018 02:50
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Fri, 13 April 2018 03:39
|
|
|
Re: New feature: individual militia
By: Flugente on Sat, 14 April 2018 17:32
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Thu, 19 April 2018 22:27
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Individual Militia Bug Fix (DEV - 8551)
|
Goto Forum:
Current Time: Mon Dec 02 13:13:27 GMT+2 2024
Total time taken to generate the page: 0.02339 seconds
|