PDA

View Full Version : Non-replacement tuning overrides


dim4sim
29th Mar 2012, 10:35 PM
Hello all,

I am trying to figure out if there is a programmatic way of overriding single option values in an XML file rather than squashing the entire file. Basically, my question is, if you are trying to override one value in a very large file, is there a way to do that without destroying all of the other settings?

The closest I have found is this post by Twallan (http://www.modthesims.info/showthread.php?p=3054080#post3054080). Upon further investigation, I also found the non-replacement book tuning (http://nraas.wikispaces.com/Careers+Tutorial+BookFile) for the Careers mod.

What I am hoping to achieve: stackable single-setting overrides for a single tuning file.


Thanks in advance.

Buzzler
30th Mar 2012, 5:26 PM
You need a scripting mod for that. In it you need one class for each (set of) tuning value(s) which you need to make tunable again. The actual script mod needs to read the values then and assign them to the game's fields.

dim4sim
30th Mar 2012, 6:31 PM
That's perfectly fine. I was pretty sure that it was a scripting mod. I wasn't sure if there was a template for doing so. Are you aware of any example that is already doing this? I would try to decompile it.


Thanks.