Adventure Game Studio | Forums

AGS Development => Engine Development => Topic started by: Monsieur OUXX on 28 Mar 2019, 18:31

Title: A way to display APPDATADIR and the gang
Post by: Monsieur OUXX 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.
Title: Re: A way to display APPDATADIR and the gang
Post by: Crimson Wizard 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.
Title: Re: A way to display APPDATADIR and the gang
Post by: Monsieur OUXX 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.