Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Problem with my first creature.  (Read 791 times)

radicalaces

  • Bay Watcher
    • View Profile
Problem with my first creature.
« on: August 09, 2009, 02:22:15 pm »

I was messing around with modding today for the first time, this might be a completely stupid question, but I can't seem to get my creature's body to work

I made creature_duneworm

creature_duneworm

[OBJECT:CREATURE]

[CREATURE:WORM_DUNE]
[NAME:duneworm:duneworms:duneworm]
[TILE:'~'][COLOR:7:0:2]
[PREFSTRING:ferocious nature]
[PREFSTRING:large body]
[COMMON_DOMESTIC][trAINABLE][PET]
[BODY::TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]
[ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:1:6:GORE][ATTACKFLAG_CANLATCH]
[LARGE_ROAMING]
[POPULATION_NUMBER:15:30]
[SIZE:16]
[FAT:2]
[SWIMS_LEARNED][SWIMSPEED:2500]
[BIOME:DESERT_BADLAND]
[BIOME:DESERT_ROCK]
[BIOME:DESERT_SAND]
[STANDARD_FLESH]
[HOMEOTHERM:10067]

--------

and I made body_duneworm.txt

----------

creature_duneworm

[OBJECT:BODY]

[BODY:duneworm
[BP:UB:upper body][UPPERBODY][LOWERBODY]
[BP:LB:lower body][CON:UB][LOWERBODY]
[BP:TAILT:tail][CONTYPE:LOWERBODY][liMB]

[BODY:HEAD]
« Last Edit: August 09, 2009, 08:28:18 pm by radicalaces »
Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: Problem with my first creature.
« Reply #1 on: August 09, 2009, 02:35:27 pm »

I don't really know enough about modding to say all of what's wrong here (check the wiki), but here are a couple things:

  • You're defining a BODY:DUNEWORM but you never actually use it in your creature definition.
  • You have SWIMS_LEARNED but the creature can't learn.
  • You seem to have a few typos in general. Check your code.
  • I'm not sure what the BODY:HEAD tag is, but it looks wrong.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

radicalaces

  • Bay Watcher
    • View Profile
Re: Problem with my first creature.
« Reply #2 on: August 09, 2009, 03:11:50 pm »

I changed the creature name from WURM_DUNE to DUNEWORM and it still doesn't work, the body only shows a tail and gives it the status "winded"
Also I removed swim.
Logged

Obsidean_00

  • Bay Watcher
    • View Profile
Re: Problem with my first creature.
« Reply #3 on: August 09, 2009, 04:29:55 pm »

Well your main body should look like:

[BODY:WORMBODY]
[BP:UB:upper body][UPPERBODY][LOWERBODY]
[BP:LB:lower body][CON:UB][LOWERBODY]
[BP:TAIL:tail][CONTYPE:LOWERBODY][liMB]

As for this line of the creature:

[BODY::TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]

it should be:
[BODY:WORMBODY:TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]

Assuming you have named the duneworm's body WORMBODY.

It doesn't need
[SWIMS_LEARNED][SWIMSPEED:2500]

Because quite simply it can't learn.

I believe you are trying to make the creature burrow through the ground, which I have to unfortunately inform you at this time is impossible.
« Last Edit: August 09, 2009, 04:35:30 pm by Obsidean_00 »
Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: Problem with my first creature.
« Reply #4 on: August 09, 2009, 06:40:12 pm »

Yeah, you have to explicitly state which body definition it's using. If it just matched the creature name to a body type name, you wouldn't be able to have more than one humanoid creature with the same body type.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

radicalaces

  • Bay Watcher
    • View Profile
Re: Problem with my first creature.
« Reply #5 on: August 09, 2009, 07:22:39 pm »

Thanks for the replies, I'm going to try and fix that now, though I suspect I'm going to fuck it up again.

Now it's not showing up on the embark screen

[OBJECT:CREATURE]

[CREATURE:DUNEWORM]
[NAME:duneworm:duneworms:duneworm]
[TILE:'~'][COLOR:7:0:2]
[PREFSTRING:ferocious nature]
[PREFSTRING:large body]
[COMMON_DOMESTIC][trAINABLE][PET]
[BODY::TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]
[ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:1:6:GORE][ATTACKFLAG_CANLATCH]
[LARGE_ROAMING]
[POPULATION_NUMBER:15:30]
[SIZE:16]
[FAT:2]
[BIOME:DESERT_BADLAND]
[BIOME:DESERT_ROCK]
[BIOME:DESERT_SAND]
[STANDARD_FLESH]
[HOMEOTHERM:10067]

---------------------------------

creature_duneworm

[OBJECT:BODY]

[BODY:WORMBODY]
[BP:UB:upper body][UPPERBODY][LOWERBODY]
[BP:LB:lower body][CON:UB][LOWERBODY]
[BP:TAIL:tail][CONTYPE:LOWERBODY][liMB]
« Last Edit: August 09, 2009, 07:30:28 pm by radicalaces »
Logged

RebelZhouYuWu

  • Bay Watcher
    • View Profile
Re: Problem with my first creature.
« Reply #6 on: August 09, 2009, 09:46:32 pm »

If I remember correctly, unless you are embarking in a desert you won't see this in embark screen because you don't have access to it.
Logged

radicalaces

  • Bay Watcher
    • View Profile
Re: Problem with my first creature.
« Reply #7 on: August 09, 2009, 09:50:34 pm »

I think the common domestic removes that, but if it doesn't I just tried settling in a desert on a freshly generated world and it still didn't work.

 ???

Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Problem with my first creature.
« Reply #8 on: August 09, 2009, 10:37:45 pm »

Again, where do you use your "WORMBODY"? I see you start with a tail. Read the posts above please, they explain your problem.
Also you have two ":" after "[BODY".
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Captain Mayday

  • Bay Watcher
  • A Special Kind of Terrible
    • View Profile
Re: Problem with my first creature.
« Reply #9 on: August 10, 2009, 11:13:23 am »

Again, where do you use your "WORMBODY"? I see you start with a tail. Read the posts above please, they explain your problem.
Also you have two ":" after "[BODY".

I suspect that's where the WORMBODY is supposed to be located.

Also, your 'head' body part... it won't work. You need to assign [HEAD] to the upperbody, unless you actually want a separate head part. Otherwise your creature's brain, eyes, blah blah blah... it'll be all over the ground, and none of us want to clean that kind of mess up.
Logged
Why not join us on IRC? irc.newnet.net #bay12games

Glowcat

  • Bay Watcher
    • View Profile
Re: Problem with my first creature.
« Reply #10 on: August 10, 2009, 01:29:07 pm »

and I made body_duneworm.txt

----------
creature_duneworm

[OBJECT:BODY]

...


I'm pretty sure those have to be the same thing (and different than your creature file).
Logged
Totally a weretrain. Very much trains!
I'm going to steamroll this house.

Captain Mayday

  • Bay Watcher
  • A Special Kind of Terrible
    • View Profile
Re: Problem with my first creature.
« Reply #11 on: August 10, 2009, 01:30:39 pm »

and I made body_duneworm.txt

----------
creature_duneworm

[OBJECT:BODY]

...


I'm pretty sure those have to be the same thing (and different than your creature file).

Yes it does. And it needs to have the file name, sans the .txt extension, written at the top.
Logged
Why not join us on IRC? irc.newnet.net #bay12games

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Problem with my first creature.
« Reply #12 on: August 10, 2009, 04:03:18 pm »

Oh, I somehow missed it. Yes, it should be "body_duneworm".
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository