Modding:Modding Efficiently: Difference between revisions
From Vintage Story Wiki
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
** Use break points for debugging. | ** Use break points for debugging. | ||
** 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 are | ** If you are working with shaders, you can reload them with <code>.reload shaders</code> |
Revision as of 21:33, 23 September 2018
Modding and even Game development itself usually requires a lot of trial & error. The more time you can save on those iteration times the better, as it accumulates quickly. Besides being quick to start up, VS offers a bundle more tricks to help you mod fast and efficiently. Here are some of the tricks every serious modder should use:
- Use macros! Switching from/to creative/survival mode and
/time set day
bound to a keyboard shortcut is a must have. Hit CTRL+M to open the macro manager which will let you set those up! - Don't fully restart the game to test out changes! In 95% of cases its enough to just leave the game world and rejoin
- Don't reload at all if you are doing trial&error on textures and shape files. These can be reloaded with the commands
.reload textures
and.reload shapes
. The latter may require you to place&remove a block so that the chunk gets redrawn - Set up a quickstart.bat script, that contains e.g.
VintageStory.exe -oTestWorld -p3
- this will insta-launch you into a super flat creative world named "TestWorld" - Leave your mod unpacked in the mods folder! No need to zip it up, i'll load up just fine unpacked :-)
- Use
.tfedit
to modify the lookings of your item/block inside the GUI, Hands or on the ground - If you are a doing programming tasks
- Use break points for debugging.
- You can use edit&continue feature of Visual Studio to modify code while the game is running!
- If you are working with shaders, you can reload them with
.reload shaders