Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: I want to make foreign weapons and clothing.  (Read 1621 times)

Poindexterity

  • Bay Watcher
  • Listen to my album at www.oldschoolpoindexter.com
    • View Profile
I want to make foreign weapons and clothing.
« on: May 02, 2012, 01:38:06 am »

I'm having a tough time imagining dwarves that, after seeing a scimitar, are unable to replicate it.
same goes with turbans. You call yourself a legendary clothier and you can't figure out turbans?
anyhow, I've never modded the game before or even made the slightest attempt to mess with any game really.
How would i go about adding the ability for my forges to produce foreign weapons?
same goes for my clothing shops.

loincloths?
i cant make loincloths?
for real?
Logged
Life (in dwarf fortress) is a cocophany of flavours, each more succulent than the last - why not sample them all?!

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: I want to make foreign weapons and clothing.
« Reply #1 on: May 02, 2012, 02:06:48 am »

First open up your raw/objects folder (or data/save/regionX/raw/objects if you want to mod a game in progress). Then if you open up entity_default.txt at the very top (right under [ENTITY:MOUNTAIN]) You will see a bunch of tags like [WEAPON:XX_XX_XX], [ARMOR:XX], [PANTS:XX], etc. These control what your dwarves can make by default. Simply add the new tags to include any weapons or other items that you want to be able to make and they will no longer be considered foreign at that point. The various names can be found in the different item_xxxx.txt files. For example if you wanted to add scimitars then simply add [WEAPON:ITEM_WEAPON_SCIMITAR] and your dwarves should be able to make scimitars. For clothing examples you will need to add a :COMMON] at the end, so if you wanted loincloths then you would need to add [PANTS:ITEM_PANTS_LOINCLOTH:COMMON] to the list and your dwarves will be able to make loincloths. One note though, and that is if you are editing a current game (instead of editing the main raws and then generating a new world) then immigrants won't come with any new clothes or other weapons/armor, and I'm fairly certain the traders of your civ won't come with them either. You will still be able to make new ones though.
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.

chumprock

  • Escaped Lunatic
    • View Profile
Re: I want to make foreign weapons and clothing.
« Reply #2 on: January 19, 2023, 12:47:13 pm »

Bumping this ancient thread because I'm looking to make foreign equipment on my latest embark, but simply editing the entity_default file does not exactly work.

Example, I added scimitars and turbans to the dwarves entity, but the clothier and forge do not list any of the new items.

[WEAPON:ITEM_WEAPON_SCIMITAR]
[HELM:ITEM_HELM_TURBAN:COMMON]

So how would you be able to modify the configuration for a workshop?

Logged

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: I want to make foreign weapons and clothing.
« Reply #3 on: January 19, 2023, 04:50:35 pm »

Bumping this ancient thread because I'm looking to make foreign equipment on my latest embark, but simply editing the entity_default file does not exactly work.

Example, I added scimitars and turbans to the dwarves entity, but the clothier and forge do not list any of the new items.

[WEAPON:ITEM_WEAPON_SCIMITAR]
[HELM:ITEM_HELM_TURBAN:COMMON]

So how would you be able to modify the configuration for a workshop?
Did you edit the file before or after generating your current world?
Logged

Schmaven

  • Bay Watcher
  • Abiding
    • View Profile
Re: I want to make foreign weapons and clothing.
« Reply #4 on: January 19, 2023, 05:18:27 pm »

I can confirm the method above still works in 50.xx, I just used it to allow my dwarves to forge longswords.  I bet you just have to generate a new world and the changes will then take effect. 

I'm not sure what you mean about modifying the configurations for a workshop.  All I do is just paste in [WEAPON:ITEM_WEAPON_SCIMITAR], and it appears in the forge item selection just like all the other options.  Are you trying to make a new custom item?  Or make it use a non-standard amount of resources to craft?  I'm pretty sure that's possible too, I've just never taken it that far.
« Last Edit: January 19, 2023, 05:20:34 pm by Schmaven »
Logged

Ziusudra

  • Bay Watcher
    • View Profile
Re: I want to make foreign weapons and clothing.
« Reply #5 on: January 19, 2023, 08:28:33 pm »

There's a DFHack tool for that but I don't know if it works on the current version.
Logged
Ironblood didn't use an axe because he needed it. He used it to be kind. And right now he wasn't being kind.