Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Question related to entity and creature files.  (Read 450 times)

Vessol

  • Bay Watcher
    • View Profile
    • http://www.armageddon.org
Question related to entity and creature files.
« on: March 02, 2009, 01:49:43 pm »

I have a brief question.

I'm worked on a mod and created a few new races as well as new civilizations.

I made one file entity_blah and the other creature_blah. I then deleted entity_default and removed the vanilla races from creature_standard. It gave me an issue with being able to find a civilization on world gen.
I changed entity_blah to entity_default and added creature_blah to the rest of creature_standard.

Is there a way around this? As I was hoping to have separate entity_ files for different civilizations.
Logged

Tellemurius

  • Bay Watcher
  • Positively insane Tech Thaumaturgist
    • View Profile
Re: Question related to entity and creature files.
« Reply #1 on: March 02, 2009, 02:09:14 pm »

there isn't really the entity file searcher in the game is hardcoded so u have to use creature_standard and entity_default. the only way to separate your civs would be like using a text editor sorter.

Mephansteras

  • Bay Watcher
  • Forger of Civilizations
    • View Profile
Re: Question related to entity and creature files.
« Reply #2 on: March 02, 2009, 02:19:07 pm »

You can definitely have separate Creature and Entity files.

There are a few things that could have caused your problem:

1) All files MUST start with entity_, creature_, etc.
2) In the file, you need to start off with the name of the file, and then the entry types. For example:
Code: [Select]
entity_new

[OBJECT:ENTITY]

3) You need to have at least one civ that's set as controllable. Dwarves currently have it, and you'll need to give whatever your new default civ(s) this tag as well. Just put [CIV_CONTROLLABLE] in the civ's entry in the entity file.
Logged
Civilization Forge Mod v2.80: Adding in new races, equipment, animals, plants, metals, etc. Now with Alchemy and Libraries! Variety to spice up DF! (For DF 0.34.10)
Come play Mafia with us!
"Let us maintain our chill composure." - Toady One

Vessol

  • Bay Watcher
    • View Profile
    • http://www.armageddon.org
Re: Question related to entity and creature files.
« Reply #3 on: March 02, 2009, 02:31:53 pm »

Thanks Mephansteras. It worked perfectly for me. I remember what my problem was too. I forgot to have creature_blah at the top of the file instead of creature_standard, has to match the filename.
Logged