[Release] Mod Template for Visual Studio (Automatically configs, adds references and more!)

Currently Viewing (Users: 0, Guests: 1)

dealman

Sergeant
Best answers
1
The extension is successfull installed but when i try to create new project with using bannerlord extension an error was occurred:

The project file could not be loaded. An error occurred while parsing
EntityName. Line 21, posisition 25.
I'll be installing Visual Studio 2017 while refactoring the code to make sure it works properly on VS 2017 and maybe even 2015. For now the quickest fix would be to update to VS Community 2019.

Am currently working on refactoring it all, so it shouldn't take too long if all goes well. :xf-smile:
 

anubite

Recruit
Best answers
0
Can't wait for the community to put together some time-saving nuget packages too, for modding Bannerlord.
 

dealman

Sergeant
Best answers
1
Sorry for the delay guys, ran into some issues and got sidetracked with other projects a little bit.

Version 2.0.0 is now live with various bug fixes and the project as a whole has been refactored.

You can now also install the extension via the Visual Studio Marketplace!

hopefully it works for VS 2015 and 2017 now, haven't had time to test...
 

TheNewKing

Recruit
Best answers
0
Hi, just installed visual studio and then your extension and enabled it
"Visual Studio will guide you through the rest" nothing comes up for me.
Im new to VS would you be able to write a quick install guide please?
 

dealman

Sergeant
Best answers
1
Hi, just installed visual studio and then your extension and enabled it
"Visual Studio will guide you through the rest" nothing comes up for me.
Im new to VS would you be able to write a quick install guide please?
What I meant with that is that the installer for Visual Studio extensions will guide you through the installation process itself.

What the extension does is add a custom template, so you start Visual Studio and go to Create a New Project. Then search for Bannerlord and my template should show up. :xf-smile:

Or did the extension fail to install? The file should end with a .vsix extension. You can also try to install it via the Visual Studio Marketplace which can be accessed directly through Visual Studio! ☺
 

TheNewKing

Recruit
Best answers
0
Thanks for the reply
I had to install game development with c++ on the visual studio installer to get it to work now it allows me to create a new project with Bannerlord template. Just installing .Net framework 4.7.2 now, then i can begin :smile:
 

elcapo29

Squire
Best answers
0
I started a new project and selected your template, should my project show up as a mod or do I need to still create the mod folder?

Edit: I see the mod folder but there is no submodule.xml should this have been created automatically?
 

dealman

Sergeant
Best answers
1
I started a new project and selected your template, should my project show up as a mod or do I need to still create the mod folder?
It should automagically create the mod folder for you. You can verify it's there by going to where Bannerlord is installed, for example;

C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade II Bannerlord\Modules
 

elcapo29

Squire
Best answers
0
It should automagically create the mod folder for you. You can verify it's there by going to where Bannerlord is installed, for example;

C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade II Bannerlord\Modules
Ok everything looks like it is working, thanks a lot for your work.
 

heu3becteh

Recruit
M&BWBWF&SNWVC
Best answers
0
Thank you, that is useful~

I do not think that needs improvement, it works well, but if it would be modified, I guess some templates to work with xml-files could be added, to copy them like SubModule.xml.
 

JohnT

Squire
Best answers
0
Decided to try and create a project template for Visual Studio to make it<snip>
Thank you for this - I am using it and initially it helped me when I had no idea how to manually create all this.
Now that I know how to do it myself manually, I still use it because it does the job of getting you started quickly very well.