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

Make empty tracks errors more informative. [Original: TypeError When I Open The Game] #46

Open
kc063 opened this issue Jul 27, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request v2

Comments

@kc063
Copy link

kc063 commented Jul 27, 2022

Having issues using the system altogether. Used an older version of it a long time ago, but for whatever reason, the new version keeps throwing me this error when I copypaste the code and try to run the game:

There is a problem with this story's 1st script:
TypeError: Cannot read properties of undefined (reading 'split')
TypeError: Cannot read properties of undefined

@kc063
Copy link
Author

kc063 commented Jul 27, 2022

Looked through old errors. I don't have ad blockers running, so I don't think it should be an extension issue.
Furthermore, when I redownload my old game and try rebuilding it (with the old version of the code it was running then), I get these errors:
"1 too many values were given to the (masteraudio:) macro.
2 too many values were given to the (track:) macro."
Makes sense. Probably outdated with the new Twine version.

So I decided to paste in the NEW HAL tracks code into my OLD game, and the most updated version of the code works fine for that one-- the audio tracks work perfectly. It seems like it doesn't work for my current game SPECIFICALLY, which is wigging me out.

@kc063
Copy link
Author

kc063 commented Jul 27, 2022

Also, to add some detail, when I run the game I get the issues "I can't run the macro 'track' because it doesn't exist.I can't run the macro 'group' because it doesn't exist.I can't run the macro 'track' because it doesn't exist.I can't run the macro 'track' because it doesn't exist." So it might just not be reading the script at all? This is so bizarre to me.

@kc063
Copy link
Author

kc063 commented Jul 27, 2022

Fixed this myself-- you can't have blank tracks or it does this. Hopefully this will be helpful to the next person to get this error! Make sure your tracks aren't blank! If anyone gets this without blank tracks, let me know, but it's working for me... for now.

@kc063 kc063 closed this as completed Jul 27, 2022
@ChapelR ChapelR reopened this Jul 28, 2022
@ChapelR
Copy link
Owner

ChapelR commented Jul 28, 2022

I'm gonna reopen this.

I should make the error message more useful when users try to pass empty tracks.

@ChapelR ChapelR changed the title TypeError When I Open The Game Make empty tracks errors more informative. [Original: TypeError When I Open The Game] Jul 28, 2022
@ChapelR ChapelR added enhancement New feature or request v2 labels Jul 28, 2022
@ChapelR ChapelR self-assigned this Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v2
Projects
None yet
Development

No branches or pull requests

2 participants