Jump to content
Sign in to follow this  
badosu

Help with packaged map previews

Recommended Posts

I am packaging my mod as such: `pyrogenesis -mod=balanced-maps -archivebuild=/home/badosu/Code/balanced-maps -archivebuild-output=balanced-maps.pyromod -archivebuild-compress`

When I do that, the `wrench.png` preview image is converted to `wrench.png.cached.dds`.

This is my `wrench.json` file: https://github.com/badosu/badmod/blob/master/maps/random/wrench.json#L6
 

When I try to select the wrench map on gamesetup I get the following crash:
 

tex_dds.cpp(446): Function call failed: return value was -120102 (Invalid/unsupported texture format)
Function call failed: return value was -120102 (Invalid/unsupported texture format)
Location: tex_dds.cpp:446 (decode_pf)

If I change the map preview reference to `wrench.png.cached.dds` it also fails.

Any ideas? This is my preview image: https://github.com/badosu/badmod/blob/master/art/textures/ui/session/icons/mappreview/wrench.png
 

Strangely enough I noticed some of the community-maps preview images are not converted into cached.dds, however if I package community-maps on my own machine, they are all converted and fail to load the preview when selected on gamesetup, no crashes though.

Edited by badosu
  • Like 1

Share this post


Link to post
Share on other sites

add -mod=mod -mod=public before -mod=balanced-maps and try again.

The problem is you are missing some files called textures.xml

Also from what I can see your image preview is non power of two. That will crash on mac for sure, and maybe some other oses.

it's needs to be something like 256x256 1024x1024  :)

  • Thanks 1

Share this post


Link to post
Share on other sites

Awesome, it works! Thanks for the tips!

Is there any documentation on how the image should be generated? I noticed I have to make some gap on the bottom side but I'm doing trial and error.

Edited by badosu

Share this post


Link to post
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.

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.

Sign in to follow this  

×
×
  • Create New...