Page 1 of 1
Missing ini file.
Posted: 14 Dec 2010 15:56
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?
Re: Missing ini file.
Posted: 14 Dec 2010 19:03
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"
Re: Missing ini file.
Posted: 15 Dec 2010 15:44
by Rosko
Searching for openttd.cfg brings up nothing. Thanks for the help though.
Re: Missing ini file.
Posted: 15 Dec 2010 19:14
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.
Re: Missing ini file.
Posted: 16 Dec 2010 02:15
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.
Re: Missing ini file.
Posted: 16 Dec 2010 08:58
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
Re: Missing ini file.
Posted: 16 Dec 2010 09:35
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.
Re: Missing ini file.
Posted: 16 Dec 2010 13:30
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.
Re: Missing ini file.
Posted: 16 Dec 2010 13:34
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.
Re: Missing ini file.
Posted: 16 Dec 2010 15:38
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.
Re: Missing ini file.
Posted: 16 Dec 2010 15:59
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?
Re: Missing ini file.
Posted: 16 Dec 2010 16:44
by Rosko
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.
Re: Missing ini file.
Posted: 16 Dec 2010 16:45
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.
Re: Missing ini file.
Posted: 16 Dec 2010 17:43
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.
Re: Missing ini file.
Posted: 16 Dec 2010 17:45
by Yexo
In that case you shouldn't have any problem renaming a file "openttd.txt" to "openttd.cfg".
Re: Missing ini file.
Posted: 16 Dec 2010 18:48
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.
Re: Missing ini file.
Posted: 17 Dec 2010 08:34
by dihedral