Problem with my first mod disabling three events

Started by jebo, May 24, 2017, 09:49:29 PM

Previous topic - Next topic

jebo

Greetings

I've been trying to make a mod to disable three events (Solar Flares, Short Circuits and Infestations).

I did this in 0.16 by just changing directly the corefiles basechance attribute in those events in the core/defs.

Since it's a new patch, I decided to actually make my first very simple mod, just changing the chance of those events to happen to 0. So I decided to make a mod so I wouldn't have to restart my colony (I invested in it quite some time), and maybe share it with others that might be interested in this.

I've read some tutorials about mod and folder structure, and despite the info there is scarce and sometimes very outdated, I think everything seems in order, yet the events keep happening (there's no easy way to test this out other than playing, since if you launch the incident directly it goes through anyway, even with the event chance set to 0).

I include attached the mod in question.

Could you give a look and tell me what am I doing wrong? I get no errors in the console and the mod is enabled.

Thanks in advance

[attachment deleted by admin due to age]

O Negative

Using the custom scenario editor is a much better way of accomplishing your goal, to be honest.


*I'm not seeing any errors on my end when I test it, and looking at the xmls it doesn't look like you've done anything wrong.
Base chance of 0 just makes it stupid unlikely for the event to fire, but it's not forbidden. If I'm understanding it correctly?

You could try adding <earliestDay>9999</earliestDay> which is approximately in-game 166 years.
That will add an element to the event where the game says "NO" this event can't happen yet, until that time has elapsed.
I don't know anybody who's had a colony last that long :P

jebo

Thanks for the reply.

They helped me in the discord channel in #rimworld-modding and I got it to work. Here it is if you or someone else is interested. Basicly I had to add my own personalized tags around the whole thing.

[attachment deleted by admin due to age]

O Negative