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 / Getting a filename

Author
Message
Santman
12
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 5th Mar 2019 22:22
Bit of an odd question....is there a way to get a filename for a file which does not exist?

What I mean is, if asking a PC user to save something, can we open a file browser to find a folder, then allow a filename to be entered that doesn't already exist? ChooseRawFile won't let you select a non existant file.
puzzler2018
User Banned
Posted: 5th Mar 2019 22:29
Maybe command

ChooseRawFile


Tier 1 Developer
Santman
12
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 5th Mar 2019 22:31
Nope - same message, file not found.

Seems AppGameKit only really accomodates loading a file??
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Mar 2019 22:43
MadBit has created an awesome plugin for this kind of thing
https://forum.thegamecreators.com/thread/219478
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 5th Mar 2019 22:45
Quote: "Seems AppGameKit only really accomodates loading a file??"


Yeh I found that a bit strange. So what I did was saved a set name to the same folder that you last loaded from

A window that just requests a name here would work and only allow the save if the file doesn't already exist
or perhaps delete if exists. Need your own windows library to really make use of saving i saw one on the
forums somwhere
fubar
Santman
12
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 5th Mar 2019 23:33
That looks like an excellent plugin, probably why TGC haven't fixed it.
Santman
12
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 7th Mar 2019 22:00
That is an excellent plugin, but I just wrote my own in the end, saev having the fullscreen app switch out to use the windows box.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th Mar 2019 22:47
I would highly recommend you go with the windows standard one
Look-a-likes for loading/saving files can be very frustrating. I use blender and there is nothing worse than it's homemade load/save dialogs.
I also use a pop-up utility to save/recall my work areas which does not work with such homemade dialogs.
Windows also has all the "Quick access" and other standard directories as well.
Most of all i think it's a lot of work you don't have to do and don't have to worry about moving forward
Santman
12
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 8th Mar 2019 10:51
I hear what you're saying, but for my purposes (for now at least) I'm restricting saving to My Docs as it gets round any permission issues, and the RAW commands aren't always the easiest to navigate with. It's a straighforward system for me, it only requires users to be able to pick for a simple list, or choose to save a new file, so for now I'm going with my own option.

Login to post a reply

Server time is: 2024-04-25 07:22:30
Your offset time is: 2024-04-25 07:22:30