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 Studio Chat / GetReadPath() returns "C:/Program Files (x86)/The Game Creators/AppGameKit Studio/media/interpreters/" when running in debug

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 12th Mar 2020 22:41
As the title says. Does anyone have any idea how to get around this?
hendron
8
Years of Service
User Offline
Joined: 20th Dec 2015
Location:
Posted: 13th Mar 2020 00:12
One of my biggest gripes about AppGameKit lately is how it uses a different directory when running in Debug mode. I've run into so many issues with it, including this one. I ended up doing something like this:



blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 13th Mar 2020 00:23
That's a very clever. Thanks!
hendron
8
Years of Service
User Offline
Joined: 20th Dec 2015
Location:
Posted: 13th Mar 2020 02:32
No problem. It can also be made more system independent by changing the if condition to:



That way it should still work if you change the AGKS install location for whatever reason or move/share the project to a different machine.


blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 13th Mar 2020 02:52
Thanks.
I also found that SetFolder()/GetFirstFile()/GetNextFile() work ok but i recall that they were going to be depreciated

Login to post a reply

Server time is: 2024-04-25 08:59:34
Your offset time is: 2024-04-25 08:59:34