Jump to content

The Insanity God

Vintarian
  • Posts

    55
  • Joined

  • Last visited

Everything posted by The Insanity God

  1. I can't say much about the actual code without seeing it but when you say "compile" do you mean: Build and manually create mod zip Use CakeBuild and grab the mod zip from the "Release" folder Just pressing the play button in visual studio (All of those are viable though I wouldn't recommend the first) In regards to the mod showing up twice, this is something that commonly happens if you install the mod (by putting it in mod folder) and then run from visual studio or if you just have multiple versions of the same mod installed. Usually not an issue as it will just load the one with the latest version number. The folder structure of the code is irrelevant btw, it's compiled into a single .DLL file. Game searches for `ModSystem` classes and uses those as entry point (assuming "type": "code" in modinfo, but that should be standard with the template) in your case the mod system would look somewhat like this: public class MyModSystem : ModSystem { public override void Start(ICoreAPI api) { base.Start(api); //Prevent duplicate patching in single player (because it creates 2 instances of the ModSystem, 1 for server side and 1 for client side) if (!Harmony.HasAnyPatches(Mod.Info.ModID)) { var harmony = new Harmony(Mod.Info.ModID); harmony.PatchAllUncategorized(); //and possibly some category patches based on config } } public override void Dispose() { new Harmony(Mod.Info.ModID).UnpatchAll(Mod.Info.ModID); } }
  2. @Vexxvididu You probably missed the documentation due to the way it's named https://wiki.vintagestory.at/Modding:Monkey_patching If you need examples there are some other mods out there that change greenhouse buff like: https://github.com/Kaktur/VS-Mod-GreenhouseBuff/tree/master/GreenhouseBuff/GreenhouseBuff/ModPatches (makes the buff +20 C instead of +5 C)
  3. @Avintagekindapaintingthere actually is a mod that adds more firestarters (no ornamental lighters though) which I created a "reforge" of for newer game version: Extreme Firestarters Reforged
  4. Personally I have mixed feelings about this change as well: I like how it's far more noticeable that the author has not confirmed that this mod is supposed to work on a given version... I don't like the phrasing "for outdated Vintage Story ..." as I feel this will be easily misunderstood as "this mod is only for outdated game versions" while in reality mods often survive game versions (especially when we talk about minor versions) I'd opt for something along the lines of: "Warning: Author has not confirmed this mod is supposed to work for game versions beyond ...."
  5. I use it to for the following purposes: Generating mod image (cause I'm no artist and I don't enjoy creating these myself) When other people send me a translation of my mod I use it to backwards translate (just to make sure it's somewhat okay) When I really can't understand an exception I sometimes ask it to take a look and see if I just made some dumb mistake
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.