- edited description
Problems with multiple script files
Issue #11
resolved
Multiple script files are being appended to each other without at least a whitespace (" ") to separate them, resulting in problems with labels and functions. Example:
File "part1.script"
label Start
[...]
end
File "part2.script"
label Foobar
[...]
end
File "MobTalker2.pack"
{
"scripts": {
"Creeper": {
"files": [
"part1.script",
"part2.script"
]
}
}
}
If "part1.script" does not end with a whitespace (" ") or a newline character ("\n"), MobTalker will complain about the script being faulty (mismatched input 'endlabel' expecting 'end').
Comments (3)
-
reporter -
reporter - edited description
-
- changed status to resolved
I implemented a new system for parsing scripts for 0.2.1 beta, where scripts are no longer appended but parsed individually (implemented as part for better error messages), so this should no longer be a problem.
Reopen this issue if it still is a problem in 0.2.1 beta.
- Log in to comment