Problems with multiple script files

Create issue
Issue #11 resolved
mezzodrinker created an issue

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)

  1. Chimaine

    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.

  2. Log in to comment