Page 4 of 5

Re: Hosting site for oxz files

Posted: Mon Mar 24, 2014 6:03 am
by maik
No PHP needed, just upload it like before. Registering the file for counting and the actual counting happens in the background.

Re: Hosting site for oxz files

Posted: Mon Mar 24, 2014 3:54 pm
by Switeck
maik wrote:
No PHP needed, just upload it like before. Registering the file for counting and the actual counting happens in the background.
That's the problem, I never have uploaded anything to Oolite's wiki. Didn't know how then, don't know how now. :P

Re: Hosting site for oxz files

Posted: Mon Mar 24, 2014 4:13 pm
by maik
Use the "Upload file" link in the toolbox on the left (only visible when you are logged in).

Re: Hosting site for oxz files

Posted: Mon Mar 24, 2014 4:30 pm
by Switeck
Never used it, don't have an account...do I use the same username + password that I use on this forum?

It's also extremely slow to load the page whenever I visit there.

While this goes on, I'm trying to convert another OXP of mine to use OXZ format...

Re: Hosting site for oxz files

Posted: Mon Mar 24, 2014 4:32 pm
by Cody
I imagine maik will sort an account out for you.
Switeck wrote:
It's also extremely slow to load the page whenever I visit there.
What, the Wiki main page? It loads fast enough here.

Re: Hosting site for oxz files

Posted: Mon Mar 24, 2014 11:21 pm
by maik
Account is created, details via pm.

The sandbox wiki is indeed horribly slow and I guess it has something to do with my extension. I haven't found the time to investigate further so far though. Once this is sorted I will install it on the proper wiki server.

Re: Hosting site for oxz files

Posted: Wed Mar 26, 2014 8:44 pm
by maik
maik wrote:
Account is created, details via pm.

The sandbox wiki is indeed horribly slow and I guess it has something to do with my extension. I haven't found the time to investigate further so far though. Once this is sorted I will install it on the proper wiki server.
Sandbox slowness was due to a stupid bug in my extension, bombarding the DB with repeat requests when it couldn't find a counter (and it can't find a counter for most existing files/images). It's fixed now, thanks to Switeck for the report.

I'll leave it running on the sandbox a few more days to see if it misbehaves in another way before I move it to the main wiki.

Re: Hosting site for oxz files

Posted: Fri Apr 11, 2014 8:43 am
by maik
My download counter extension is now active on the main wiki.

Usage:
  • As a registered user, upload a file via the "Upload file" link in the left hand navigation pane of the wiki. The extension will register it automatically.
  • If your file was called 'Q-Bomb Detector 1.3.m.oxz' then link to your file for download like this: [[Media:Q-Bomb Detector 1.3.m.oxz|Q-Bomb 1.3 as OXZ]]. See http://www.mediawiki.org/wiki/Help:Links for further information, it is an "Internal link to an image or a file of other types".
  • Use the parser function {{#downloads:Q-Bomb Detector 1.3.m.oxz}} to display the number of downloads for this file.
Refer to the source of my user page on the sandbox wiki for an example

Re: Hosting site for oxz files

Posted: Fri Apr 11, 2014 12:05 pm
by Norby
Thank you maik!

Now it is a real alternative of box.com and additionally we can count if somebody download an oxz within the game.

My howto:
1. Upload an oxz (after login). You will be redirected to the File: page where you can save the download link by right click and "copy link location" on the uploaded file name. Note the last two folder name in the link is randomly generated for each file.
2. Put into the wiki page of oxz something like this:

Code: Select all

Download [[Media:Gallery_1.15.oxz|Gallery OXZ]] (downloaded {{#downloads:Gallery_1.15.oxz}} times).
3. In the manifest.plist change the link to the previously saved one (must contain the img_auth.php and two random subfolder before the file name, so do not copy this but use your own unique folder names):

Code: Select all

download_url = "http://wiki.alioth.net/img_auth.php/f/f3/Gallery_1.15.oxz"
You can left out this line to avoid the reupload of your oxz, but this link type is what you can use in the game to get counts from the OXZ Manager also.

Re: Hosting site for oxz files

Posted: Fri Apr 11, 2014 1:36 pm
by Pleb
This is handy I like this feature. I like how box.com tells me my Taxi Galactica OXP has been downloaded 1,315 times but it would be nice if other people knew that as well! :lol: :twisted: :wink:

Re: Hosting site for oxz files

Posted: Thu May 29, 2014 1:44 am
by CaptSolo
Let's see if I understand this:
1) upload OXZ to wiki using the upload file gadget in the toolbox.
and
2) Place the link provided by Maik and Norby in the wiki page for the oxz.

The result is that one's OXZ is now magically visible in the in-game Manager.

Is this correct or am I missing something?

Re: Hosting site for oxz files

Posted: Thu May 29, 2014 5:50 am
by cim
Also complete the OXZ manifest form at (for now) http://addons.oolite.org/admin/ placing the provided link in the "download URL" field.

Re: Hosting site for oxz files

Posted: Thu May 29, 2014 8:21 am
by Smivs
Do we need to get new usernames and passwords for this?

Re: Hosting site for oxz files

Posted: Thu May 29, 2014 2:29 pm
by Cody
Smivs wrote:
Do we need to get new usernames and passwords for this?
Yeah, I reckon so...
cim wrote:
The OXZ addon list is now "live" - PM me if you need an account to add your own entries. Once you have an account you can manage all your OXZs yourself. OXZ entries you add will work in the nightly builds - and you won't need to re-enter them later. It's pretty quick to repackage an OXP as an OXZ - as you can see I've been going through several of mine... - and it would be nice to have a lot more author diversity in the download list.

Re: Hosting site for oxz files

Posted: Thu May 29, 2014 2:44 pm
by Smivs
Ah, OK. Thanks Cody.

@cim...check your PMs please :)