OpenXcom Forum

Modding => Work In Progress => Topic started by: Amiga on May 25, 2013, 09:44:14 pm

Title: Modification after new GIT ?
Post by: Amiga on May 25, 2013, 09:44:14 pm
So I made few modification in RuleSet file but very often nightly builds appears overwriting my work. How to update to newest GIT keeping my removed Ruleset values?
I know that I can add new ruleset values and start it in options.cfg but what about strings  that was removed? It cames back with new GIT
Title: Re: Modification after new GIT ?
Post by: Nightwolf on May 25, 2013, 10:18:02 pm
Now its pretty easy, you need to create you own ruleset file with the change you want. Then, go to options.cfg file (you can find it on, if using win7 C:\Users\<username>\Documents\OpenXcom , and add it and the end of document, after the Xcom1Ruleset. For example:

rulesets:
  - Xcom1Ruleset
  - Mycoolmod

Always your mod should be after Xcom1Ruleset
Title: Re: Modification after new GIT ?
Post by: Amiga on May 25, 2013, 10:21:43 pm
Yes I know. Changed values works fine but values that has been removed returns :(
For example:
- I removed MEDIKIT from research screen - with updated RuleSet it will back again
Title: Re: Modification after new GIT ?
Post by: Nightwolf on May 25, 2013, 10:33:53 pm
did you make your own ruleset file, instead of editing Xcom1Ruleset.rul file? Also tried if a new game takes effect?
Title: Re: Modification after new GIT ?
Post by: AndO3131 on May 25, 2013, 11:46:40 pm
@Amiga, I think this

rulesets:
  - Xcom1Ruleset
  - Mycoolmod

will load 'Xcom1Ruleset.rul' and then add 'Mycoolmod.rul' features, but I don't think it's possible to remove entries added by 'Xcom1Ruleset.rul'. You could copy original ruleset as 'Mycoolmod.rul', do whatever you want on this copy and in 'options.cfg' put

rulesets:
  - Mycoolmod
Title: Re: Modification after new GIT ?
Post by: Amiga on May 26, 2013, 01:36:19 am
Its shame that its impossible to remove values :( Maybe somebody will find out how to do it
Title: Re: Modification after new GIT ?
Post by: SupSuper on May 26, 2013, 04:41:18 am
Instead of removing the entry, you could just make it impossible to research/manufacture/buy/etc.
Title: Re: Modification after new GIT ?
Post by: Amiga on May 26, 2013, 11:06:36 am
Sounds simple but still I cant find out how to remove medikit from research search in my Ruleset leaving original Ruleset untouched....
[update]
- i know how :-) just add extra dependies on research that never came.
Thx SupSuper for advice