Missing textures that are right there.

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
DaggorathMaster
Posts: 37
Joined: Thu Sep 08, 2022 7:29 pm

Missing textures that are right there.

Post by DaggorathMaster »

I have one item in my mod that has textures just fine in preview mode, but can't find them in real (exported) mode.

warning: File not found: <path/name where they literally are>
  • I checked the path
    I checked the .dds exporter settings and re-exported
    I have the correct extensions for the files vs. the def
    They're not 1025 pixels
    There are no other differences (that I can tell) from the setup for other textures that work
The full path/name is long (147 characters), but other longer ones work fine, and the relative path is normal (no extra subfolders to get lost in).

It makes my horrifying late-game monsters look silly, swinging untextured flaming weapons!
User avatar
THOM
Posts: 1266
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Missing textures that are right there.

Post by THOM »

Have you named the files .dds in the folder, but .tga in the definition?
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
DaggorathMaster
Posts: 37
Joined: Thu Sep 08, 2022 7:29 pm

Re: Missing textures that are right there.

Post by DaggorathMaster »

Yes. I've quintuple-checked that by now.
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: Missing textures that are right there.

Post by minmay »

Make sure the filenames and directory names are all lowercase.
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
DaggorathMaster
Posts: 37
Joined: Thu Sep 08, 2022 7:29 pm

Re: Missing textures that are right there.

Post by DaggorathMaster »

That's fine too. Like I said, it works in preview mode.
Are there any known differences in how textures or files are handled between preview and non-preview mode?
User avatar
Zo Kath Ra
Posts: 931
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Missing textures that are right there.

Post by Zo Kath Ra »

Create a test dungeon with just this model and texture.
If the test dungeon has the same error, upload the source files and let us have a look at them.

If the test dungeon doesn't have the error, you'll have to upload the source files for your entire dungeon.
User avatar
DaggorathMaster
Posts: 37
Joined: Thu Sep 08, 2022 7:29 pm

Re: Missing textures that are right there.

Post by DaggorathMaster »

OK it happens in the test dungeon.

How do I upload the source?

I did search the forum for "how to upload source".
User avatar
Zo Kath Ra
Posts: 931
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Missing textures that are right there.

Post by Zo Kath Ra »

DaggorathMaster wrote: Mon Nov 14, 2022 2:54 pm OK it happens in the test dungeon.

How do I upload the source?

I did search the forum for "how to upload source".
You can't upload files on this forum.

I'd use:
User avatar
Zo Kath Ra
Posts: 931
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Missing textures that are right there.

Post by Zo Kath Ra »

mod_assets/scripts/materials.lua
The first letter of each filename is lower-case.

mod_assets/textures/items/
The first letter of each filename is upper-case.

Tested on Manjaro Linux with Wine 7.20
Post Reply