Metaplace asset grabber
Posted by: Owen, 28 Dec 2009 20:43
I've put together an asset grabber for Metaplace to make it easier for users to download scripts, images, sounds, tiles & maps (for each place) and initial tag stream from their various worlds. This is basically a mini client that connects to a world and parses the lists of assets that are normally sent to clients.

A few things to be aware of:
  • The username supplied is case-sensitive and must be exactly the same as displayed on your metaplace profile. e.g. Obo not obo.
  • You are required to provide your metaplace password. Just be aware this is not an official metaplace service! That said, your password will not be stored anywhere. Just be aware of any similar service that does as for your password.
  • Once you submit the form nothing will appear to happen other than the browser will appear to be connecting to oscan.net. This is the way it currently works, so just let it be! Once it has grabbed all the assets it will pack them into a Zip file and then give you a prompt to download it. Don't hit the submit button twice!
  • This process may take a while for large worlds, so BE PATIENT! If the browser looks like it is doing something then just let it work away.
  • Where possible use the "local only" option to only get 0:x assets if you don't need everything from the world.
  • If you get an error link "could not connect to game04.metaplace.com:5101" then try again later. Your login session tried to connect to a server and/or port my web host hasn't put on the white-list to allow connections.
  • If an asset could not be downloaded it should be listed in the error_log provided in the zip file.
  • While it works for me it very well might break, and there is not much time left to allow more testing! If something goes wrong leave a comment here or use the contact page and I'll try and track down the problem.

So here if the link...
http://oscan.net/metaplace/asset_grab/

I'll see about making it easier, more foolproof, to use in the next few days if needed.

[edit]

Fixed an issue with the content of downloaded scripts being a web-api error message like...

[S_ERROR]|110|web_api|You have exceeded the maximum of 50 requests per minute.

Too lazy to check if there was an actual error, so I just rate limited it to one script per second, or three seconds for every tenth script.

I also altered the 'Local Only' option so that you could set a specific worldscope, instead of just 0:x.

[edit 1st Jan]
For some reason access to the game servers got blocked again, so this wasn't working from around some time last night. Should be up and running again (apart from the bits that don't work :P).
Tags: Metaplace, Programming

5 Comments
Comment by: chooseareality, 28 Dec 2009 22:00
Works wonderfully, thanks so much for taking the time to package this all up for us. I was able to back up 7 worlds in 15 minutes :)

Comment by: Owen, 29 Dec 2009 03:08
As noted above, made some fixes for hitting up against the servers web api limits.

Comment by: Legend, 29 Dec 2009 15:04
Having no luck :(

[S_ERROR]|110|web_api|You have exceeded the maximum of 10 world startups per minute.

Comment by: Owen, 29 Dec 2009 18:06
I don't think there is anything in the script that will cause that. Just make sure you are using the right world name; the clean name from the worlds url, not the display name.

Comment by: Owen, 01 Jan 2010 17:29
If you were getting these kind of errors...

"could not connect to game02.metaplace.com:5001
110 Connection timed out"

should be working again.



Submit a comment:
Preview:
* Name:
E-mail:
* Type I am no bot here:
* Comment:

A site about my fumbling my way through programming, astronomy, game design, life... and everything else geeky.
Blog Post Categories:
Games (20)
Programming (17)
Flash (14)
Metaplace (11)
Fog of War (6)
playtest (4)
Trinhex (4)
Blockdown (4)
GameCraft (4)
Astrophotography (3)
DIY wedge (3)
me me me (3)
Pompetaire (3)
Canon 10D (2)
Tile Tactics (2)
site (2)
hacking (2)
#1gam (2)
Game Jam (2)
DIT (2)
NexStar 6SE (1)
Canon 40D (1)
Moon (1)
timelapse (1)
SCIENCE! (1)
tog.ie (1)
gamedevelopers.ie (1)
IGSDublin (1)
Save the Zombies (1)
dubLUDO (1)

www.oscan.net
oscan.net (2024) All Rights Reserved.
[Login]