Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Can I hide history after world generation?  (Read 626 times)

Jbehler64

  • Bay Watcher
    • View Profile
Can I hide history after world generation?
« on: April 30, 2018, 12:23:45 pm »

So I like the idea of having an adventurer explore the world's history, to unlock it in legends mode.
I feel like that would make me appreciate the game more as I build a new adventurer.

Buuuuttttt... I already temporarily retired a fort that is to be my base of operations and took a long time to build.
And I didn't realize I could hide all history at world gen...?
So does anyone have a way I can do that now?
I can dance the dance of the raws... :D?
Logged

Jbehler64

  • Bay Watcher
    • View Profile
Re: Can I hide history after world generation?
« Reply #1 on: April 30, 2018, 12:25:52 pm »

Saw the common topic on generating a new world.
Was unsure if this fit, or rather where it fit.
Logged

Atomic Chicken

  • Bay Watcher
    • View Profile
Re: Can I hide history after world generation?
« Reply #2 on: May 09, 2018, 09:26:40 am »

As far as I know, it isn't possible to hide history after world generation via raw modding, but it's rather easy to get the job done using DFHack. Here's a short (and poorly tested) script I wrote for the purpose:

Code: [Select]
for _,event in ipairs(df.global.world.history.events) do
  event.flags[0] = true
end
for _,event in ipairs(df.global.world.history.events2) do
  event.flags[0] = true
end

To use:
1) Install DFHack.
2) Copy-paste the above script into a text editor and save it as a .lua file in the \hack\scripts folder.
3) Enter the script's name (the name of your file) in the DFHack console.
Logged
As mentioned in the previous turn, the most exciting field of battle this year will be in the Arstotzkan capitol, with plenty of close-quarter fighting and siege warfare.  Arstotzka, accordingly, spent their design phase developing a high-altitude tactical bomber. 

Jbehler64

  • Bay Watcher
    • View Profile
Re: Can I hide history after world generation?
« Reply #3 on: May 09, 2018, 10:40:37 am »

Oh cool! Thanks!
Logged