Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: In-game Options menu for init and d_init.txt  (Read 707 times)

Align

  • Bay Watcher
    • View Profile
In-game Options menu for init and d_init.txt
« on: January 26, 2015, 06:30:26 am »

More accessible, and I personally would use it to make a macro that changes all the options every time there's a new version.
Logged
My stray dogs often chase fire imps back into the magma pipe and then continue fighting while burning and drowning in the lava. Truly their loyalty knows no bounds, but perhaps it should.

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: In-game Options menu for init and d_init.txt
« Reply #1 on: January 26, 2015, 09:51:54 am »

There could be complications in changing the inits while playing. You'd most certainly have to restart DF anyways.

Wouldn't the macro break if anything changed? It would probably be much easier to write a program to search and replace lines in the files. I've considered writing one in Python, but haven't gotten around to it.
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

lethosor

  • Bay Watcher
    • View Profile
Re: In-game Options menu for init and d_init.txt
« Reply #2 on: January 26, 2015, 11:02:55 am »

I've been working on a DFHack script to do this. While most things in init.txt are only checked on startup (meaning that restarting DF would be required for changes to take effect), any (if not all) of the options in d_init.txt, colors.txt, and announcements.txt can be modified in-game.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.