Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Problems with materials  (Read 1386 times)

Furtuka

  • Bay Watcher
  • High Priest of Mecha
    • View Profile
Problems with materials
« on: June 08, 2011, 12:19:45 pm »

So yeah title says it all. I'm new to modding so I don't really know what I'm doing with the trickier stuff and so I need help getting this guy to work.
(Tell me if you see any other problems by the way)

Code: [Select]
[CREATURE:WALKING_BOAT]
[DESCRIPTION:A walking boat. Whats there more to say?]
[NAME:walking boat:walking boats:walking boat]
[CREATURE_TILE:'B'][COLOR:6:0:0]
[CASTE_NAME:walking boat:walking boats:walking boat]
[PREFSTRING:sillyness]
[NO_THOUGHT_CENTER_FOR_MOVEMENT]
[NOBREATHE]
[NOMEAT][NONAUSEA][NOPAIN][NOSKIN][NOSKULL][NOSTUCKINS][NOTHOUGHT][NOEMOTION][NO_DRINK][NO_EAT][NO_GENDER]
[ITEMCORPSE:WOOD:NO_SUBTYPE:PLANT_MAT:ASH]
[COMMON_DOMESTIC][PACK_ANIMAL][WAGON_PULLER][MOUNT]
[CANNOT_UNDEAD]
[EXTRAVISION]
[PET][PETVALUE:100]
[BODY:QUADRUPED:HEART:SAIL]
[MEANDERER]
[BIOME:SUBTERRANEAN_WATER]
[UNDERGROUND_DEPTH:1:3]
[SWIMS_INNATE][SWIM_SPEED:2500]
[TISSUE:WOOD]
[TISSUE_NAME:wood:NP]
[TISSUE_MATERIAL:PLANT_MAT:WOOD]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:2]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:ALL:WOOD]
[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:MAIN]

Thank you
Logged
It's FEF, not FEOF

3

  • Bay Watcher
    • View Profile
Re: Problems with materials
« Reply #1 on: June 08, 2011, 12:47:46 pm »

Code: [Select]
[ITEMCORPSE:WOOD:NO_SUBTYPE:PLANT_MAT:ASH]
[...]
[TISSUE_MATERIAL:PLANT_MAT:WOOD]

PLANT_MAT tells the game to look for a specific material of a specific plant - unless you want the boats to be made out of a specific type of wood (they'll all be made out of that one type*) it may be better to use LOCAL_CREATURE_MAT:WOOD as the TISSUE_MATERIAL, after creating a new local WOOD material out of WOOD_TEMPLATE. Refer to the contents of creature_equipment.txt.

If you still want the creature to be made out of a specific wood then you're looking at something like
Code: [Select]
[TISSUE_MATERIAL:PLANT_MAT:ASH:WOOD]
I don't think NO_GENDER does anything of note any more, at least not in this context. Sexes are caste-based.

Also, I presume SAIL is defined as a body part somewhere? And the sail'll be made out of wood along with everything else the way it is now, but I expect you know that.

* Before the material rewrite there was something called a racegloss which allowed one to, among other things, make a creature out of a random stone or wood type. Raceglosses currently don't exist and won't until Toady comes across something that needs them.
« Last Edit: June 08, 2011, 12:50:26 pm by 3 »
Logged

Furtuka

  • Bay Watcher
  • High Priest of Mecha
    • View Profile
Re: Problems with materials
« Reply #2 on: June 08, 2011, 01:03:53 pm »

Yeah I modded sails in earlier while I was making a Dimetrodon. I am aware that it'll be made of wood but are there any ways to make it be made out of a different material than the rest?
Logged
It's FEF, not FEOF

3

  • Bay Watcher
    • View Profile
Re: Problems with materials
« Reply #3 on: June 08, 2011, 01:14:21 pm »

Instead of using BY_CATEGORY:ALL as the TISSUE_LAYER argument, you just want to give the game a specific category/type/part to layer ("TISSUE_LAYER:BY_CATEGORY:BODY:WOOD"). The downside to doing things this way is that you'll need a new line for every single category/type/token you want to layer, so it'll get a bit longwinded (but the entry isn't that long anyway). You could do the same thing in less lines with a detail plan (and make the layers on specific parts relatively thicker or thinner too).
Logged

Furtuka

  • Bay Watcher
  • High Priest of Mecha
    • View Profile
Re: Problems with materials
« Reply #4 on: June 08, 2011, 01:28:13 pm »

I think I get it. But what should I put in the tissue material?

Code: [Select]

[TISSUE:CLOTH]
[TISSUE_NAME:cloth:NP]
[TISSUE_MATERIAL:______]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
Logged
It's FEF, not FEOF

3

  • Bay Watcher
    • View Profile
Re: Problems with materials
« Reply #5 on: June 08, 2011, 01:32:23 pm »

There's a THREAD_PLANT_TEMPLATE you could import as a mat, and use that.
Logged

Furtuka

  • Bay Watcher
  • High Priest of Mecha
    • View Profile
Re: Problems with materials
« Reply #6 on: June 08, 2011, 01:35:12 pm »

Do I place that in the tissue thing somewhere or is there something else I'm suppose to do?
Logged
It's FEF, not FEOF

3

  • Bay Watcher
    • View Profile
Re: Problems with materials
« Reply #7 on: June 08, 2011, 01:37:36 pm »

You need to use USE_MATERIAL_TEMPLATE:CLOTH:PLANT_THREAD_TEMPLATE, then put CLOTH as the tissue mat.
Logged

Furtuka

  • Bay Watcher
  • High Priest of Mecha
    • View Profile
Re: Problems with materials
« Reply #8 on: June 08, 2011, 01:42:36 pm »

like this?

Code: [Select]
[TISSUE:CLOTH]
[TISSUE_NAME:cloth:NP]
[TISSUE_MATERIAL:CLOTH]
[USE_MATERIAL_TEMPLATE:CLOTH:PLANT_THREAD_TEMPLATE]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
Logged
It's FEF, not FEOF

3

  • Bay Watcher
    • View Profile
Re: Problems with materials
« Reply #9 on: June 08, 2011, 01:48:28 pm »

No, USE_MATERIAL_TEMPLATE needs to be before the start of the tissue def.
Logged

Furtuka

  • Bay Watcher
  • High Priest of Mecha
    • View Profile
Re: Problems with materials
« Reply #10 on: June 08, 2011, 01:52:35 pm »

Is this it?
Code: [Select]

[CREATURE:WALKING_BOAT]
[DESCRIPTION:A walking boat. Whats there more to say?]
[NAME:walking boat:walking boats:walking boat]
[CREATURE_TILE:'B'][COLOR:6:0:0]
[CASTE_NAME:walking boat:walking boats:walking boat]
[PREFSTRING:sillyness]
[NO_THOUGHT_CENTER_FOR_MOVEMENT]
[NOBREATHE]
[NATURAL]
[NOMEAT][NONAUSEA][NOPAIN][NOSKIN][NOSKULL][NOSTUCKINS][NOTHOUGHT][NOEMOTION][NO_DRINK][NO_EAT][NO_GENDER]
[ITEMCORPSE:WOOD:NO_SUBTYPE:PLANT_MAT:ASH:WOOD]
[COMMON_DOMESTIC][PACK_ANIMAL][WAGON_PULLER][MOUNT]
[CANNOT_UNDEAD]
[EXTRAVISION]
[PET][PETVALUE:100]
[BODY:QUADRUPED:HEART:SAIL]
[MEANDERER]
[BIOME:SUBTERRANEAN_WATER]
[UNDERGROUND_DEPTH:1:3]
[SWIMS_INNATE][SWIM_SPEED:2500]
[TISSUE:WOOD]
[TISSUE_NAME:wood:NP]
[TISSUE_MATERIAL:PLANT_MAT:ASH:WOOD]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[THICKENS_ON_STRENGTH]
[RELATIVE_THICKNESS:5]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[USE_MATERIAL_TEMPLATE:CLOTH:PLANT_THREAD_TEMPLATE]
[TISSUE:CLOTH]
[TISSUE_NAME:cloth:NP]
[TISSUE_MATERIAL:CLOTH]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:BODY:WOOD]
[TISSUE_LAYER:BY_TYPE:STANCE:WOOD]
[TISSUE_LAYER:BY_TYPE:LIMB:WOOD]
[TISSUE_LAYER:BY_CATEGORY:HEAD:WOOD]
[TISSUE_LAYER:BY_CATEGORY:JOINT:CLOTH]
[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:MAIN]
Logged
It's FEF, not FEOF

3

  • Bay Watcher
    • View Profile
Re: Problems with materials
« Reply #11 on: June 08, 2011, 01:54:18 pm »

Yeah, that looks like it should work.
Logged

Furtuka

  • Bay Watcher
  • High Priest of Mecha
    • View Profile
Re: Problems with materials
« Reply #12 on: June 08, 2011, 01:58:03 pm »

I just tested it in arena and the sail material still isn't working

 the error log says


WALKING_BOAT:CLOTH:Unrecognized Material Token:
WALKING_BOAT:Creature Tissue Material Failure: CLOTH:(no mat1):(no mat3):(no mat3)
Logged
It's FEF, not FEOF

3

  • Bay Watcher
    • View Profile
Re: Problems with materials
« Reply #13 on: June 08, 2011, 01:59:43 pm »

Sorry, I'm an idiot. It's THREAD_PLANT_TEMPLATE, not PLANT_THREAD_TEMPLATE.
Logged

Furtuka

  • Bay Watcher
  • High Priest of Mecha
    • View Profile
Re: Problems with materials
« Reply #14 on: June 08, 2011, 02:14:03 pm »

It still doesn't seem to be recognizing the tissue layer. Is there something I'm suppose to put after [TISSUE_MATERIAL:CLOTH?
Logged
It's FEF, not FEOF
Pages: [1] 2