Jump to content

Dune 2000 Maps


Duke Leto III

Recommended Posts

Here you go, just spent the last 4 hours writing a tool to generate them from Dune 2000. Hope this all makes sense.

Some release notes:

There's no error handling, so if you feed it a file which isn't what it should be it'll break.

There's no special index indication.

It only supports exporting to PNG files (compressed lossless images)

How to use:

Click the open button, you will be asked for two files. First, the map file you wish to convert.

Secondly you will be asked for the tileset, since map files don't contain a reference to which tileset they use, you'll have to tell the program yourself. You can find the tileset by looking in the relevant mission file (you should be able to get away with opening it in notepad, going right near the end and finding the string BLOX****, that string indicates which tileset is being used.

The program will then load and interpret both files, the generate button will then become enabled if not already enabled. Click that, and the program will ask you where to export the image to.

Download:

Two download options:

1. Download attached to this post (you must be logged in to see to the link)

2. Download from my site here

MapRenderer.zip

Link to comment
Share on other sites

Only problem is that when I open the image my program (Irfanview) says it is an jpg and if I want to rename it.

I think it might be exporting Jpg files as .Png, if you rename it or open it in Windows Picture Viewer it should work fine. I'll take a look this evening when I get back home from work.

I think i'll finish the map this weekend. I will place a screen shot on this topic. So many thanks to you help mvi!!

I want to do the same with emperor.

No problem, best check out the emperor guys on here, I've not touched that game.

Link to comment
Share on other sites

Thanks. You can see that quality is better now with png.

In what program did you make it, it is so nice small in filesize.  :)

I used Visual C# 2008, with the GDI+ library for the graphics. I did start using the GD library, but the implementation for C# is absolutely terrible, for one thing it gives you the option of making a true colour image but never lets you add anything but indexed colour to it. GD is what you'll see on dynamic image forum signatures of say Xbox 360 profiles for example, GDI+ is a core part of Windows XP, Vista and 7 and is used for drawing windows and menus (etc.).

Link to comment
Share on other sites

  • 1 year later...

Probably the best topic to mention it in, with regard to tilesets, I've long since known that R16 files are as follows

XRRRRRGG GGGBBBBB

But in the past I had some trouble with R8s, just had another look at them and they seem pretty simple. As the name suggests they store one byte per pixel, this byte is a colour index for the palette.bin file. The palette.bin stores 256 RGB triplets. However I assumed that each colour byte in the palette would go up to 255, instead they seem to go up to 63 so it is necessary to convert from 6 bit colour channels to 8 bit colour channels.

Link to comment
Share on other sites

Seems to load and save R8 files perfectly too. Bear in mind that because R8 tilesets use a preset palette, when you import an image it will compare each pixel and use the closest colour in the palette. This is a bit of a slow process because it has to do the calculation for nearly a million pixels when you import an image - on my PC it takes about 15 seconds, if you've got a decent rig it'll take less and if you have a particularly old PC it may take a couple of mins.

iNHPx.png

Link to comment
Share on other sites

Seems to load and save R8 files perfectly too. Bear in mind that because R8 tilesets use a preset palette, when you import an image it will compare each pixel and use the closest colour in the palette. This is a bit of a slow process because it has to do the calculation for nearly a million pixels when you import an image - on my PC it takes about 15 seconds, if you've got a decent rig it'll take less and if you have a particularly old PC it may take a couple of mins.

iNHPx.png

This was posted today? MVI is alive and with an tile editor? Where can I download it? I'm decent at modifying images/sprites... I wanna try this!

This is great news! laugh.giflaugh.gif

  • Upvote 1
Link to comment
Share on other sites

This was posted today? MVI is alive and with an tile editor? Where can I download it? I'm decent at modifying images/sprites... I wanna try this!

This is great news! laugh.giflaugh.gif

:D The Tile Set Editor along with the other new tools can be downloaded here

AMIgaBot, I'll write a short tutorial on how to do it if you like :)

Link to comment
Share on other sites

This was posted today? MVI is alive and with an tile editor? Where can I download it? I'm decent at modifying images/sprites... I wanna try this!

This is great news! laugh.giflaugh.gif

You are missing out on all the other great tools! if you are good at editing these images, give me a shout!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.