setting a treasure map image (problems)

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
FeMaiden
Posts: 290
Joined: Wed Jan 16, 2013 8:16 am

setting a treasure map image (problems)

Post by FeMaiden »

I don't know what i'm doing wrong.

I created an image for a treasure map.

the code, I pulled from both skuggsaveins tutorial and from the script in the herder's den in the main game files is this

Code: Select all

treasure_map_1.scrollitem:setScrollImage("mod_assets/textures/treasure_map_1.tga")
I put the file in the mod assets/textures file path.

when i hit "play. it not only crashed the preview but the entire dungeon editor locked up. I had to force quit out of the app.

I thought it would work because in the grimrock assets, they used .tga format.

I used 128x128, the same as I use for the custom portraits.

then I looked back at skugg's tutorial and he used photoshop to make a .dds file.

so then I don't have photoshop, so I went online to the website i was using to convert my .tga files, and I converted it to .dds format.

I went back in and used the code

Code: Select all

treasure_map_1.scrollitem:setScrollImage("mod_assets/textures/treasure_map_1.dds")
and it did the normal red text crashed the preview saying "unrecognized pixel format" or something.

I realized I forgot to set the pixel size.
so I want back and converted the file to 128x128 .dds.

I put that in and ..the dungeon editor froze again, i had to force quit out of it again.
User avatar
FeMaiden
Posts: 290
Joined: Wed Jan 16, 2013 8:16 am

Re: setting a treasure map image (problems)

Post by FeMaiden »

welp, i figured it out on my own again...when i converted to .DDS I needed to select the option to compress it to DXT1 (1bit alpha) format.
Post Reply