Missing ini file.
Moderator: OpenTTD Developers
Missing ini file.
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?
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.
most likely, openttd cannot write the config file upon closing.
reason for this may be:
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.)
Re: Missing ini file.
Searching for openttd.cfg brings up nothing. Thanks for the help though.
Re: Missing ini file.
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.
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.
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.
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.
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

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

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
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
Re: Missing ini file.
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.
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.
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.
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.
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Missing ini file.
Do-not-ever-readme.txt: http://vcs.openttd.org/svn/browser/tags ... e.txt#L249Rosko 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?
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.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Missing ini file.
An empty file willl do.Rosko wrote:I'll need a base version of the .cfg though. Any idea where i can get that from?
Re: Missing ini file.
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.
Sorry, i dont really know what youre saying there.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)
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).Yexo wrote:An empty file willl do.Rosko wrote:I'll need a base version of the .cfg though. Any idea where i can get that from?
Aye, didnt work.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?
Re: Missing ini file.
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.
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.
Try disabling the "feature" 'Hide known extensions'.
If you mean the windows feature, ive already done that a long time ago. Cheers though.
If you mean the windows feature, ive already done that a long time ago. Cheers though.
Re: Missing ini file.
In that case you shouldn't have any problem renaming a file "openttd.txt" to "openttd.cfg".
Re: Missing ini file.
YES motherlicker! Sorted! I did make a mistake afterall, Hide known extensions wasnt enabled.Yexo wrote:In that case you shouldn't have any problem renaming a file "openttd.txt" to "openttd.cfg".
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.
Who is online
Users browsing this forum: No registered users and 7 guests