Looking for asset reference

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
zanreth
Posts: 12
Joined: Fri Aug 22, 2014 2:22 am
Location: Montreal

Looking for asset reference

Post by zanreth »

Hello all,
Newbie to scripting here, I just begun last night following Kromag's excellent video tutorial.

I am working on a script to "force" a specific party upon the initial dungeon load/spawn. So far, I've got everything (almost!) covered: Class, gender, race, gear, names ... all I am missing is the PORTRAITS !

Where do I find a list or references of the portrait's file names for the game to be used with getChampion:setPortrait(xyz) ?? :shock:

Thanks all....
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Looking for asset reference

Post by msyblade »

I have used this and it worked great for me. Covers all of what you have, plus portraits, skills, and starting inventory. If you have any trouble, let us know, sure we can help you figure it out.

viewtopic.php?f=14&t=3201&p=32330&hilit=portrait#p32330
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
zanreth
Posts: 12
Joined: Fri Aug 22, 2014 2:22 am
Location: Montreal

Re: Looking for asset reference

Post by zanreth »

Thanks msyblade for the link.
I looked it over and there's some great stuff in there. My script is already pretty much in the same direction, but with nuances...I got most of the same stuff right, but by taking another path.

What I cannot figure out is the default and alternate portrait NAMES: Where do I get the name of the portrait to choose which to put into my script ?
With item it's easy: It's all in the editor ... but basic portraits ?

Right now, I always end-up with the human, the minotaur, the female rogue and the mage. I want to force a change to those to my selections but do not know where to go look for the names of the alternates I want to use !
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: Looking for asset reference

Post by Skuggasveinn »

The default portraits are under assets/textures/portraits
So if you want to change the portrait of the first hero to look like Toorum you would do something like this

Code: Select all

party:getChampion(1):setPortrait("assets/textures/portraits/toorum.tga")
if you want to make the portrait look like the lizardman female it would be

Code: Select all

party:getChampion(1):setPortrait("assets/textures/portraits/lizardman_female_01.tga")
If you make your own or want to import someone portraits you just place them anywhere in your mod_assets folder and point to them

Code: Select all

party:getChampion(1):setPortrait("mod_assets/textures/portraits/skeletor.tga")
Just remember if you create your own they are 128x128 pixels in a DDS format

Hope that helps.

Skuggaveinn.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
User avatar
zanreth
Posts: 12
Joined: Fri Aug 22, 2014 2:22 am
Location: Montreal

Re: Looking for asset reference

Post by zanreth »

Skuggasveinn, thank you, that is very usefull info for my needs.

Is there a list of the portraits names and filenames? I been looking over the web and can,t find one and I've been looking through my local Steam folder and can't find anything either :-(

THAT is really all that I am missing !
User avatar
Isaac
Posts: 3185
Joined: Fri Mar 02, 2012 10:02 pm

Re: Looking for asset reference

Post by Isaac »

zanreth wrote:Is there a list of the portraits names and filenames?
Image

Code: Select all

dead.tga
empty.tga
human_female_01.tga
human_female_02.tga
human_male_01.tga
human_male_02.tga
human_male_03.tga
human_male_04.tga
human_male_05.tga
insectoid_female_01.tga
insectoid_female_02.tga
insectoid_male_01.tga
insectoid_male_02.tga
lizardman_female_01.tga
lizardman_male_01.tga
lizardman_male_02.tga
lizardman_male_03.tga
minotaur_female_01.tga
minotaur_male_01.tga
minotaur_male_02.tga
minotaur_male_03.tga
toorum.tga
User avatar
zanreth
Posts: 12
Joined: Fri Aug 22, 2014 2:22 am
Location: Montreal

Re: Looking for asset reference

Post by zanreth »

Thank you Isaac ! That's just what I needed !
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: Looking for asset reference

Post by Skuggasveinn »

It occurs to me since you asked for the file names of the portraits that you haven't downloaded the asset pack.
If so you should really crap it here http://www.grimrock.net/modding/asset-pack/
Then you can easily see for yourself all the names of particles, models, gfxatlas item numbers, portraits, effects etc etc.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
User avatar
zanreth
Posts: 12
Joined: Fri Aug 22, 2014 2:22 am
Location: Montreal

Re: Looking for asset reference

Post by zanreth »

Thanks Skuggasveinn, I just did and that really answer a lot of questions I had ...

I should have started there ;-)
Post Reply