Hi, is there a modding guide available somewhere that I've missed? There are some old threads around Hex editing but that is not what I'm looking for.
I'm most interested in having the Historical sub-mod as a baseline and I'm aware that any mods I might want to add will need to be merged into that.
With that in mind, I've been using dnSpy (not a tool I've used before) to decompile the Assembly-CSharp.dll file. As an exercise, I decided to make a simple amendment to read in a new dummy config setting. Editing the Config class and recompiling gave me errors on the following lines:
Config.gameSettings.officer.corpsExperience[0] *= Config.GameSettings.corpsOfficerExperienceMultiplier;
Config.gameSettings.officer.corpsExperience[1] *= Config.GameSettings.corpsOfficerExperienceMultiplier;
Config.gameSettings.officer.divisionExperience[0] *= Config.GameSettings.divisionOfficerExperienceMultiplier;
Config.gameSettings.officer.divisionExperience[1] *= Config.GameSettings.divisionOfficerExperienceMultiplier;
I then decided to take a look at it with ILSpy (something I have used before) and examine the Config class that it produced:
global::Config.gameSettings.officer.corpsExperience[0] *= GameSettings.corpsOfficerExperienceMultiplier;
global::Config.gameSettings.officer.corpsExperience[1] *= GameSettings.corpsOfficerExperienceMultiplier;
global::Config.gameSettings.officer.divisionExperience[0] *= GameSettings.divisionOfficerExperienceMultiplier;
global::Config.gameSettings.officer.divisionExperience[1] *= GameSettings.divisionOfficerExperienceMultiplier;
By replacing the dnSpy code with the ILSpy version, it compiles correctly and UGCW starts up without falling over in a heap but I'm wondering if that is a process that the experienced modders here have to follow or if I just don't have dnSpy configured correctly.
Any help appreciated... 🙂