Author Topic: [Fixed][Bug][Packtool] Blank lines inserted in level files just before talismans  (Read 1181 times)

0 Members and 1 Guest are viewing this topic.

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
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.
« Last Edit: July 29, 2018, 09:08:29 AM by Nepster »
My Lemmings 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)

Offline Nepster

  • Posts: 1829
    • View Profile
As I was working on the Pack Toolkit anyway, I took a minute to fix this as well.