Lemmings Forums

Lemmings Boards => Lemmings Main => Topic started by: MattKamineko on December 28, 2006, 03:21:42 PM

Title: So, you wanted a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 28, 2006, 03:21:42 PM
Where can I find info about all of the terrain pieces (graphics, sizes, palette (I believe each style has a single 16 colour palette?)) available to L and ONML levels?
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: Mindless on December 28, 2006, 04:50:26 PM
I can give you all the terrain pieces in PNGs if that would be helpful.  If not, ccexplore has documented the file formats of the DOS version and he'd probably let you have them.
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 28, 2006, 04:57:19 PM
That'd be ace.  ;)

What I'll do is make sure that each style uses a single palette, and then use that to translate all of the (hideous) windows lemmings terrain data into .LDS levels.

The one-way area 'Objects' are always 32x32, right?
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 29, 2006, 05:50:41 AM
I found 'lem_terrain_gfx.zip' lying around in an old 'I want to make a Lemmings remake' thread... and it seems to have everything I could ever want in it. :P

Would you happen to know if these terrain pieces are in the same order as they appear in Windows lemmings? And would you also happen to know if the BMP sets contain a constant palette for each graphics theme?
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: covox on December 29, 2006, 06:26:08 AM
Ah! Finally a kindred spirit who thinks the Windows terrain pieces look hideous! :P

Yes, the one way areas are always 32x32.

I'm fairly sure that the Windows/DOS/Amiga versions of Lemmings use the same index for terrain and interactive pieces (hence why the levels are easily converted). Not so sure that BMP files are palette-indexed though.

Here's (http://rebui.ld.net.au/covox/styles.tar.bz2) a quick dump of all the interactive/terrain objects as indexed PNGs.


Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 29, 2006, 07:02:35 AM
It's time for a bonus round of 'guess the level that Matt's managed to kinda-convert from the location of the steel areas'!
(http://i29.photobucket.com/albums/c287/mrdictionary/lev1.jpg)
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: ccexplore on December 30, 2006, 02:20:11 AM
Natural choice of level with lots of steel.

The exit seems a bit too low though and the water too high, but I guess w/o actually seeing the terrain I can't tell for sure.
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 30, 2006, 06:14:07 AM
Yeah, the exit, entrance and water are all slightly off due to the different definitions of position. (Windows lemmings positions the top left corner of them (sometimes weirdly... the pink brick entrance comes in two pieces, it seems), and Lemmings DS positions the active point. I'll fix it all when I've got the terrain working so I've got some kind of reference.

I kinda chose it because I didn't want to have click Cheat Level in Winlemm for ages trying to get a level that I could test against. :)
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 30, 2006, 08:53:25 PM
It now looks a little more like this:

(http://i29.photobucket.com/albums/c287/mrdictionary/tadah.jpg)
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: 2112 on December 31, 2006, 03:40:03 AM
Quote from: MattKamineko on December 30, 2006, 06:14:07 AM(sometimes weirdly... the pink brick entrance comes in two pieces, it seems)

Well, actually, all of them consist of two objects - one still, one animated.

Well, it's nice to see this coming along so well...

-2112
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 31, 2006, 10:07:30 AM
All of 'em? I didnae know that.

Anyway, I screwed up building the final staircase by a single pixel on Steel Works just now, so I'm FORMATTING MY ENTIRE HARDDRIVE AND NEVER PLAYING LEMMINGS EVER AGAIN NO. :cry:
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 31, 2006, 12:05:59 PM
Hmm... I think my terrain ordering is a little off: (This is One way or another (http://it.travisbsd.org/lemmings/lemmingswelt/tmp/8532e674d2b4f2486d703b11a48767fe.png))

(http://i29.photobucket.com/albums/c287/mrdictionary/ack.jpg)

I'm a bit confused as to the correct way to handle the special terrain nibble. As I understand it:
8 signifies that the piece should not overwrite existing terrain
4 signifies that the piece should be drawn upside down
2 signifies that the piece should subtract from the existing landscape (so far).

But if that's the case, something really weird is happening here.  :'(

Edit: Uh oh, I may have to upgrade the Lemmings DS rendering engine and editor to handle these subtractive shapes, I kinda screwed up when I wrote the system. Darn.

Edit 2: Yup. It was my fault. I was handling subtractive shapes incorrectly within the level renderer. I fear I may have broken compatibility with all of the custom Lemmings DS levels, though. *checks* Nope, it still works. Nobody used my 'Zero Overwrite' flag, because it didn't really make any sense in its previous state. Now everything is groovy and great, hooray!
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 31, 2006, 07:07:43 PM
:thumbsup:

It had to happen sooner or later... on my converted 'We All Fall Down', can you guess what happened? Can you?
Title: Re: So, you wanted a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 31, 2006, 09:37:45 PM
I've started a new thread as this one got a bit messy with all my thinking aloud. I apologise.  :sick:
Title: Re: So, you want a Lemmings -> Lemmings DS converter, eh?
Post by: 2112 on December 31, 2006, 10:35:39 PM
Quote from: MattKamineko on December 31, 2006, 07:07:43 PM
:thumbsup:

It had to happen sooner or later... on my converted 'We All Fall Down', can you guess what happened? Can you?
I'm gonna take a crack that the far end is low enough that the lemmings can walk off the edge and live?

Quote from: MattAll of 'em? I didnae know that.
That's okay. I wasn't aware of it until very recently when I started working with level editor programs (especially Lemmix).

-2112
Title: Re: So, you wanted a Lemmings -> Lemmings DS converter, eh?
Post by: MattKamineko on December 31, 2006, 10:57:08 PM
QuoteI'm gonna take a crack that the far end is low enough that the lemmings can walk off the edge and live?
Nope, they dig off the bottom of their little piece of ledge, and smoosh on the ground below anyway.  :huh2:

Hopefully that's fixed in v3.1
Title: Re: So, you wanted a Lemmings -> Lemmings DS converter, eh?
Post by: 2112 on December 31, 2006, 11:35:07 PM
Quote from: MattKamineko on December 31, 2006, 10:57:08 PM
QuoteI'm gonna take a crack that the far end is low enough that the lemmings can walk off the edge and live?
Nope, they dig off the bottom of their little piece of ledge, and smoosh on the ground below anyway.  :huh2:

Hopefully that's fixed in v3.1

HOLY UNSOLVABLE PUZZLE, BATMAN!

Yes, let's hope it is fixed. I believe that messes up some other levels, too, as a result of that... though I can't remember for sure.

-2112