Page 1 of 1

Custom assets

Posted: Thu Jul 03, 2014 9:05 pm
by Chimera005ao
My custom assets load fine when running through the editor, but when trying to open the mod without the editor, it can't seem to find the models and aborts.
The error log:
[string "Monster.lua"]:0: File not found: mod_assets/models/monsters/magma_slime.model
stack traceback:
[C]: in function 'load'
[string "Monster.lua"]: in function 'loadArch'
[string "Arch.lua"]: in function 'defineObject'
mod_assets/scripts/monsters.lua:4: in main chunk
[string "Dungeon.lua"]: in function 'import'
mod_assets/scripts/init.lua:8: in main chunk
[string "Dungeon.lua"]: in function 'loadInitFile'
[string "GameMode.lua"]: in function 'loadDungeon'
[string "GameMode.lua"]: in function 'newGame'
[string "GameMode.lua"]: in function 'startGame'
[string "NewGameMenu.lua"]: in function 'startGame'
[string "NewGameMenu.lua"]: in function 'update'
[string "GameMode.lua"]: in function 'update'
[string "Grimrock.lua"]: in function 'display'
[string "Grimrock.lua"]: in main chunk

OS Version 6.1

OEM ID: 0
Number of processors: 4
Page size: 4096
Processor type: 586

Total memory: 4093 MB
Free memory: 1478 MB

Display device 0:
Device name: \\.\DISPLAY1
Device string: NVIDIA GeForce GTX 460
State flags: 00000005

Display device 1:
Device name: \\.\DISPLAY2
Device string: NVIDIA GeForce GTX 460
State flags: 00000000

Display device 2:
Device name: \\.\DISPLAYV1
Device string: RDPDD Chained DD
State flags: 00000008

Display device 3:
Device name: \\.\DISPLAYV2
Device string: RDP Encoder Mirror Driver
State flags: 00200008

Display device 4:
Device name: \\.\DISPLAYV3
Device string: RDP Reflector Display Driver
State flags: 00200008

Re: Custom assets

Posted: Thu Jul 03, 2014 9:51 pm
by Dr.Disaster
Chimera005ao wrote:File not found: mod_assets/models/monsters/magma_slime.model
that's pretty much all you need to know .. and resolve.

Re: Custom assets

Posted: Fri Jul 04, 2014 12:03 am
by Chimera005ao
Dr.Disaster wrote:
Chimera005ao wrote:File not found: mod_assets/models/monsters/magma_slime.model
that's pretty much all you need to know .. and resolve.
Yes, I understand that.
What I don't understand is why the dungeon editor finds them without a problem, but the game itself does not.

Re: Custom assets

Posted: Fri Jul 04, 2014 12:25 am
by Leki
Chimera005ao wrote:
Dr.Disaster wrote:
Chimera005ao wrote:File not found: mod_assets/models/monsters/magma_slime.model
that's pretty much all you need to know .. and resolve.
Yes, I understand that.
What I don't understand is why the dungeon editor finds them without a problem, but the game itself does not.
It's case sensitivity based error - visit viewtopic.php?f=14&t=5704 for more info.

Re: Custom assets

Posted: Fri Jul 04, 2014 2:42 am
by Chimera005ao
Seems kind of odd that one has the problem, while the other does not, but thank you very much.

Re: Custom assets

Posted: Fri Jul 04, 2014 4:31 am
by msyblade
leki is (as usual) spot on . my guess is that the .model has a capital M

Re: Custom assets

Posted: Fri Jul 04, 2014 5:09 am
by Isaac
Windows doesn't care about case, but Lua does... The game even distinguishes between single and double quotes in some instance.
Always check the case of everything; especially if you've cut & pasted code (paths and parts of definitions).

Re: Custom assets

Posted: Fri Jul 04, 2014 7:29 am
by msyblade
I will not guarantee, but i will assure you, It is as simple as a case sensitive issue. Something is capitalized, and the script "assumes" it shouldn't be.