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

H1A - Scripting - Stubs - Function Body Now Required. #149

Open
ChaOtoko opened this issue Nov 25, 2021 · 2 comments
Open

H1A - Scripting - Stubs - Function Body Now Required. #149

ChaOtoko opened this issue Nov 25, 2021 · 2 comments
Assignees
Labels
content Written content required for the wiki

Comments

@ChaOtoko
Copy link

As titled. I don't know if this has always been the case, or its specific to H1A or its due to an update to MCC. But I discovered this while experimenting with stubs.

If you try to create a stub without defining it the following error is produced when the script is compiled.

[test_script line 1] i expected (script stub <type> <name> <expression(s)>): (script stub void say_hello)

Looking through the level scripts "base_a10.hsc" has stub scripts with bodies.

...
(script stub void halo_setup (print "Joe's Cool Cinematic"))
...

When compiled single/multiplayer maps are run in MCC their stub scripts will still execute.

So they're overridable static scripts. But can only be overridden once (it can still be in a different script file).

@num0005 num0005 added the content Written content required for the wiki label May 11, 2022
@num0005 num0005 self-assigned this May 11, 2022
@num0005
Copy link
Collaborator

num0005 commented May 11, 2022

just got around to this @ChaOtoko did you end up checking if this was the case in legacy H1?

@ChaOtoko
Copy link
Author

ChaOtoko commented Jul 3, 2022

I've been a bit busy myself. Anyway I've managed to install (Halo 1 CE with) legacy HEK, and can confirm that stubs require initial definition. So the workaround for blank stubs would be to just use the print keyword.

stub error H1A
MCC HEK

stub error HCE
legacy HEK
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Written content required for the wiki
Development

No branches or pull requests

2 participants