Modding:Modding Efficiently: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 12: Line 12:
* If you want to create json patches, you can use ModMaker 3000™, a command line tool that ships with the game, to build the patches for you
* If you want to create json patches, you can use ModMaker 3000™, a command line tool that ships with the game, to build the patches for you
* If you are doing programming tasks
* If you are doing programming tasks
** Use break points for debugging.  
** Use break points for debugging
** Browse through the many utility classes provided by the VS API, you might be able to save a lot of coding efforts! (e.g. [https://github.com/anegostudios/vsapi/blob/master/Math/ColorUtil.cs ColorUtil], [https://github.com/anegostudios/vsapi/blob/master/Math/GameMath.cs GameMath], [https://github.com/anegostudios/vsapi/blob/master/Util/ArrayExtensions.cs ArrayExtensions], [https://github.com/anegostudios/vsapi/blob/master/Util/DictExtensions.cs DictExtensions], [https://github.com/anegostudios/vsapi/blob/master/Util/HashsetExtensions.cs HashsetExtensions], [https://github.com/anegostudios/vsapi/blob/master/Util/JsonUtil.cs JsonUtil], [https://github.com/anegostudios/vsapi/blob/master/Util/JsonUtil.cs ReaderWriterExtensions], [https://github.com/anegostudios/vsapi/blob/master/Util/SerializerUtil.cs SerializerUtil], [https://github.com/anegostudios/vsapi/blob/master/Util/WildcardUtil.cs WildcardUtil]
** You can use edit&continue feature of Visual Studio to modify code while the game is running!
** You can use edit&continue feature of Visual Studio to modify code while the game is running!
** If you don't already use the [https://github.com/anegostudios/vsmodexamples/blob/master/RedirectLogs.cs RedirectLogs] mod during testing to see the log output live in the Visual Studio output window
** If you don't already use the [https://github.com/anegostudios/vsmodexamples/blob/master/RedirectLogs.cs RedirectLogs] mod during testing to see the log output live in the Visual Studio output window
** If you are working with shaders, you can reload them with <code>.reload shaders</code>
** If you are working with shaders, you can reload them with <code>.reload shaders</code>
** If you do not use Visual Studio, you may have limited success with the <code>/reloadmods</code> command to reload source code mods during runtime.
** If you do not use Visual Studio, you may have limited success with the <code>/reloadmods</code> command to reload source code mods during runtime.