RimWorld

RimWorld

59 ratings
Modding Tutorial: Gun
3
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3
File Size
Posted
441.974 KB
13 Apr, 2022 @ 4:27pm
1 Change Note ( view )

Subscribe to download
Modding Tutorial: Gun

Description
Modding Tutorial

Questions? Join the Discord: https://discord.gg/b6EPMhC7QB

Just a very quick and simple follow the video tutorial on how to add a new weapon to RimWorld. This one is following the vanilla sniper rifle and just putting it in the game, nothing special or exciting, just getting it into the world and structuring the mod.

Link to Visual Studio Code: https://code.visualstudio.com/
Link to steam workshop downloader (copy paste this page and put it in the downloader and youll get the files we made in this mod!): {LINK REMOVED}


If you have suggestions for future tutorials leave a comment!


Credits: RimWorld is owned by Tynan Sylvester
20 Comments
Ranger Rick  [author] 13 Jun, 2022 @ 9:38pm 
Never irrelevant ! I love seeing more and more fallout content and as modders we all have dif styles and ideas. Cant wait to see more!
El Bongo 13 Jun, 2022 @ 8:40pm 
@Ranger Rick Thank you, i did make it work, this is not that hard when you get into it hahahah. After asking i saw you did a lot of FNV content for Rimworld ... I had the same idea hahaha. I was actually trying to link a sounds of the 10mm pistol from NV to a sprite i did of the gun. Now that i saw all your content ... making this seems irrelevant :/
Cheers mate and thanks for the help
Ranger Rick  [author] 13 Jun, 2022 @ 7:24pm 
@El Bongo for the sound def I make a xml file in the defs folder named SoundDefs. And for the actual .ogg sound file I make a file called sounds and place it in there. For example here is a def.

<?xml version="1.0" encoding="utf-8"?>
<Defs>

<SoundDef>
<defName>Shot_Silenced_SMG</defName>
<context>MapOnly</context>
<eventNames />
<maxSimultaneous>1</maxSimultaneous>
<subSounds>
<li>
<grains>
<li Class="AudioGrain_Folder">
<clipFolderPath>Shot_Silenced_SMG</clipFolderPath>
</li>
</grains>
<volumeRange>
<min>39.76471</min>
<max>41.76471</max>
</volumeRange>
<sustainLoop>False</sustainLoop>
</li>
</subSounds>
</SoundDef>

</Defs>



and the .ogg sound file name is Shot_Silenced_SMG
El Bongo 13 Jun, 2022 @ 5:22pm 
How does the SoundPath works? I have tried to make the file path "mod/modname/sound/10mmsound/10mm.wav" and then make the xml to atach the sound to a name "mod/modname/defs/SoundDefs/pistol.xml" then use the name on the <soundpath> tag inside the gun xml.
And this seems to not work properly i am kinda lost here :/
If u can help me it will be apreciated
Ranger Rick  [author] 19 Apr, 2022 @ 9:52am 
Ive been thinking about that, I do have a good friend who made an amazing mod called Medieval Overhaul! He may be willing to make one for your request as hes a bit more confident than I in that aspect!
SirLalaPyon 19 Apr, 2022 @ 7:36am 
Hey man! big fan of your work, I was hoping if there are any tutorials for c#. It would not be complete without it!
Ranger Rick  [author] 18 Apr, 2022 @ 11:03pm 
Sure!
HYDRA 18 Apr, 2022 @ 10:48pm 
This is a mighty fine line up would you mind making vids on animals and mechs too :fd1mikoto:
Ranger Rick  [author] 17 Apr, 2022 @ 2:36pm 
Armor, Races, Factions, Research, and recipes are planned so far. Also open to send the Preview image and intro to any known modders wanting to do these as well!
Beats-With-BothHands 17 Apr, 2022 @ 2:29pm 
nice ill have to look at my old mods to find the tutorial i used to learn how to mod weapons and armor, but it is always good to have more tutorials just in case. i suggest a "race" tutorial or something with more codding and variables involved. (from my memory weapons were pretty easy, armor less so and using the race tutorial was harder)