Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Graphics Help  (Read 689 times)

short_dwarf

  • Bay Watcher
    • View Profile
Graphics Help
« on: March 04, 2009, 01:19:22 am »

I am having extreme problems with adding graphics :(

I want to add the graphics without changing the size of the windowed screen. Everytime I try though I get a black screen.

Yes I set
[GRAPHICS:YES]

and added the file name
[FONT:maydayMIN.bmp]
in place of the curses.
Logged
Courage. Do one brave thing today, then run like H#ll.
Insanity: What others call geniuses when they are jealous and/or unable to comprehend the ideas/inventions of amazing/epic proportions of the one being called insane.

Tellemurius

  • Bay Watcher
  • Positively insane Tech Thaumaturgist
    • View Profile
Re: Graphics Help
« Reply #1 on: March 04, 2009, 01:13:20 pm »

great question, i neede help on that too cause i don't need DF taking up all of the screen.

Exponent

  • Bay Watcher
    • View Profile
Re: Graphics Help
« Reply #2 on: March 04, 2009, 04:17:32 pm »

As you can see on the wiki, you'll need to change all four of these settings to the appropriate values:

[GRAPHICS:NO]
[GRAPHICS_WINDOWEDX:1280]
[GRAPHICS_WINDOWEDY:400]
[GRAPHICS_FONT:curses_square_16x16.bmp]

Additionally, you might want to pay attention to this setting:

[GRID:80:25]

The second and third settings will need to be calculated by multiplying the first and second number of GRID by the pixel size of each tile for the tileset that you're using.  Do you happen to know what the size of a tile is for maydayMIN.bmp?  If you don't, find out how big the overall image is in pixels, and divide by 16.
Logged

short_dwarf

  • Bay Watcher
    • View Profile
Re: Graphics Help
« Reply #3 on: March 04, 2009, 07:08:17 pm »

Each tile is 16x16 Pixels
Logged
Courage. Do one brave thing today, then run like H#ll.
Insanity: What others call geniuses when they are jealous and/or unable to comprehend the ideas/inventions of amazing/epic proportions of the one being called insane.

short_dwarf

  • Bay Watcher
    • View Profile
Re: Graphics Help
« Reply #4 on: March 04, 2009, 07:16:31 pm »

I have found out the problem and I'v found that graphics with 16x16 can't be used on a windowed game of 640x300 :(
Logged
Courage. Do one brave thing today, then run like H#ll.
Insanity: What others call geniuses when they are jealous and/or unable to comprehend the ideas/inventions of amazing/epic proportions of the one being called insane.

LegoLord

  • Bay Watcher
  • Can you see it now?
    • View Profile
Re: Graphics Help
« Reply #5 on: March 04, 2009, 07:23:02 pm »

I have found out the problem and I'v found that graphics with 16x16 can't be used on a windowed game of 640x300 :(
So edit the windowed resolution.  Give me a sec . . .

1280x400 should do.  If not, try 1280x300
« Last Edit: March 04, 2009, 07:24:44 pm by LegoLord »
Logged
"Oh look there is a dragon my clothes might burn let me take them off and only wear steel plate."
And this is how tinned food was invented.
Alternately: The Brick Testament. It's a really fun look at what the bible would look like if interpreted literally. With Legos.
Just so I remember