Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Aspect Ratio Goddamn Tile Thing  (Read 1020 times)

Jookia

  • Bay Watcher
    • View Profile
Aspect Ratio Goddamn Tile Thing
« on: January 05, 2009, 11:12:48 pm »

I was in my init.txt thing and I want my to make a screen resolution for dwarf fortress of 960x600, but I can't figure out what the tile thingie should be.
Logged

Reasonableman

  • Bay Watcher
  • ...Probably.
    • View Profile
    • Twitter is dead, long live Cohost
Re: Aspect Ratio Goddamn Tile Thing
« Reply #1 on: January 05, 2009, 11:15:09 pm »

Divide your resolution by the number of pixels in the tileset you're using in the appropriate directions (X/Y)

EDIT: Tell me if that was too vague. I have to get to sleep.
« Last Edit: January 05, 2009, 11:17:41 pm by Reasonableman »
Logged
A sane man must be reasonable, but a reasonable man need not be sane.

Jookia

  • Bay Watcher
    • View Profile
Re: Aspect Ratio Goddamn Tile Thing
« Reply #2 on: January 05, 2009, 11:21:46 pm »

ASCII = ?

Anyway, I kind of worked that out, but how can I make the right curses font BMP?
Logged

Sinergistic

  • Bay Watcher
    • View Profile
Re: Aspect Ratio Goddamn Tile Thing
« Reply #3 on: January 06, 2009, 03:28:38 am »

ASCII = ?

Anyway, I kind of worked that out, but how can I make the right curses font BMP?

You don't need to make a new BMP or anything. This is purely numbers in init. Making a BMP is only if you are installing a new tileset, which you don't want.

I assume you are using the default tileset, which is 8x12 pixels. That is: x = 8 pixels and y = 12 pixels PER TILE.

Next, we look at this line in the initfile:
Code: [Select]
This is the dimensions in tiles of the display grid.  Minimum x is 80.  Minimum y is 25. 
Maximums are 200.  Make sure the window size or full screen resolution matches the grid/tile size if you don't want the display to be squashed or stretched. 
The default windowed font has tiles that are 8x12 pixels, for instance, so for a 80x25 grid, you use a 640x300 window, and for a 125x50 grid, you'd use a 1000x600 window. 
FULLGRID is used in full screen mode, whether graphics is on or not.

[GRID:80:25]

It's mostly already explained in the comment, but I'll go through it anyway.

You want a resolution of 960x600 (or x = 960 and y = 600)

So we divide the desired X resolution (960) by the X length of a single tile (8), which gives us... 120. ([GRID:120:25])

Now we do the same thing for the Y resolution (600) and divide it by the Y length of single tile (12) which gives us... 50 ([GRID:120:50])

I've bolded the important bits.

« Last Edit: January 06, 2009, 03:31:10 am by Sinergistic »
Logged

Reasonableman

  • Bay Watcher
  • ...Probably.
    • View Profile
    • Twitter is dead, long live Cohost
Re: Aspect Ratio Goddamn Tile Thing
« Reply #4 on: January 06, 2009, 07:00:41 am »

Yeah, what he said.
Logged
A sane man must be reasonable, but a reasonable man need not be sane.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Aspect Ratio Goddamn Tile Thing
« Reply #5 on: January 06, 2009, 07:01:18 am »

Yeah, what he said, what he said.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository