Post Reply 
 
Thread Rating:
  • 27 Votes - 2.63 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any way to get VBA save file behavior?
Author Message
nathan Offline
Junior Member
**

Posts: 6
Joined: Oct 2008
Reputation: 0
Post: #1
Any way to get VBA save file behavior?
Hi,

In VBA, the default (I believe) behavior was for the .sav files to go in the same directory as the image. This makes a suspicious amount of sense to me, but I can't see this behavior as an option in gvbam svn 773 under Linux/KDE. I tried setting the save path to the current directory, but this didn't do it.

I realize I could copy my .sav files to one directory, but I kind of like having everything related to a game in one place so if I want to copy the directory around I know I'm getting everything.

Thanks.
10-21-2008 01:00 PM
Find all posts by this user Quote this message in a reply
spacy51 Offline
VBA-M Developer
*******

Posts: 451
Joined: Mar 2008
Reputation: 3
Post: #2
RE: Any way to get VBA save file behavior?
I personally don't like it, when my pure ROM collection gets bloated with save games and other stuff. clrmamepro deletes those files anyway.
10-21-2008 05:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,475
Joined: Mar 2008
Reputation: 15
Post: #3
RE: Any way to get VBA save file behavior?
The default behavior is to do that yes.

Spacy, can we change it to use Relative Paths by default, it makes sense since thats the default behavior of most other emulators.

10-21-2008 10:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
spacy51 Offline
VBA-M Developer
*******

Posts: 451
Joined: Mar 2008
Reputation: 3
Post: #4
RE: Any way to get VBA save file behavior?
done, SVN774

VBA-M will now default to the ".\battery" and ".\savestates" directories. They will be created if necessary.

I think the ROM directories should stay empty as they are, but what about screenshots? exe dir, Desktop, My Pictures?
10-22-2008 05:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,475
Joined: Mar 2008
Reputation: 15
Post: #5
RE: Any way to get VBA save file behavior?
i think it should by default generate any folders it uses in the folder the executable is in.

10-22-2008 05:09 AM
Visit this user's website Find all posts by this user Quote this message in a reply
spacy51 Offline
VBA-M Developer
*******

Posts: 451
Joined: Mar 2008
Reputation: 3
Post: #6
RE: Any way to get VBA save file behavior?
done, ".\screenshots", SVN775
10-22-2008 05:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Hard Core Rikki Offline
Former Administrator
******

Posts: 178
Joined: Apr 2008
Reputation: 6
Post: #7
RE: Any way to get VBA save file behavior?
Quote:VBA-M will now default to the ".\battery" and ".\savestates" directories. They will be created if necessary.
Finally ;p

VBA-M:
Developpers | To-do list | Latest releases

TODAY'S TOPICS
10-22-2008 06:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
nathan Offline
Junior Member
**

Posts: 6
Joined: Oct 2008
Reputation: 0
Post: #8
RE: Any way to get VBA save file behavior?
Just so I understand, will ./battery be relative to the directory I ran gvbam from, or from the rom directory?

Thanks!
10-22-2008 10:13 AM
Find all posts by this user Quote this message in a reply
slacker Offline
Junior Member
**

Posts: 24
Joined: Jul 2008
Reputation: 1
Post: #9
RE: Any way to get VBA save file behavior?
please keep this windows only for Linux it really should be separated otherwise you'll get permission problems galore.
10-22-2008 01:03 PM
Find all posts by this user Quote this message in a reply
spacy51 Offline
VBA-M Developer
*******

Posts: 451
Joined: Mar 2008
Reputation: 3
Post: #10
RE: Any way to get VBA save file behavior?
Oh, I'm so sorry, I completely overread nathan was talking about the Linux build -_-"
Actually, I improved the Windows build Angel
10-22-2008 10:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Zach Thibeau Offline
Administrator
*******

Posts: 251
Joined: Mar 2008
Reputation: 2
Post: #11
RE: Any way to get VBA save file behavior?
lol I remember you talking about that on IRC Tongue can't wait to get my build system back up to compile the latest revision

Emuskillet checking whats cooking in the emuscene | My Personal Blog
[Image: tealcsiler5bb.gif]
10-22-2008 11:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bgK Offline
VBA-M Contributor
*****

Posts: 101
Joined: Apr 2008
Reputation: 1
Post: #12
RE: Any way to get VBA save file behavior?
As slacker, this is a very bad thing to do on Linux since there is no reason for the executable path to be writable. The savegames should be written to a subfolder of the home directory. The very same thing applies to Windows (since Vista) but most programs still don't have the right behaviour (Which makes the users wonder why their apps don't work correctly in a multiuser environment and / or trigger the UAC thing).
10-22-2008 11:21 PM
Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,475
Joined: Mar 2008
Reputation: 15
Post: #13
RE: Any way to get VBA save file behavior?
Folders created by VBA below the program files folder will have full user permissions in Vista,

10-22-2008 11:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bgK Offline
VBA-M Contributor
*****

Posts: 101
Joined: Apr 2008
Reputation: 1
Post: #14
RE: Any way to get VBA save file behavior?
10-22-2008 11:41 PM
Find all posts by this user Quote this message in a reply
spacy51 Offline
VBA-M Developer
*******

Posts: 451
Joined: Mar 2008
Reputation: 3
Post: #15
RE: Any way to get VBA save file behavior?
So, what do people want? A completely portable one-exe-GB/GBA-emulator for their USB stick for emulator action on the go, or a small installer? Of course it would be great to do it the way µTorrent does, it allows both.
(This post was last modified: 10-23-2008 12:00 AM by spacy51.)
10-23-2008 12:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,475
Joined: Mar 2008
Reputation: 15
Post: #16
RE: Any way to get VBA save file behavior?
(10-22-2008 11:41 PM)bgK Wrote:  http://www.hanselman.com/blog/VistasShow...ation.aspx

Vista's only real problem comes in trying to run an emulator from the program files folder. Files and folders created on the root of the drive are not specific to any account.

10-23-2008 12:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
KunaiTeam Offline
Member
***

Posts: 50
Joined: Aug 2008
Reputation: 0
Post: #17
RE: Any way to get VBA save file behavior?
I believe that the correct thing to do on any multi-user system, which includes Windows NT/2000/XP/Vista, is to place the save files, save states and screenshots somewhere in the user's home folder. That way multiple users can play the same ROM and have different save states.

Now, whether or not ROMs are personal user documents as well is less clear. I tend to believe that they are, but the system administrator may want to make a ROM available to all accounts.

What I would recommend is allowing the user to specify a location for a V-BAM directory. Inside this directory there would be for soubdirectories: ROMs, Battery Saves, Save States, and Screenshots. (These are just suggestions. I think that "Battery Saves" might be confusing to some users, but "Game Saves" isn't quite accurate).

I believe that this would satisfy nathan's desire to have everything in one directory, while still providing a clean split so that the ROMs directory doesn't get overrun with screenshots and battery saves. If someone really wants to have their ROMs in the same directory as the VBA-M executable, they can set the directory in the preferences.
10-23-2008 06:43 AM
Find all posts by this user Quote this message in a reply
spacy51 Offline
VBA-M Developer
*******

Posts: 451
Joined: Mar 2008
Reputation: 3
Post: #18
RE: Any way to get VBA save file behavior?
I thought of the following behaviour:

- Look for vba.ini in the exe folder
- If found: switch to old(current) mode
- If not found, look for vba.ini in "%appdata%\VBA-M" or create it there, along with the battery/savestates/screenshots directories.

VBA-M shall never have anything to do with the Registry at all.

As for the ROM folders, I think it's best to let the user choose where they are. I personally have a own hard drive for Software/OS/Game CD/DVD images and of course for ROMs. An emulator should not be paired with Roms IMO. That's one point I don't like about No$GBA, which has a strange SLOT folder. Actually, you can treat ROMs like MP3s. They have an ID3Tag (rom header) and content (opcodes, graphics, sound), and you don't put your MP3s into "%appdata%\Windoze Media Player\MP3s".
10-23-2008 07:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
nathan Offline
Junior Member
**

Posts: 6
Joined: Oct 2008
Reputation: 0
Post: #19
RE: Any way to get VBA save file behavior?
(10-23-2008 07:25 AM)spacy51 Wrote:  - Look for vba.ini in the exe folder
- If found: switch to old(current) mode
- If not found, look for vba.ini in "%appdata%\VBA-M" or create it there, along with the battery/savestates/screenshots directories.
I like the current behavior (in linux) of storing the configuration in .config/gvbam

(10-23-2008 07:25 AM)spacy51 Wrote:  VBA-M shall never have anything to do with the Registry at all.
Amen Smile

(10-23-2008 07:25 AM)spacy51 Wrote:  As for the ROM folders, I think it's best to let the user choose where they are. I personally have a own hard drive for Software/OS/Game CD/DVD images and of course for ROMs. An emulator should not be paired with Roms IMO. That's one point I don't like about No$GBA, which has a strange SLOT folder. Actually, you can treat ROMs like MP3s. They have an ID3Tag (rom header) and content (opcodes, graphics, sound), and you don't put your MP3s into "%appdata%\Windoze Media Player\MP3s".

As I said earlier, I personally like having my ROM images alongside my save files: everything related to the game is in one place. I don't like the idea of save files in the same directory as the executable for the reasons pointed out by others above. If I can't have my save files in the same dir as my ROMs, I would prefer them to be in my home directory in a folder of my choosing (but probably not under .config, since that's a hidden directory by default).
10-23-2008 08:36 AM
Find all posts by this user Quote this message in a reply
KunaiTeam Offline
Member
***

Posts: 50
Joined: Aug 2008
Reputation: 0
Post: #20
RE: Any way to get VBA save file behavior?
(10-23-2008 07:25 AM)spacy51 Wrote:  As for the ROM folders, I think it's best to let the user choose where they are. I personally have a own hard drive for Software/OS/Game CD/DVD images and of course for ROMs. An emulator should not be paired with Roms IMO. That's one point I don't like about No$GBA, which has a strange SLOT folder.

That's a good point. I currently organize my ROMs by system, not by emulator.

So I think the best compromise is to allow the user to set the directory for battery saves, save states and screenshots. However, because keeping the saves in the same folder as the ROMs can cause problem for ROMs on multi-user systems, I would suggest that the default behavior to place them in their own folders within a VBA-M folder. That way ROM directories are not polluted with these files by default, but users like nathan who prefer to have these files in one directory can set the preferences however they want.

I realize that this is essentially equivalent to what spacy51 suggested, except that, IIRC, %appdata% is a hidden folder in Windows. What I am suggesting is that this be exposed through the preferences in VBA-M rather than the location of a specific file.

I would also suggest that there is an option to create separate directories for each ROM inside each of the battery/savestates/screenshots folder.
10-23-2008 08:54 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: