User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: setting the ini path with .\

  1. #1
    Clicker Fusion 2.5 Developer
    bradley's Avatar
    Join Date
    Apr 2009
    Location
    South Africa
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  3. #3
    Clicker Fusion 2.5 Developer
    bradley's Avatar
    Join Date
    Apr 2009
    Location
    South Africa
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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...

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    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.

  5. #5
    Clicker Fusion 2.5 Developer
    bradley's Avatar
    Join Date
    Apr 2009
    Location
    South Africa
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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!!!!!

  6. #6
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    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.

  7. #7
    Clicker Fusion 2.5 Developer
    bradley's Avatar
    Join Date
    Apr 2009
    Location
    South Africa
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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...

  8. #8
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  9. #9
    Clicker Fusion 2.5 Developer
    bradley's Avatar
    Join Date
    Apr 2009
    Location
    South Africa
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: setting the ini path with .\

    Didnt get your edit - I am trying to put it in the same directory as the exe...

  10. #10
    Clicker Fusion 2.5 Developer
    bradley's Avatar
    Join Date
    Apr 2009
    Location
    South Africa
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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...

Page 1 of 2 1 2 LastLast

Similar Threads

  1. How to make path movements without path movement?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th February 2012, 06:49 PM
  2. Path Maker (Advanced Path Movement) for BIG levels
    By StingRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd June 2010, 02:14 PM
  3. setting ini path, group, item from variables
    By ajp in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th September 2009, 10:33 PM
  4. Setting The Path In The File Obect
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 11th March 2007, 03:54 PM
  5. Path Maker for Advanced Path Movement
    By Willi Leopold in forum Extension Development
    Replies: 9
    Last Post: 15th November 2006, 03:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •