Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Integrating a species from one mod into another mod  (Read 1190 times)

Elvin

  • Bay Watcher
    • View Profile
Integrating a species from one mod into another mod
« on: July 18, 2009, 02:36:54 pm »

I want to try and put the Terrifying Goblins from the " A better Goblin Mod" into the regular Civilisation Forge mod. I had already modded in Orcs, but the files they used didn't require modifications to the creature_standard and entity_default files.

The main problem here is I don't want to remove the original goblins, I want to keep them and add in Terrifying Goblins ontop, so I get a whole different species. If it wasn't, I would simply overwrite the files, but that is not what I want to do.

Thanks for any advice.
Logged

Lordinquisitor

  • Bay Watcher
  • Innocence proves nothing.
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #1 on: July 18, 2009, 03:14:58 pm »

By modded in orcs you mean copy&paste?

Well in this case you simply need to do the same.
Logged

Elvin

  • Bay Watcher
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #2 on: July 18, 2009, 04:30:41 pm »

That doesn't work in this case though because the files for the Orcs were language_Orcs and creature_orcs. The two files that come with the goblins download are creature_standard and entity_default. Do I have to extract the Goblin parts from both files, and copy+paste them into my existing files of the same name?
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #3 on: July 18, 2009, 04:53:14 pm »

Correct.
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.

blah28722

  • Bay Watcher
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #4 on: July 18, 2009, 10:07:26 pm »

You'd grab the goblin entry in creature_standard and paste it into creature_goblin_terrifying, the [ENTITY:EVIL] entry from entity_defaults to entity_goblin_terrifying.

It'd look something like this:

creature_goblin_terrifying.txt
Code: [Select]
creature_goblin_terrifying

[OBJECT:CREATURE]

<Copy and pasted code for goblins here>

entity_goblin_terrifying.txt
Code: [Select]
entity_goblin_terrifying

[OBJECT:ENTITY]

<Copy and pasted code for goblins' civilization here>
Logged

Elvin

  • Bay Watcher
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #5 on: July 19, 2009, 04:06:23 am »

Thanks, it all works now ;D
Logged

Dohon

  • Bay Watcher
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #6 on: July 21, 2009, 05:07:34 am »

But can those goblins be added to the entity_default and the creature_standard too? Or is it better to use a seperate creature_newgoblin and and entity_newgoblin?

NINJA EDIT: And say that you want to add two new species (A en B). Do you have to create a entity_a and entity_b? Or can stick both A and B in a entity_ab file? Or can they all be added to the entity_default file?
« Last Edit: July 21, 2009, 05:10:28 am by Dohon »
Logged
Quote from: Lolfail0009
Quote from: GuesssWho
Also, why is there a stray hen having a tantrum?
CLUCK CLUCK MOTHERF***ER

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #7 on: July 21, 2009, 05:12:27 am »

It doesn't matter as long as they have various names for CREATURE:# and ENTITY:*. # and * should be unique, that's the main rule. If you simply copy [ENTITY:EVIL] from one mod to another the second one will overwrite the first. If you change it to [ENTITY:EVIL2] or something, it's ok. Same for [CREATURE:GOBLIN].

P.S. It's good to check errorlog.txt located in your DF folder.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

blah28722

  • Bay Watcher
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #8 on: July 21, 2009, 05:24:57 am »

But can those goblins be added to the entity_default and the creature_standard too? Or is it better to use a seperate creature_newgoblin and and entity_newgoblin?

NINJA EDIT: And say that you want to add two new species (A en B). Do you have to create a entity_a and entity_b? Or can stick both A and B in a entity_ab file? Or can they all be added to the entity_default file?

Yes to both.

Those would all work.
Logged

Dohon

  • Bay Watcher
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #9 on: July 21, 2009, 05:29:26 am »

Cheers for the reply, Deon and blah28722!
Logged
Quote from: Lolfail0009
Quote from: GuesssWho
Also, why is there a stray hen having a tantrum?
CLUCK CLUCK MOTHERF***ER

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #10 on: July 21, 2009, 05:31:44 am »

File structure doesn't matter anything as long as you put correct things in correct places (i.e. you don't try to put a creature in item file and vise versa). It's for your organizing pleasure and for ease of "modular" mods (which can be put/removed at will without affecting other files).

Personally I think it's better to put additions in separate files, because this way it's easier to tweak them/spot errors without touching the main content. However it's not necessary.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Dohon

  • Bay Watcher
    • View Profile
Re: Integrating a species from one mod into another mod
« Reply #11 on: July 23, 2009, 05:51:41 am »

I'm also in favour of seperate files. Allows for some handy switching.

Does DF require a "entity_default" file? Or will it work if you only use "entity_a" "entity_b" and so on?
Logged
Quote from: Lolfail0009
Quote from: GuesssWho
Also, why is there a stray hen having a tantrum?
CLUCK CLUCK MOTHERF***ER