![]() |
Proposition: A new way to store the games.
I had this idea today.
We take some common archive format, zip, lzma, tar.gz. (we could also use tar only for the matter) We "install" a game under dosbox if needed, so that it would be ready to be executed and played. The directory the game is installed to will contain a good "dosbox.conf" file that will fit the game for most systems, plus autoexec lines to run the game, and exit when it closes. If the game needs a cd folder or image, it will be also plased under its installed folder and mounted in the dosbox.conf autoexec line. A possible addon will be an "install.conf" to run the install program many games have. we could also add some formatted text file containing info about the game. when finished we archive the game with the chosen format, for example zip (since its a format used in abandonia i chose it as an example). we then change the extension from ".zip" to ".dbf" (or any other suggestion, dbf = dosbox file). finally we associate this format with an application that i "wrote" (more on that in a sec) The user dounloads the game and application. and all he/she needs to do, is double click the file and play :) ----- The application i wrote is a proof of the above concept, its not the best app, it doesnt do all i want it to do, its slow and its buggy. Its a python script that will accept as its only argument the above file* unpack it to a temporary folder, open it with dosbox (right now the dosbox path is hardcoded) and when finished will repack the temporary folder, delete the old package file and replace it with the new one. i will post the source in a comment**, the important thing to note is that i can write a more serious version in "c" that will be fast, will contain an ncursers menu to enable the user to configure the "dosbox.conf" file, to run "install.conf" to configure the installation and show the game info in the txt i mentioned. Who knows maybe if people like it and the dosbox team will like it, i could insert this code as part as dosbox, or at least as a frontend on their site. The reason i post this topic here before i wrote any c code, is that i want to see reactions to the idea, feedback, and finally i need to know if with a good program (and not that python script of course) there is a chance that an awsome site like abandonia will use my proposed standard + app. --- I want to add that the beauty of this format is that its eventually a common archive file that any common archiving app can extract so people can still do what they want with those files. *The install.conf and txt description file are not included in this versions support. **Note that there seems to be a bug with this script in windows so it might throw an exception that it cant delete the old file, and will leave both old file and a new file with the new game data. |
The script:
Code:
from zipfile import ZipFile |
It's a good idea, I've heard before people wishing DOSBox would run simple zip packages with zero configuration, similarly in practice to the way emulators for other platforms do.
|
The current time is 02:23 PM (GMT) |
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.