Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Fixing init.txt  (Read 2058 times)

Garrie

  • Bay Watcher
    • View Profile
    • http://Facebook.com
Fixing init.txt
« on: February 18, 2017, 02:43:49 am »

I'm on a new device.
The native resolution is 1920*1280.1080

When I run DF in full-screen (ie: run DF in windowed mode, press F11) I end up with significant cropping all the way around.

What do I need to do to fix the display? Please don't say "use windowed mode" or "use a graphics pack".

edit:

OMFG. I screwed up the top post with the resolution. The correct resolution is

1920 x 1080. Bum.
« Last Edit: February 20, 2017, 06:14:24 am by Garrie »
Logged
Is there any way to remove mud outdoors?
Yea, use dirt roads to clear off the mud.
Garrie.

Ziusudra

  • Bay Watcher
    • View Profile
Re: Fixing init.txt
« Reply #1 on: February 18, 2017, 02:58:16 am »

Code: [Select]
[BLACK_SPACE:NO]http://dwarffortresswiki.org/index.php/Technical_tricks#Fullscreen

And you might want to try one of the 24x?? tilesets for the [FULLFONT:curses_800x600.png] line. http://dwarffortresswiki.org/index.php/Tileset_repository

Edit: Or you might need to set these options
Code: [Select]
[FULLSCREENX:0]
[FULLSCREENY:0]
Logged
Ironblood didn't use an axe because he needed it. He used it to be kind. And right now he wasn't being kind.

Garrie

  • Bay Watcher
    • View Profile
    • http://Facebook.com
Re: Fixing init.txt
« Reply #2 on: February 18, 2017, 08:38:06 pm »

OK so I've gone to the repository, which took me in turn to this thread

http://www.bay12forums.com/smf/index.php?topic=101657.0

where I've grabbed nagidal24x24.png

This didn't fix my problem. At the opening screen, i get cropped with the highest row being "Histories of..." and the lowest row being "Press ? at any time for the manual".

This is from my init file
This lets you set the starting windowed/fullscreen setting.  Can be YES, NO or PROMPT.

[WINDOWED:YES]

This is the size and font for windowed mode.  Changing to the 800x600 font might make you happier.
If set below 256x256 it specifies the grid size instead, with a minimum of 80x25.

[WINDOWEDX:80]
[WINDOWEDY:25]
[FONT:curses_640x300.png]

You may disable window resizing if you wish.
[RESIZABLE:YES]

Full screen info.  The 0s below mean that the game will choose a resolution for you, but you can set it yourself as well.

[FULLSCREENX:0]
[FULLSCREENY:0]
[FULLFONT:Nagidal24x24.png]

If this is set to NO, tiles will be stretched to fit the screen if there is a resolution mismatch.
If this is set to YES, the tiles will not be stretched, but rather the game view will be centralized, surrounded by black space.  Tiles that are too large will always be compressed rather than running off the screen.

[BLACK_SPACE:YES]


Do I need to replace the fullscreenx/fullscreeny:0 with the resolution of my monitor?

I'm happy with the game startin in windows mode, and pressing F-11 to go fullscreen. Windows mode is easier for some things.
Logged
Is there any way to remove mud outdoors?
Yea, use dirt roads to clear off the mud.
Garrie.

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: Fixing init.txt
« Reply #3 on: February 18, 2017, 08:40:16 pm »

Can you not just play the game in fullscreen (windowed=no)? What's the advantage of playing in windowed and hitting F11?
Logged

Garrie

  • Bay Watcher
    • View Profile
    • http://Facebook.com
Re: Fixing init.txt
« Reply #4 on: February 18, 2017, 08:59:04 pm »

Can you not just play the game in fullscreen (windowed=no)? What's the advantage of playing in windowed and hitting F11?

Tried that, it crops the same as if I start in windows mode and press F-11.

Fullscreen "on all my previous computers" has displayed far better than a "maximised window". Dynmaically scaling the tiles gives a fairly ugly result.
Logged
Is there any way to remove mud outdoors?
Yea, use dirt roads to clear off the mud.
Garrie.

Ziusudra

  • Bay Watcher
    • View Profile
Re: Fixing init.txt
« Reply #5 on: February 18, 2017, 09:07:13 pm »

Oh ffs

Try BLACK_SPACE:NO

Try FULLSCREENX:1920 and FULLSCREENY:1280

Try both at once

If none of that works tell us what OS and hardware this is.
Logged
Ironblood didn't use an axe because he needed it. He used it to be kind. And right now he wasn't being kind.

Garrie

  • Bay Watcher
    • View Profile
    • http://Facebook.com
Re: Fixing init.txt
« Reply #6 on: February 18, 2017, 09:27:38 pm »

Oh ffs

Try BLACK_SPACE:NO

Try FULLSCREENX:1920 and FULLSCREENY:1280

Try both at once

If none of that works tell us what OS and hardware this is.

[FULLSCREENX:1920]
[FULLSCREENY:1080]
[FULLFONT:Nagidal24x24.png]

[BLACK_SPACE:YES]

Gives me the "top left" portion of the display ie the right and bottom of the screen are cropped.


[FULLSCREENX:1080]
[FULLSCREENY:1920]
[FULLFONT:Nagidal24x24.png]


[BLACK_SPACE:YES]

This setting - when I press F11, DF hangs immediately (closes with no messages).
(yes, because I've inverted the x/y resolution.)
Windows 10, ASUS N550JK.

Logged
Is there any way to remove mud outdoors?
Yea, use dirt roads to clear off the mud.
Garrie.

burned

  • Bay Watcher
    • View Profile
    • burnedFX
Re: Fixing init.txt
« Reply #7 on: February 19, 2017, 09:35:58 pm »

24x24 won't work correctly with a display resolution of 1920x1280.
24x32 is what you want (80x40 gridsize) or 16x16 if you want square (120x80 gridsize).

There are a few 16x16 listed on the repository, but there's only one 24x32 set and I don't think anyone has created a 12x16 character tileset (which would work as well, but probably not what you are looking for).


edit: The above is written as if you mistakenly typed  "1080" in your last post and the resolution you listed originally (1920x1280) is correct.

<snip> . . .

[FULLSCREENX:1920]
[FULLSCREENY:1080]
[FULLFONT:Nagidal24x24.png]

[BLACK_SPACE:YES]

. . . </snip>
« Last Edit: February 20, 2017, 03:16:50 am by burned »
Logged
DFMA Profile | burnedfx Graphic Set

The process of delving into the black abyss is to me the keenest form of fascination. - H. P. Lovecraft
The Delvers
. . .the middle ground between light and shadow . . . - Rod Serling
The Delvers' Podcast

Garrie

  • Bay Watcher
    • View Profile
    • http://Facebook.com
Re: Fixing init.txt
« Reply #8 on: February 20, 2017, 05:59:41 am »


edit: The above is written as if you mistakenly typed  "1080" in your last post and the resolution you listed originally (1920x1280) is correct.



I'm just going my the numbers my computer tells me is my resolution:
1920 x 1080

Thanks for something that seems more than clutching at straws, I'll have another look at the resolution/proportion you mentioned.

edit:
oh I see, I messed up my original post... oops... maybe that's caused a bit of a problem all along...

I blame the new device and the num-pad is QUITE DIFFERENT compared to the previous one: the "right arrow" intrudes into the numpad and the "0" button is the same size as the rest of the numerals instead of double-width. On my previous laptop the numpad is offset quite a bit to the right.
« Last Edit: February 20, 2017, 06:01:54 am by Garrie »
Logged
Is there any way to remove mud outdoors?
Yea, use dirt roads to clear off the mud.
Garrie.

Garrie

  • Bay Watcher
    • View Profile
    • http://Facebook.com
Re: Fixing init.txt
« Reply #9 on: February 20, 2017, 06:17:44 am »

It seems this link on the wiki is what I should have been looking for.

http://dwarffortresswiki.org/index.php/DF2014:Technical_tricks#Resolution_to_Grid_Ratios
Logged
Is there any way to remove mud outdoors?
Yea, use dirt roads to clear off the mud.
Garrie.