[Fixed][Bug][Packtool] Blank lines inserted in level files just before talismans

Started by namida, July 18, 2018, 02:49:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

namida

Steps to reproduce:

1. Have a level pack that contains at least one level with a talisman
2. Open pack in pack editor
3. Save pack

A blank line will be added just before the talisman section, in any levels that contain talismans.

Severity: Low. No risk of data loss. Slightly annoying if levels are stored in Git.
Workaround: Open and save an affected level in the level editor, and the excess blank lines will be removed.

Note: Would become redundant if "Move talisman editing to level editor" is implemented. I presume the pack toolkit doesn't fully understand a level file, but just knows how to find certain data in it. When writing modified data back, it inserts an extra blank line for some reason. Since the level editor fully understands the level, it wouldn't have this issue.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

Nepster

As I was working on the Pack Toolkit anyway, I took a minute to fix this as well.