Streets of Rogue

Streets of Rogue

Not enough ratings
How To Get Started Modding
By amogus
A basic guide on how to begin Modding Streets Of Rogue. It's not as hard as you think!
   
Award
Favorite
Favorited
Unfavorite
DnSpy
First thing you'll need is an Application called Dnspy, this will be what all the code editing happens on.

Get it here [github.com]




You'll want to get either
dnSpy-netcore-win32.zip
OR
dnSpy-netcore-win64.zip
Opening the code
First of all, extract the zip and open Dnspy.exe .

Go to File and click Open
Find your Streets Of Rogues directory and open Assembly-CSharp.dll
It should be in Program Files (x86)\Steam\steamapps\common\Streets of Rogue\StreetsOfRogue_Data\Managed
An easier way to access it is by right-clicking SoR in Steam and selecting "Browse Local Files"

Don't worry about backups, you won't affect the rest of your data by modding, just the dll file.
You can easily get the original back by verifying files in Steam.

Do not extract the file out of your Streets of Rogue folder!

This is what it should look like


To find where the majority of the files are, go through the subfolders until you find this
Actually Coding
Now that you've located the majority of the code, coding it is surprisingly simple.

To edit it, just right click on the page you want to edit and click "Edit Method"
This will pop up and be editable.


In Assembly-CSharp.dll is pretty much all the code you'll need to mod the game.
To learn how the coding works, just learn Unity.

Link to a website to learn Unity[unity.com]

Or of course, you could just faff around through trial and error.

On a first glance, it looks really overwhelming, but even with 0 programming experience, I got the hang of it pretty quickly.

Try making a simple mod that edits the properties of a prop/char to get familiar with it!
Sharing and Saving
To save the dll file once all the code is written and compiled, go to file and press "Save All"

All the content in your mod will be contained in that dll file.
All you need to do to upload it online is to share it.

To get back to normal Streets of Rogue, use Steam to verify the files.
This will delete your mod! So make a backup.


Modding Community
Thanks for taking the time to read this!
To finish this guide off,

Share your mods and download more mods over in the Official Streets of Rogue discord![discord.gg]

There's not much a community there, however, I'll be happy to answer any questions!
A small community has actually developed in the discord server since uploading this guide! Feel free to join and ask for help or play other's mods!
I'm quite new to modding as well, but if you'd like to talk, my tag is ExtremelyDisinterestedRadish#8305

Don't be shy to give modding a try, it's way simpler than modding most other games. Modding as of right now is a very unexplored territory. The best way to find out how to do it is to just jump into it!
Alternative methods
The DnSpy method is not actually the sole method used to mod. In fact theres ways to get more out of the game engine if you're willing to put in more time learning. Heres a link to a guide that covers modding using a different software called BepinEx.

https://steamproxy.net/sharedfiles/filedetails/?id=2106187116
3 Comments
AnarchyStorm 17 Oct, 2022 @ 3:29pm 
Ah the good old days
amogus  [author] 19 Jul, 2019 @ 5:22pm 
The capability to make custom characters is already in the game. This is more so for adding new stuff/tweaking existing things in the game.

And it really isn't that difficult, I managed to make some simple mods myself with 0 programming experience.
Jonasfull 19 Jul, 2019 @ 1:43am 
Nothing in this world is harder than coding/programming i spent 5 years trying to learn the basics and still am struggling so id rather someone made an easy software to create characters with or something.