#"Failed loading entity" when loading my own custom entity

27 messages · Page 1 of 1 (latest)

elder timber
#

I tried following the custom entity codemod guide, I got the entity to appear in lonn and I can place it down, but upon loading Celeste, the entity is nowhere to be found. Checking my log it says "(08/03/2025 16:18:45) [Everest] [Warn] [LoadLevel] Failed loading entity SunnyCodeMod/SunnyEntity. Room: test Position: {X:152 Y:80}" with no other helpful information. Attached is the log and the corresponding lonn plugin file and the code file for the entity. No mods other than my custom one are enabled.

frail dew
#

also you're missing the data = {} under name in placements

elder timber
frail dew
#

this message shows up when everest is unable to determine what c# class corresponds to the entity name in lönn (as in, "SunnyCodeMod/SunnyEntity"), or it failed to find a suitable generator method or constructor

#

which has a lot of causes, like

  • not compiling
  • not making the entity class
  • mismatch between the CustomEntity name and the lua plugin name
  • incorrect access modifiers
  • missing/incorrect constructor
  • incorrect generator method signature
  • etc
#

have you restarted since compiling then

#

cus from what i can tell the only one of those that could be happening is the top one

elder timber
elder timber
frail dew
#

i know this can cause crashes

#

send the dll from bin/ so that i can take a look at what's actually inside your assembly

#

i wont be able to take a look at it right now because i am comfy

elder timber
#

thats fine i can wait

#

here

elder timber
frail dew
#

you must have not compiled

#

show me your project structure in your ide

elder timber
# frail dew you must have not compiled

oh my god i figured it out now
the files were in the folder and everything but weren't connected to the sln so when i built the dll they weren't added to it i think 😭

#

adding them and rebuilding made it show up ingame

#

thanks ❤️

frail dew
#

oh so the csproj just had an <Compile Remove="..." /> for those files

elder timber
#

maybe? idrk

#

but it works now