FujiAPI / Fuji

Celeste 64 Mod Loader
30 stars 10 forks source link

mods cannot use external dependencies #34

Closed bananaturtlesandwich closed 5 months ago

bananaturtlesandwich commented 5 months ago

trying to use a nuget package or any other package not used by the game results in a crash

jasminegamedev commented 5 months ago

can you share information from your log about what the error from the crash looks like?

bananaturtlesandwich commented 5 months ago

here's the log

Celeste 64 v.1.0.1
Fuji v.0.3.1
Error Log (02/08/2024 07:38:17)
Call Stack:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.IO.FileNotFoundException: 
File name: 'DiscordRPC, Version=1.2.1.24, Culture=neutral, PublicKeyToken=null'
   at Discord.DiscordPlugin..ctor()
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
   --- End of inner exception stack trace ---
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
   at Celeste64.ModLoader.LoadGameMods(String modFolder, IModFilesystem fs)
   at Celeste64.ModLoader.RegisterAllMods()
   at Celeste64.Assets.Load()
   at Celeste64.Startup.BeginGame()
   at Celeste64.Startup.Update()
   at Celeste64.Game.Update()
   at Foster.Framework.App.<Tick>g__Update|69_0(TimeSpan delta)
   at Foster.Framework.App.Tick()
   at Foster.Framework.App.Run(String applicationName, Int32 width, Int32 height, Boolean fullscreen)
   at Foster.Framework.App.Run[T](String applicationName, Int32 width, Int32 height, Boolean fullscreen)
   at Program.Main(String[] args)
Game Output:
Celeste 64 v.1.0.1
Fuji v.0.3.1
Foster: v0.1.16
Platform: Microsoft Windows 10.0.19045 (X64)
Framework: .NET 8.0.1
SDL: v2.30.0
OpenGL: v3.3.0 Core Profile Context 23.9.2.230827, Radeon RX550/550 Series
FMOD Bindings: v20218
FMOD: v20207
Loaded mod .dll file: DLLs/discord.dll
bananaturtlesandwich commented 5 months ago

just trying to make a discord rich presence mod - uses the DiscordRichPresence nuget package

axiand commented 5 months ago

Pretty sure this was resolved over in Discord? Feel free to reopen if it's not

jasminegamedev commented 5 months ago

I don't think this is resolved yet. I think this is what this pr is trying to achieve, so it should be possible when this is done and merged: https://github.com/FujiAPI/Fuji/pull/46

bananaturtlesandwich commented 5 months ago

yep @jasminegamedev is correct that's what the pr is doing

jasminegamedev commented 5 months ago

I believe this should be fixed now that this PR is merged. https://github.com/FujiAPI/Fuji/pull/46 If it is not fixed, let me know, and we can reopen.