Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Reread init files and raws without restarting DF  (Read 853 times)

Kobold6

  • Bay Watcher
    • View Profile
Reread init files and raws without restarting DF
« on: April 25, 2020, 06:39:23 pm »

I just thought it'd be nice if I could press a button and change settings like the pop cap without restarting DF. Seems trivial and convenient.
Logged

Kobold6

  • Bay Watcher
    • View Profile
Re: Reread init files and raws without restarting DF
« Reply #1 on: April 25, 2020, 06:40:41 pm »

I'd probably extend this to rereading save folders/files too.
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Reread init files and raws without restarting DF
« Reply #2 on: April 26, 2020, 01:49:32 am »

Raws and the save folder are reread when entering advanced world gen.

I agree it would be convenient to be able to change the pop cap and a number of other settings in game, but then I'd probably do it the other way around, i.e. change the value via the UI (in a new part of it) and have DF update the file.
Logged

voliol

  • Bay Watcher
    • View Profile
    • Website
Re: Reread init files and raws without restarting DF
« Reply #3 on: April 26, 2020, 02:45:42 am »

I agree it would be convenient to be able to change the pop cap and a number of other settings in game, but then I'd probably do it the other way around, i.e. change the value via the UI (in a new part of it) and have DF update the file.

Yeah, it seems redundant to have it check regularly whether the init files have been manually changed, if there’s an in-game menu that changes them for you. I suppose you could have the best of two worlds by adding an init read right as you open the options menu, then any changes made manually could transfer instead of being overwritten by whatever they were when last read/when opening the game.

I'd probably extend this to rereading save folders/files too.

For impromptu modding? Just saving and opening the save again will do this for you.

I do agree with the general sentiment though, some way of changing the init.txt and d_init.txt options without shutting done the game should be implemented. The gui rework might be the perfect moment for this.

Kobold6

  • Bay Watcher
    • View Profile
Re: Reread init files and raws without restarting DF
« Reply #4 on: April 26, 2020, 04:19:51 pm »

For impromptu modding? Just saving and opening the save again will do this for you.

Yes that. And when I pull out a save folder from under the game because I don't want many active worlds on my saves list. Or when I accidently accepted a world creation by pressing ESC instead of x or something at the final accept screen of world creation.
Logged

Kobold6

  • Bay Watcher
    • View Profile
Re: Reread init files and raws without restarting DF
« Reply #5 on: April 26, 2020, 04:24:27 pm »

Raws and the save folder are reread when entering advanced world gen.

Aha.
Logged

Sarmatian123

  • Bay Watcher
    • View Profile
Re: Reread init files and raws without restarting DF
« Reply #6 on: April 27, 2020, 03:38:34 am »

+1
Logged

AnarchCassius

  • Bay Watcher
    • View Profile
Re: Reread init files and raws without restarting DF
« Reply #7 on: April 28, 2020, 01:32:28 pm »

At least some of them are reread on *any* worldgen. I was messing around to see if I needed to restart and saw at least changes to the creatures showed up. I can't confirm this is 100% reliable though.
Logged