Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Simplifying Version Migration  (Read 845 times)

Calessa Lynn Orphiel

  • Bay Watcher
    • View Profile
Simplifying Version Migration
« on: January 09, 2009, 03:46:45 pm »

This would be (I think) a pretty simple change to implement, so here we go:

Currently, DF uses a directory structure of

\data
\raw
\sdl

Would it be possible to add a new directory called \user, in which the player's custom init.txt, tilesets, etc could be placed?

The init.txt here would be slightly different than the existing ones -- instead of having a complete set of options from the standard init file, it would instead be a blank .txt file that the player could edit.

The game would load the default init.txt for the current version, as found in the data folder (necessary for version updates where init options are added or changed), and then would over-ride the settings with any new settings from the \data\init\init.txt file.

The advantage to this would be that when moving to a new version, the player wouldn't have to mess with anything to get the settings he or she wants in a new version update, or moving save files, but simply needs to copy the user folder.
Logged

Granite26

  • Bay Watcher
    • View Profile
Re: Simplifying Version Migration
« Reply #1 on: January 09, 2009, 04:14:56 pm »

I like...

along with a 'Create User' in-game function that creates the directories and copies in the defaults?

Then you'd be able to (easily) keep data across revs because it wouldn't create a new Granite26 folder every time...

Versioning would be a pain, though

Nice...

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: Simplifying Version Migration
« Reply #2 on: January 09, 2009, 04:40:58 pm »

Cool idea! And it does sound easy to implement. Unfortunately, I, as a hobbyist programmer know that it's often the simple things that are hardest to code.

But!

YES!!! PLEASE!!!
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

Vattic

  • Bay Watcher
  • bibo ergo sum
    • View Profile
Re: Simplifying Version Migration
« Reply #3 on: January 09, 2009, 05:22:14 pm »

Reminds me of how css works. Sounds like a good idea.
Logged
6 out of 7 dwarves aren't Happy.
How To Generate Small Islands

Calessa Lynn Orphiel

  • Bay Watcher
    • View Profile
Re: Simplifying Version Migration
« Reply #4 on: January 10, 2009, 12:06:05 pm »

Particularly with this rapid-fire testing phase, this would be quite welcome.  :D
Logged