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

Will-O-Wisp not exposed to scripting anymore #1510

Closed
Ordoviz opened this issue Aug 16, 2020 · 3 comments · Fixed by #1566
Closed

Will-O-Wisp not exposed to scripting anymore #1510

Ordoviz opened this issue Aug 16, 2020 · 3 comments · Fixed by #1566

Comments

@Ordoviz
Copy link
Contributor

Ordoviz commented Aug 16, 2020

SuperTux version: since d5a5b62 (found with git bisect)

Expected behavior

Will-O-Wisps are scriptable.

Actual behavior
Error running script: Squirrel error: Couldn't start script (the index 'willy' does not exist)
[SCRIPTING] AN ERROR HAS OCCURRED [the index 'willy' does not exist]
Steps to reproduce actual behavior

Place a Will'O'Wisp and call it willy. Open the console and type sector.willy.

@tobbi
Copy link
Member

tobbi commented Aug 16, 2020

Do you have any idea as to why me exposing badguy class to scripting would cause something like this?

@Ordoviz
Copy link
Contributor Author

Ordoviz commented Aug 17, 2020

Maybe because the Will o’ Wisp had its own scripting interface and, being a badguy, inherited another interface, which interferes somehow.

@Semphriss
Copy link
Member

Related: I'm currently encountering the exact same bug with rain particles, which I attempt to expose to its own template of ExposedObject while it inherits ParticleSystem, which has its own template of ExposedObject.

Also related: the Dispenser is in the same situation. I wanted to test it, but I couldn't find the dispenser from the editor toolbox.

I will look into this and report any progress/solution I can find about this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment