Giter Site home page Giter Site logo

butr / bannerlord.module.template Goto Github PK

View Code? Open in Web Editor NEW
59.0 6.0 7.0 327 KB

Template extension for dotnet, eases the process of creating new mods for M&B 2: Bannerlord

Home Page: https://forums.taleworlds.com/index.php?threads/module-template-for-visual-studio-and-dotnet.444482/

License: MIT License

C# 100.00%
template dotnet dotnet-template bannerlord bannerlord-mod mount-and-blade-bannerlord

bannerlord.module.template's People

Contributors

adobitar avatar aragas avatar dependabot[bot] avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bannerlord.module.template's Issues

malformed package reference in csproj when choosing to install UIExtenderEx

As the subject says, when choosing to install UIExtenderEx the package reference in the csproj is malformed which results in the project being unable to be loaded.

To reproduce, simply create a new project with that option enabled (in my case I had Harmony and MCM also enabled).

The generated line is

<PackageReference Include="Bannerlord.UIExtenderEx" Version="2.3.0 IncludeAssets="compile" />

It's failing to close out the "Version" attribute with a "

Template not work as expected

I'm using Visual Studio Community 2022 to create a basic c# mod using the template.
After building the project, I found the following issues :

  1. Variables in SubModule.xml not being replaced
  2. Both build output and _Module are not copied to the GAMEPATH/Modules

Breakpoint warnings In "base.OnSubModuleLoad();"

I successfully ran the MOD function content in the game, but I was unable to use breakpoints.
Visual Studio 2022
Even the first sentence cannot be interrupted, for example " base.OnSubModuleLoad(); ".
Breakpoint warnings, "No Symbols have been loaded for this document".
the Modules window (Debug > Windows > Modules) ,all module isn't loaded.
Is there anyone like me?
What should I do?

Visual Studio not executing code

Hey there! I’ve been trying to find an answer and I assumed coming here might be the best straight from the man haha. I am trying to make a simple menu (add to existing town menu) for a mod idea I have and I have set up everything correctly but for some reason my code that I input after the base module code from the template never gets ran. I can’t even get a break point to hit past the base code. Is this something on my end (wrong code? I’ve used multiple sources trying to debug) or am I missing something that’s causing the code to not be used? Thanks!

Bannerlord.Templates could not be installed.

Every time I try to install the package via dotnet new --install Bannerlord.Templates I receive following Error in Powershell: Bannerlord.Templates could not be installed, the package does not exist.
I have the latest dotnet SDK installed and can't find any way to resolve this issue on my own, maybe I lack in knowledge with Visual Studio and the whole dotnet thing.

ReSharper "Cannot resolve symbol" Error After Changing supported-game-version.txt

After modifying the supported-game-version.txt file to update the game version from v1.1.2 to v1.2.8, I encountered an issue where ReSharper is no longer recognizing symbols and is throwing a "Cannot resolve symbol" error. Despite this, Visual Studio still provides navigation to these symbol definitions, and the project builds successfully.

Attempted Fixes:

  • Cleared ReSharper's cache.
  • Disabled and then re-enabled ReSharper.
  • Reinstalled ReSharper.
  • None of these actions resolved the issue.

Template doesn't seem to work in new Visual Studio 2022 Preview

Hey, just wanted to see if you planned on updating for Visual Studio 2022 Preview. The template isn't working for me there. I can create the project but the solution is messed up. It won't let me open the solution view and the build output doesn't go to the modules folder.

Been using this template for over a year! Thanks for building it!

Singleplayer/MultiplayerModule deprecated in favor of ModuleCategory

From the e1.8.0 beta patch notes:

<SingleplayerModule/> and <MultiplayerModule/> have been renamed to <ModuleCategory/>

The correct usage is now <ModuleCategory value="Singleplayer"/> or <ModuleCategory value="Multiplayer"/>

The default ModuleCategory is Singleplayer.

Proposed fix:

Change the deprecated SubModule.xml variables to <ModuleCategory value="Singleplayer"/> or just remove them and let the game default to singleplayer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.