Modding:Creating A Code Mod: Difference between revisions

From Vintage Story Wiki
m
no edit summary
mNo edit summary
mNo edit summary
Line 10: Line 10:


=== Recommended Knowledge ===
=== Recommended Knowledge ===
It is highly advisable to have some knowledge of Visual Studio and the C# programming language before creating code mods. These are out of the scope of this tutorial, however If you can understand the following tutorials, you should be okay:
Before continuing, it is highly advisable to have some knowledge of Visual Studio and the C# programming language. These topics are out of the scope of this tutorial, however if you can understand the following tutorials, you should be okay:


* [https://www.youtube.com/watch?v=iC3CJcYxkl0 Starting with Visual Studio (YouTube)]
* [https://www.youtube.com/watch?v=iC3CJcYxkl0 Starting with Visual Studio (YouTube)]
* [https://learn.microsoft.com/en-gb/dotnet/core/tutorials/with-visual-studio?pivots=dotnet-7-0 Create a .NET console application using Visual Studio (Microsoft.com)]
* [https://learn.microsoft.com/en-gb/dotnet/core/tutorials/with-visual-studio?pivots=dotnet-7-0 Create a .NET console application using Visual Studio (Microsoft.com)]
== Creating a New Mod ==
To create a new code mod, launch Visual Studio, and select 'Create a new project'. In the create menu, select Vintage Story from the dropdown furthest to the right. This will filter the list of templates, to only show ones with the "Vintage Story" project type.
[[File:VisualStudioVSBasicTemplateSelect.png|center|frameless|558x558px]]
Select the 'Vintage Story Basic Mod Template'. This will load a new menu asking for a project name, location, and solution name.
Your project name should follow these requirements:
* Not contain any spaces or punctuation.
* Be formatted in ''[https://www.theserverside.com/definition/Pascal-case PascalCase].''
* Not be abbreviated (''MyFirstMod'' instead of ''MFM'').
Your project name will also determine your Mod ID, however this ''can'' be altered later. Your mod id will be converted to all lower case.
</translate>
</translate>
{{Navbox/codemodding}}
{{Navbox/codemodding}}
Confirmedusers
711

edits