SonicWorldsNext icon indicating copy to clipboard operation
SonicWorldsNext copied to clipboard

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

Open Candescence opened this issue 1 year ago • 6 comments

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

Candescence avatar Sep 09 '23 10:09 Candescence

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

Renhoex avatar Sep 09 '23 11:09 Renhoex

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.

Candescence avatar Sep 09 '23 11:09 Candescence

@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?

DimensionWarped avatar Sep 10 '23 03:09 DimensionWarped

@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.

Candescence avatar Sep 10 '23 04:09 Candescence

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...)

DimensionWarped avatar Sep 10 '23 04:09 DimensionWarped

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

Renhoex avatar Sep 10 '23 07:09 Renhoex