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")
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")
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.