Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: spoils of war  (Read 602 times)

supremeMang

  • Bay Watcher
    • View Profile
spoils of war
« on: May 11, 2008, 10:48:00 am »

a broad topic but i think there are a few small features that could be implemented rather easily. the ability to train more creatures than just dogs for war and hunting is the biggest crit. i wanna see war elephants, fighting monkeys. and on that same note creature operated power would be cool as well.
Logged

Samyotix

  • Bay Watcher
    • View Profile
Re: spoils of war
« Reply #1 on: May 11, 2008, 01:54:00 pm »

Apparently it's not too difficult to mod the game yourself, though to be honest I haven't tried yet.

I'd guess that the data for pets are in dwarffort\data\objects\creature_domestic, but I have no idea how to edit the (compressed?) file. (I tried to open it in Notepad. Yuck.] I'm sure of the more experienced modders here can tell us though    :)

The tag seems to be [trainable] ->
http://www.dwarffortresswiki.net/index.php/Creature_tokens#T

[I'd really appreciate a pointer on how to mod in more [trainable]s, since I've wanted to to exactly that for a while now - thanks in advance]    :)


Some more pointers here : http://www.bay12games.com/cgi-local/ultimatebb.cgi?ubb=get_topic&f=13&t=000600

[ May 11, 2008: Message edited by: Samyotix ]

Logged

TerminatorII

  • Bay Watcher
  • [PREFSTRING:Adamantine Skeleton]
    • View Profile
Re: spoils of war
« Reply #2 on: May 11, 2008, 01:59:00 pm »

modify the files under raw. If you add stuff no biggie, but if you remove stuff you have to delete the compressed file with the same name and then generate a new world.
Logged
No, I think the cook would be in charge of sugar-coating the cows.

You are a lifesaver! Round and probably in tropical flavors.

Kagus

  • Bay Watcher
  • Olive oil. Don't you?
    • View Profile
Re: spoils of war
« Reply #3 on: May 11, 2008, 02:02:00 pm »

The files are in plaintext...  Open them in notepad, find the 'profile' you're looking for, and start typing stuff.

For instance, war elephants.  Open up "creature_large_tropical.txt", find the header [CREATURE:ELEPHANT] (should be the first entry), and then add in the [TRAINABLE] tag wherever you like.  So long as it is after [CREATURE:ELEPHANT] and before the next [CREATURE:something], it should pick it up.

You may now train war elephants and hunting elephants.  I'm not sure, but making that change might require you to generate another world in order for the changes to take effect.  Make sure to type every tag in upper case letters.

Willfor

  • Bay Watcher
  • The great magmaman adventurer. I do it for hugs.
    • View Profile
Re: spoils of war
« Reply #4 on: May 11, 2008, 02:03:00 pm »

It's actually not a compressed file, or at the very least it shouldn't be. It has always opened up for me in a way that displays everything like so:

code:
creature_domestic

[OBJECT:CREATURE]

[CREATURE  :DOG]
   [NAME:dog:dogs:dog]
   [TILE:'d'][COLOR:6:0:0]
   [PETVALUE:30][NATURAL]
   [LARGE_ROAMING]
   [COMMON_DOMESTIC][TRAINABLE][PET]
   [BONECARN]
   [PREFSTRING:loyalty]
   [BODY:QUADRUPED:TAIL:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]
   [BODYGLOSS:PAW]
   [SIZE:5]
   [MAXAGE:10:20]
   [ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:1:6:GORE][ATTACKFLAG_CANLATCH]
   [CHILD:1][CHILDNAME  :puppy  :puppies]
   [FAT:1]
   [DIURNAL]
   [STANDARD_FLESH]
   [HOMEOTHERM:10070]
   [LAYERING:100]
   [SWIMS_INNATE][SWIM_SPEED:2500]


All of the other creatures in the game are listed in the files in that area that start with 'creature', and all the need to be tamed and trained are [PET] and [TRAINABLE] (though things with [VERMINHUNTER] are untrainable)

Wow, I was beaten twice.

[ May 11, 2008: Message edited by: Willfor ]

[ May 11, 2008: Message edited by: Willfor ]

[ May 11, 2008: Message edited by: Willfor ]

Logged
In the wells of livestock vans with shells and garden sands /
Iron mixed with oxygen as per the laws of chemistry and chance /
A shape was roughly human, it was only roughly human /
Apparition eyes / Apparition eyes / Knock, apparition, knock / Eyes, apparition eyes /

Samyotix

  • Bay Watcher
    • View Profile
Re: spoils of war
« Reply #5 on: May 11, 2008, 02:07:00 pm »

THANKS! - I was looking in dwarfort\DATA, not \Desktop\dwarffort\raw\objects as I should have.

And for the OP: I also just found this: http://www.dwarffortresswiki.net/index.php/Modding_Guide

[ May 11, 2008: Message edited by: Samyotix ]

Logged

Capntastic

  • Bay Watcher
  • Greetings, mortals!
    • View Profile
    • A review and literature weblog I never update
Re: spoils of war
« Reply #6 on: May 11, 2008, 02:10:00 pm »

The thread title really has nothing to do with the thread  :(

And there's already a thread on alternate power sources with talk about treadmills and such.

Logged

supremeMang

  • Bay Watcher
    • View Profile
Re: spoils of war
« Reply #7 on: May 11, 2008, 10:53:00 pm »

cheers heaps!
Logged

supremeMang

  • Bay Watcher
    • View Profile
Re: spoils of war
« Reply #8 on: May 11, 2008, 10:56:00 pm »

Capntastic, maybe add some suggestions as to what spoils ud think would be cool then.
Logged