v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "40d:Custom grid"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Revision of instructions)
Line 2: Line 2:
 
The resolution and font are still a critical concern and must be calculated to match, to avoid strange results and crushed fonts.
 
The resolution and font are still a critical concern and must be calculated to match, to avoid strange results and crushed fonts.
  
To determine your final resolution:
+
To work out what grid size you want for a given screen resolution and font tile size:
# Determine your tile size. May be given, or ... may be specified as a screen size based on an 80:25 grid. simply divide the resolution by 80:25 respectively and you should get a tile size. example:  curses_800x600.bmp translates as: 800 / 80 = 10 pixels wide, 600 / 25 = 24 pixels tall.
+
# Determine your tile size. This may be found by dividing the x value of the intended screen resolution of the font by the x value of the grid, and then the y values are divided by each other. Example: If we use the default grid size, 80:25, and the resolution of curses_800x600.bmp, 800x600, then we would divide 800 by 80 to get 10 and 600 by 25 to get 24. This means our tiles are each 10x24. Note: if your font is, for example, a 16x16 font, as specified in the filename, this means that each tile is intended to be 16x16 pixels in size, and you may therefore avoid the mathematics.
# Multiply by your proposed grid size to get your resolution:  10x24 * 128:25 = 1280x600
+
# Divide the x value of your screen resolution by the x value of the tile size to determine your wanted x grid value, then do the same with the y values to determine your y grid value.
 +
# Change the [GRID] entry in the init.txt file to reflect your changes.
 +
 
 +
==Notes==
 +
* The title screen will be situated in the top right of the screen, instead of centred.
 +
* It is impossible to set different grid values for fullscreen and windowed, it is unknown whether this will be implemented in future versions.
 +
 
 
== Notable Combinations ==
 
== Notable Combinations ==
 
* [FULLSCREENX:1600], [FULLSCREENY:1200], [FONT:curses_640x300.bmp], [GRID:200:100] (640x300 is 8x12 per tile)
 
* [FULLSCREENX:1600], [FULLSCREENY:1200], [FONT:curses_640x300.bmp], [GRID:200:100] (640x300 is 8x12 per tile)
 
* [FULLSCREENX:1920], [FULLSCREENY:1200], [FONT:curses_800x600.bmp], [GRID:192:100] (800x600 utilized at 10x12 per tile, for an almost square aspect ratio with lots of view space)
 
* [FULLSCREENX:1920], [FULLSCREENY:1200], [FONT:curses_800x600.bmp], [GRID:192:100] (800x600 utilized at 10x12 per tile, for an almost square aspect ratio with lots of view space)
 +
* [FULLSCREENX:1680], [FULLSCREENY:1050], [FONT:{any 16x16 font}], [GRID:105:65]
  
 
== External links ==
 
== External links ==

Revision as of 21:54, 13 August 2008

Version 0.28.181.39f introduced the ability to increase the grid from 80 tiles wide by 25 tiles high to as many as 200 by 200. The resolution and font are still a critical concern and must be calculated to match, to avoid strange results and crushed fonts.

To work out what grid size you want for a given screen resolution and font tile size:

  1. Determine your tile size. This may be found by dividing the x value of the intended screen resolution of the font by the x value of the grid, and then the y values are divided by each other. Example: If we use the default grid size, 80:25, and the resolution of curses_800x600.bmp, 800x600, then we would divide 800 by 80 to get 10 and 600 by 25 to get 24. This means our tiles are each 10x24. Note: if your font is, for example, a 16x16 font, as specified in the filename, this means that each tile is intended to be 16x16 pixels in size, and you may therefore avoid the mathematics.
  2. Divide the x value of your screen resolution by the x value of the tile size to determine your wanted x grid value, then do the same with the y values to determine your y grid value.
  3. Change the [GRID] entry in the init.txt file to reflect your changes.

Notes

  • The title screen will be situated in the top right of the screen, instead of centred.
  • It is impossible to set different grid values for fullscreen and windowed, it is unknown whether this will be implemented in future versions.

Notable Combinations

  • [FULLSCREENX:1600], [FULLSCREENY:1200], [FONT:curses_640x300.bmp], [GRID:200:100] (640x300 is 8x12 per tile)
  • [FULLSCREENX:1920], [FULLSCREENY:1200], [FONT:curses_800x600.bmp], [GRID:192:100] (800x600 utilized at 10x12 per tile, for an almost square aspect ratio with lots of view space)
  • [FULLSCREENX:1680], [FULLSCREENY:1050], [FONT:{any 16x16 font}], [GRID:105:65]

External links