Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: So I'm new to DF modding, am I doing this right?  (Read 926 times)

rwilliams

  • Bay Watcher
    • View Profile
So I'm new to DF modding, am I doing this right?
« on: February 01, 2010, 06:38:19 pm »

So I played with Chariot's zoo mod and I really liked it, so I decided I would try to make a mod that had even more creatures, imaginary creatures, and the more I thought about it, the more I thought it would be cool if I only included animals from video games. Imagine: a dwarf wearing pikachu leather armor kills a goomba which turns into a plump helmet. So I looked at the wiki, but I just wanted to make sure what I'm doing is right before I get carried away and make a whole bunch of mistakes. Here's what I've done so far:

creature_videogame

[OBJECT:CREATURE]

[CREATURE:PIKACHU]
   [BODY:HUMANOID:TAIL:2EYES:2EARS:2LUNGS:HEART:GUTS:SPINE:BRAIN]
   [NAME:pikachu:pikachus:pikachu]
   [TILE:p][COLOR:6:0:1]
   [FREQUENCY:50]
   [SMALL_REMAINS]
   [NATURAL]
   [PET]
   [SPEED:3000]
   [PETVALUE:200]
   [PREFSTRING:cuteness]
   [ALL_ACTIVE]
   [BIOME:ANY_FOREST]
   [trIGGERABLE_GROUP:5:50]
   [STANDARD_FLESH]
   [HOMEOTHERM:10067]
   [LAYERING:100]
   [POPULATION_NUMBER:10:30]
   [CHILD:2]
   [CHILDNAME:pichu:pichus]
   [FLEEQUICK]
   [GRASSTRAMPLE:0]
   [LARGE_ROAMING]
   [liTTERSIZE:1:4]
   [trAINABLE]
   [VERMIN_HATEABLE]
   [ATTACK:MAIN:BYTYPE:GRASP:punch:punches:1:4:BLUDGEON]
   [SIZE:2]

If I save this as a .txt, put it in my raw folder, and generate a new world, it should be populated with pikachus, right? Is there a way to observe my creatures' behavior in game other than adventure mode or starting a new fort and hoping one shows up?

Thanks.
Logged

Tropico

  • Bay Watcher
  • ... and benevolent, too!
    • View Profile
Re: So I'm new to DF modding, am I doing this right?
« Reply #1 on: February 01, 2010, 06:50:58 pm »

[trAINABLE] is incorrect, Although I seem to remember that the forum has trouble with capitalization, so it may not be you

also, what I find to be a neat little trick is instead of making a new creature from scratch, I simply find a creeature that is similar to the one I want to make and input the sections that I want to change to make my new creature unique. It saves time, and mistakes.
Logged

profit

  • Bay Watcher
  • Finely Crafted Engravings... Or it didn't happen.
    • View Profile
Re: So I'm new to DF modding, am I doing this right?
« Reply #2 on: February 01, 2010, 07:17:36 pm »

I think it is alright, however you really need to place it into a code block, or something like that because the forum ruins the capitalization otherwise, and we cannot say 100% it works because we have to repair minor things.

Just an FYI though...
there is a Pokemon mod =)

Its called dwarvmon and you can find it here -> http://www.bay12games.com/forum/index.php?topic=42027.0


« Last Edit: February 01, 2010, 07:19:20 pm by profit »
Logged
Mods and the best utilities for dwarf fortress
Community Mods and utilities thread.

rwilliams

  • Bay Watcher
    • View Profile
Re: So I'm new to DF modding, am I doing this right?
« Reply #3 on: February 01, 2010, 07:55:24 pm »

Code: [Select]
creature_videogame

[OBJECT:CREATURE]

[CREATURE:PIKACHU]
   [BODY:HUMANOID:TAIL:2EYES:2EARS:2LUNGS:HEART:GUTS:SPINE:BRAIN]
   [NAME:pikachu:pikachus:pikachu]
   [TILE:p][COLOR:6:0:1]
   [FREQUENCY:50]
   [SMALL_REMAINS]
   [NATURAL]
   [PET]
   [SPEED:3000]
   [PETVALUE:200]
   [PREFSTRING:cuteness]
   [ALL_ACTIVE]
   [BIOME:ANY_FOREST]
   [TRIGGERABLE_GROUP:5:50]
   [STANDARD_FLESH]
   [HOMEOTHERM:10067]
   [LAYERING:100]
   [POPULATION_NUMBER:10:30]
   [CHILD:2]
   [CHILDNAME:pichu:pichus]
   [FLEEQUICK]
   [GRASSTRAMPLE:0]
   [LARGE_ROAMING]
   [LITTERSIZE:1:4]
   [TRAINABLE]
   [VERMIN_HATEABLE]
   [ATTACK:MAIN:BYTYPE:GRASP:punch:punches:1:4:BLUDGEON]
   [SIZE:2]

Is that right?
That's so weird about the caps.

Quote
Just an FYI though...
there is a Pokemon mod =)

Yeah, I saw that after I came up with the idea. I still want to do it though, just for fun. And I'm hoping to add a lot more than pokemon. :p

But what I'm most concerned with is testing what I've done in the game. I wish there was some way to "open up the console" and spawn a creature?
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: So I'm new to DF modding, am I doing this right?
« Reply #4 on: February 02, 2010, 06:40:04 am »

The easiest way for now to test creatures is to make an "empty" entity which is not spawned but allows you to play creatures.

Example (in entity_default.txt or any other entity_***.txt file):
Code: [Select]
[ENTITY:CREATURE1]
  [CREATURE:CREATURE1]
  [INDIV_CONTROLLABLE]
This will allow you yo play this creature via "Play Now!" option.

Next version allows you to freely spawn creatures in "Arena Mode" to test, so Toady One solved it already.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: So I'm new to DF modding, am I doing this right?
« Reply #5 on: February 02, 2010, 10:15:12 am »

Does it really need the VERMIN_HATEABLE? lol and TRIGGERABLE_GROUP is for vermin, for adventure mode, and in rare cases fortress mode (You disturb a large group of rats "from 5 to 50 rats are spwaned at place") dragon and fire flies are good examples as in fortress mode likes to you them as triggerable groups, large_roaming does not use this because they are spawned at map edge.

I don't know if SMALL_REMAINS work for large creatures?

but other then that the creature looks good, I know I have a desert creature that never shows up but its alive and there are thousands of them, but all i see are those hump backed bastards:P

If you don't see the critter never fear it might show up next year, or the next after that. And the Goomba that drops a plump helment is good lol
Logged

soul4hdwn

  • Bay Watcher
  • make due with what you have
    • View Profile
Re: So I'm new to DF modding, am I doing this right?
« Reply #6 on: February 02, 2010, 03:03:58 pm »

did anyone notice he has speed tag of 3000? thats actualy extremely slow. elfs move faster than dwarfs because teh speed tag is lower vaule number. i forgot specifics
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: So I'm new to DF modding, am I doing this right?
« Reply #7 on: February 02, 2010, 03:28:19 pm »

900 is a base speed. Check the wiki on speed, there's a table.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Eagle0600

  • Bay Watcher
  • Highly Confused
    • View Profile
Re: So I'm new to DF modding, am I doing this right?
« Reply #8 on: February 03, 2010, 04:58:22 am »

(Speed+100)/100 is the number of turns it takes for the creature to move one square. A dwarf moves one square every ten turns, this pikachu will move one every... 31 turns. It's 3.1 times slower than a dwarf.
« Last Edit: February 03, 2010, 05:00:21 am by Eagle0600 »
Logged
GENERATION 21:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.