Oolite Bulletins

For information and discussion about Oolite.
It is currently Wed Jul 26, 2017 4:31 am

All times are UTC




Post new topic  Reply to topic  [ 21 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Mon Mar 01, 2010 10:58 pm 
Offline
Above Average
Above Average

Joined: Wed Feb 03, 2010 11:04 pm
Posts: 29
Is there anything special one needs to do to make Oolite run from removable media?


Top
   
 Post subject:
PostPosted: Mon Mar 01, 2010 11:01 pm 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral

Joined: Wed Feb 28, 2007 7:54 am
Posts: 4883
Nothing more than just copy the entire Oolite folder structure to the stick. The game is designed to be portable between media (at least the Windows version).


Top
   
 Post subject:
PostPosted: Tue Mar 02, 2010 1:15 am 
Offline
Competent
Competent

Joined: Thu Feb 18, 2010 5:49 pm
Posts: 60
I run the game on an external HDD so I can switch between computers and I've had no problems - apart from the inevitable delay while waiting for it to load up

_________________
Now over 1000 confirmed kills. Bring on the bad guys!


Top
   
 Post subject:
PostPosted: Tue Mar 02, 2010 12:10 pm 
Offline
Average
Average

Joined: Fri Feb 12, 2010 8:42 pm
Posts: 12
Location: Bucharest, Romania
I run it from an USB stick and have no problems whatsoever. I do back up the game to the HDD once in a while, though. I had some bad experiences with removable media that crashed.

_________________
WinXP SP3 - Oolite 1.73.4 - Sep 22 2009 - no OXPs yet


Top
   
 Post subject:
PostPosted: Thu Mar 04, 2010 8:47 pm 
Offline
Average
Average

Joined: Fri Feb 12, 2010 8:42 pm
Posts: 12
Location: Bucharest, Romania
Quote:
I run it from an USB stick and have no problems whatsoever. I do back up the game to the HDD once in a while, though. I had some bad experiences with removable media that crashed.
Just after I wrote this I had the idea of making a script to backup my saves from the USB memory stick to the system HDD. It ended up in an autorun.inf configuration that let's you play the game, save the save files or save the entire Oolite configuration. I share it with you guys, maybe somebody finds it useful.

So, on the USB stick I have the folowing:
- Oolite folder, as installed
- autorun.inf file that sets up the auto run options, icon and context menus
- backup.bat file that executes the two backup options
- oolite.exe.lnk windows shortcut file that links to the oolite.exe, inside the USB stick installation

autorun.inf
Code:
[autorun]
icon=Oolite\Oolite.ico
label=Oolite
action=Press SPACE commander
shell\backup_all=Backup Oolite
shell\backup_all\command=backup.bat all
shell\backup_saves=Backup Oolite Saves
shell\backup_saves\command=backup.bat saves
shellexecute=oolite.exe.lnk
backup.bat
Code:
if %1==all goto :backup_all

:backup_saves
rem ---- Establish current rate -----
FOR /F "TOKENS=1,2 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET mm=%%B
FOR /F "TOKENS=1,2 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET dd=%%A
FOR /F "TOKENS=1,2,3 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET yyyy=%%C
SET date=%yyyy%.%mm%.%dd%

xcopy \Oolite\oolite.app\Oolite-saves\* Y:\games\_saves\Oolite_saves\%date%\ /E /H /Y
goto :end

:backup_all
xcopy \Oolite\* Y:\games\_saves\Oolite\ /E /H /Y

:end
The date extraction may not work on different systems, since, I think, depends on the date format settings.

oolite.exe.lnk is made with Right Click>New>Shortcut. The .lnk extension is not shown, only the icon that indicates it is a shortcut.

Hope it's useful.

----

Sidenote: I tried to start the game using the shell\verb options like for the backups but I ran into some strange problems. First, I ran it directly, but because the current folder was not the oolite.app folder, it created the log files in the root and exited. I fixed that by creating a bat file that first changed the folder to the correct one and then started the game. This is where things got weird. The first sign was that the window name was not "Oolite v1.73.4", but "Oolite v(nil)". After I killed a lot of pirates and finally got to the station, I discovered the other problems: I could not save and could not exit the station anymore. When I pressed 1, it showed me the outside of the station, but no exit sequence. When I pressed 2-8 it got me back in the station.

_________________
WinXP SP3 - Oolite 1.73.4 - Sep 22 2009 - no OXPs yet


Top
   
 Post subject:
PostPosted: Thu May 20, 2010 6:06 am 
Offline
Competent
Competent

Joined: Thu Apr 22, 2010 5:20 am
Posts: 35
If people are satisfied with the portability of Oolite, would someone (or I'm happy to do it) like to submit it to Portable Freeware?

I figure that some technical notes need to be included, such as 'does it write to the Registry or the hard drive?', what are the graphics requirements, etc.


Top
   
 Post subject:
PostPosted: Thu May 20, 2010 1:37 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Sep 22, 2009 11:07 am
Posts: 2988
Location: Enfield, Middlesex
Quote:
If people are satisfied with the portability of Oolite, would someone (or I'm happy to do it) like to submit it to Portable Freeware?

I figure that some technical notes need to be included, such as 'does it write to the Registry or the hard drive?', what are the graphics requirements, etc.
Reckon that's a good idea!

_________________
JazHaz

Quote:
Quote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!


Top
   
 Post subject:
PostPosted: Thu May 20, 2010 4:44 pm 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral

Joined: Wed Feb 28, 2007 7:54 am
Posts: 4883
Quote:
I figure that some technical notes need to be included, such as 'does it write to the Registry or the hard drive?', what are the graphics requirements, etc.
The Windows version of Oolite creates the following Registry keys when installed:
  • HKLM Software\Oolite Install_Dir <Path where Oolite resides> This is for the system to know where Oolite is. This is where the game location is picked up from when the uninstaller runs and displayed in the relevant text box.
    HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Oolite DisplayName <Oolite MajorVersion,MinorVersion,Revision,SubversionBuildNumber> ,e.g. Oolite 1.73.4.2579. This is what is displayed in the Add/Remove Programs window installed programs list.
    HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Oolite UninstallString <Path where Oolite resides>\UninstOolite.exe. This is telling the system what to run whenever uninstallation of Oolite is requested via Add/Remove Programs.
All the above are there mainly to facilitate smooth uninstall, are removed during uninstall and Oolite can be run perfectly fine without any and all of those keys in the Registry.

In addition to that, a series of Start Menu shortcuts is created under $SMPROGRAMS\Oolite. These are all removed during uninstall and Oolite does not need them to run (of course, in this case you must navigate to the game's folder and start the exe manually).


As for graphics requirements, OpenGL 1.1 is required as minimum. For Windows, OpenGL 1.1 is usually what is provided by Microsoft's generic software renderer. Obviously, hardware accelerated cards supporting higher OpenGL versions are the preferred spec.


Top
   
 Post subject:
PostPosted: Tue May 25, 2010 2:17 am 
Offline
Competent
Competent

Joined: Thu Apr 22, 2010 5:20 am
Posts: 35
Cool, well if people are happy for me to proceed with this, I'll take the baton on this.


Top
   
 Post subject:
PostPosted: Wed May 26, 2010 7:16 pm 
Offline
Thargoid
Thargoid
User avatar

Joined: Thu Jun 12, 2008 6:55 pm
Posts: 5509
As a thought, could the Windows installer be given a check-box or something to make it optionally (off by default) do a truly portable installation (no writing to the registry for undelete and no shortcuts made in the start menu)? Maybe also suppress UninstOolite.exe, as then uninstalling Oolite would just be deleting the directory tree from the stick...

Would that be something that could be built into the Windows installer?

As an aside is such operation possible under a Mac or Linux system?

_________________
My OXPs via Boxspace or from my Wiki pages :D.

Thargoid TV
Dropbox Referral Link


Top
   
 Post subject:
PostPosted: Wed May 26, 2010 7:20 pm 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral

Joined: Wed Feb 28, 2007 7:54 am
Posts: 4883
Quote:
As a thought, could the Windows installer be given a check-box or something to make it optionally (off by default) do a truly portable installation (no writing to the registry for undelete and no shortcuts made in the start menu)? Maybe also suppress UninstOolite.exe, as then uninstalling Oolite would just be deleting the directory tree from the stick...

Would that be something that could be built into the Windows installer?

As an aside is such operation possible under a Mac or Linux system?
Well, if we are to do something like that, maybe it would be easier to put up a zipped installation image on Berlios that you just unzip to a folder of your choice. Much easier and cleaner.


Top
   
 Post subject:
PostPosted: Wed May 26, 2010 7:25 pm 
Offline
Thargoid
Thargoid
User avatar

Joined: Thu Jun 12, 2008 6:55 pm
Posts: 5509
Either works for me.

Currently I just set up trunks by install the nightly versions to a folder on my desktop HD ("trunk-<revnumber>" usually) and then copy that onto the stick. Then zip up the previous rev folder and perhaps delete the zip file before that (in case of dodgy trunk versions).

For test releases it's obviously less of a problem, but a zipped image would work just as well. Just perhaps seems less "polished" for a distribution method for what is a quality game.

_________________
My OXPs via Boxspace or from my Wiki pages :D.

Thargoid TV
Dropbox Referral Link


Top
   
 Post subject:
PostPosted: Wed May 26, 2010 7:30 pm 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral

Joined: Wed Feb 28, 2007 7:54 am
Posts: 4883
I was not thinking of swapping the installer for a zip file, we can have both and people can choose whatever they prefer, as long as it is clear that using the installer still retains full portability of the game.


Top
   
 Post subject:
PostPosted: Wed May 26, 2010 7:36 pm 
Offline
Thargoid
Thargoid
User avatar

Joined: Thu Jun 12, 2008 6:55 pm
Posts: 5509
I understood - I was meaning it kinda makes the portable variant look like the poor relation though ;)

_________________
My OXPs via Boxspace or from my Wiki pages :D.

Thargoid TV
Dropbox Referral Link


Top
   
 Post subject:
PostPosted: Thu May 27, 2010 6:55 am 
Offline
Grand Admiral Emeritus
Grand Admiral Emeritus
User avatar

Joined: Sat Apr 02, 2005 2:43 pm
Posts: 6657
Location: Sweden
Quote:
As an aside is such operation possible under a Mac or Linux system?
On the Mac, you just download the application and put it wherever you want. Installers are a thing of the nineties and a few companies stuck in them.

_________________
E-mail: jens@oolite.org


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 21 posts ]  Go to page 1 2 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited