RimWorld source code

Started by Tynan, April 30, 2014, 05:06:33 PM

Previous topic - Next topic

mipen

it just has the Storage settings code, I was wondering how it worked while trying to figure out a way to make a sort of 'chest', but I've figured it out now. Thanks for your time :]

Argain

#31
Would it be possible to get the entire source code of the 'Assembly-CSharp.dll' for the purpose of making a Total Conversion mod?

ZestyLemons

Quote from: Argain on August 14, 2014, 03:16:17 PM
Would it be possible to get the entire source code of the 'Assembly-CSharp.dll' for the purpose of making a Total Conversion mod?

Not sure what you need all of the source code for, but you can decompile that .dll with http://www.jetbrains.com/decompiler/ - just export it into a .sln file so you can work with it in Visual Studio, otherwise you can use any IDE you want.

Be warned though, there's a lot of code. Good luck!
Help out with the wiki!

Steam: http://steamcommunity.com/id/Divaya/
Wiki: http://rimworldwiki.com/wiki/User:Zesty

Feel free to contact me about wiki questions or wiki admin stuff.

RawCode

be warned, classes are decompiled with errors that must be manually fixed afterward.

in case of entire source, it will be huge deal to force users to download mod running from separate exe, and you will need to provide executable for each platform.

Argain

It wouldn't need to be a separate exe, just an alternative Assembly-CSharp.dll.

RawCode

in this case you will need to force users to replace basefiles of game.

mipen

#36
Hi Tynan, not sure if you'll see this post, but would it be possible to get the source code for the pawn class? Particularly I am interested in seeing how the GetCommands() function works, as I would like to do something similar to how the drafted force attack works with colonists. I'm interested in seeing how it takes control of the mouse click and displays the UI on the cursor, and listens for a mouseclick, then sends that info to the pawn to carry out the job. I'm not sure if this is done in the pawn GetCommands(), or elsewhere but any help in finding it would be greatly appreciated! :D Cheers

Rikiki

Use ILSpy to decompile the main DLL located in RimWorldinstallDir/RimWorlAlphaXXX_Data/Managed/Assembly-CSharp.dll

It contains all the source code. :)
Be aware that this is a biiiig piece of code! :o

mipen

The part that I'm interested in is hidden by the way compiler, so the whole method appears as a big mess :(