Page 1 of 1

Updating OXPs by clicking

Posted: Sun May 04, 2008 6:55 pm
by Rimbaud
Hello

Automatic OXP updating was mentioned a couple of years ago in this thread:

https://bb.oolite.space/viewtopic.ph ... ic+updates

Did anything come of this?

Is there a way to build updates into Oolite in a similar way to the way Firefox does it: i.e. a notification pops up? If not, how do I know when OXPs have been updated? It's quite important if there's a big bug fix.

Posted: Sun May 04, 2008 11:32 pm
by pleb87
The best advice would be to keep checking these forums every few days (or hours if your really sad...) to see what updates and bugfixes are available.

Either that, or compile it under Windows, and using TortoiseSVN you can update the source code daily to get the latest version straight from Windows Explorer (providing you have an Internet connection of course - but then you wouldn't be here otherwise, surely? 8) )

Posted: Mon May 05, 2008 3:06 am
by FSOneblin
You could get the realistic shipyards unlimited edition, and make the ships you want into your own oxp. might work.


Don't panic, FSOneblin

Posted: Mon May 05, 2008 8:04 am
by Cmdr James
Im not sure either of the replies so far really address your question.

The OXP source is not normally in the berlios svn repository, so building yourself probably does not help with your specific query.

At the moment there is no OXP management solution, and I think its quite a challenge to build one. We would either need a central database of versions (think windows update), or each OXP would have to know where to go to check for updates, and as it stands I dont think either is really viable.

There is another issue, which is easily fixed, I think many OXPs either do not have a meaningful version number, or it isnt systematically updated (Im sure I have seen some OXPs released as 1.0, then another 1.0 later).

I am not sure that there is a globally recognised versioning system for OXPs. I guess there should be a version.plist or something that is always there, and always contains author-name, date, version number, copyright and other stuff. I have rarely seen this kind of file, looking at the pirate-coves.oxp on my machine for example, I have no idea what version it is, and I dont think oolite community expects it. Without something like this, its kind of hard to know if the version you have is up to date, at least its hard for an automated system to know.

Posted: Mon May 05, 2008 8:50 am
by Commander McLane
Yeah. At the end of the day it would require a certain disciplin (and a certain knowledge) in the OXPing community, because each OXP-author is responsible for his work. To be honest, neither can actually be expected.

Posted: Mon May 05, 2008 10:35 am
by JensAyton
Frankly, I don’t want to even consider automatic installation or updating of OXPs while the legacy scripting system and AI system remain in their current form. They’re inherently insecure. I don’t know of a way to abuse them for anything worse than crashing Oolite, but the probability is very high that there is a way. This is also why I’ll be removing the JavaScript Entity.call() function before MNSR.

A possible fix for this would be to sandbox scripts and AIs, i.e. refuse to execute methods that are not on a white list. The issue then becomes to work out which methods are legitimately used by scripts and AIs.

For Oolite itself, the next Mac release will probably have support for self-updating using Sparkle, which is an easy-to-use ready solution. Linux stable releases installed via package managers should be updated the normal way for the platform. I don’t know what the proper thing would be under Windows; the idea of rolling our own does not appeal.