#Trouble implementing coloring in the custom arbitrary shape entity renderer

20 messages · Page 1 of 1 (latest)

winged token
#

Do you know which reference is null?

winged token
#

Well luckily figuring out what is null is relatively easy. What's the line that it currently errors on?

#

What code is on that line?

winged token
#

First thing is to put a Console.WriteLine between each line with different text in each, and see which one is the last to get printed before the exception. The resson being that sometimes the line number given in the stack trace can be off due to various reasons

#

Yes

#

Okay, so now the line before where it crashes, add some console.writeline that print the .GetType() of each reference in that line

long coyote
#

why not just use breakpoints

winged token
#

If you're able to go for it, but I've found getting one working for Celeste modding fairly finicky

#

Is a specific index of it null? If so which one(s)?

long coyote
#

if you're using visual studio, you can set the project/solution to start celeste.exe when you click run and then breakpoints work

#

if you're not using VS, i cant help with that lol

#

ayo relax. It's in the Debug settings of project properties

#

Project properties

#

under Debug option, choose start external program and set it to point to celeste.exe

#

pretty sure it works the same

#

how are you getting to that screen

#

ok so from that screen you should be able to get what you need from that link

#

if you got the startup program linked right then breakpoints should work now when you run it from VS

#

what is the exact error message