GOG Cloud Saves for over 100 games that use DOSBox

General information and assistance with DOSBox.

GOG Cloud Saves for over 100 games that use DOSBox

Postby Xian97 » 2019-3-21 @ 15:46

https://www.gog.com/news/dosbox_games_n ... loud_saves
GOG now supports cloud saves for over 100 games that use DOSBox. You have to use their Galaxy launcher to take advantage of this. Still no Linux Galaxy client though
User avatar
Xian97
Member
 
Posts: 240
Joined: 2004-3-07 @ 02:30
Location: Tennessee

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby Qbix » 2019-3-21 @ 16:02

Pretty nice modern feature eh ? ;) I'll add it to the SVN as well and will write up a little bit on how to use it in the near future. (sorry, not much time today)
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10893
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby jmarsh » 2019-3-21 @ 18:00

Don't suppose they'll switch all the games that changed to ScummVM back to DOSBox now? I don't like paying for games that are missing half their original content.
jmarsh
Member
 
Posts: 240
Joined: 2014-1-04 @ 09:17

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby Yesterplay80 » 2019-3-21 @ 20:50

Wow! What a great feature! Well done, Qbix and the rest of the team! I'm looking forward to you adding it to the SVN!
My full-featured DOSBox SVN builds (without debugger) for Windows: Vanilla DOSBox and DOSBox ECE (Enhanced Community Edition)
User avatar
Yesterplay80
Member
 
Posts: 419
Joined: 2016-2-23 @ 11:02
Location: Germany

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby Qbix » 2019-3-25 @ 15:02

Added the version that is present in the GOG build.
To use it.
Code: Select all
mount C somelocation
mount C someotherlocation -t overlay

Capabilities:
  • Merge filelists of the 2 mountlocations.
  • Swap to copy when writing to a file.
  • create new files in the overlay.
  • Create missing directories.
  • Priotize overlay files when existing.
  • Allow files that are in the "normal" folder to be deleted by marking them as deleted with a special file in the overlay. (and thus not being able to open them.)
  • Rename, overwrite, delete files in either drive.
  • Hide deleted files in DIR (findfirst/next), use overlay data if it exists.
  • Quite a bit of filename translation going on, so that it works on Linux/Macs.
  • Being able to hide a folder. (for when overlay folder is part of normal folder)
The biggest limitation is that the current version does not allow you to create/rename/remove directories, while the overlay is active.
(as it needs bigger changes to the drive_cache)

I am working on some improvements compared to this code:
  • Creating new directories. Done.
  • Directories that exist only in the overlay when mounting. Done
  • Rename directories. Working on it.
  • Removing directories. Somewhat thought out, but not starting coding yet.
  • Pretty it up: WriteOut messages, mount without arguments command. Handle class permissions better (handle and basedir)
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10893
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby Yesterplay80 » 2019-3-26 @ 08:24

Nice! I just compiled the current SVN and a new DOSBox ECE with it.
My full-featured DOSBox SVN builds (without debugger) for Windows: Vanilla DOSBox and DOSBox ECE (Enhanced Community Edition)
User avatar
Yesterplay80
Member
 
Posts: 419
Joined: 2016-2-23 @ 11:02
Location: Germany

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby Qbix » 2019-3-26 @ 11:33

have fun and let me know of any problems.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10893
Joined: 2002-11-27 @ 14:50
Location: Fryslan


Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby krcroft » 2019-3-27 @ 21:09

QBix, this is a very nice addition that I suspect users will find many uses for. Thanks!

I took some time to understand the overlay mount with various content on my linux system. (many of my comments repeat what you've already mentioned above or in the source code.. but I'm just mentioning them to add context).

The overlay doesn't recognize lowercase, so any overlay filenames containing lowercase won't appear when you mount the overlay.

Comment: this makes it harder to manage overlay content outside of DOSBox, because you might have to rename some or many files and directories. Yes, it can be scripted, but DOSBox already honors lowercase files provided by the native filesystem, so this feels inconsistent.

Overlay directory trees won't appear unless the same tree exists in the base directory. This means you need to pre-make the directory scaffolding in your base directory before DOSBox will honor it in the overlay.

Comment: This makes it impossible to preserve games' install directories in unadulterated states because the base directory needs the same tree of added directories, such as save games, high scores, and various temp / dpmi / swap directories.

It also means that for users who want to add content to the overlay (in my case, CDROM images and compressed audio tree, which I imgmount inside DOSBox), I have to mirror this directory structure inside my base game directory for the overlay to honor it, which pollutes it.

I would like to see the overlay's functionally expanded (or made less restrictive?) to honor lowercase and honor directory trees as-is without requiring a mirror-tree in the base, exactly likely DOSBox already handles mount content (except with the overlay-content simply 'taking president').

I know you're still working on it, so apologies if these are already in your queue!
User avatar
krcroft
Member
 
Posts: 271
Joined: 2017-4-29 @ 15:07
Location: Ogden's Retreat

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby Qbix » 2019-3-28 @ 06:45

Thank you for checking it out.

lowercase is not currently planned, as that would require a drive_cache on top of the overlay entries and I am not sure if that is really worth it.
We could get away with a simpler one (to support only 8.3 input entries (in any case)), but then the next question would be. You support low-case, mixed case and uppercase, so why no long names ?

The directory stuff I am working on. In my local code, I already can create directories and directories can exist (at mount time) in the overlay only, so no need to mirror stuff there.

Please keep in mind that the code is geared towards preserving changes after installing the game. This is especially for the file lists as those aren't chosen with huge amount of files in mind (entire drives).
Nonetheless, being able to do all operations (including installing games) is something I would like myself as well.

So most of your things are planned, except for lowcase,mixed case and long file names.
I agree that it is a bit restrictive, but the overlay is primary intended to be filled by dosbox itself, you are free to add things to the directories yourselves, but then you have to play with along with its rule. It's an extension to the normal (flexible) drives, not a replacement.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10893
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby krcroft » 2019-3-28 @ 20:03

Good stuff!

I'm looking forward toward where this is going. Like OverlayFS in Linux (which is their 3rd kick at the union-filesystem can), this is truly next-generation functionality being brought to the world of DOS. Amazing!

Regarding handling file-case in the overlay, given DOSBox already knows how to uplift lower-case native files to 8.3 upper, my fingers are crossed that you can reuse / derive / call existing code without having to bolt on entirely new constructs to make that happen! (It's always easier on paper than done in practice.. so all I can say is I wish you good luck and smooth coding!). If it doesn't work out, worst case is we can use tools/scripts to rename for those who manage their overlay externally.
User avatar
krcroft
Member
 
Posts: 271
Joined: 2017-4-29 @ 15:07
Location: Ogden's Retreat

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby Qbix » 2019-3-28 @ 21:34

It's far from trivial, so it would be in a future iteration of the code if it were to happen. Directories are already stretching the current design a bit :)
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10893
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby krcroft » 2019-3-28 @ 22:05

Understood... stretch stretch stretch :-)
User avatar
krcroft
Member
 
Posts: 271
Joined: 2017-4-29 @ 15:07
Location: Ogden's Retreat

Re: GOG Cloud Saves for over 100 games that use DOSBox

Postby Qbix » 2019-4-22 @ 15:03

Added some more code to it. (experimental)
Should hopefully be to your liking.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10893
Joined: 2002-11-27 @ 14:50
Location: Fryslan


Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 2 guests