Techokami / SonicWorldsNext

Official development repository for the successor to Sonic Worlds Delta
MIT License
133 stars 28 forks source link

Changing characters from anyone but Sonic in Global and then starting directly from a level scene throws up null instance error #86

Open Candescence opened 1 year ago

Candescence commented 1 year ago

So this is what I got when trying to directly run a level via play current scene, setting the character in the Global script. Everyone but Sonic triggers the below error, making it impossible do so with any character other than Sonic.

image

Renhoex commented 1 year ago

we can look into it updating this in the near future.

If you really need to test a level with a specific character the current method is to open "CharacterSelect.gd" in the character select. "res://Scene/Presentation/CharacterSelect.tscn" add a label for your level on line 11 something like var levelLabels = ["Base Zone Act 1", "Base Zone Act 2", "YOUR LEVEL NAME"] and set a match number for the room to load on line 88-94

Candescence commented 1 year ago

we can look into it updating this in the near future.

If you really need to test a level with a specific character the current method is to open "CharacterSelect.gd" in the character select. "res://Scene/Presentation/CharacterSelect.tscn" add a label for your level on line 11 something like var levelLabels = ["Base Zone Act 1", "Base Zone Act 2", "YOUR LEVEL NAME"] and set a match number for the room to load on line 88-94

Yeah, I already did that, it's just slightly more convoluted and takes a bit more time than trying to open a new level directly, but thanks.

DimensionWarped commented 1 year ago

@Renhoex Any chance you can add some global toggle to speed up the splash screen and skip over the title screen as part of this effort?

Candescence commented 1 year ago

@Renhoex Any chance you can add some global toggle to speed up the splash screen and skip over the title screen as part of this effort?

This would be legit fantastic, honestly, would probably shave off quite a bit of time.

DimensionWarped commented 1 year ago

Yeah, I pretty much figured the main reason you'd need to set the characters up in globals was in an effort to shave off a little time in getting to your level, and I've definitely felt some of the waiting pain there myself.

(nowhere near as much as in my actual job though where deployment can easily take over an hour...)

Renhoex commented 1 year ago

Yeah I'll look into it when I can, there's code to check if the scene was loaded from the shortcut button so I'll probably just add a fast launch option