Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Having trouble modding diplomacy messages  (Read 1168 times)

D_E

  • Bay Watcher
    • View Profile
Having trouble modding diplomacy messages
« on: May 16, 2012, 11:52:31 pm »

I already found the WTF tools, but they don't seem to work right for me.

If I don't specify an output file,
Code: [Select]
wtf2txt.exe diplomatrebuffed
it prints the tags to the command prompt, but when I give it a file name
Code: [Select]
wtf2txt.exe diplomatrebuffed diplomatrebuffed.txt
it just creates an empty file.

Has anyone done this recently?  Any pointers?
Logged
Mods I've done:
Zelda mod-mod, Beta in the Wild DF 47.04
Illithid Empire mod DF 31.25 (update canceled)
Spotter's Guide to Illithids (Genesis mod-mod) genesis 3.19a4 (update canceled)

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Having trouble modding diplomacy messages
« Reply #1 on: May 17, 2012, 12:04:01 am »

Isn't there another pram? the index?
Quote
txt2wtf

Creates a WT file from a text file.

Usage: txt2wtf [-x] <filename> <output file>

If the -x flag is specified, output will be encoded like an index file.


--------------------------------------------------------------------------------

wtf2txt

Extracts text from a WT file.

Usage: wtf2txt [-x] <filename> [<output file>]

If the -x flag is specified, input is assumed to be encoded like an index file.
If no output file is specified, output will be sent to StdOut.
Never used this before
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Having trouble modding diplomacy messages
« Reply #2 on: May 17, 2012, 01:24:16 am »

Try these: http://dffd.wimbli.com/file.php?id=3895

Funny, I was just talking with deon about changing the diplomats texts, so that elves and maybe even my custom drow can have a new text, and not a copy of the human traders.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Having trouble modding diplomacy messages
« Reply #3 on: May 17, 2012, 09:44:18 am »

There's not a whole lot you can actually change, since all of the diplomat stuff is hardcoded:
* Non-trade diplomats use either ELVES_STANDARD (index line 17) or HUMAN_STANDARD (index line 14), based on whether or not the civilization has [TREE_CAP_DIPLOMACY].
* Trade diplomats use either DWARF_LIAISON (index line 15) or HUMAN_TRADE (index line 16), presumably based on whether or not it's from your own civilization.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

D_E

  • Bay Watcher
    • View Profile
Re: Having trouble modding diplomacy messages
« Reply #4 on: May 17, 2012, 04:07:50 pm »

Logged
Mods I've done:
Zelda mod-mod, Beta in the Wild DF 47.04
Illithid Empire mod DF 31.25 (update canceled)
Spotter's Guide to Illithids (Genesis mod-mod) genesis 3.19a4 (update canceled)

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Having trouble modding diplomacy messages
« Reply #5 on: May 17, 2012, 06:18:34 pm »

Thanks quietust, I was hoping for a custom addition, but that cleared it up. It still is an interesting insight in the rabbit hole that is DF.

@D_E: I know that deon managed to mod these files for his apocalypse TC, with Greetings from the CentralVault and such, so if you really cant get it to work, ask him. Mind that I just did that a few days ago myself, I hope he wont mind answering the same things twice ^^

You have to run cmd.exe on windows, and then type the name of the program and the file you want to undat into the command line.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

D_E

  • Bay Watcher
    • View Profile
Re: Having trouble modding diplomacy messages
« Reply #6 on: May 17, 2012, 07:24:04 pm »

Didn't work for me.

The file uncompressed oddly ("random" symbols and no line returns), when I tested the re-compressed file I got:
Quote
Text generation failed: data/announcement/fortressintro

Are these the tools Deon said he used?
Logged
Mods I've done:
Zelda mod-mod, Beta in the Wild DF 47.04
Illithid Empire mod DF 31.25 (update canceled)
Spotter's Guide to Illithids (Genesis mod-mod) genesis 3.19a4 (update canceled)

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Having trouble modding diplomacy messages
« Reply #7 on: May 17, 2012, 08:01:12 pm »

Yes, those are the ones. I personally havent got the time to run it myself. Too distracted with 34.08 and 34.09, with win, mac and linux. The horror... ;)
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::