489
edits
m (-finish; revert this edit if you disagree, but I think an article like this will never be "finished"; capitalized section headers) |
Script 10k (talk | contribs) (bsl file commands limitation) |
||
Line 103: | Line 103: | ||
===BSL errors=== | ===BSL errors=== | ||
* ''Func "main", File "(called from engine)", Line 0: semantic error, '''function''' "main" '''does not exist''''' | * ''Func "main", File "(called from engine)", Line 0: semantic error, '''function''' "main" '''does not exist'''''. | ||
Or either the function "main" wasn't found in any bsl file (This can also happen with any other function) or the bsl file has to many commands ([http://wiki.oni2.net/w/index.php?title=BSL:Introduction#Files this bsl limitation] triggers this message), if the later make sure you split your bsl in more bsl files (creating additional functions if necessary, more information [http://wiki.oni2.net/w/index.php?title=BSL:Introduction#Files here]). | |||
* ''Func "(null)", File "test.bsl", Line 3: semantic error, '''Identifier''' "main" already declared'' - In this case the function "main" is double, it can be found in the file "test.bsl" at line 3. (It's not the first but the last line of the double function.) | * ''Func "(null)", File "test.bsl", Line 3: semantic error, '''Identifier''' "main" already declared'' - In this case the function "main" is double, it can be found in the file "test.bsl" at line 3. (It's not the first but the last line of the double function.) | ||
* ''Func "(null)", File "main.bsl", Line 1: Illegal token, got "func" expected ";"'' - The variable declaration didn't ended with a semicolon. | * ''Func "(null)", File "main.bsl", Line 1: Illegal token, got "func" expected ";"'' - The variable declaration didn't ended with a semicolon. | ||
* ''SLiSchedule_Task_Find FAILED [IMPORTANT]'' - Controls freezes after about 5 messages of this. | * ''SLiSchedule_Task_Find FAILED [IMPORTANT]'' - Controls freezes after about 5 messages of this. Caused by calling too many BSL functions in parallel (using fork) in a very short amount of time. | ||
====Mistyped variable==== | ====Mistyped variable==== | ||
Line 122: | Line 123: | ||
* ''Func "(null)", File "(called from console)", Line 1: Illegal token, got "ammo" expected ";"'' | * ''Func "(null)", File "(called from console)", Line 1: Illegal token, got "ammo" expected ";"'' | ||
** Correct use of this function is: ''chr_givepowerup 0 ammo 1'' | ** Correct use of this function is: ''chr_givepowerup 0 ammo 1'' | ||
==OniSplit error messages== | ==OniSplit error messages== |
edits