Ask a simple question, get a simple answer

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!
User avatar
Isaac
Posts: 3185
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

If it always happens, then it's always a possibility. :mrgreen:

*But it is good to know that one can always expect a 50% reduction in size from the change in format; for assets that don't need a high quality alpha.
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: Ask a simple question, get a simple answer

Post by zimberzimber »

There we go, thats the error I was talking about:
Image

Happened after converting all my textures to DX1, and those with alpha to DX5
My asset pack [v1.10]
Features a bit of everything! :D
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

How did you convert them? Are you remembering to refer to all texture filenames with .tga in scripts (not .dds)?
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: Ask a simple question, get a simple answer

Post by zimberzimber »

minmay wrote:How did you convert them? Are you remembering to refer to all texture filenames with .tga in scripts (not .dds)?
Paint.Net -> Save As... -> .DDS -> Format -> DXT1/DXT5 -> Save
Yup, they're all referenced to as .tga in the scripts.
My asset pack [v1.10]
Features a bit of everything! :D
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

You need to save them with mipmaps.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: Ask a simple question, get a simple answer

Post by zimberzimber »

Same error
My asset pack [v1.10]
Features a bit of everything! :D
User avatar
Isaac
Posts: 3185
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

I've had this error many times. I'm not really sure what causes it [in each case], but I do think that I've had it with certain image sizes. IRRC dxt compression wants sides that are divisible by 4... Perhaps LoG2 itself has additional restrictions?

For instance, a 129x129 pixel portrait will crash the game.
Image

Image
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: Ask a simple question, get a simple answer

Post by zimberzimber »

That seems to be it... Don't even need mipmaps.

EDIT: Also they have to be at least 4x4 in size. If its 2x2, the game won't crash, but it'll display the error in console, and treat materials that use the texture as if the texture doesn't exist.
My asset pack [v1.10]
Features a bit of everything! :D
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

Yeah, that would do it. I didn't even think to mention that. Remember this post.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: Ask a simple question, get a simple answer

Post by zimberzimber »

minmay wrote:Yeah, that would do it. I didn't even think to mention that. Remember this post.
I do remember that, but for whatever reason I forgot everything except for "use whatever dimension you need" :?
Icon atlases also require a ^2 dimension though.
My asset pack [v1.10]
Features a bit of everything! :D
Post Reply