Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: What is wrong with my custom creature?  (Read 782 times)

Prey King

  • Bay Watcher
    • View Profile
What is wrong with my custom creature?
« on: June 24, 2009, 02:22:41 am »

Recently I set out on an epic journey, one to create my own creature with no real base. I just finished the basic body and made an entity for it so that I could test it. I launched the game, everything turned out okay, then I started in a town belonging to it, and every single one collapsed to the ground and became winded, before soon suffocating.

Here is the code for their body and creature files:

Code: [Select]
[BODY:NEWCREATUREMAIN]
[BP:UB:upper body]
[BP:REALUB:primary energy connection][UPPERBODY][SKELETON]
[BP:LB:lower body][CON:REALUB][LOWERBODY]
[BP:NECK:torso-head connector][CON:UB][SKELETON][THROAT][BREATHE]
[BP:HD:head][CON:NECK]
[BP:RA1:right arm connector][CON:UB][SKELETON][RIGHT]
[BP:LA1:left arm connector][CON:UB][SKELETON][LEFT]
[BP:RA2:right arm][CON:RA1][LIMB][RIGHT]
[BP:LA2:left arm][CON:LA1][LIMB][LEFT]
[BP:RH:right hand][CON:RA2][GRASP][RIGHT]
[BP:LH:left hand][CON:LA2][GRASP][LEFT]
[BP:RL1:right leg connector][CON:LB][SKELETON][RIGHT]
[BP:LL1:left leg connector][CON:LB][SKELETON][LEFT]
[BP:RL2:right leg][CON:RL1][LIMB][RIGHT]
[BP:LL2:right leg][CON:LL1][LIMB][LEFT]
[BP:RF:right foot][CON:RL2][STANCE][RIGHT]
[BP:LF:left foot][CON:LL2][STANCE][LEFT]

Code: [Select]
[CREATURE:NEWCREAT]
[NAME:energy thing:energy things:energy thing]
[TILE:'U'][COLOR:3:0:0]
[GENPOWER:3]
[INTELLIGENT]
[CANOPENDOORS]
[BENIGN]
[PREFSTRING:stature]
[BODY:NEWCREATUREMAIN:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:5FINGERS:5TOES:MOUTH]
[SIZE:15]
[MAXAGE:100:210]
[ATTACK:SECOND:BYTYPE:GRASP:punch:punches:6:12:BLUDGEON][ATTACKFLAG_WITH]
[ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:5:10:GORE][ATTACKFLAG_CANLATCH]
[CHILD:18][BABY:1]
[FAT:3]
[EQUIPS]
[DIURNAL]
                [TRANCES]
                [NOBLEED]
                [SEVERONBREAKS]
[SPEECH_MALE:human_male.txt]
[STANDARD_FLESH]
[HOMEOTHERM:10067]
[LAYERING:10]
[SWIMS_LEARNED][SWIM_SPEED:2500]
[MUNDANE]
                [CURIOUSBEAST_ITEM]
Logged
ill grins stupidly. As he aims the X-ray machine at his balls, he remembers all the fun times he had with his family. Fun for THEM. He shoots the machine at his area, which promptly is reduced to a pile of radioactive cinders. Will seems to think this is

Blargityblarg

  • Bay Watcher
  • rolypolyrolypolyrolypoly
    • View Profile
Re: What is wrong with my custom creature?
« Reply #1 on: June 24, 2009, 04:34:17 am »

Lungs, matey. That or [NOBREATH], I think.
Logged
Blossom of orange
Shit, nothing rhymes with orange
Wait, haikus don't rhyme

Samus1111111

  • Bay Watcher
    • View Profile
Re: What is wrong with my custom creature?
« Reply #2 on: June 24, 2009, 06:44:32 am »

he has 2 lungs. I would add [NOBREATH] to fix that problem just like Blargityblarg said.
Logged

Greiger

  • Bay Watcher
  • Reptilian Illuminati member. Keep it secret.
    • View Profile
Re: What is wrong with my custom creature?
« Reply #3 on: June 24, 2009, 10:20:33 am »

It might be getting confused, yer head body entry does not seem to actually have a head tag.

Code: [Select]
[BP:HD:head][CON:NECK][HEAD]
should fix that.  If that's what's causing the issue though, I'm not sure.
Logged
Disclaimer: Not responsible for dwarven deaths from the use or misuse of this post.
Quote
I don't need friends!! I've got knives!!!

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: What is wrong with my custom creature?
« Reply #4 on: June 24, 2009, 10:25:42 pm »

Right now your upper body part has no connections. This can cause the game to glitch. Also, the game tends to glitch, causing creatures to suffocate, if it tries to add a part before the part to which it is connected. It will still work fine in-game except that they always keel over and suffocate. I have had that happen to me several times. Your problem is that your head is connected to your neck, but the neck body part has not been added yet. This would cause this glitch to appear. Also, the [HEAD] tag is not required, that isn't the problem, but you should add it because if not your eyes, mouth, ears, and nose will not be attached. One last thing that I decided not to fix below is that at the moment all of your organs are attached to the [UPPERBODY] tag, not the  UB body token. This means that your upper spine, your heart, and the other organs are all connected to the energy connector. You could fix that problem by creating a second set, and replacing all of the tag [CONTYPE:UPPERBODY] with [CON:UB]

As this is all pretty confusing, I also added a changed version below.

Body
Spoiler (click to show/hide)

Creature
Spoiler (click to show/hide)
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Prey King

  • Bay Watcher
    • View Profile
Re: What is wrong with my custom creature?
« Reply #5 on: June 25, 2009, 03:45:44 am »

Thanks, man! You're a great help. ;D
Logged
ill grins stupidly. As he aims the X-ray machine at his balls, he remembers all the fun times he had with his family. Fun for THEM. He shoots the machine at his area, which promptly is reduced to a pile of radioactive cinders. Will seems to think this is