Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / User Directory Environment Var?

Author
Message
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 21st Aug 2016 20:55 Edited at: 21st Aug 2016 21:02
I'm trying to use "TheUser/My Documents/My Games/StarFire" as the directory AppGameKit saves files into.
Via:

AGK doesn't seem to recognize the %USERPROFILE% environment variable.
Is there another way to accomplish this?


PS: I find humor in the fact that the "code" BBCode supports 7 languages but none of the TGC languages.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 22nd Aug 2016 07:18
try this at pc
GetDocumentsPath ()
AGK (Steam) V2.0.20 : Windows 10 Pro 64 Bit : AMD (16.3.2) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 22nd Aug 2016 14:42 Edited at: 24th Aug 2016 16:34
Oh hey, that works.
Thanks a lot!

So I gave it a go and it shows the correct directory with GetWritePath(), however it doesn't seem to work.
The game directory nor any of the games files are being created.
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 29th Aug 2016 06:09
I've made a little program to recreate what I am trying to do
Am I doing something wrong??

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-25 03:36:40
Your offset time is: 2024-11-25 03:36:40