Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Sep 9, 2023 · 6 comments

Comments

@Candescence
Copy link

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
Copy link
Collaborator

Renhoex commented Sep 9, 2023

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
Copy link
Author

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
Copy link
Collaborator

@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
Copy link
Author

@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
Copy link
Collaborator

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
Copy link
Collaborator

Renhoex commented Sep 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants