Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: More command line flags  (Read 439 times)

CaptainMcClellan

  • Bay Watcher
  • [WAS_NEVER_HERE][CUBE]
    • View Profile
More command line flags
« on: February 29, 2016, 01:19:31 am »

I know this may seem trivial, but the utility - especially for Linux players - warrants the mention and the difficulty should be low enough that it can feasibly be implemented in a day.

The request: More command line flags for modifying Dwarf Fortress's initial run parameters, as follows (in GNU argp style ):
  • --display=[mode] For setting the display mode (i.e. 2D, 2DASYNC, or TEXT )
  • --d_init=[file] Select which d_init.txt file to parse.
  • --init=[file] Select which init.txt file to parse
  • --fps Show the fps counter
  • --sound Enable sound even if disabled in the init files.
  • --nosound Disable sound even if enabled in the init files.
  • --notemp Disable temperature calculations, even if enabled in the init files.
  • --skipintro Skip intro.
  • --forceintro Play intro even if disabled.
  • --rawdir=[directory] Select which directory to parse the raws from.
  • --tileset=[directory] this might be a little trickier, but basically the same concept as rawdir, select a directory containing art assets (tilesets) for dwarf fortress to use and an init file to parse from for special directions in its usage.*
  • --help Display a quick reference of these commands and the world generator command that's already implemented and exit.
  • --version print version information and exit.
  • etc. based on feed back from the community

*I'm aware that having a tileset init file might require more than a day and technically counts as a second suggestion, but please implement it anyway. I'd recommend having it called "index.txt" and being on the top level on  a tileset directory. The structure of that file is up to you, but having an [OVERIDE] tag per creature, caste and occupation that can cause it to pull from a specific file for that creature's graphics would be super great please and thanks. :) 

The rationale:
While using static configuration files and editing them by hand is all well and good, sometimes players want different configurations right away. In particular the '--rawdir' flag would be a tremendous boon to players who like to use mods ( e.g. the Masterwork Mod ) but don't want to have different copies of dwarf fortress for different mods of the game. It's unlikely this would break the game as each save has its own set or raws to draw from, so '--rawdir' would only affect world gen. The tileset command would ease things for people who want to try different graphical assets for Dwarf Fortress or for the lovely people who develop the Lazy Newb Pack so that they don't have to modify the base raws.

Quote from: My idea for how an override file for selecting more specific graphics would work.
Code: [Select]
    [OVERRIDE:DWARF]
        [FILE:dwarf.png]
        [CASTE:MALE]
            [OCCUPATION:FARMER:0:0] <- Where the two numbers are the tile x and y coordinates for the sprite to use based on tile-size settings in the init.
        [CASTE:FEMALE]
            [OCCUPATION:FARMER:1:0] 
    [OVERRIDE_END]

If the tileset thing doesn't end up working out, at very least seeing the other options flags would be great. I'm also admittedly not very sure how Dwarf Fortress tilesets work, so if the tileset idea is redundant or just plain stupid, just disregard it.

Does anyone else support or have any suggestions on how to refine this?
« Last Edit: February 29, 2016, 01:21:59 am by CaptainMcClellan »
Logged