This bug report utilizes the unlock.zs script described here:
https://www.armageddongames.net/showthread.php?98648
Steps to recreate:
- 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:
Code:
[Error] ZQ_BUFFER Line 3 @ Column 1 - Line 9 @ Column 2 - Error S011: Script SecretSound needs a void run() function.