GothicKit / ZenKit

A re-implementation of file formats used by the early 2000's ZenGin
http://zk.gothickit.dev/
MIT License
44 stars 10 forks source link

Some Gothic 1 ModelScript files can not be parsed #9

Closed lmichaelis closed 1 year ago

lmichaelis commented 1 year ago

Some model script files don't follow proper syntax which leads to the parser failing. The parser fails when trying to parse any statement which is missing a closing parenthesis like this:

// ...
aniEnum {
    ani("aniName1" 111 "aniNext1" 4.2 0.5 MI "aniModel1" F 221 331 FPS:25 CVS:0.2   // <- missing parenthesis!

    // ...

The ZenGin itself seems to be able to parse these files just fine, so the parser in phoenix has to be adjusted so that it treats closing round parenthesis (and possible curly braces too) as whitespace.