Giter Site home page Giter Site logo

stardewvalley's People

Contributors

drbirbdev avatar ncarigon avatar pet-slime avatar therealduda avatar zenychan avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

stardewvalley's Issues

Error calling GetApi method

This mod throws an error when the game starts (see example log):

[GameboyArcade] This mod failed in the GameLoop.GameLaunched event. Technical details:
System.Reflection.AmbiguousMatchException: Ambiguous match found.
   at System.DefaultBinder.FindMostDerivedNewSlotMeth(MethodBase[] match, Int32 cMatches)
   at System.RuntimeType.GetMethodImplCommon(String name, Int32 genericParameterCount, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
   at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
   at System.Type.GetMethod(String name, BindingFlags bindingAttr)
   at BirbShared.Mod.ModClassParser.<>c__DisplayClass0_2.<ParseMod>b__1(Object sender, GameLaunchedEventArgs e) in C:\Users\russe\source\repos\StardewValley\BirbShared\Mod\ModClassParser.cs:line 37
   at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 111

The mod calls mod.Helper.ModRegistry.GetType().GetMethod("GetApi"), but there are two versions of that method:

public object? GetApi(string uniqueID);
public TInterface? GetApi<TInterface>(string uniqueID) where TInterface : class;

You'll need to specify which one you need to avoid the error. For example:

mod.Helper.ModRegistry.GetType().GetMethod"GetApi", genericParameterCount: 1, new[] { typeof(string) })

RSV code is always firing false.

public static bool Prepare() { return ModEntry.RSVLoaded; }

This always seems to be returning false. I noticed it when I had EXP bars and wasn't gaining exp in ridgeside... and villagers weren't getting angry at me.

Downloading the github here and removing that code, seemed to fix it. That said, removing that without having ridgeside village installed might cause issues.

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.