Missing ini file.

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
Rosko
Engineer
Engineer
Posts: 7
Joined: 14 Dec 2010 15:43

Missing ini file.

Post by Rosko »

Hi OTTD.

Im having problems. The OTTD settings reset every time i restart the game.

Ive searched for the .ini file to change stuff manually but i cant find it anywhere.
Ive read the readme and searched all the directories it gives for the .ini.
Ive read and re-read the wiki and tried everything it suggests.
Ive read all the troubleshooting and FAQs i can find, but none mention a run away .ini file.
Readme says that when you close OTTD it will make a .ini if there isnt already one. It hasnt (or at least in the directories ive searched)
Ive searched for openttd.cfg, what the readme says the .ini file is called, but to no avail.

I just want to change resolution, full screen, music off and inverting map direction. Its seriously annoying and its preventing me from playing the game comfortably.

How do i fix it?
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Missing ini file.

Post by Eddi »

most likely, openttd cannot write the config file upon closing.

reason for this may be:
  • there exists an openttd.cfg, and it is write protected (e.g. in the "Program Files\OpenTTD" directory, where only administrators can change files.)
try searching for this file and delete it, then OpenTTD should write a new openttd.cfg in "My Documents\OpenTTD"
Rosko
Engineer
Engineer
Posts: 7
Joined: 14 Dec 2010 15:43

Re: Missing ini file.

Post by Rosko »

Searching for openttd.cfg brings up nothing. Thanks for the help though.
Arie-
Director
Director
Posts: 593
Joined: 20 Jan 2009 16:07

Re: Missing ini file.

Post by Arie- »

1) So how did you install Openttd, unzip an archive, use the installer?
2) Have you looked in the installation directory of openttd?
3) Have you looked in "\my documents\openttd\"

Please answer ALL those questions.
Rosko
Engineer
Engineer
Posts: 7
Joined: 14 Dec 2010 15:43

Re: Missing ini file.

Post by Rosko »

1) So how did you install Openttd, unzip an archive, use the installer?
Downloaded the latest stable installer (1.0.5) installed and found the problem. Reinstalled and the problem still occurs.
2) Have you looked in the installation directory of openttd?
Yes. Ive looked in every folder and at every file within the OTTD folder in program files.
3) Have you looked in "\my documents\openttd\"
I've looked in the vista version of this, yes, and the openttd folder isnt there, let alone the file im after. The vista version is C:\Users\<username>\Documents\OpenTTD. Putting that into the address bar brings up an error saying it doesnt exist.

"reason for this may be:
there exists an openttd.cfg, and it is write protected"

I forgot to respond to this. I am admin and the computer recognises this account as so (im tired, sorry if that sentence is strange).

Ive used windows search (or whatever its called) to search for the exact filename, according to the readme and wiki, but it shows up nothing. Either the file isnt there and isnt being created, or its named something else.
The file im looking for is openttd.cfg , just to clarify.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: Missing ini file.

Post by Lord Aro »

To start off, there is no such thing as a .ini file for OpenTTD, just a .cfg file (that fact was annoying me a little :) )

openttd.cfg sometimes appears as an 'Outlook configuration file' it's not - just open it in your favourite text editor
Finally, if a search of openttd.cfg through your whole computer reveals nothing, just make one ;) an empty openttd.cfg in /program files/openttd or in /<user name>/documents/openttd/ will sufice
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Arie-
Director
Director
Posts: 593
Joined: 20 Jan 2009 16:07

Re: Missing ini file.

Post by Arie- »

Then it starts to get rather strange, the 1.0.5 installer should ask you whether you want to use the original graphics or the Open**X replacements. The original graphics should then be copied from the CD to your "my documents/openttd" folder, or the Open**X replacements would be downloaded into your "my documents/openttd" folder. As this doesn't happen there probably is some other folder where these files are stored, because you CAN start OpenTTD.
So then my new question: where are the data files stored? However first something to try:
- Right click your OpenTTD executable -> Run as administrator -> Now OpenTTD has administrator rights
My guess: somehow the installer decided to use your "program files" folder, and installed correctly, including the data files in the "program files" folder. However, when running OpenTTD now, it does not have admin rights, as so, the openttd.cfg file cannot be created in the "program files" folder.
Rosko
Engineer
Engineer
Posts: 7
Joined: 14 Dec 2010 15:43

Re: Missing ini file.

Post by Rosko »

To start off, there is no such thing as a .ini file for OpenTTD, just a .cfg file
Sorry. My days playing Dwarf Fortress seem to have embedded that in me.
if a search of openttd.cfg through your whole computer reveals nothing, just make one
If there isnt one already then will OTTD use a new one once i put it there? I mean it cant be looking in that directory in the first place so anything put there will be ignored. It wont even be ignored, it just plain wont be looked for over there. I'll try it anyway, im not exactly great with computers so i might be wrong. I'll need a base version of the .cfg though. Any idea where i can get that from?

the 1.0.5 installer should ask you whether you want to use the original graphics or the Open**X replacements
I downloaded the free ones because i have no copy of the CD. Searching reveals the OpenGFX/SFX folders and files to be in C:\Program Files\OpenTTD\data
- Right click your OpenTTD executable -> Run as administrator -> Now OpenTTD has administrator rights
No change, im afraid.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Missing ini file.

Post by planetmaker »

Rosko wrote: if a search of openttd.cfg through your whole computer reveals nothing, just make one
If there isnt one already then will OTTD use a new one once i put it there?
Do-not-ever-readme.txt: http://vcs.openttd.org/svn/browser/tags ... e.txt#L249
The same thing what goes for data files goes for the config file (just skip the "data" subfolder)

Still, if you have write permissions as an admin should have everywhere, I don't see why it fails to write an openttd.cfg, whereever it is, unless it's a write-protected disk.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Missing ini file.

Post by Yexo »

Rosko wrote:I'll need a base version of the .cfg though. Any idea where i can get that from?
An empty file willl do.
Arie-
Director
Director
Posts: 593
Joined: 20 Jan 2009 16:07

Re: Missing ini file.

Post by Arie- »

Indeed, I also think it is rather strange that although OpenTTD is executed as a process with administrator rights, no openttd.cfg is created. Did you do a search over your entire disk after executing OpenTTD with administrator privileges?
Rosko
Engineer
Engineer
Posts: 7
Joined: 14 Dec 2010 15:43

Re: Missing ini file.

Post by Rosko »

planetmaker wrote: Do-not-ever-readme.txt: http://vcs.openttd.org/svn/browser/tags ... e.txt#L249
The same thing what goes for data files goes for the config file (just skip the "data" subfolder)
Sorry, i dont really know what youre saying there.
Yexo wrote:
Rosko wrote:I'll need a base version of the .cfg though. Any idea where i can get that from?
An empty file willl do.
Ive just put a .txt file named openttd in each of the directories mentioned in the readme. Started and closed the game but none of the files were changed. The files however were .txt files, not .cfg. I cant make .cfg files so i just put .cfg at the end of the file name (its worked in the past).
Arie- wrote:Indeed, I also think it is rather strange that although OpenTTD is executed as a process with administrator rights, no openttd.cfg is created. Did you do a search over your entire disk after executing OpenTTD with administrator privileges?
Aye, didnt work.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Missing ini file.

Post by Yexo »

Try disabling the "feature" 'Hide known extensions'.

Most likely you've now created a file named "openttd.cfg.txt", which is not "openttd.cfg" and as such won't work.
Rosko
Engineer
Engineer
Posts: 7
Joined: 14 Dec 2010 15:43

Re: Missing ini file.

Post by Rosko »

Try disabling the "feature" 'Hide known extensions'.
If you mean the windows feature, ive already done that a long time ago. Cheers though.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Missing ini file.

Post by Yexo »

In that case you shouldn't have any problem renaming a file "openttd.txt" to "openttd.cfg".
Rosko
Engineer
Engineer
Posts: 7
Joined: 14 Dec 2010 15:43

Re: Missing ini file.

Post by Rosko »

Yexo wrote:In that case you shouldn't have any problem renaming a file "openttd.txt" to "openttd.cfg".
YES motherlicker! Sorted! I did make a mistake afterall, Hide known extensions wasnt enabled.
I made a .cfg in the programfiles/openttd and it fixed it. I dont know why it wouldnt make the file itself though. Strange.

Thanks to everyone for helping, its greatly appreciated.

Edit.. now ive just got to figure out how to use bloody signals.
dihedral
Tycoon
Tycoon
Posts: 1053
Joined: 14 Feb 2007 17:48

Re: Missing ini file.

Post by dihedral »

Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 10 guests