GIMP models
GIMP models
I'm just learning how to create new versions of existing monsters. Almost done but now i'm stuck.
I've created a model of the ice lizard thats red as i've seen done before, and i've followed the http://grimwiki.net/wiki/Model_Retexturing_Tutorial . I found one mistake in the coding earlier but this one i can't see.
It told me to paste this into mod_assets/scripts/monsters.lua so i did
cloneObject{
name = "fire_lizard",
baseObject = "ice_lizard",
model = "mod_assets/models/fire_lizard.fbx",
health = 900,
immunities = { "fire" },
}
but when i go to open my map it says:
[string "Monster.lua"]:0: File not found: mod_assets/models/fire_lizard.model
even though i go to that exact location and find a file named exactly that.
i was able to run my dungeon until i pasted this code in so i know the problem lies within.
if anyone knows how to fix this problem, i will be in your debt.
Thanks, Gradunk
I've created a model of the ice lizard thats red as i've seen done before, and i've followed the http://grimwiki.net/wiki/Model_Retexturing_Tutorial . I found one mistake in the coding earlier but this one i can't see.
It told me to paste this into mod_assets/scripts/monsters.lua so i did
cloneObject{
name = "fire_lizard",
baseObject = "ice_lizard",
model = "mod_assets/models/fire_lizard.fbx",
health = 900,
immunities = { "fire" },
}
but when i go to open my map it says:
[string "Monster.lua"]:0: File not found: mod_assets/models/fire_lizard.model
even though i go to that exact location and find a file named exactly that.
i was able to run my dungeon until i pasted this code in so i know the problem lies within.
if anyone knows how to fix this problem, i will be in your debt.
Thanks, Gradunk
I smell you, i do! You GRADUNK! No be hiding on TORGAL!
Re: GIMP models
Lua is case sensitive. Is the fire_lizard.fbx file named exactly letter for letter and case for case, the same as defined in the monsters.lua file?
**You have copied the ice_lizard.model file into the mod_assets/models/ folder? (I know you mentioned it in the post, but this is the most common cause; typo, or wrong folder.)
**You have copied the ice_lizard.model file into the mod_assets/models/ folder? (I know you mentioned it in the post, but this is the most common cause; typo, or wrong folder.)
Re: GIMP models
you were sort of correct. i didn't tell it that it was in the monsters folder of the models lol derp.
thanks again isaac you help me a lot
thanks again isaac you help me a lot
I smell you, i do! You GRADUNK! No be hiding on TORGAL!
Re: GIMP models
so i got the shield working on all accounts except for this.
http://steamcommunity.com/sharedfiles/f ... =271401963
what now? how do i make my shield the correct picture when i pick it up.
also the fire lizard thing i have. i'm trying to make it ranged an shoot fireballs. but it won't let me.
sorry if i'm getting annoying with how much help i need lol.
http://steamcommunity.com/sharedfiles/f ... =271401963
what now? how do i make my shield the correct picture when i pick it up.
also the fire lizard thing i have. i'm trying to make it ranged an shoot fireballs. but it won't let me.
sorry if i'm getting annoying with how much help i need lol.
I smell you, i do! You GRADUNK! No be hiding on TORGAL!
Re: GIMP models
The picture for the shield is not a preview of the model; it requires a custom icon in an icon atlas. You have to make it yourself.Gradunk wrote:what now? how do i make my shield the correct picture when i pick it up.
also the fire lizard thing i have. i'm trying to make it ranged an shoot fireballs...
The easiest way to do this is to load your textured model into John Wordsworth's GMT application, and take a screen shot with it. Then download his Atlas toolkit and import your image.
Once saved in your mod folders, you can reference it in your item definition, and it should display in the game.
http://www.johnwordsworth.com/legend-of-grimrock/
Re: GIMP models
Half of that was simple enough. i took the screenshot and loaded it but is there a specific mod_assets folder i'm supposed to save it to?
and i have an option of saving it as png or dds. which whould i use i'm thinking dds.
and i have an option of saving it as png or dds. which whould i use i'm thinking dds.
I smell you, i do! You GRADUNK! No be hiding on TORGAL!
Re: GIMP models
You should save it as .dds file.
I for myself have put this .dds file (named as "mod_items.dds") in my texture folder in my own mod (Documents/Almost Human/Legend of Grimrock/Dungeons/"your_mod_name"/mod_assets/textures).
Make sure that you add the texture path to your item description in the item.lua like this:
cloneObject{
name = "rock_darkgrey",
baseObject = "rock",
model = "mod_assets/models/items/rock_darkgrey.fbx",
gfxAtlas = "mod_assets/textures/mod_items.tga",
gfxIndex = 13,
}
The gfxIndex number is the number of the field in your mod_items.dds in which your item picture is placed.
(Further informations can you find here: http://www.grimrock.net/modding/creating-custom-assets/ under "Using Custom Graphics".
I for myself have put this .dds file (named as "mod_items.dds") in my texture folder in my own mod (Documents/Almost Human/Legend of Grimrock/Dungeons/"your_mod_name"/mod_assets/textures).
Make sure that you add the texture path to your item description in the item.lua like this:
cloneObject{
name = "rock_darkgrey",
baseObject = "rock",
model = "mod_assets/models/items/rock_darkgrey.fbx",
gfxAtlas = "mod_assets/textures/mod_items.tga",
gfxIndex = 13,
}
The gfxIndex number is the number of the field in your mod_items.dds in which your item picture is placed.
(Further informations can you find here: http://www.grimrock.net/modding/creating-custom-assets/ under "Using Custom Graphics".
Last edited by maneus on Tue Jun 17, 2014 5:13 pm, edited 1 time in total.
Re: GIMP models
No special folder required, but you have to give its location in the item definition. It's common to put art in the textures folder; even in an Items folder in Textures.Gradunk wrote:Half of that was simple enough. i took the screenshot and loaded it but is there a specific mod_assets folder i'm supposed to save it to?
and i have an option of saving it as png or dds. which whould i use i'm thinking dds.
It has to be DDS format, and the Atlas toolkit will handle the variant color format it demands.
To use it you add the following to your custom item:
gfxAtlas = "mod_assets/textures/items/myCustomIconAtlas.tga",
gfxIndex = 1,
** Index 1 is for the first icon in the atlas.
Re: GIMP models
Hey isaac,great minds think alike. 
