Issue with scrapmetal ware icon

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

User avatar
Outliver
Posts: 66
Joined: Thu, 25. Oct 18, 17:53
x4

Issue with scrapmetal ware icon

Post by Outliver » Wed, 8. Nov 23, 17:44

Does anyone know what's wrong with this image?

Code: Select all

/assets/fx/gui/textures/wares/ware_scrapmetal.gz
I'm getting the following error when trying to `convert` it:

Code: Select all

convert: image type not supported `~/assets/fx/gui/textures/wares/ware_scrapmetal.gz' @ error/dds.c/ReadDDSImage/2733.
convert: no images defined `~/public/graphics/game/wares/ware_scrapmetal.png' @ error/convert.c/ConvertImageCommand/3342.
This is the only image where that happens apart from these two:
  • assets/fx/gui/textures/factions/faction_player_normal.gz
  • assets/fx/gui/textures/player_logos/playerlogo_01_normal.gz
The image does, however, show up correctly in the game's encyclopedia.

Caldari Navy
Posts: 73
Joined: Tue, 18. Jul 23, 18:43

Re: Issue with scrapmetal ware icon

Post by Caldari Navy » Thu, 9. Nov 23, 09:53

U need unpack gz whith 7zip than add dds format behind . than convert it to the tga whith netpaint for example and than u can edit texture/ image and than u need follow proces in opposite direction ..before converting back to gz whithn 7zip dont forget remove dds format

User avatar
Outliver
Posts: 66
Joined: Thu, 25. Oct 18, 17:53
x4

Re: Issue with scrapmetal ware icon

Post by Outliver » Thu, 9. Nov 23, 13:18

Hi, thanks for the reply. I just need to convert them to png to be able to display them for web. I'm using ImageMagick's `convert` for that. And it works just fine for every other image. The scrapmetal icon is the only one where it doesn't work.

User avatar
Dj_FRedy
Posts: 237
Joined: Mon, 27. Jun 11, 05:58
x4

Re: Issue with scrapmetal ware icon

Post by Dj_FRedy » Thu, 9. Nov 23, 13:52

Apparently, 'ware_scrapmetal' is in a fairly old format called 'ATI1N' not supported by 'ImageMagick' mmm. You can use the 'mapob_scrap_dismantle' file in '..\assets\fx\gui\textures\map_objects\' which is basically the same image/icon in supported 32 bit format.
"All my contributions to the Technical Support and Public Beta Feedback sections will be concise and to the point, no diatribes, that's what the other sections are for".
Thank you for your efforts.

User avatar
Outliver
Posts: 66
Joined: Thu, 25. Oct 18, 17:53
x4

Re: Issue with scrapmetal ware icon

Post by Outliver » Thu, 9. Nov 23, 14:02

hm, I'm not going to implement manual exceptions for these kinds of things. Thanks for the hint with the format, though. Maybe I can get ImageMagick to support it anyway, or maybe I should switch to GraphicsMagick. Otherwise, I'd just hope for egosoft to update this single image maybe in the next patch or so. Thanks again, brought me a step closer to a possible solution.

linolafett
EGOSOFT
EGOSOFT
Posts: 3380
Joined: Mon, 26. Mar 12, 14:57
x4

Re: Issue with scrapmetal ware icon

Post by linolafett » Thu, 9. Nov 23, 14:08

Here is the original file as tga, i hope it helps on your endeavours.
You do not have the required permissions to view the files attached to this post.
01001100 01101001 01101110 01100101 01110011 00100000 01101111 01100110 00100000 01110100 01101001 01101101 01100101 01110011 00101110 00101110 00101110

My art stuff

User avatar
Outliver
Posts: 66
Joined: Thu, 25. Oct 18, 17:53
x4

Re: Issue with scrapmetal ware icon

Post by Outliver » Thu, 9. Nov 23, 14:33

linolafett wrote:
Thu, 9. Nov 23, 14:08
Here is the original file as tga, i hope it helps on your endeavours.
only if you push it into the next update ;) Thanks for the effort!

linolafett
EGOSOFT
EGOSOFT
Posts: 3380
Joined: Mon, 26. Mar 12, 14:57
x4

Re: Issue with scrapmetal ware icon

Post by linolafett » Thu, 9. Nov 23, 14:37

This is the exact file which is used as a source for the converter.
Not sure why it would behave differently to all the other files around it. It was created and saved with the exact same pipeline.
01001100 01101001 01101110 01100101 01110011 00100000 01101111 01100110 00100000 01110100 01101001 01101101 01100101 01110011 00101110 00101110 00101110

My art stuff

Return to “X4: Foundations - Scripts and Modding”