Re: [Perl] need beta testers for map file parsing
Thanks for the feedback.
Let's see what has been ignored :
@specstart 0 257 --Southern Escarpment
??? shouldn't it be #specstart and not @specstart
Is it another usable syntax ?
'#commander "Wizard"',
'#bodyguards 5 "Summer Lion"',
'#units 7 "Hydra"',
Ok, forgot that units could be set with their name and not only their ID. Will be easy to fix.
'#maptextcol -1.00 -1.00 -1.00 -1.00
Ok, didn't think of negative value, easy to fix.
'#knowfeature "Assassins Guild"
Isn't it supposed to be
"#knownfeature" and not "#knowfeature" ?
Error in the original mal file, or are both syntax usable ?
'#startspell 68 "Acashic Record"',
'#startspell 68 "Charm"',
'#startspell 68 "Enslave Mind"',
'#startspell 68 "Cloud Trapeze"',
'#god 68 246',
'#nostart 1214'
Hum, ... those should have worked. There must be an error in the regular expressions.
----
OK, just finished a new version
- Reported errors should be fixed now.
- comments no longer put in 'leftover', they now get they own 'comments' key in the map structure
- new script : map_validator.pl (and the corresponding map_validator.bat)
This script parse the map file, and if there are leftover commands not recognized, he list them.
- test.pl updated to work the same as map_validator.pl, but will still create the ouput.txt file with the full structure.
In Included both map files you provided in the archive, as they are both good exemples for the map validator.
(Faerun has several syntax errors)
|