Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Care to tell me what went wrong  (Read 2182 times)

UltraValican

  • Bay Watcher
  • The Man aiming to be a Man!
    • View Profile
Care to tell me what went wrong
« on: July 19, 2011, 11:54:03 am »

I'm a first time modder and I decided to create a "prehistory" df conversion mod. I tried to make a new creature but it wont show up in the arena...am I missing any tags.

Spoiler (click to show/hide)
Logged
Would you rather be an Ant in Heaven or a Man in Hell?

dree12

  • Bay Watcher
    • View Profile
Re: Care to tell me what went wrong
« Reply #1 on: July 19, 2011, 11:56:45 am »

The creature needs a name. Try adding [NAME:caveman:cavemen:caveman] to the entity. I'm not sure that's all of it though.
Logged

UltraValican

  • Bay Watcher
  • The Man aiming to be a Man!
    • View Profile
Re: Care to tell me what went wrong
« Reply #2 on: July 19, 2011, 11:58:42 am »

I thought entity was only use for for civilazations.
Logged
Would you rather be an Ant in Heaven or a Man in Hell?

Kweri

  • Bay Watcher
    • View Profile
Re: Care to tell me what went wrong
« Reply #3 on: July 19, 2011, 12:00:48 pm »

   [NAME:early_human:early_humans:early_humanl
   [CASTE_NAME:early_human:early_humans:early_humanl
Tags aren't closed - you have l instead of ] at the end.

Also, is this in its own file? If so, is the very first line of the file the name of the file (ex: creature_caveman if the file is named creature_caveman.txt).

EDIT: And just so you know, it's okay to have spaces in things like the name/caste name tags - so [NAME:early human:early humans:early human] would be fine.
« Last Edit: July 19, 2011, 12:03:40 pm by Kweri »
Logged

UltraValican

  • Bay Watcher
  • The Man aiming to be a Man!
    • View Profile
Re: Care to tell me what went wrong
« Reply #4 on: July 19, 2011, 12:11:27 pm »

Spoiler (click to show/hide)
New raws, but they still arn't showing up in the arena.
Logged
Would you rather be an Ant in Heaven or a Man in Hell?

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Care to tell me what went wrong
« Reply #5 on: July 19, 2011, 12:13:00 pm »

You need to have [OBJECT:CREATURE] after the line with the name of the file, and before the first [CREATURE:...] line.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

UltraValican

  • Bay Watcher
  • The Man aiming to be a Man!
    • View Profile
Re: Care to tell me what went wrong
« Reply #6 on: July 19, 2011, 12:18:05 pm »

Thank you, that seemed to do the trick..now time to figure out how to get fur on the little bugger...
Logged
Would you rather be an Ant in Heaven or a Man in Hell?

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Care to tell me what went wrong
« Reply #7 on: July 19, 2011, 12:18:49 pm »

If so, is the very first line of the file the name of the file (ex: creature_caveman if the file is named creature_caveman.txt).
The first line doesn't actually have to be the name of the file - it just needs to be a non-blank string.

I just tested this in Arena mode with creature_standard.txt: when the first non-blank string in the file was [OBJECT:CREATURE], none of the relevant creatures showed up, but when I added a single "a", they reappeared. It's possible that the contents of the string are important (e.g. for determining where things show up in the relevant data structures, possibly as a fix for bug 332), but it does not have to be the same as the filename.
« Last Edit: July 19, 2011, 02:02:04 pm by Quietust »
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Kweri

  • Bay Watcher
    • View Profile
Re: Care to tell me what went wrong
« Reply #8 on: July 19, 2011, 01:38:51 pm »

If so, is the very first line of the file the name of the file (ex: creature_caveman if the file is named creature_caveman.txt).
The first line doesn't actually have to be the name of the file - it just needs to be a non-blank string.

I just tested this in Arena mode with creature_standard.txt: when the first non-blank string in the file was [OBJECT:CREATURE], none of the relevant creatures showed up, but when I changed it to a simple "a", they reappeared. It's possible that the contents of the string are important (e.g. for determining where things show up in the relevant data structures, possibly as a fix for bug 332), but it does not have to be the same as the filename.
Awesomesauce; this is good to know. Would be interesting to find out just what significance the first line DOES have.
Logged

dree12

  • Bay Watcher
    • View Profile
Re: Care to tell me what went wrong
« Reply #9 on: July 20, 2011, 01:55:05 pm »

The first line is used for raw-parsing order, from testing [COPY_TAGS_FROM]. I think it's alphabetical? Here's the testing file I used:
Code: [Select]
creature_aaa

[OBJECT:CREATURE]

[CREATURE:DWARFB]
[COPY_TAGS_FROM:DWARF]
and
Code: [Select]
creature_zzz

[OBJECT:CREATURE]

[CREATURE:DWARFB]
[COPY_TAGS_FROM:DWARF]
in a file named creature_dwarf2. The first one fails, the second one works.
Logged

thatkid

  • Bay Watcher
  • <Servibot> thatkid, swag percentiles: 94
    • View Profile
Re: Care to tell me what went wrong
« Reply #10 on: July 20, 2011, 03:01:58 pm »

The first line is used for raw-parsing order, from testing [COPY_TAGS_FROM]. I think it's alphabetical? Here's the testing file I used:
Code: [Select]
creature_aaa

[OBJECT:CREATURE]

[CREATURE:DWARFB]
[COPY_TAGS_FROM:DWARF]
and
Code: [Select]
creature_zzz

[OBJECT:CREATURE]

[CREATURE:DWARFB]
[COPY_TAGS_FROM:DWARF]
in a file named creature_dwarf2. The first one fails, the second one works.
The fact that COPY_TAGS_FROM only works if the tags being copied have been parsed first, and the fact that the first line decides parsing order, should probably be put in the wiki somewhere if it isn't already.
Logged
Fame is a vapor. The only earthly certainty is oblivion.

dree12

  • Bay Watcher
    • View Profile
Re: Care to tell me what went wrong
« Reply #11 on: July 21, 2011, 05:17:50 pm »

I would, but the modding section is a gigantic mess. It's less useful then the forums and the game itself for modding advise, unfortunately. There is an arcane naming system, units are as inconsistant as the old English System, there are a lot of inaccuracies, and the organization is suboptimal. I might put some work into it soon, but really it would be easier to scrap the entire thing.

Do you actually find the modding wiki section useful in any way? I certainly don't. (end tangent)
Logged