[SUGGESTION] Ability to Change Pieces to Different Tileset

Started by Dullstar, December 06, 2016, 08:15:11 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Dullstar

(Depending on how the new formats work when they're implemented I suspect it may be possible to do what I want to do with with a Find/Replace operation in Notepad but I'd have to see)

In earlier versions of NeoLemmix, levels made using recolored sets (e.g. Genesis, or those EGA ones Giga's been releasing) were easily interchangeable. While overall the functionality of being able to use multiple tilesets for one level is more useful than the older functionality of being able to switch a level's tileset it would be nice to have some way of changing the color variant used.

Suggested implementation: with some number of objects/terrain pieces selected, have some way (perhaps in the Inspector) to replace them with pieces from another tileset while leaving object/terrain IDs intact.

namida

A workaround you can use is to delete the style file the level currently uses (or - move it out of the "styles" folder, then move it back afterwards). When you try to open the level, it'll ask you to select a style to use in place of the one that it now can't find.

The more complicated variant, for if you just want to change *some* of the pieces, would be to cut and paste them to a new level, do that, then cut and paste them back to the original one.

Quote(Depending on how the new formats work when they're implemented I suspect it may be possible to do what I want to do with with a Find/Replace operation in Notepad but I'd have to see)

When the new formats come into use, it'll be possible to do this. Currently, the old formats are still being used for everything apart from replays.

Here's a couple of samples of how things look in the new (text-based) format:

Quote$OBJECT
  COLLECTION default
  PIECE window
  X 96
  Y 40
  NO_OVERWRITE
  DIRECTION right
$END

$TERRAIN
  COLLECTION dirt
  PIECE moss_06
  X 865
  Y 114
  NO_OVERWRITE
  ONE_WAY
$END
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)

Dullstar

Quote from: namida on December 06, 2016, 10:17:05 AM
A workaround you can use is to delete the style file the level currently uses (or - move it out of the "styles" folder, then move it back afterwards). When you try to open the level, it'll ask you to select a style to use in place of the one that it now can't find.

This seems to work.
For some reason the first time I tried it the editor crashed giving an error stating that the file *nameOfStyleHere*.dat could not be found, but on subsequent attempts I couldn't replicate the crash.