Modding:Setting up your Development Environment: Difference between revisions

From Vintage Story Wiki
(4 intermediate revisions by the same user not shown)
Line 32: Line 32:
== Get the Modtemplate ==
== Get the Modtemplate ==


To get started download the VSModTemplate solution ([https://github.com/anegostudios/vsmodtemplate/releases/download/1.5.0/VSModTemplate-v1.5.0.zip here]). Now you simply need to extract the zip archive to your desired place:
To get started download the VSModTemplate solution ([https://github.com/anegostudios/vsmodtemplate/releases/download/1.5.4/VSModTemplate-v1.5.4.zip here]). Now you simply need to extract the zip archive to your desired place:


[[File:VSMods9.png]]
[[File:VSMods9.png]]
Line 90: Line 90:
Packs all mods in your workspace at once.
Packs all mods in your workspace at once.


= Project Setup (ZIP - DLL) =
= Project Setup (Compiled Zip) =


Both dll and zip mods have their advantages and disadvantages, so why not combine them together? This project setup is equal to zip, but you can pack your zip in a different way. Instead of adding the source code to the zip file, it uses the compiled dll. This allows you to have all the dll benefits while still having the zip mod asset structure.
Both dll and zip mods have their advantages and disadvantages, so why not combine them together? This project setup is very similar to zip. Instead of adding the source code to the zip file, it uses the compiled dll. This allows you to have all the dll benefits while still having the zip mod asset structure.


== Pack Mod ==
== Add Mod ==
''Syntax: <code>pack-dll <modid></code>''
 
''Syntax: <code>add <modid> compiled</code>''
 
Adds a compiled zip mod template to your workspace. The difference is that it uses a compiled dll instead of the actual source code. All other commands are equal to the zip ones.
 
== Set Mod ==
 
''Syntax: <code>set <modid> <source|compiled></code>''


Creates a mod zip file and places it in <code>/releases/<modid>/<modid>_v<modversion>_dll.zip</code>. This file is ready for use and can be shared with other people.
Sets the given zip mod either to source or compiled. This can be useful if you want to change the type of your mod later on.


= Project Setup (DLL) =
= Project Setup (DLL) =
Confirmedusers, editor, Administrators
886

edits