Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 INI Customisation and Help » Question about Skills_Settings.INI
Question about Skills_Settings.INI[message #351685] Thu, 14 December 2017 00:00 Go to next message
sunnymite

 
Messages:16
Registered:May 2006
Hi everyone,

I have a question about possible limitations in Skills_Settings.INI

If I want every merc in game (IMP, AIM, MERC, Ira, Maddog etc) to be able to have more than possible 2-3 skills, and I set the parameters in the file as the following:

MAX_NUMBER_OF_TRAITS = 13

; Number if Skill Traits available when creating IMP.
MAX_NUMBER_OF_TRAITS_FOR_IMP = 17

; Number of Major Trait slots allowed for player mercs.
; Values from 2 to 20 are allowed.
NUMBER_OF_MAJOR_TRAITS_ALLOWED = 5

; Number of Major Trait slots allowed when creating IMP.
; Values from 2 to 20 are allowed.
NUMBER_OF_MAJOR_TRAITS_ALLOWED_FOR_IMP = 6

Will it work correctly or there will be some problems\bugs?

Also, i manually entered additional perks in mercprofiles.xml file - will it work correctly in the game?
Thanks.
Re: Question about Skills_Settings.INI[message #351687 is a reply to message #351685] Thu, 14 December 2017 00:58 Go to previous message
silversurfer

 
Messages:2223
Registered:May 2009
It will probably not work as you expect.
MAX_NUMBER_OF_TRAITS = 13
MAX_NUMBER_OF_TRAITS_FOR_IMP = 17

The above seems ok but:
NUMBER_OF_MAJOR_TRAITS_ALLOWED = 5
NUMBER_OF_MAJOR_TRAITS_ALLOWED_FOR_IMP = 6

will not work. There is a restriction in the code that defines that number of major traits for IMP cannot exceed the general number of major traits allowed. I don't know if this is a mistake or intended.

Here is the part of the code:
gSkillTraitValues.ubNumberOfMajorTraitsAllowedForIMP = iniReader.ReadInteger( "Generic Traits Settings", "NUMBER_OF_MAJOR_TRAITS_ALLOWED_FOR_IMP", 2, 2, min( gSkillTraitValues.ubNumberOfMajorTraitsAllowed, gSkillTraitValues.ubMaxNumberOfTraitsForIMP - 1 ) );

default is 2, minimum is 2, maximum is the lower one of NUMBER_OF_MAJOR_TRAITS_ALLOWED (5) and MAX_NUMBER_OF_TRAITS_FOR_IMP - 1 (16)

If you want to make it work correctly you should set NUMBER_OF_MAJOR_TRAITS_ALLOWED to 6 or higher.



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

Previous Topic: 1. [System Limit Settings] Discussion
Next Topic: Ammunition shows ?? and buggy ?
Goto Forum:
  


Current Time: Wed Jan 17 03:33:22 EET 2018

Total time taken to generate the page: 0.00510 seconds