Custom assets

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Chimera005ao
Posts: 187
Joined: Sun Jun 29, 2014 8:34 am

Custom assets

Post 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
User avatar
Dr.Disaster
Posts: 2876
Joined: Wed Aug 15, 2012 11:48 am

Re: Custom assets

Post 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.
User avatar
Chimera005ao
Posts: 187
Joined: Sun Jun 29, 2014 8:34 am

Re: Custom assets

Post 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.
User avatar
Leki
Posts: 550
Joined: Wed Sep 12, 2012 3:49 pm

Re: Custom assets

Post 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.
I'm the Gate I'm the Key.
Dawn of Lore
User avatar
Chimera005ao
Posts: 187
Joined: Sun Jun 29, 2014 8:34 am

Re: Custom assets

Post by Chimera005ao »

Seems kind of odd that one has the problem, while the other does not, but thank you very much.
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Custom assets

Post by msyblade »

leki is (as usual) spot on . my guess is that the .model has a capital M
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: Custom assets

Post 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).
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Custom assets

Post 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.
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Post Reply