Hosting site for oxz files

General discussion for players of Oolite.

Moderators: another_commander, winston

User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2020
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Hosting site for oxz files

Post by maik »

No PHP needed, just upload it like before. Registering the file for counting and the actual counting happens in the background.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2412
Joined: Mon May 31, 2010 11:11 pm

Re: Hosting site for oxz files

Post 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
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2020
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Hosting site for oxz files

Post by maik »

Use the "Upload file" link in the toolbox on the left (only visible when you are logged in).
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2412
Joined: Mon May 31, 2010 11:11 pm

Re: Hosting site for oxz files

Post 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...
Last edited by Switeck on Mon Mar 24, 2014 4:33 pm, edited 2 times in total.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Hosting site for oxz files

Post 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.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2020
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Hosting site for oxz files

Post 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.
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2020
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Hosting site for oxz files

Post 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.
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2020
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Hosting site for oxz files

Post 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
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: Hosting site for oxz files

Post 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.
Last edited by Norby on Sat May 31, 2014 3:03 pm, edited 1 time in total.
User avatar
Pleb
---- E L I T E ----
---- E L I T E ----
Posts: 908
Joined: Sun Apr 29, 2012 2:23 pm
Location: United Kingdom

Re: Hosting site for oxz files

Post 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:
Desktop PC: CPU: Intel i7-4790K Quad Core 4.4GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1080Ti RAM: 32GB DDR3

Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
User avatar
CaptSolo
---- E L I T E ----
---- E L I T E ----
Posts: 909
Joined: Wed Feb 23, 2011 10:08 pm
Location: Preying Manta
Contact:

Re: Hosting site for oxz files

Post 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?
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Hosting site for oxz files

Post 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.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Hosting site for oxz files

Post by Smivs »

Do we need to get new usernames and passwords for this?
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Hosting site for oxz files

Post 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.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Hosting site for oxz files

Post by Smivs »

Ah, OK. Thanks Cody.

@cim...check your PMs please :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
Post Reply