Translations:Modding:Setting up your Linux Development Environment/8/en

From Vintage Story Wiki

Creating a solution (project group)

  • Open up MonoDevelop and and create a new solution with: File -> New Solution... (in the top left corner).
  • Choose .NET -> Library as a template.

Mono new library.png

  • Click Next.
  • Set your Project Name, see example below, do not change the path if you want to follow along, leave it alone.

Mono new library 2.png

  • Click Create. You should now get a screen that looks somewhat like this:

Mono new cs file.png

  • Right click on the project (the one highlighted below) and click Options.

Mono project menu.png

  • Click on Run -> Configurations -> Default (highlighted below).

Mono run config menu.png

  • Set the values so they look like below but replace 'cynthia' with your username and 'MyCoolMod' with the name of your project, and click on OK.

Mono run config.png

  • Right click on the project again and click on Add -> New File...
  • Click on Misc -> Empty Text File and set launchmod.sh as the name, click on New.

Mono new file.png

  • Paste the content from the launchmod.sh section of this page into the new launchmod.sh file and save it.
  • Right click on References and click on Edit References....
  • Click on the .Net Assembly tab and click on Browse....
  • Navigate to your Vintage Story installation path (/home/yourusernamehere/ApplicationData/vintagestory) and click on the VintagestoryAPI.dll file.
  • Click on Open.
  • Click on OK.