Home » MODDING HQ 1.13 » v1.13 General Development Talk » More females?
More females?[message #346811] Mon, 05 September 2016 07:24 Go to next message
Darron Wyke
Messages:5
Registered:August 2016
In the stock releases of 1.13, there's a limit of 5 male and 3 female IMPs. I've increased the female counter to 4 by changing both options:
IMP_MALE_CHARACTER_COUNT
IMP_FEMALE_CHARACTER_COUNT
I left the first at the default of 5, and did a simple increase of the latter to 4. Noted that the "max IMP characters" option on new game starts goes up to 9 now. Setting that to 9 and starting a new game still gets the "you already have the max number of characters of that gender" error on IMP, either with creating or using the IMP's codename on the IMP website. I even changed both to 8/8 and started a game with a 16 IMP max, and no joy.

Is this limit hardcoded into the engine irrespective of what the configuration files state, or am I missing configuration elsewhere? I was able to hire 3 more males for a total of 7/3, so the male limit is apparently being enforced.
Re: More females?[message #346812 is a reply to message #346811] Mon, 05 September 2016 09:02 Go to previous messageGo to next message
edmortimer

 
Messages:787
Registered:January 2015
Location: Home Free
There is a max of 10 IMPs, 7 male and 3 female, in the stock 1.13. There are 7 male and 3 female voice sets included in the stock 1.13, so there can only be some combination that can be made from that configuration.

Other mods, such as mine, have included more female voice sets. Merc05 made a couple good ones which I included in my mod (the default there is 5 & 5), and they should be available somewhere on this forum. Once you have more female voice sets you'll have to remove some of the male voice sets to make room for them. You'll have to assign the female voice sets in the area just below where you changed the numbers of males and females. I think there's a couple more modifications you have to do, like change the gender of the IMP slots in MercProfiles.xml to reflect the new female designations, but it's late here and my brain isn't working correctly.

The short of it is, you need voice sets to expand the number of females.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Re: More females?[message #346818 is a reply to message #346811] Mon, 05 September 2016 15:01 Go to previous messageGo to next message
ratpaz

 
Messages:123
Registered:April 2015
Location: Italy
This is what you need to add more 1 more female IMP, note that in 1.13
profile n° 51,52,53, 169, 192, 193, 194 are male IMP, while 54, 55, 56 are female.
Now, let's say we want to change male IMP 169 with a female IMP
in JA2_options.ini you need to do the following changes:


IMP_MALE_CHARACTER_COUNT = 6
IMP_FEMALE_CHARACTER_COUNT = 4

IMP_MALE_1 = 51
IMP_MALE_2 = 52
IMP_MALE_3 = 53


; The following 3 IMP Males have copied voice sets from IMP 51, 52, 53 (currently all 3 voice sets are in Russian)

IMP_MALE_4 = 192
IMP_MALE_5 = 193
IMP_MALE_6 = 194
;IMP_MALE_8 = 164

IMP_FEMALE_1 = 54
IMP_FEMALE_2 = 55
IMP_FEMALE_3 = 56
IMP_FEMALE_4 = 169



Then you need to locate the following lines in MercProfiles.xml
<PROFILE>
		<uiIndex>169</uiIndex>
		<Type>6</Type>
		<zName></zName>
		<zNickname>PGMale4</zNickname>
		<ubFaceIndex>169</ubFaceIndex>

and change the following line like this:
                <zNickname>PGLady4</zNickname>


Not sure if you also need to change all other males in Mercprofiles.xml to match the ones in ja2options.ini, do it if something goes wrong.

Then you need new female voice sets, you can find few here:
http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=22843&goto=345788&#msg_345788

you need to change the names of all the files that come with the voice set according with the number of the female you choosed to use in Ja2_options.ini
in this case the number of the new female IMP is 169.
To make your life easier merc05 added in his voice sets a batch file that may rename all the files automatically, you need to modify that batch file, instructions in merc05 readme.txt

If i don't forget nothing this should be all.

[Updated on: Mon, 05 September 2016 15:12]

Re: More females?[message #346820 is a reply to message #346818] Mon, 05 September 2016 18:29 Go to previous messageGo to next message
Darron Wyke
Messages:5
Registered:August 2016
Ah, this is good info to have. See, I also tried copying the existing voices to a new line, like thus:
IMP_FEMALE_1 = 54
IMP_FEMALE_2 = 55
IMP_FEMALE_3 = 56
IMP_FEMALE_4 = 54
IMP_FEMALE_5 = 55
IMP_FEMALE_6 = 56

And it sort of worked, there's a fourth voice option that's a repeat of the first. But I still hit the max-gender error. I can try the rest of that, though.

Rather than replace an existing entry, I'd rather add a new one in, to avoid any issues. Is there a max uiIndex value of 255 in the MercProfiles.xml file? If not I'll copy one of the PGLady profiles and modify it with a new index, then rename a voice pack and copy it over.
Re: More females?[message #346821 is a reply to message #346820] Mon, 05 September 2016 20:39 Go to previous messageGo to next message
silversurfer

 
Messages:2124
Registered:May 2009
https://i.imgflip.com/1a2ypv.jpg

Every IMP needs his own unique profile and no more than 255 profiles are possible.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Re: More females?[message #346822 is a reply to message #346821] Mon, 05 September 2016 23:18 Go to previous messageGo to next message
Darron Wyke
Messages:5
Registered:August 2016
Yeah, I figured that out after attempting to create #256. Let me guess, that's due to a limit on the engine for unsigned characters?
Re: More females?[message #346824 is a reply to message #346822] Tue, 06 September 2016 09:06 Go to previous messageGo to next message
silversurfer

 
Messages:2124
Registered:May 2009
Yes, that's a fixed limit. Because of that MercProfiles.xml has exactly 255 entries. Modifying the existing profiles is possible to some extend but one cannot create additional profiles.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Re: More females?[message #348225 is a reply to message #346824] Fri, 13 January 2017 16:32 Go to previous messageGo to next message
Czert

 
Messages:86
Registered:August 2007
one completly stupinow hard it will be to modify engine to be able to use more than 255 profiles ? and will it make other mods uncompatibile ?
Re: More females?[message #348235 is a reply to message #348225] Fri, 13 January 2017 20:37 Go to previous message
Flugente

 
Messages:3052
Registered:April 2009
Location: Germany
Absurdly hard. This would require increasing all variables that store profiles in the code, as well as all functions that use them. This requires changes in the entire game code. Apart from that, savegames will be broken. Much, much worse is that maps will also be broken, so you have to repair the code handling maps, which can be tricky.

The increased teamsize exes I do essentially solve a similar problem (max number of people in a sector increased from 256 to 65K), so I know how much work that is. A lot.

Mods wouldn't be incompatible (unless whoever does this also adds severe data changes).



Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Previous Topic: How do you make tranquilizers more effective and reliable?
Next Topic: few small ideas
Goto Forum:
  


Current Time: Sun Jul 23 23:34:32 EEST 2017

Total time taken to generate the page: 0.00738 seconds