[Looking for Modding Advice] Controlling Insect Spawning

Started by Rorax, July 20, 2016, 05:24:28 AM

Previous topic - Next topic

Rorax

I am a complete noob to Rimworld modding and rather than wade through the overwhelming source that we have been provided with could someone point me to where I should start if I want to control where and how subterranean insects spawn?

skullywag

Both are controlled via c# in the incident worker for this incident def (the xml), you'll need to understand c# code and how to make a DLL mod to adjust any of this.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Rorax

Just so happens C# is my best language so at least its possible? I think I saw a tutorial in the help section about .DLL mods.

I'm guessing I'll have to decompile rimworld if I want at that particular piece of code because I'm not seeing it while I'm clicking around?

skullywag

Correct follow that tutorial (should still be relevant for A14) then yes use ILSpy or something to check out the method, now you have the xml def for the incident in your mod call a different incidentworker class (your adjusted one), should be about it.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Rorax