Author Topic: A way to display APPDATADIR and the gang  (Read 100 times)

Monsieur OUXX

  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
A way to display APPDATADIR and the gang
« on: 28 Mar 2019, 18:31 »
Suggestion: Add a static function String File.ResolveFile(String fileName) that resolves the full path just like File.Open would, with the possibility of using $APPDATADIR$, $SAVEGAMEDIR$, etc in the file name.
Because I'm frustrated of spending 15 minutes every time I start a new game just to find the right folder where I should place my files. I literally resolve it through trial and error every time.
 

Crimson Wizard

  • Local Moderator
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on a game that won an AGS Award!
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
Re: A way to display APPDATADIR and the gang
« Reply #1 on: 28 Mar 2019, 19:23 »
Okay, that may be useful for debugging, but regarding paths, default locations are:

$APPDATADIR$ - C:/ProgramData/Adventure Game Studio/your game name
$SAVEGAMEDIR$ - %USERPROFILE%/Saved Games/your game name
$INSTALLDIR$ - in normal mode: where your game exe is in Compiled/Windows; in test mode it checks both project root and Compiled/Windows.

Monsieur OUXX

  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
Re: A way to display APPDATADIR and the gang
« Reply #2 on: 28 Mar 2019, 19:52 »
Okay, that may be useful for debugging, but regarding paths, default locations are:

$APPDATADIR$ - C:/ProgramData/Adventure Game Studio/your game name
$SAVEGAMEDIR$ - %USERPROFILE%/Saved Games/your game name
$INSTALLDIR$ - in normal mode: where your game exe is in Compiled/Windows; in test mode it checks both project root and Compiled/Windows.

Thanks.
Inbetween I remembered FillDirList that can help.