Page 1 of 1

setting a treasure map image (problems)

Posted: Thu Oct 29, 2015 2:56 am
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.

Re: setting a treasure map image (problems)

Posted: Thu Oct 29, 2015 3:26 am
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.