OXP Update manager

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Sisela Ytheleus
Average
Average
Posts: 10
Joined: Tue Nov 03, 2009 8:31 pm

OXP Update manager

Post by Sisela Ytheleus » Sun Nov 15, 2009 5:17 pm

I would like to inspire an add-on tool for OOLITE.
Most OOLITE users might have collected a large number of OXPs.
So it should become a problem getting all OXPs up to date.

OOLITE could include a kind of update manager or a simple function that checks out for new available updates of OXPs.

User avatar
Cmdr James
Commodore
Commodore
Posts: 1270
Joined: Tue Jun 05, 2007 10:43 pm
Location: Berlin

Post by Cmdr James » Sun Nov 15, 2009 6:39 pm

This has been discussed, and someone has created an OXP manager. The problem is that there is no official mechanism for working out what version an OXP is, or a standard place to get them from, so it isnt clear how to implement the update checking.

Chaky
Deadly
Deadly
Posts: 213
Joined: Sat Aug 15, 2009 6:15 am

Post by Chaky » Mon Nov 16, 2009 8:06 am

I believe you're talking about me..

and, no, I didn't make the manager. I am making some sort of OXP verification tool..

Regarding an update manager... well.. the programming for such tool would be nothin short of AI (and I'm not talking about OXP AI).

There is no centralized database that could make such tool remotely possible. Arguably, EliteWiki could be one, but with the contents changing all the time, it is practically impossible for a scripted tool to be remotely reliable. I mean, I wouldn't be convinced without checking wiki for myself.

And script... it would literarly need to "understand" the contents of each page. I don't see any other reliable way for automatic OXP updating.


As I said.. it would have to be AI.

User avatar
Cmdr James
Commodore
Commodore
Posts: 1270
Joined: Tue Jun 05, 2007 10:43 pm
Location: Berlin

Post by Cmdr James » Mon Nov 16, 2009 8:54 am

I tihnk I was talking about http://wiki.alioth.net/index.php/OXPConfig

I tihnk it could be done, by adopting a naming convention, and automated checking of the wiki for new files with a namew patern matching, but still, it wont happen.

Chaky
Deadly
Deadly
Posts: 213
Joined: Sat Aug 15, 2009 6:15 am

Post by Chaky » Tue Nov 17, 2009 3:19 am

Cmdr James wrote:I tihnk it could be done, by adopting a naming convention, and automated checking of the wiki for new files with a namew patern matching, but still, it wont happen.
... which would fail if, say, someone updated OXP on his/her Box.net account and added in description "I've fixed some bugs..".

The link to file would be the same, and the only evident change would be in the description... and that is one big grey area from script perspective.

User avatar
Cmdr James
Commodore
Commodore
Posts: 1270
Joined: Tue Jun 05, 2007 10:43 pm
Location: Berlin

Post by Cmdr James » Tue Nov 17, 2009 9:15 am

Its not perfect, but it could be done.

We could, for example have an optional file in an OXP that contains a URL to be checked, and then maybe test an md5 to detect changes, something like that.

Take a look, for example at the way eclipse (the IDE) does updates, it would certainly be possible to implement something that would work, and would allow for files hosted in arbitrary locations.

Of course anything like this would need some development effort, and buy in from OXP authors. So I stand by my assertion that its possible, but that its not going to happen any time soon.

To be honest, it would be a nice first step for all oxps to be named with a version number in the filename so its easy to check which you have against the most receont.

User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks » Tue Nov 17, 2009 10:43 am

There's the added complication that box.net doesn't seem to have direct links to files, all you get are links to an html page that contains the javascript that will eventually fetch the real file.

Unless we can figure out a way around that, it's not going to be possible to do any automatic checks on any of the box.net files. (most free file hosting sites have got a similar problem)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)

Chaky
Deadly
Deadly
Posts: 213
Joined: Sat Aug 15, 2009 6:15 am

Post by Chaky » Tue Nov 17, 2009 12:05 pm

http://www.box.net/index.php?rm=box_dow ... ghkefshhib

I probbably mentioned earlier that I'm making that OXP checking tool in WinBatch..With that langage one is capable of doing pretty much anything that can be done manually.

For instance, I can make it open up IE, go to certain site and parse the source of that site.

Only problem is that it would all be visible, since networking capabilities of WB are practically 0.

User avatar
Commander McLane
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane » Tue Nov 17, 2009 12:16 pm

Doesn't really work. Clicking on your link above produces:
box.net wrote:This user is not allowed to use direct links.
Please email support@box.net for support

To download this file, please visit: http://www.box.net/shared/ghkefshhib

Chaky
Deadly
Deadly
Posts: 213
Joined: Sat Aug 15, 2009 6:15 am

Post by Chaky » Tue Nov 17, 2009 12:20 pm

Works for me... must be because I have an account there...

User avatar
Commander McLane
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane » Tue Nov 17, 2009 12:24 pm

Guess so. While I have an account at box.net, I wasn't currently logged in.

User avatar
PhantorGorth
---- E L I T E ----
---- E L I T E ----
Posts: 603
Joined: Wed May 20, 2009 6:48 pm
Location: Somewhere off the top left of Galaxy 1 map

Post by PhantorGorth » Tue Nov 17, 2009 1:06 pm

Commander McLane wrote:Doesn't really work. Clicking on your link above produces:
box.net wrote:This user is not allowed to use direct links.
Please email support@box.net for support

To download this file, please visit: http://www.box.net/shared/ghkefshhib
I use dropbox and that does allow direct links.

lfnfan
Deadly
Deadly
Posts: 250
Joined: Tue Mar 24, 2009 1:29 pm
Location: london, uk

Post by lfnfan » Wed Nov 18, 2009 6:02 pm

Lots of discussion and a proposed solution here about how to get an automatically-generating table of oxps and their version numbers, driven by the Wiki.
http://aegidian.org/bb/viewtopic.php?t= ... e&start=30

I guess once (if) that is done, it would be much more straight forward to script an OXP update checker (which I think would be very cool).

amix
Above Average
Above Average
Posts: 24
Joined: Sat Jan 23, 2010 1:39 pm
Location: Budapest/Hungary

Post by amix » Sat Jan 23, 2010 3:44 pm

What about a two part convention for any new/updated OXP?

For an "Example World" OXP the filename would be:
oxp-example-world-1.01.oxp

The archive would be:
oxp-example-world-1.01.zip|bz2|7z|etc.

with a README named:
"oxp.example-world-1.01.txt"

Code: Select all

Example World OXP Readme

Name    	: Example World OXP
Version 	: 1.01
Status  	: beta (exp, rel)
Author(s)  : Example Author <email@host>
Support    : URL
License 	: code: BSD
    	 	  models: CC
    	 	  etc.
Description :
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Notes: foo bar batz
Following a proposal for an identification file, that resides in the OXPs root and could be scanned by the main program:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<oxp-registration>

	<!-- status: rel=release, exp=experimental, beta=beta -->
	<name version="1.01" status="rel">Example World OXP</name>

	<link rel="download" href="http://example.org/example-oxp.zip"/>

	<!-- online manual, etc. -->
	<link rel="support" href="http://example.org/example-oxp.html"/>

   <!-- email is optional (spam & privacy)-->
	<module name="scripting" author="" email="" license="">	
   <module name="textures & models" author="" email="" license="">
	
	<description>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</description>
	
	<requires name="" href="" version=""/>
    <notes>foo bar batz</notes>
</oxp-registration>
I think XML is nice, because it can be easily vaildated on every platform with open source tools, XSD can be used to transofrm it, should something to the spec change and it is easily editable/creatable by users (aka human readable).

An update scanner now would need to only scan this xml file and all should be fine, from thits side. Just some conventions to keep and that should make it pretty easy, no?
Bye, Andreas
MacBook Core Duo 1.83GHz (2006), 2GB RAM, 500GB HDD, Intel GMA950, OS X 10.6.2, shaders set to simple

Post Reply