Modding:Setting up your Development Environment: Difference between revisions

From Vintage Story Wiki
Line 143: Line 143:
* If want to ship a source mod, set up a modinfo.json ([https://github.com/copygirl/CarryCapacity/blob/master/resources/modinfo.json example]). Make sure your folders are set up in a way that the modPath contains the modinfo.json and a folder named "src" containg your source files
* If want to ship a source mod, set up a modinfo.json ([https://github.com/copygirl/CarryCapacity/blob/master/resources/modinfo.json example]). Make sure your folders are set up in a way that the modPath contains the modinfo.json and a folder named "src" containg your source files
** Add the following command line arguments: <code>-openWorld="modsamplestest" -p3 --addModPath="C:\path\to\your\modPath"</code>
** Add the following command line arguments: <code>-openWorld="modsamplestest" -p3 --addModPath="C:\path\to\your\modPath"</code>
* I recommend adding the [https://github.com/anegostudios/vsmodexamples/blob/master/RedirectLogs.cs RedirectLogs.cs] file to your project, so that you can see the log output in your visual studio output window
* Run the project and hope for the best :D


 
If you are having troubles the vsmodexamples you might be able to learn from the [https://github.com/anegostudios/vsmodexamples vsmodexamples project]
* I recommend adding this file to your project, so that you can see the log output in your visual studio output window: https://github.com/anegostudios/vsmodexamples/blob/master/RedirectLogs.cs
 
If you are having troubles the vsmodexamples you might be able to learn from the vsmodexamples project: https://github.com/anegostudios/vsmodexamples
Confirmedusers, Bureaucrats, editor, Administrators
1,779

edits