Modding Help Modding Issue: Please Help

Discussion in 'Mods' started by RescriptCode, Sep 6, 2018.

Tags:
  1. RescriptCode

    RescriptCode Space Hobo

    Hello.

    Im createing a test mod to help me create other mods. i feel i have done everything correct.
    but when i launch SMAPI, it says couldnt inject DLL
    can someone please tell me why?

    Source Code Directly from my DLL (dynamic linked libary)
    using System;
    using Microsoft.Xna.Framework;
    using StardewModdingAPI;
    using StardewModdingAPI.Events;
    using StardewModdingAPI.Utilities;
    using StardewValley;

    namespace UselessMod
    {

    public class ModEntry : Mod
    {


    private void InputEvents_ButtonPressed(object sender, EventArgsInput e)
    {

    if (!Context.IsWorldReady)
    return;


    this.Monitor.Log($"{Game1.player.Name} pressed {e.Button}.");
    }
    }

    Edit: i have the config package for stardew valley modding

    [​IMG]
     
      Last edited: Sep 6, 2018
    • Pathoschild

      Pathoschild Tiy's Beard

      (We discussed this on Discord; the project wasn't set up correctly.)
       
      • RescriptCode

        RescriptCode Space Hobo

        This was before i posted a message on the discord
         
        • Pathoschild

          Pathoschild Tiy's Beard

          Yep. I just mentioned that so others don't spend time trying to help when it's already fixed. :)
           

          Share This Page