Ludeon Forums

RimWorld => Mods => Topic started by: m4gpiie on August 06, 2017, 08:00:10 AM

Title: Help with mod please :)
Post by: m4gpiie on August 06, 2017, 08:00:10 AM
First time making a mod, decided to go with a revolver since it seemed like a decent idea to start with.
So far it's all working just fine except raiders don't seem to spawn with it equipped no matter how many times I've tried, is there anything I need to change in the file that will make it possible for raiders to spawn using the gun?
Thanks in advance :)

[attachment deleted by admin: too old]
Title: Re: Help with mod please :)
Post by: SpaceDorf on August 06, 2017, 09:12:51 AM
[Tutorial] How to Make a RimWorld Mod, Step by Step (https://ludeon.com/forums/index.php?topic=33219.0)
Title: Re: Help with mod please :)
Post by: skullywag on August 06, 2017, 10:20:02 AM
Possibly missing a thingcategory. Check vanilla guns and ensure you have every xml element they have.
Title: Re: Help with mod please :)
Post by: kaptain_kavern on August 07, 2017, 03:33:59 PM
A few explanations on how to "not" having raiders using modded guns: https://ludeon.com/forums/index.php?topic=34710.msg355962#msg355962

Hope it will help a bit
Title: Re: Help with mod please :)
Post by: Cryusaki on August 08, 2017, 02:13:02 AM
You're missing the generateCommonality tag. Look at the core xml code for weapons if you're not sure where to place it.

<generateCommonality>1.5</generateCommonality>
Title: Re: Help with mod please :)
Post by: m4gpiie on August 09, 2017, 04:51:54 AM
Thank you everyone, have it sorted out now :)