Logo Platform
logo amplifiers simplified

Research Speed Mod

Reply
Copied to clipboard!
10 years ago
Jan 6, 2015, 8:20:34 PM
I'm working on a mod to split research time bonus from the game speed setting and am having some trouble getting it to work. Here's what I've done:



In Options\GameOptionDefinitions.xml, I added the following:







Fast





Normal





Slow







I added the text to the localization file and the dropdown list shows up when I go to create a new game with the mod enabled. The proper text and tooltips are displayed.



I added a file, Options\GameModifiers[TechSpeed].xml with the following inside the usual xml tags:





TechSpeedBonus



../EmpireTypeMajor











TechSpeedBonus



../EmpireTypeMajor











TechSpeedBonus



../EmpireTypeMajor









I then added a file Simulation\SimulationDescription[TechSpeedBonus].xml:





































I've tried the various settings and the initial research cost always shows up with the same value. I also removed the research changes from the game speed settings. The xml file at the top references all the appropriate plugins and xml files to load. Can anyone enlighten me on what I'm doing wrong here?



Edit: I tried out adding and using a new property as noted below, but still couldn't get this to work. Here's the current state of the mod:

GameSpeed.zip
0Send private message
10 years ago
Jan 12, 2015, 1:49:49 PM
Hello,

At first glance I don't see any issue with what you wrote. Only thing is that I'm not sure if the priority is still needed in this case.

Anyway, in order to help you more, best will be to share your mod at its current state of development.

Then everyone will be able to have a look at the files and someone might be able to find the issue.

I can assure you that at least I will take time to do so smiley: smile

Cheers,
0Send private message
10 years ago
Jan 12, 2015, 3:15:23 PM
A bit more info thanks to one of the designers.

Best thing to do seems to add a property in technology cost which is written in SimulationDescriptors[Class].xml (line 636):





















Thus, the value must be negative.

Otherwise, "MyCostReduction" is a property like any other.



And do not forget to erase the lines in SimulationDescriptors[GameSpeedBonus]:





0Send private message
10 years ago
Jan 13, 2015, 6:40:18 PM
Thanks for the tips! I will try this out and post what I have when I can - hopefully tonight after work.
0Send private message
?

Click here to login

Reply
Comment