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 / Rename Folder?

Author
Message
Lavaflyer
12
Years of Service
User Offline
Joined: 2nd Jul 2012
Location: Wisconsin, U.S.
Posted: 31st Jul 2013 00:38
So i've been working on the level editor for my new game http://forum.thegamecreators.com/?m=forum_view&t=206779&b=48. I was wondering, am I missing something? or does AppGameKit just not support the renaming of folders and files that I've previously created. I'm trying to make a simple ui that allows users to group their player created levels into subcategories (one level folders) however renaming folders has become an issue as previously described. Thanks! Lavaflyer
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 31st Jul 2013 01:03
AGK doesn't have any commands for renaming files or directories.

If you are using Tier 2, you might be able to use the standard file and directory commands to rename things.

But you probably won't be able to change anything in the media directory under the app executable.

New and changed files done with AppGameKit commands, in all platforms, will appear in the appropriate sand box for the platform. For Windows, that is in Documents\AGK\<yourapp>\media.

You can do things like create a new directory, copy the files from the old, delete them from old and delete the old directory. Currently there isn't an AppGameKit copy command. There are lots of versions of functions to do a copy floating about the forum.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 31st Jul 2013 09:26
maybe don't use a path hirachy and use more propertys in level.file
haliop
User Banned
Posted: 31st Jul 2013 09:30
hmmm if you want i already have this system of folder renaming and file copying on my pc i can build it for you here if you want inside the code box.. just write down the following:

1. folder locations
2. old example new example
3. how do you save stuff for files
4. give me one full file example

i'll create it for you. if you want. and its what Al suggested exactly.

Login to post a reply

Server time is: 2024-11-24 18:22:04
Your offset time is: 2024-11-24 18:22:04