Lemmings Forums

NeoLemmix => NeoLemmix Main => Archived Bugs & Suggestions => Topic started by: namida on July 18, 2018, 02:49:38 AM

Title: [Fixed][Bug][Packtool] Blank lines inserted in level files just before talismans
Post by: namida on July 18, 2018, 02:49:38 AM
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" (https://www.lemmingsforums.net/index.php?topic=3894.0) 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.
Title: Re: [Fixed][Bug][Packtool] Blank lines inserted in level files just before talismans
Post by: Nepster on July 29, 2018, 09:36:34 AM
As I was working on the Pack Toolkit anyway, I took a minute to fix this as well.