Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to mod any weapon into fortress mode?  (Read 727 times)

stillrabbit730

  • Bay Watcher
    • View Profile
How to mod any weapon into fortress mode?
« on: February 19, 2016, 01:02:02 am »

In playing fortress mode I realized that many weapons from adventure mode are missing, such as:
 two handed swords, morning stars, mauls, blowguns etc.

But when you assign weapons to a squad these weapon choices appear, so how can I mod the raws to make these "foreign weapons"?
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: How to mod any weapon into fortress mode?
« Reply #1 on: February 19, 2016, 02:11:38 am »

You give your entity (civilization type) the permission to have them in their arsenal. Open up entity_default.txt. See all those [WEAPON:ITEM_WEAPON_xxx] lines under the MOUNTAIN entity right off the bat? And see how only certain weapons are mentioned?

The humans (ENTITY:PLAINS further down the file) have a full complement of weapon permissions that you can just copy-paste on the dwarves.

You also need to generate a new world for these changes to stick.
Logged

darkflagrance

  • Bay Watcher
  • Carry on, carry on
    • View Profile
Re: How to mod any weapon into fortress mode?
« Reply #2 on: February 19, 2016, 02:21:40 am »

You give your entity (civilization type) the permission to have them in their arsenal. Open up entity_default.txt. See all those [WEAPON:ITEM_WEAPON_xxx] lines under the MOUNTAIN entity right off the bat? And see how only certain weapons are mentioned?

The humans (ENTITY:PLAINS further down the file) have a full complement of weapon permissions that you can just copy-paste on the dwarves.

You also need to generate a new world for these changes to stick.

You can also cheat those things to yourself in the current game by modding the reactions in the smelter.

For example, take something you'll never ever need like the Lay Pewter reaction and make it spit out steel two-handed swords instead.
Once you find the Lay Pewter reaction in the reactions object file, delete the REAGENT line(s) and replace all the product lines with the following:
 [PRODUCT:100:1:WEAPON:ITEM_WEAPON_SWORD_2H:STEEL:NONE:NONE]

*I'm not actually sure this way of describing the product is completely accurate, but the general procedure is right.
Logged
...as if nothing really matters...
   
The Legend of Tholtig Cryptbrain: 8000 dead elves and a cyclops

Tired of going decades without goblin sieges? Try The Fortress Defense Mod

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: How to mod any weapon into fortress mode?
« Reply #3 on: February 19, 2016, 02:43:07 am »

you want WEAPON:ITEM_WEAPON_SWORD_2H:INORGANIC:STEEL