OXP Update manager
Moderators: winston, another_commander
- Sisela Ytheleus
- Average
- Posts: 10
- Joined: Tue Nov 03, 2009 8:31 pm
OXP Update manager
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.
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.
- Cmdr James
- Commodore
- Posts: 1357
- Joined: Tue Jun 05, 2007 10:43 pm
- Location: Berlin
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.
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.
- Cmdr James
- Commodore
- Posts: 1357
- Joined: Tue Jun 05, 2007 10:43 pm
- Location: Berlin
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.
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..".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.
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.
- Cmdr James
- Commodore
- Posts: 1357
- Joined: Tue Jun 05, 2007 10:43 pm
- Location: Berlin
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.
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.
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)
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)
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.
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.
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Doesn't really work. Clicking on your link above produces:
box.net wrote:This user is not allowed to use direct links.
Please email [email protected] for support
To download this file, please visit: http://www.box.net/shared/ghkefshhib
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
- PhantorGorth
- ---- E L I T E ----
- Posts: 647
- Joined: Wed May 20, 2009 6:48 pm
- Location: Somewhere off the top left of Galaxy 1 map
I use dropbox and that does allow direct links.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 [email protected] for support
To download this file, please visit: http://www.box.net/shared/ghkefshhib
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.
https://bb.oolite.space/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).
https://bb.oolite.space/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).
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"
Following a proposal for an identification file, that resides in the OXPs root and could be scanned by the main program:
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?
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
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>
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
MacBook Core Duo 1.83GHz (2006), 2GB RAM, 500GB HDD, Intel GMA950, OS X 10.6.2, shaders set to simple