Bay 12 Games Forum

Please login or register.

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

Author Topic: Where did I go wrong?  (Read 1946 times)

coolguy1351

  • Bay Watcher
    • View Profile
Where did I go wrong?
« on: May 24, 2011, 04:48:54 pm »

In trying to learn to mod, I made my first creature from scratch. I can't figure out what I need to do. Every time I bring it up in Arena Mode, my game crashes. Help?

Code: [Select]
[CREATURE:BULLDOZER]
[DESCRIPTION:A large, sentient, steel machine, capable of

flattening both terrain and fellow creatures.]
[NAME:bulldozer:bulldozers:bulldozer]
[CASTE_NAME:bulldozer:bulldozers:bulldozer]
[BODY:PLOW:ENGINE_FRAME:ENGINE:FRAME:WHEEL:CABIN:GAS_TANK]
[TISSUE:STEEL]
[TISSUE_NAME:steel:steel]
[TISSUE_MATERIAL:INORGANIC:STEEL]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:ALL:STEEL]
[BODY_SIZE:0:0:2000000]
[BODY_APPEARANCE_MODIFIER:HEIGHT:50:65:78:90:102:105:110]
[ATTACK:PLOW:PLOW:
[CHILD:1][GENERAL_CHILD_NAME:bulldozling:bulldozlings]
[CREATURE_TILE:'B'][COLOR:6:0:1]
[PREFSTRING:landscaping abilities]
[DIURNAL]
[LARGE_ROAMING]
[ALL_ACTIVE]
[BLOOD:7:LIQUID]
[BENIGN]
[BIOME:ANY_LAND]
[UTTERANCES]
[PRONE_TO_RAGE:10]
[NO_DRINK]
[NO_EAT]
[NO_SLEEP]
[NOBREATHE]
[NOEXERT]
[NOFEAR]
[NOMEAT]
[NOPAIN]
[NONAUSEA]
[NOSKIN]
[NOSMELLYROT]
[NOSTUN]
[MOUNT]
[MEGABEAST][DIFFICULTY:5]
[ATTACK_TRIGGER:80:10000:100000]
[ATTACK:PLOW:BODYPART:BY_CATEGORY:PLOW]
[ATTACK_SKILL:POETRY]
[ATTACK_VERB:plow:plows]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PRIORITY:MAIN]
[FANCIFUL]
[EXTRAVISION]
[NOEMOTION]
[BUILDINGDESTROYER:2]
[LAYS_UNUSUAL_EGGS:TRAPPARTS]
[LIGHT_GEN]
[LITTERSIZE:1:1]
[ITEMCORPSE:STATUE:NO_SUBTYPE:INORGANIC:STEEL]
Logged

dUMBELLS

  • Bay Watcher
  • Legendary Misc. Object User (RUSTY)
    • View Profile
Re: Where did I go wrong?
« Reply #1 on: May 24, 2011, 04:54:01 pm »

Code: [Select]
[ATTACK:PLOW:PLOW:
Logged

Kweri

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #2 on: May 24, 2011, 04:54:57 pm »

What does errorlog.txt say? It should be in your base DF directory.

Right away I see you have "[ATTACK:PLOW:PLOW:" right after the height modifier line. That open tag might be causing issues.

I noticed you have a littersize tag - if you want your creature to breed, keep in mind you will need a CHILD tag (to tell the game when your creature grows to an adult) and I believe males and females.
Logged

coolguy1351

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #3 on: May 24, 2011, 05:04:06 pm »

I took out the "[ATTACK:PLOW:PLOW:" and the littersize tag, but I'm still crashing. Here's the Error Log:
Code: [Select]
BULLDOZER:Body Token Recognized But Could Not Connect: PLOW
BULLDOZER:Body Token Recognized But Could Not Connect: ENGINE_FRAME
BULLDOZER:Body Token Recognized But Could Not Connect: ENGINE
BULLDOZER:Body Token Recognized But Could Not Connect: FRAME
BULLDOZER:Body Token Recognized But Could Not Connect: WHEEL
BULLDOZER:Body Token Recognized But Could Not Connect: CABIN
BULLDOZER:Body Token Recognized But Could Not Connect: GAS_TANK
BULLDOZER:Tissue layer not added because no BP found: BY_CATEGORY:ALL:STEEL
BULLDOZER:Attack PLOW seems to have correct format but could not find proper BPs in any caste, so not added
Logged

Necro910

  • Bay Watcher
  • Legendary Drunk +5
    • View Profile
Re: Where did I go wrong?
« Reply #4 on: May 24, 2011, 05:09:27 pm »

...
You are using body parts that don't exist.
Quote
[BODY:PLOW:ENGINE_FRAME:ENGINE:FRAME:WHEEL:CABIN:GAS_TANK]
None of those are body parts. The reason things like 2EYES are in there, is because it is refering to a set of bodyparts in a body_* file.

coolguy1351

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #5 on: May 24, 2011, 05:15:08 pm »

Ah, but you, see, I made them. Right here in body_default.txt:
Code: [Select]
[BODY:PLOW]
[BP:PLOW:plow:STP][CONTYPE:HEAD][MOUTH][CON:ENGINE_FRAME]
[DEFAULT_RELSIZE:450]

[BODY:ENGINE_FRAME]
[BP:ENGINE_FRAME:engine frame:STP][CONTYPE:HEAD][SKELETON][CON:ENGINE_FRAME][CON:ENGINE]
[DEFAULT_RELSIZE:350]

[BODY:ENGINE]
[BP:ENGINE:engine:STP][CON:ENGINE_FRAME][INTERNAL][NERVOUS]
[DEFAULT_RELSIZE:300]

[BODY:FRAME]
[BP:FRAME:frame:STP][CON:ENGINE][CON:WHEEL][CON:CABIN][CON:GAS_TANK][SKELETON][CONNECTOR]
[DEFAULT_RELSIZE:750]

[BODY:WHEEL]
[BP:RF:right front wheel:STP][CON:FRAME][LIMB][STANCE][RIGHT][SOCKET]
[DEFAULT_RELSIZE:250]
[BP:RR:right rear wheel:STP][CON:FRAME][LIMB][STANCE][RIGHT][SOCKET]
[DEFAULT_RELSIZE:250]
[BP:LF:left front wheel:STP][CON:FRAME][LIMB][STANCE][LEFT][SOCKET]
[DEFAULT_RELSIZE:250]
[BP:LR:left rear wheel:STP][CON:FRAME][LIMB][STANCE][LEFT][SOCKET]
[DEFAULT_RELSIZE:250]

[BODY:CABIN]
[BP:CABIN:cabin:STP][CON:FRAME][THOUGHT][SIGHT][HEAD]
[DEFAULT_RELSIZE:400]
[BODY:GAS_TANK]
[BP:GAS_TANK:gas tank:STP][CON:FRAME][BREATHE]
[DEFAULT_RELSIZE:175]
Logged

Kweri

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #6 on: May 24, 2011, 05:28:56 pm »

I think you need some kind of base bodypart. Right now I think the way you're using connector tags is what's throwing errors.

For example, you have Frame (which seems like it would be a good "base" bodypart).

Connectors aren't "these two things are connected" so much as "stick one of these onto each of the things it connects to".

With Frame and Cabin for instance, Cabin is connected to Frame. That's fine and makes sense - stick a cabin onto the Frame body part.

But the Frame body part has connections to Cabin and others, so the game is trying to stick a Frame onto each of those parts.

I'd try treating the Frame part as a "base" part and take off all of its connections - [BP:FRAME:frame:STP][SKELETON][CONNECTOR]

Now when the game tries to build your creature you start with a frame, and then each bodypart with CON:FRAME gets attached to the frame.

EDIT: Might be a good idea to stick [UPPERBODY] and [LOWERBODY] on FRAME as well, though I am not sure if this is necessary.

EDIT2: Looked over your bodyparts and there are others that are connected to something that connects to them. Pretty sure that's causing problems. PLOW is connected to anything that's a HEAD and also the Engine Frame, Engine Frame is connected to anything that's a HEAD and itself and the engine (eep, connecting to itself definitely isn't good).
« Last Edit: May 24, 2011, 05:34:56 pm by Kweri »
Logged

coolguy1351

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #7 on: May 24, 2011, 05:32:35 pm »

Thanks, I'll try that. And no, UPPERBODY and LOWERBODy just control armor, I believe. I don't want my bulldozer wearing a thong. =P
Logged

coolguy1351

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #8 on: May 24, 2011, 05:35:02 pm »

Hey, it worked! Thanks a ton. Now to stop it from using wrestling moves...
Logged

Kweri

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #9 on: May 24, 2011, 05:38:16 pm »

LIMB and GRASP parts allow a creature to initiate wrestling moves with them. Try removing those tags from bodyparts?
Logged

coolguy1351

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #10 on: May 24, 2011, 05:38:59 pm »

That did the trick. But my cutom attack doesn't seem to be working right. It says they're pushing each other, not plowing. And the attacks are very weak. How would I make it more powerful?
Logged

Kweri

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #11 on: May 24, 2011, 05:41:07 pm »

You have the attack as
Code: [Select]
[ATTACK:PLOW:BODYPART:BY_CATEGORY:PLOW]
Your have no bodyparts with the category:PLOW. I think adding [CATEGORY:PLOW] to the plow body part should do what you want it to do.

EDIT: Alternately, change it to ATTACK:PLOW:BODYPART:BY_TOKEN:PLOW to choose the body part used by its token instead of adding the category to the part.
« Last Edit: May 24, 2011, 05:42:41 pm by Kweri »
Logged

coolguy1351

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #12 on: May 24, 2011, 05:44:31 pm »

Ahh, thanks! How would I make it more deadly?

EDIT: That didn't change it, it still says pushes.
« Last Edit: May 24, 2011, 05:47:56 pm by coolguy1351 »
Logged

Kweri

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #13 on: May 24, 2011, 05:51:14 pm »

The attack or the creature in general?

Increasing the size of the relative size of the plow part should make it use up more of your creature's mass, so the attack should hurt more. Increasing the total size of the creature would also increase the plow size. You could try fiddling around with the attack velocity but I'm not sure what number range you should be trying - ATTACK_VELOCITY_MODIFIER at http://df.magmawiki.com/index.php/Creature_token#Attack_Tokens . It uses the poetry skill for its attack (hehe, really, poetry?), maybe try to give it some natural skill in poetry so it should start off better with that attack.
Logged

Kweri

  • Bay Watcher
    • View Profile
Re: Where did I go wrong?
« Reply #14 on: May 24, 2011, 05:54:03 pm »

EDIT: That didn't change it, it still says pushes.
Can you post what you currently have for the attack and the plow body part? Not sure what's changed in either of them since you first posted what you had.

Random thing I noticed in your creature - [BLOOD:7:LIQUID]. I think you're trying to give it coal blood? I think that needs to change to BLOOD:COAL:?:LIQUID - unsure if ? can be NONE, material page says COAL takes COKE or CHARCOAL as a subtype so it probably needs to be one of those. Not sure if coke/charcoal have a liquid state defined, either (pretty sure they're hardcoded).
« Last Edit: May 24, 2011, 06:04:15 pm by Kweri »
Logged
Pages: [1] 2