Modding:C Sharp Scripting: Difference between revisions

Jump to navigation Jump to search
Minor update to decompiler recommendation
(Minor update to decompiler recommendation)
Line 5: Line 5:
Since your mod runs with full privileges, users must approve mods each time they change, to allow any changes in code to be screened before they execute. This approval mechanism is currently only available via the overlay UI so it either must be enabled or mod approval must be disabled for scripting mods to work properly. If your mod scripts are not approved, no files in your mod will be loaded, to prevent definitions from not having the appropriate classes available in the mod's assembly.
Since your mod runs with full privileges, users must approve mods each time they change, to allow any changes in code to be screened before they execute. This approval mechanism is currently only available via the overlay UI so it either must be enabled or mod approval must be disabled for scripting mods to work properly. If your mod scripts are not approved, no files in your mod will be loaded, to prevent definitions from not having the appropriate classes available in the mod's assembly.
==Nosing Around==
==Nosing Around==
There's no official DLL to assemble against or open source project but if you want to dig around in the source code you can use https://www.jetbrains.com/decompiler/ or some other tool: http://stackoverflow.com/questions/2646707/something-better-than-net-reflector on <u>Caves of Qud\CoQ_Data\Managed\Assembly-CSharp.dll</u>
There's no official DLL to assemble against or open source project but if you want to dig around in the source code you can use [https://github.com/icsharpcode/ILSpy/releases ILSpy], [https://www.jetbrains.com/decompiler/ dotPeek], or [http://stackoverflow.com/questions/2646707/something-better-than-net-reflector one of various other decompilation tools] on <u>Caves of Qud\CoQ_Data\Managed\Assembly-CSharp.dll</u>


The XRL.World.Parts namespace contains all the part definitions in the game, so it's a good place to start digging.
The XRL.World.Parts namespace contains all the part definitions in the game, so it's a good place to start digging.

Navigation menu