Hey my friend made a project using byond and wanted to convert the .dmi files to regular .bmp files. My question is: Is there a converter already made to convert the .dmi to .bmp files and if there isn't, is the .dmi file format proprietary? If there isn't a converter made already, I would like to make one for my friend but I can only do that if I know how to read the .dmi information. Thanks!
| |
#1 Feb 12 2012, 7:36 pm
|
|
.dmi files are just .png files that use comments and stuff to handle icon states. I'm not sure why you'd want to convert them to .bmp files though.
| |
#2 Feb 12 2012, 7:46 pm
|
|
Oh really?! So if I changed the extension to .png I would be able to see the image just fine right??
| |
#3 Feb 12 2012, 7:48 pm
|
|
Yes. Keep in mind though, if it has multiple icon states then the .png will be a huge sheet of every state and frame.
| |
#4 Feb 12 2012, 7:51 pm
|
|
Ah okay cool! Thank you very much! I'm also wondering, are there any parts of Byond that are open source or is it all proprietary?
| |
#5 Feb 12 2012, 7:55 pm
|
|
It's all pretty easy to reverse engineer. At least the file formats anyway.
DMM files are basically arrays. | |
#6 Feb 12 2012, 8:11 pm
|
|
Pretty much. .dme, .dm, .dmf, and .dmm files are all just .txt files that are interpreted differently by the compiler, and .dmi files are just .png files.
| |
#7 Feb 12 2012, 8:24 pm
|
|
I just tried changing one of the .dmi file extensions to .png and the file won't open in any graphics program. Are the file headers changed somehow?
| |
#8 Feb 12 2012, 8:27 pm
|
|
Hmm. You could try just exporting the image in Dream Maker as a .png by right-clicking it.
| |
#9 Feb 12 2012, 8:33 pm
|
|
It only exports the first frame of the movie clips, doesn't show all the frames/icon states.
| |
#10 Feb 12 2012, 8:35 pm
|
|
Oh, it's animated? .png is just for still images (well, there's the .apng format but like all of one browser supports those, and BYOND does not support them). If you want to do anything with an animated image you need to export it as a .gif.
| |
#11 Feb 12 2012, 8:44 pm
|
|
When you open the DMI in Dream Maker, click Save As, look down on the file prompt at the "Save as Type" drop-down list, click on it, and click PNG.
| |
#12 Feb 12 2012, 8:44 pm
|
|
I tried dragging the .dmi file into paint itself and it opened up just fine.
| |
Super Saiyan X wrote:
When you open the DMI in Dream Maker, click Save As, look down on the file prompt at the "Save as Type" drop-down list, click on it, and click PNG. Apparently this doesn't work...wow. but yeah... Directly opening it in any program should work fine too. | |
#14 Feb 12 2012, 8:56 pm
|
|
Thanks everyone! Exporting it as .gif shows the frames. Dragging the .dmi file into paint didn't work for me by the way.
| |
