ScummVM Portable
Moderator: ScummVM Team
ScummVM Portable
Hi everyone,
I've made a portable version of ScummVM for use with the PortableApps.com suite.
It's biggest advantage is probably, that all drive letters are adjusted on startup to match the current USB device drive letter.
Please check it out and report any problems/ideas.
http://www.ormus.info/archives/39-Porta ... dness.html
On a side note: Would it be illegal to re-package FOTAQ or BASS for an easier installation on the portable device? It would be just an NSIS installer copying the files to the correct location and adding the section to scummvm.ini.
*edit* Here's the thread at the portableapps.com forums:
http://portableapps.com/node/7698
I've made a portable version of ScummVM for use with the PortableApps.com suite.
It's biggest advantage is probably, that all drive letters are adjusted on startup to match the current USB device drive letter.
Please check it out and report any problems/ideas.
http://www.ormus.info/archives/39-Porta ... dness.html
On a side note: Would it be illegal to re-package FOTAQ or BASS for an easier installation on the portable device? It would be just an NSIS installer copying the files to the correct location and adding the section to scummvm.ini.
*edit* Here's the thread at the portableapps.com forums:
http://portableapps.com/node/7698
Last edited by ormus7577 on Fri Jun 29, 2007 7:08 pm, edited 1 time in total.
There's a legal notice:
So I guess it should be ok. I'll give it a shot and see if anyone complainsLicence:
1) You may distribute this game for free on any medium, provided this Readme
and all associated copyright notices and disclaimers are left intact.
4) You may modify the game as you wish. You may also distribute modified
versions under the terms set forth in this licence, but with the additional
requirement that the work is marked with a prominent notice which states that
it is a modified version.
(shameless self-plug)
http://www.unet.univie.ac.at/~a0200586/ ... /steelsky/
http://www.unet.univie.ac.at/~a0200586/ ... mes/fotaq/
no idea about portableapps, but I've been bundling scummvm+games for quite some time now (and NSIS as installer)
http://www.unet.univie.ac.at/~a0200586/ ... /steelsky/
http://www.unet.univie.ac.at/~a0200586/ ... mes/fotaq/
no idea about portableapps, but I've been bundling scummvm+games for quite some time now (and NSIS as installer)
the launcherormus7577 wrote:I've seen your site. Are those packages just installers or also launchers? USB drives may change the drive letter, breaking the scummvm.ini paths. The portableapps thing takes care of this and adjusts the path. So it's working on every PC you plug it into...
- gets current (USB) drive letter
- checks if all the needed files exist (scummvm, datafiles)
- patches scummvm.ini with drive for datafiles and savegame files
- checks if the USB stick is write protected, if yes, notifies you that you won't be able to save games
- checks if savegame directory exists, if no, notifies you that you won't be able to save or restore
- launches ScummVM with commandline parameters to point to the correct drive (additionally to the patched ini, better be safe than sorry)
(not necessarily in that order, but that's pretty much what the innocent little launcher exe does)
hope that answers it
EDIT: and it's written in NSIS script, too
I've updated my portable package to 0.12.0, you can find details at: http://www.ormus.info/archives/95-Scumm ... table.html
Also, you can use relative paths in scummvm.ini and make a .bat for running scummvm whith the correct -c option.
An example:
Scummvm.ini
Scummvm.bat
And this is the layout
You can copy the tree across any drive/directory
An example:
Scummvm.ini
Code: Select all
[monkey2]
music_driver=fluidsynth
gameid=monkey2
description=Monkey Island 2: LeChuck's Revenge (DOS)
path=..\Monkey Island\Monkey Island II\
savepath=..\Monkey Island\Monkey Island II\Save
Code: Select all
@echo off
cd scummvm_svn
rem SET SDL_VIDEODRIVER=directx
start scummvm.exe -c.\scummvm.ini %1 %2 %3 %4 %5 %6 %7 %8 %9
cd ..
Code: Select all
Root (scummvm.bat)
|-Scummvm_svn (obvious)
|-Monkey Island
|-Monkey Island II (game files)
|- Save (for savefiles)
hi mac_es,
I'm aware of the possibility to use relative paths, the default .ini I have in the package also uses them. But if a user (maybe only by accident) browses to the root of a drive, then the path will be saved absolute from this time on. My launcher handles both kind of paths, relative ones stay untouched while absolute ones are adjusted to the current drive letter of the removable drive.
ScummVM is very portable by itself already, my main focus is to fit it into the http://PortableApps.com menu structure. By fitting it into this directory layout one can easily backup the data (=games, saves, settings...) indepedent of the actual application. And it's pretty neat to start it from the menu...
I'm aware of the possibility to use relative paths, the default .ini I have in the package also uses them. But if a user (maybe only by accident) browses to the root of a drive, then the path will be saved absolute from this time on. My launcher handles both kind of paths, relative ones stay untouched while absolute ones are adjusted to the current drive letter of the removable drive.
ScummVM is very portable by itself already, my main focus is to fit it into the http://PortableApps.com menu structure. By fitting it into this directory layout one can easily backup the data (=games, saves, settings...) indepedent of the actual application. And it's pretty neat to start it from the menu...