Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

[ZScript] can't actually change entrypoint function name

0 replies · 13,027 views · Started 08 March 2024

This bug report utilizes the unlock.zs script described here:

https://www.armageddongames.net/showthread.php?98648

Steps to recreate:

[LIST=1]
[*]File->New
[*]ZScript->Compiler Settings
[*]In the Global Settings tab, backspace out "run" and type "main"
[*]Click 'OK'
[*]ZScript->Compile ZScript...
[*]Click 'Load'
[*]Click 'Yes' to erase the current buffer
[*]Load unlock.zs; about 157 bytes should be loaded into the buffer
[*]Click 'Edit'
[*]change "void run()" to "void main()"
[*]Press ESC
[*]Click 'Yes' to save changes to buffer
[*]Click 'Compile'
[*]Observe ZScript compiler fails with return code 11 and the following error printed in the zconsole.exe external parser window:
[/LIST]


[Error] ZQ_BUFFER Line 3 @ Column 1 - Line 9 @ Column 2 - Error S011: Script SecretSound needs a void run() function.