setting the ini path with .\
When I use .\score.ini to set the ini file to the current directory it now puts it in C:\Documents and Settings\Bradley \Application Data\Clickteam\score.ini
This is in both XP and Vista.
Two days ago I used the .\ (as found in the MMF2 helpfile) to get it to work in Vista as XP didnt seem to have that issue. I just put in the name and voila - it worked, showing the correct directory.
Now it does not work but defaults to the above directory. - I have quite long directory names in convoluted paths and it is a pain to have to write it out manually.
I have tried all the app execution levels without success in any. Also this now happens in XP, so I wonder if it is a registry setting or something that has changed.
Why does the .\ no longer work..? Please help. Thanks.
Re: setting the ini path with .\
No idea, but you should be using appath$+"\" instead of ".\" if you really want it in the same folder as your app.
Re: setting the ini path with .\
Nope - not too sure of the syntax? so I tried different variations of appath$+"\" and it ended up in the windows folder - one variation ended up on my desktop...? all others defaults to the users clickteam folder. (see above). I definately do no want it there as I imagine a user will not have that nor do I want it to create one for users...
Re: setting the ini path with .\
I just use Appdir$ + "blah.ini"
Puts the file in the same directory as your app. Works for me every time.
Re: setting the ini path with .\
Not for me - still puts it in the windows folder on XP - I could live with that. But I dont get it to work with Vista... AAAAARRRRRGGGGHHH!!!!!
Re: setting the ini path with .\
Quote:
Originally Posted by bradley
Not for me - still puts it in the windows folder on XP - I could live with that. But I dont get it to work with Vista... AAAAARRRRRGGGGHHH!!!!!
Really? I'm using Vista Ultimate x64 and it works fine.
Edit - Just so I understand this, are you trying to get the ini to be in the same directory as the .exe or do you need it in a different directory? If so using Appdir$ won't do that. I was reading that thinking you needed it in the same directory as the app.
Depending on what directory you're putting it in on Vista may require admin priveleges, but I'm not sure if that is what is going on here.
Re: setting the ini path with .\
Thanks Shawn - I went back to an earlier copy that did work and found that it works fine as long as I use that copy. Even the .\ still works there, but nowhere else...
I'll muddle along and hope for the best...
Re: setting the ini path with .\
./ goes from the current working directory, which... is usually the folder that your game is running out of, but there are things that can change it. Could a different extension that you recently added be interfering with it?
I should also mention that Application Data is the place that Vista (and presumably later Windows as well) want you to write saved games to - you can't write directly to subdirectories of Program Files unless running as an administrator, or... something like that.
Re: setting the ini path with .\
Didnt get your edit - I am trying to put it in the same directory as the exe...
Re: setting the ini path with .\
DavidN: Thanks - I will check the extension angle although I am begining to think that I have picked up a virus. AVG shows it as clean though...
[edit] I dont mind it going into the application data folder at all - I just thought it a bit of a cheek to have it in a sub dir named clickteam... :)