PuzzleScript icon indicating copy to clipboard operation
PuzzleScript copied to clipboard

Levels can not contain glyphs that resemble section names

Open jcmiller11 opened this issue 2 years ago • 3 comments

If I create objects with the following glyphs for defining levels: S, O, U, N, D and attempt to create a level where they appear in a particular order in a line such as ####... #.O#... #..###. #@P..#. SOUNDS. ######. I get a bunch of errors since the parser seems to think I'm trying to define a second SOUNDS section, expected behavior is that the objects assigned to those glyphs appear in the level.

jcmiller11 avatar Jun 28 '23 14:06 jcmiller11

Related bug, you can use the glyph after object name convention in the objects section to define an object's level glyph as =, which works until you try to put it at the start of a line in the level definition.

jcmiller11 avatar Jun 29 '23 12:06 jcmiller11

Which is a bug. The parser should assume a level if possible. For PS, the test for all EqualsRow and sections can be suppressed in the LEVELS section. For some forks it may be harder.

david-pfx avatar Jun 29 '23 13:06 david-pfx

https://www.puzzlescript.net/editor.html?hack=b1975b25783ea51b3509f6c822fc487d repro example

increpare avatar Apr 26 '24 23:04 increpare