Changes

Jump to navigation Jump to search
Line 83: Line 83:     
= Getting Started =
 
= Getting Started =
== Helpful tools ==
+
== Debugging console ==
Make sure to bind the console key for the following commands in the key bindings section of the options menu (at the bottom).
+
Before you do anything, you should enable the in-game debugging console by binding the console key at the bottom of the key binding menu in the options window. This will help you debug your mod by giving you error messages and enabling the '''RECOMPILE_DLL_MOD''', '''RELOAD_DLL_MOD''' and '''UNLOAD_DLL_MOD''' commands.
    +
== Helpful commands ==
 
The '''EXECUTE''' command will allow you to execute arbitrary [[SIPL]] code (which closely resembles C#) while the game is running. E.g. if you wanted to find the highest paid employee you could write '''EXECUTE GameSettings.sActorManager.Actors.OrderByDescending(x.employee.Salary).First()''' or if you wanted to color all selected rooms' exterior green you could write '''EXECUTE Selected.Where(x is Room).ForEach(x.OutsideColor = Color(0,1,0))'''.
 
The '''EXECUTE''' command will allow you to execute arbitrary [[SIPL]] code (which closely resembles C#) while the game is running. E.g. if you wanted to find the highest paid employee you could write '''EXECUTE GameSettings.sActorManager.Actors.OrderByDescending(x.employee.Salary).First()''' or if you wanted to color all selected rooms' exterior green you could write '''EXECUTE Selected.Where(x is Room).ForEach(x.OutsideColor = Color(0,1,0))'''.
  

Navigation menu