Graphic file availability at start
Moderator: OpenTTD Developers
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Graphic file availability at start
I have put off upgrading OpenTTD for a while since the inflation availability dates got locked,but have started/shelved some games under older versions I hope I can work with without their being affected by this.
I recently upgraded my OS in a somewhat messy way,though I made backups of lots of data...after upgrading OpenTTD would coredump and crash instead of starting.
I finally upgraded OpenTTD to 12.2 and now it doesn't crash,it says that it is missing graphics files it needs and asks if I should download them or exit.
I am pretty sure I have whatever files it needs in backups even if I didn't put them where they're needed after the OS upgrade,so would rather not re-download.
What files trigger that message,so I can look for them and copy them where they're needed?
I recently upgraded my OS in a somewhat messy way,though I made backups of lots of data...after upgrading OpenTTD would coredump and crash instead of starting.
I finally upgraded OpenTTD to 12.2 and now it doesn't crash,it says that it is missing graphics files it needs and asks if I should download them or exit.
I am pretty sure I have whatever files it needs in backups even if I didn't put them where they're needed after the OS upgrade,so would rather not re-download.
What files trigger that message,so I can look for them and copy them where they're needed?
Re: Graphic file availability at start
If you open a terminal or command prompt and run OpenTTD that way, you may get some error messages appear which will give you a good place to start.
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: Graphic file availability at start
If I do it in the window manager I just get that window asking me to download graphics,if I do plain "openttd" at a command prompt instead of "xinit openttd" I get a bunch of characters surrounding text making various complaints.
I checked my backup's .openttd directory for my current .openttd directory for my account and found almost nothing (just save) in the current,and copied over the bulk of the other subdirectories (ai,content_download,baseset,newgrf,and more) and now the game launches,but if I ask it to load a game it now looks for a .local/share/openttd/save directory in my home directory rather than .openttd/save
(this is not the systemwide /usr/local/share directory).
I checked my backup's .openttd directory for my current .openttd directory for my account and found almost nothing (just save) in the current,and copied over the bulk of the other subdirectories (ai,content_download,baseset,newgrf,and more) and now the game launches,but if I ask it to load a game it now looks for a .local/share/openttd/save directory in my home directory rather than .openttd/save
(this is not the systemwide /usr/local/share directory).
Re: Graphic file availability at start
the ~/.openttd directory is deprecated, and the newer xdg guidelines are used, if the directory isn't present on first startup.
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: Graphic file availability at start
maybe the openttd.cfg file was missing. you mentioned your copy was incomplete
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: Graphic file availability at start
check this out:
Code: Select all
> ./openttd -d misc=3
dbg: [misc] /home/johannes/.openttd/ found as config directory
dbg: [misc] /home/johannes/.openttd/ found as personal directory
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: Graphic file availability at start
What I get in response to that is
bash: .openttd: Is a directory
or
bash: ./openttd: Is a directory
depending on whether I put the / in in the > line.
The openttd.cfg starts with a [misc] section that starts with display_opt and ends with video_vsync with no directory related content.
bash: .openttd: Is a directory
or
bash: ./openttd: Is a directory
depending on whether I put the / in in the > line.
The openttd.cfg starts with a [misc] section that starts with display_opt and ends with video_vsync with no directory related content.
Re: Graphic file availability at start
What Eddi's done, is he's cd'd to the directory where the openttd executable is.Baldy's Boss wrote: ↑15 Dec 2022 01:56 What I get in response to that is
bash: .openttd: Is a directory
or
bash: ./openttd: Is a directory
depending on whether I put the / in in the > line.
The openttd.cfg starts with a [misc] section that starts with display_opt and ends with video_vsync with no directory related content.
If you've got openttd correctly installed and the directory it's located in is contained in the PATH environment variable, you should be able to run it by omitting the '.' and the '/'. I.e.
Code: Select all
openttd -d misc=3
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: Graphic file availability at start
The executable in the path is in /usr/local/bin,I believe, as opposed to anything under my personal home directory.
Any user on the system (there are few) should be able to launch it and have a personal .openttd directory...not share all savegames.
Any user on the system (there are few) should be able to launch it and have a personal .openttd directory...not share all savegames.
Re: Graphic file availability at start
If you move your ~/.local/share/openttd/openttd.cfg file to ~/.openttd/openttd.cfg then the game should start looking in ~/.openttd/ for its settings and data.
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: Graphic file availability at start
There's an openttd.cfg in .openttd already,
the .local/share/openttd directory does not have an openttd.cfg in it.
the .local/share/openttd directory does not have an openttd.cfg in it.
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: Graphic file availability at start
I don't think I've resolved this,I have scarcely played since,and my system wants to upgrade me from 13.0_2 to 13.4 at the next opportunity...but I noticed another broken config issue,although I'm sure there must be revisions of many things since I last updated,"Check online content" does nothing now.
Is there a new place to look for that that my game doesn't know?
Is there a new place to look for that that my game doesn't know?
Re: Graphic file availability at start
Try opening the in-game console and enter the command:
It should then show you all the paths the game will look for NewGRF files in, with the current game configuration.
(There are also several other categories of dirs you can get that command to list.)
Code: Select all
list_dirs newgrf
(There are also several other categories of dirs you can get that command to list.)
Who is online
Users browsing this forum: No registered users and 2 guests