Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Please do not change the order of data/init/interface.txt  (Read 1041 times)

mikekchar

  • Bay Watcher
    • View Profile
Please do not change the order of data/init/interface.txt
« on: June 19, 2018, 12:08:49 am »

As the subject says, please do not change the order of data/init/interface.txt.  I have a very complicated set of key bindings to support my non-standard keyboard.  I really can't play without it.  Every release I spend hours with a diff program trying to see what I'm missing from interface.txt -- essentially re-sorting it each time.  I'm guessing that this file is actually generated somehow, which is why the order changes each time, but it's really frustrating...
Logged

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: Please do not change the order of data/init/interface.txt
« Reply #1 on: June 19, 2018, 01:57:58 am »

All the new keys are listed in 'file changes.txt', aren't they?
What's stopping you from just copying them into your custom interface.txt each time?

(If they're not always included or often have keys missing, then yeah, fully support a 'please keep a comprehensive file changes.txt on each update' suggestion).
« Last Edit: June 19, 2018, 01:59:44 am by Shonai_Dweller »
Logged

mikekchar

  • Bay Watcher
    • View Profile
Re: Please do not change the order of data/init/interface.txt
« Reply #2 on: June 19, 2018, 06:07:00 am »

I didn't know that!  I knew if I posted here someone would give me a work around.  Thanks!
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: Please do not change the order of data/init/interface.txt
« Reply #3 on: June 19, 2018, 10:33:51 am »

The order has never been changed, as far as I know, at least not since 0.40. Sometimes keys are added in the middle, but that's to keep them in groups - is that what you mean?
It's possible that saving them in-game would change the order, but it would sort by ID if it does (numerically, not the human-readable names), so the order after saving should be consistent across versions too.
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.

mikekchar

  • Bay Watcher
    • View Profile
Re: Please do not change the order of data/init/interface.txt
« Reply #4 on: July 04, 2018, 05:51:45 am »

Sorry, I'm positing this late.  What I meant was that if you move your .dwarffortress directory and restart the game, it generates new config files.   What I wanted to do was diff my current interfaces.txt file against the one that is created when you start the game for the first time -- with the idea that I could make a patch to update my old interfaces.txt file.  However, several sections seem to move around each time the default interfaces.txt file changes.  It's not possible to automate patching it.  However, the changes.txt file is an acceptable workaround for me.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: Please do not change the order of data/init/interface.txt
« Reply #5 on: July 04, 2018, 10:49:00 am »

Sorry, I'm positing this late.  What I meant was that if you move your .dwarffortress directory and restart the game, it generates new config files.
DF doesn't do this - that would require it to keep spare copies of the config files, and it doesn't.
Quote
What I wanted to do was diff my current interfaces.txt file against the one that is created when you start the game for the first time -- with the idea that I could make a patch to update my old interfaces.txt file.  However, several sections seem to move around each time the default interfaces.txt file changes.  It's not possible to automate patching it.  However, the changes.txt file is an acceptable workaround for me.
interface.txt is distributed with the download from http://www.bay12games.com/dwarves/, and isn't created on startup. The only time DF writes to interface.txt is when you save keybindings from the esc -> keybindings menu. It has always written them in the same order, at least for me. It's possible that that order doesn't match the order of the default distributed file, so if you want to make patching easy, you should save keybindings in-game before you generate or apply a patch.
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.