Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: DWARF FORTRESS 0.31.06+Linux  (Read 7393 times)

george_russian

  • Bay Watcher
    • View Profile
DWARF FORTRESS 0.31.06+Linux
« on: June 12, 2010, 05:50:38 am »

I cant run df.Error:Not found: data/art/curses_640x300.png
How i run it:
Code: [Select]
root@bt:/home/df_linux# ./dfLs:
Code: [Select]
root@bt:/home/df_linux# ls data/art/curses_640x300.png
data/art/curses_640x300.png
Grep:
Code: [Select]
root@bt:/home/df_linux# fgrep FONT data/init/init.txt
[FONT:curses_640x300.png]
[FULLFONT:curses_800x600.png]
[GRAPHICS_FONT:curses_square_16x16.png]
[GRAPHICS_FULLFONT:curses_square_16x16.png]

Logged

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #1 on: June 12, 2010, 06:27:14 am »

That error also happens if your version of SDL_image is unable to deal with PNGs. Yeah, bad message, I know, but 99% of the time it's because the file is actually missing.

Try converting the tileset to bmp.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

george_russian

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #2 on: June 12, 2010, 10:10:56 am »

I change png to bmp and set MOUSE NO:
Code: [Select]
WARNING: Do NOT copy over the init.txt from an earlier version of DF.
Always read the file carefully, including the comments.

In general, you can copy savegames and tilesets from older DF
versions, but you should not copy anything else.  You should not, under any
circumstances, unpack a new DF on top of an older one.


Change this to turn sound off.

[SOUND:YES]

The sound volume runs from 0 (off) to 255 (full).  You can set the volume from the ESC options menu as well.

[VOLUME:255]

Change this to skip the wonderful intro movies.

[INTRO:YES]

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.bmp]

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:curses_800x600.bmp]

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]

Graphics info, most of it as above.  Set GRAPHICS to YES to turn it all on.  This will use the "raw/graphics" folder for tile information.  Currently this is limited to whatever creature graphics you have downloaded.  The game comes with a few pictures to demonstrate.  As of September 2008, the Dwarf Fortress Wiki has graphical tilesets available at http://www.dwarffortresswiki.net/index.php/List_of_user_graphics_sets.

[GRAPHICS:NO]
[GRAPHICS_WINDOWEDX:0]
[GRAPHICS_WINDOWEDY:0]
[GRAPHICS_FONT:curses_square_16x16.bmp]
[GRAPHICS_FULLSCREENX:0]
[GRAPHICS_FULLSCREENY:0]
[GRAPHICS_FULLFONT:curses_square_16x16.bmp]
[GRAPHICS_BLACK_SPACE:YES]

These settings can have a significant impact on frame rate, especially for people that have slow frame rates on the title screen.  Available modes are 2D, 2DSW, 2DASYNC, STANDARD, PARTIAL:<number>, ACCUM_BUFFER, FRAME_BUFFER and VBO. The number after PARTIAL refers to how many frames it will redo a printed tile before skipping it, so you might try increasing it a bit if you have flickering when PARTIAL is set.  Please note that any of these combinations might cause frame rates to drop significantly or cause unpleasant side effects like flickering.

By and large, 2D should be the most reliable, while STANDARD has a good combination of speed and reliability. However, all 2D modes are normally far slower than even STANDARD, which may be the slowest OpenGL mode.

2DASYNC may be slightly more responsive than 2D on a multi-core machine, but this has recently become doubtful due to improvements to the other modes.

Linux/OS X users may also use PRINT_MODE:TEXT for primitive ncurses output.

[PRINT_MODE:2D]
[SINGLE_BUFFER:NO]

Change this to YES to keep the DF window on top of your other windows.

[TOPMOST:NO]

Change this to YES if you want to see an FPS counter at the top left.

[FPS:NO]

Use this to set the maximum frame rate during play.  The movies are always capped at 100.  A frame in this case is not graphical but related to the movement speed of a creature.  A healthy, unencumbered dwarven peasant takes one step every 10 frames.

You may set FPS_CAP to 0 to make it uncapped.

[FPS_CAP:100]

Use this to set the maximum graphical frame refresh rate during play.

[G_FPS_CAP:50]

On cards that support the OpenGL ARB_sync extension, turning this on can improve framerates in GPU overload conditions. It defaults to NO, as many cards that claim to support this will crash if asked to do so.

[ARB_SYNC:NO]

This sets the applications vertical synchronization behavior.  Changing this to YES can impact your FPS if your G_FPS is high. ARB_SYNC is a better option, if your system supports it.

[VSYNC:NO]

Change this to NEAREST if you want the texture values to use the nearest pixel without averaging.
Change this to LINEAR if you want the texture values to be averaged over the adjacent pixels.

[TEXTURE_PARAM:LINEAR]

Change this to make the dwarfort.exe process have a different priority.  From highest to lowest, the options are REALTIME, HIGH, ABOVE_NORMAL, NORMAL, BELOW_NORMAL and IDLE.

[PRIORITY:NORMAL]

Use this to set how fast the game zooms.  The default corresponds to
increasing grid size by 10 units each time you zoom.

[ZOOM_SPEED:10]

Change this to NO if you don't want to have the mouse involved at all.

[MOUSE:NO]

Change this to YES if you'd like to use a BMP for the mouse cursor.  The image currently lags when the game is lagging however.

[MOUSE_PICTURE:NO]

This controls the number of milliseconds that must pass before a held key sends an initial repeat press to the game.  You might need to adjust this.

[KEY_HOLD_MS:250]

This controls the number of milliseconds that must pass before a held key sends a repeat press to the game after the repeat process has begun.

[KEY_REPEAT_MS:150]

If you set KEY_REPEAT_ACCEL_LIMIT above one, then after KEY_REPEAT_ACCEL_START repetitions the repetition delay will smoothly decrease until repetition is this number of times faster than at the start.

[KEY_REPEAT_ACCEL_LIMIT:8]
[KEY_REPEAT_ACCEL_START:10]

This controls the number of milliseconds between macro instructions.

[MACRO_MS:150]

This controls the number of milliseconds that must pass before input works again after the view recenters on an event in dwarf mode.

[RECENTER_INTERFACE_SHUTDOWN_MS:0]

Change this to NO if you want to leave save uncompressed (you might want to do this if you are experience save corruption).

[COMPRESSED_SAVES:YES]
But now error "Not found: data/art/mouse.png" appears.
Logged

Mandaril

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #3 on: June 12, 2010, 10:36:25 am »

This may sound a bit stupid, but...the INIT may be case-sensitive (in that Operating System). Try both lower case AND upper case letters (PNG/BMP/png/bmp). Sometimes the software I make has not been able to find the files because of wrong lower/upper-case letters,
Logged
Oddom Adagsibrek, war Mandrill (Tame)
"He is incredibly skinny yet gigantic overall. His hair is brown. His skin is cinnamon. His upper body bears a very short straight scar. His left front leg bears the marks of old wounds, including a tiny straight scar. His right front foot bears a very short straight scar. His throat bears a massive curving scar. His eyes are orange."

george_russian

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #4 on: June 12, 2010, 10:41:53 am »

Error in lowercase, in data/art/ all tiles in lowercase.
Logged

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #5 on: June 12, 2010, 10:49:21 am »

..so you got past the first error by changing the tileset to BMP, and then you got a second, identical problem with a different file. The solution should be obvious.

That said, given that your SDL_image really can't read PNGs... for the love of Eris, get a newer distro. What are you running, Redhat 6?
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

george_russian

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #6 on: June 12, 2010, 11:02:07 am »

ubuntu 8.10, what i should do to beat second problem?(I do not whant change distro 8))
My sdl_image is 1.2.
« Last Edit: June 12, 2010, 11:04:18 am by george_russian »
Logged

Fourdots

  • Bay Watcher
  • ....
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #7 on: June 12, 2010, 11:37:49 am »

Ubuntu has the capability to upgrade to newer versions; it's in the update manager somewhere, possibly with a "check for newer versions" button. If you haven't ever seen that window, you should probably hunt it out and update/upgrade your system. As well as turning on automatic updates. Can't be specific about where these things are, as I'm not using Ubuntu now, but I'm pretty sure that the update manager is in one of the administration menus.

And, as Baughn said, if you get one error, and then fix it by doing something, and then get the same error, you should probably fix it by doing the same thing.
Logged

george_russian

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #8 on: June 12, 2010, 11:56:12 am »

I dont whant to update my system, and its not completely ubuntu,
and it doesnt matter what is it, i have sdl_imge 1.2, its new,
so whats a problem?
Logged

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #9 on: June 12, 2010, 12:49:44 pm »

That it's not compiled with the option to read PNGs turned on, that's what.

Also, Ubuntu 8.10 is positively ancient. They're up to 10.04 already.. yes, 8.10 is still supported, but if you insist on using it you will run into problems like this, and you shouldn't expect proper support for it.

Incidentally, the newest SDL_image is 1.2.10. 1.2 is kind of old.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

mkavanagh

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #10 on: June 12, 2010, 01:26:33 pm »

I have not experienced this problem, but for some people Ubuntu 8.10 is the last version supporting their hardware - 9.04 ships with Catalyst drivers past 9.3, which dropped support for ATi cards prior to and including the X1950. I use a 9800 Pro and, other than a struggling fan, it's hung on through the past 7 years and does me fine for the two great fortress games (TF2 and dorf) - I'm sure the X1950 holds up a lot better.

I'm booting up 8.10 now (500GB drive check woo) to test this, but I am 80% sure this is not related to the version of Ubuntu used - seriously, no PNG support in SDL? I do not think that Ubuntu are likely to ever have shipped SDL_image without PNG support, because that would completely cripple it. More likely: the derivative of Ubuntu or the end-user has damaged or overwritten SDL in some way.
Logged

mkavanagh

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #11 on: June 12, 2010, 01:52:34 pm »

I have tested the Linux release of 0.31.06 and it works without error - incidentally, the version of SDL_Image in Intrepid is 1.2.6, not 1.2. The distribution was released slightly over one and a half years ago, so "ancient" is rather overstating things.

Best practice for error reporting, though: if you're not actually using Ubuntu 8.10, don't say that you are! If you have messed around with SDL in any way, then you will need to restore a sane version. If the people who produce the derivative of Ubuntu you use have shipped a version of SDL_Image without PNG support, stay away from them because they are probably lunatics ready to snap at any minute.
Logged

Rowanas

  • Bay Watcher
  • I must be going senile.
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #12 on: June 12, 2010, 01:53:05 pm »

Ah, linux users. If only you had compiled even more things. I thought you guys enjoyed compiling stuff :P

I kid, I kid. I actually posted to say that my mate is playing 31.06 with SDL_ 1.2 and the latest ubuntu, which would suggest that it's the version of ubuntu rather than the SDL. This is only what I know of his machine, my knowledge of linux is more limited.
Logged
I agree with Urist. Steampunk is like Darth Vader winning Holland's Next Top Model. It would be awesome but not something I'd like in this game.
Unfortunately dying involves the amputation of the entire body from the dwarf.

george_russian

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #13 on: June 12, 2010, 03:19:15 pm »

Please, read carefully, as i told i use ubuntu (all distros same - core+some stuff
(any kind of desirable programs)i can build lfs and name it bubuntu but sense do not change) based distro.
Can anyonee help me?

Logged

Fourdots

  • Bay Watcher
  • ....
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #14 on: June 12, 2010, 03:40:15 pm »

Please, read carefully, as i told i use ubuntu (all distros same - core+some stuff
(any kind of desirable programs)i can build lfs and name it bubuntu but sense do not change) based distro.
Can anyonee help me?

I can barely read what you're saying. However, to fix the problem with DF not finding data/art/mouse.png (because SDL_Image can't read pngs on your system, for whatever reason), convert the file from a png to a bmp, and change [MOUSE_PICTURE:NO] to [MOUSE_PICTURE:YES]. Probably, anyways, that's what the text in init.txt suggests ("Change this to YES if you'd like to use a BMP for the mouse cursor."). Pretty much the same as you did to fix your initial problem.

And serious, go into a shell and "sudo apt-get update; sudo apt-get upgrade"
You'll get the newest versions of all of your programs, libraries, and so forth in whatever repositories you are using, it won't upgrade you to a newer version, and there is no reason not to except stubbornness, unless you've done something which makes installing/updating stuff from the repositories break your system, in which case you should be able to figure out what error messages mean by yourself (consider this last bit tongue-in-cheek; it's a joke, sort of).
Logged
Pages: [1] 2