Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Changing Trader/Beginning Speech  (Read 2565 times)

IT 000

  • Bay Watcher
  • Strange Mood
    • View Profile
Changing Trader/Beginning Speech
« on: April 08, 2011, 07:27:45 pm »

In my recent mod Corrosion (See sig for link), it changes dwarves into humans. However traders, and the beginning strike the earth message still refer to them as dwarves living in mountainhomes, any way I can change it?
Logged

***CORROSION v2.14***
<<<More Than Just Zombies>>>
Back from the Dead!

!!crundle!!

  • Bay Watcher
  • EVERYONE, I AM ON FIRE
    • View Profile
Re: Changing Trader/Beginning Speech
« Reply #1 on: April 09, 2011, 12:59:56 am »

Pretty sure it's hardcoded, sadly.
Logged
w̷̦̬̹̣͕̙͖͑̓̌̓̑̄͒͋͜͝h̙̩͈̱͚̳̳̪͖̙͕̥̳ͥ̍̔͂̑̿̓̍̑ͣ͆̅̀͢y̧̼̭͎͓̟̺͉̰͎̱̜ͫ̂́͗̐̑́w̢̬̪͈̲̽̋́̈̓ͨ̄͐̿̓ͧ̇ͩ̏ͫ̑̎͟͡ḩ̡͍̫̣̹̬̙̭͊ͯͯ̉͡y̔ͥ̏͛̀̂̎̆ͥͮ̐̍̈̏͆̓̅̒҉̢̘͚͎̠̻̣̯̥̠̙̤̪̮̝̲̜̪́̕̕ͅw̸̗̻̱ͭͣͦͤ̇̑̅͗ͨͬ͋̉͊ͨ͂͜hͩͪ̋ͣ̇̔͂ͧ̍̾͂͏̨̠͕̼̟͙̳̺͕̥͔̜̮̩̰̲̞̼y̴̸̵̪͕̜̪̙̦̘ͧ̽̇ͭͭͬͯ̾̈́̐̂̉͆͒ͤ̌̀̕w̺̟͙͙̭͇̟̮͉̯͈͖̩͔͊͛ͧͯ̀̿ͣͪ͂ͪ͘̕͠ͅh̷̴̷̢͉͖̺̦̣͙̓ͧ̅͋ͪ̾̓͒̌̒ͯ̇́ͯ̕y̋ͪ̓̒̈́͞͏̤̗̞̲̪͚̮̤̫̪̺̪̫̕w̸͔̺̱̼̪̮̘̟͖̭̱͓͈̜͇͚͉̙͊̈́ͦ̅̋̂ͩ̓͗́̚͡ͅĥ̶̨̟̺͕̌͆͒͑ͦͨ̉͆͜͜ý̧͓̼̘̯͉̘̺̩͇̻͈͔̖͎̜͍ͭ̌ͩ͟͝͞

3

  • Bay Watcher
    • View Profile
Re: Changing Trader/Beginning Speech
« Reply #2 on: April 09, 2011, 01:56:37 am »

You need to decompile the stuff in data/announcement. This thread has more info on doing that.
Logged

Andux

  • Bay Watcher
  • [PREFSTRING:semicolons]
    • View Profile
    • Andux's DFWiki page
Re: Changing Trader/Beginning Speech
« Reply #3 on: April 09, 2011, 06:17:16 am »

Looks like the ones you want to change are in announcement\fortressintro and dipscript\text\dwarf_liaison1.
Code: (announcement\fortressintro) [Select]
fortressintro
[TITLE]A Dwarven Outpost[/TITLE]
[P]You have arrived.  After a journey from the Mountainhomes into the
forbidding wilderness beyond, your harsh trek has finally
ended.  Your party of seven is to make an
outpost for the glory of all of [VAR:NATIVENAME:GLOBAL:YOURCIV].
[P]There are almost no supplies left, but with stout labor
comes sustenance.  Whether by bolt, plow or hook, provide
for your dwarves.  You are expecting a supply caravan just before
winter entombs you, but it is Spring now.
Enough time to delve secure lodgings, ere the [VAR:NAME_PLURAL:GLOBAL:LOCAL_LARGE_PREDATOR] get hungry.
A new chapter of dwarven history begins here at this place, [VAR:NATIVENAME:GLOBAL:YOURFORT],
"[VAR:TRANSLATEDNAME:GLOBAL:YOURFORT]".  Strike the earth!
Code: (dipscript\text\dwarf_liaison1) [Select]
dwarf_liaison1
[C:VAR:MEETING:ACTOR]
[VAR:NATIVENAME:MEETING:ACTOR]:  I am your liaison from the Mountainhomes.  Let's discuss your situation.

I'll have to see about writing a tool to handle this stuff.
Logged
(Do not sign anything.) -- Fell, Planescape: Torment

MADMAN · Save Tools · WTF Tools · Generated Raws Extractor · Tweak for 0.31–34.xx

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Changing Trader/Beginning Speech
« Reply #4 on: April 09, 2011, 06:50:55 am »

This would be awesome, the Wasteland mod would benefit greatly from such tool :P.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Andux

  • Bay Watcher
  • [PREFSTRING:semicolons]
    • View Profile
    • Andux's DFWiki page
Re: Changing Trader/Beginning Speech
« Reply #5 on: April 09, 2011, 03:28:18 pm »

Voilà: Weird Text Format Tools, for all your announcement/dipscript/index-hacking needs. :P
Logged
(Do not sign anything.) -- Fell, Planescape: Torment

MADMAN · Save Tools · WTF Tools · Generated Raws Extractor · Tweak for 0.31–34.xx

Halnoth

  • Bay Watcher
  • Plan for the Worst. Hope for the Best. Have Fun!
    • View Profile
Re: Changing Trader/Beginning Speech
« Reply #6 on: June 07, 2011, 05:33:46 pm »

Voilà: Weird Text Format Tools, for all your announcement/dipscript/index-hacking needs. :P

I couldn't get this to work for some reason. It would open and then close immediately.
Logged
One of the dwarfs walked in front of Thor to get a better view of the prye, and Thor kicked him irritably into the middle of the flames, which made Thor feel slightly better and made all the dwarfs feel much worse.

Cloth Armor Mod http://www.bay12forums.com/smf/index.php?topic=158967.msg7063531#msg7063531

Andux

  • Bay Watcher
  • [PREFSTRING:semicolons]
    • View Profile
    • Andux's DFWiki page
Re: Changing Trader/Beginning Speech
« Reply #7 on: June 07, 2011, 08:18:20 pm »

I couldn't get this to work for some reason. It would open and then close immediately.

It's a command-line tool; you need to run it from the command prompt.
Logged
(Do not sign anything.) -- Fell, Planescape: Torment

MADMAN · Save Tools · WTF Tools · Generated Raws Extractor · Tweak for 0.31–34.xx

Halnoth

  • Bay Watcher
  • Plan for the Worst. Hope for the Best. Have Fun!
    • View Profile
Re: Changing Trader/Beginning Speech
« Reply #8 on: June 08, 2011, 07:54:15 pm »

I couldn't get this to work for some reason. It would open and then close immediately.

It's a command-line tool; you need to run it from the command prompt.

Oh I didn't realize sorry then. I was trying to run it like a dfhacktool.
Logged
One of the dwarfs walked in front of Thor to get a better view of the prye, and Thor kicked him irritably into the middle of the flames, which made Thor feel slightly better and made all the dwarfs feel much worse.

Cloth Armor Mod http://www.bay12forums.com/smf/index.php?topic=158967.msg7063531#msg7063531

Chromasphere

  • Bay Watcher
  • UUUUU,.,..,..,U,.""T"T"T"T""T
    • View Profile
Re: Changing Trader/Beginning Speech
« Reply #9 on: June 09, 2011, 09:09:06 am »

Hmm, is there a variable that will read which race is being used at that moment and replace "dwarves" with it?  Much like the [VAR:NATIVENAME:GLOBAL:YOURCIV] except in the line "Whether by bolt, plow or hook, provide for your dwarves."  This is just so it isn't set to a specific race, but will change with whichever race you are embarking with at the time.

eg  Whether by bolt, plow or hook, provide for your [VAR:GLOBAL:YOURRACE???].  Same goes for "A new chapter....."


« Last Edit: June 09, 2011, 09:12:03 am by Chromasphere »
Logged
"I saw the best minds of my generation destroyed by tantrums, starving hysterical naked,
    dragging themselves through the dwarven streets at dawn looking for a helpless cat"-Vaftrudner

"We aren't customers or investors - we're spectators tossing donations into the coin box while watching someone build their work of art"-Psieye

Andux

  • Bay Watcher
  • [PREFSTRING:semicolons]
    • View Profile
    • Andux's DFWiki page
Re: Changing Trader/Beginning Speech
« Reply #10 on: June 09, 2011, 09:59:55 pm »

Hmm, is there a variable that will read which race is being used at that moment and replace "dwarves" with it?

Doesn't seem like it. Your best bet would be to use something like:
Code: [Select]
fortressintro
[TITLE]A New Outpost[/TITLE]
[P]You have arrived.  After a journey from the heart of [VAR:TRANSLATEDNAME:GLOBAL:YOURCIV]
into the forbidding wilderness beyond, your harsh trek has finally
ended.  Your party of seven is to make an
outpost for the glory of all of [VAR:NATIVENAME:GLOBAL:YOURCIV].
[P]There are almost no supplies left, but with stout labor
comes sustenance.  Whether by bolt, plow or hook, provide
for your people.  You are expecting a supply caravan later
in the year, but it is Spring now.
Enough time to make secure lodgings, ere the [VAR:NAME_PLURAL:GLOBAL:LOCAL_LARGE_PREDATOR] get hungry.
A new chapter of history begins here at this place, [VAR:NATIVENAME:GLOBAL:YOURFORT],
"[VAR:TRANSLATEDNAME:GLOBAL:YOURFORT]".  Strike the earth!
Logged
(Do not sign anything.) -- Fell, Planescape: Torment

MADMAN · Save Tools · WTF Tools · Generated Raws Extractor · Tweak for 0.31–34.xx

Chromasphere

  • Bay Watcher
  • UUUUU,.,..,..,U,.""T"T"T"T""T
    • View Profile
Re: Changing Trader/Beginning Speech
« Reply #11 on: June 10, 2011, 10:25:57 am »

Yah I made a variation of that.

That makes me think.  Is there a variable that can name the region you are embarking in?  So the line "...into the forbidding wilderness beyond..." could read "... into the forbidding wilderness of [VAR:TRANSLATEDNAME:GLOBAL:LOCAL_???]   name of the region, area of embark.
Logged
"I saw the best minds of my generation destroyed by tantrums, starving hysterical naked,
    dragging themselves through the dwarven streets at dawn looking for a helpless cat"-Vaftrudner

"We aren't customers or investors - we're spectators tossing donations into the coin box while watching someone build their work of art"-Psieye

Eldrick Tobin

  • Bay Watcher
  • [ETHIC: MODDING_UNDWARFY: PERSONAL_MATTER]
    • View Profile
Re: Changing Trader/Beginning Speech
« Reply #12 on: June 13, 2011, 09:42:09 am »

From the string dump on the magmawiki there are NOT that many variables that work at the Weird Text Format level.
Logged
--
Eldrick Tobin
Behold the unimpressive Aspectus Lolin mod. || My Little Arachnid Fortress attempt...
I mumble to myself on tumblr... Sometimes about DF Modding.