Open Gesugao-san opened 3 years ago
Here is a alleged example of the visual difference between the two ".dmi" file formats that VS Code was able to show.
"Icons/turfs.dmi"
"Icons/ammo.dmi"
"Icons/Doorf.dmi"
"Icons/ghost.dmi"
"Icons/hi_pipe.dmi"
"Icons/human.dmi"
"Icons/meteor.dmi"
"Icons/shards.dmi"
"Icons/table.dmi"
"Icons/zone_sel.dmi"
It is true that SpacemanDMM does not currently support the v3 format. Neither does almost any tool other than DreamMaker itself. It is not well-documented, and it is used exclusively by historical codebases. I might be able to accept a PR which adds support but it is not really worth my time to implement myself.
Here is a alleged example of the visual difference between the two ".dmi" file formats that VS Code was able to show.
I'm surprised your VS Code can show the v3 format. Mine cannot. Do you have any extensions which might explain this?
It is true that SpacemanDMM does not currently support the v3 format. Neither does almost any tool other than DreamMaker itself. It is not well-documented, and it is used exclusively by historical codebases. I might be able to accept a PR which adds support but it is not really worth my time to implement myself.
I understand that, I just wish that people who do not know anything about the versions of the DMI could receive a warning asking them to check this version through the DreamMaker.
Here is a alleged example of the visual difference between the two ".dmi" file formats that VS Code was able to show.
I'm surprised your VS Code can show the v3 format. Mine cannot. Do you have any extensions which might explain this?
And yes, the VS Code was able to show such a difference not for all files. I think that some extension from this extension pack was able to display the DMI file:
https://marketplace.visualstudio.com/items?itemName=Goonstation.goonstation-extpack
I'm surprised your VS Code can show the v3 format. Mine cannot.
@SpaceManiac How to make the VS Code display dmi files:
How to make the ViS Code display dmi files:
I use this with success for v4 .dmi files because the previewer is able to interpret them as .png files, but it doesn't understand the v3 format.
How to make the ViS Code display dmi files:
I use this with success for v4 .dmi files because the previewer is able to interpret them as .png files, but it doesn't understand the v3 format.
Only part of the v3 files is not displayed for me.
My OS specifications
OS: Windows 20H2 (build 19042.1110) ├ BYOND: 514.1561 (Beta) └ WSL: Ubuntu 20.04.2 LTS StrongDMM: v1.9.1 [revision: e1a3ea8] └ StrongDMM Launcher: (v1.1.0) [01693a4]
Description of the problem itself
I was trying to compile an old Space Station 13 build called "OpenSS13" to try to upload it to a web map. Faced with the fact that when opening this map (of course, after analyzing the contents by viewing the file in text format, and changing the extension from ".dmp" to ".dmm"), StrongDDM simply crashes without explaining the reasons, began to sort out all possible reasons.
How I was able to deal with this problem
The clue was that when trying to render the map, the Map Renderer from SpacemanDMM indicated that it could not open one particular file → "Icons/wall.dmi".
Backtrace
After I tried to modify and save problematic file, DreamMaker informed me that this file is in the old format (DMI v3 instead of DMI v4):
With which I agreed by re-saving the file.
The suggested solution
Research the difference between the two formats and introduce a version check for each ".dmi" file.
Post Scriptum
But after saving the file, when you try to use Map Renderer again, it still gives an error, no longer specifying the file... But I think that if you resave all the ".dmi" files in this way, the problem will go away.