All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: PlayMinicraft API (Work In Progress)
PostPosted: Thu Jul 05, 2012 9:15 am 
Offline
Site Admin

Joined: Fri Dec 23, 2011 2:55 am
Posts: 253
Todo:
* Create Load API
* Finish Developer Dashboard for Mod IDs
* Update Save API to check Mod IDs

System Details
* Each mod will get a Mod ID on the Developer Dashboard
* Mods will need to get the cookie "accesskey" that will hold the User ID (not sure how to do this yet, Dillyg10 is looking into it.)
* Each mod will have 2 save slots
* Mod save data will not be able to use slashes
* Mod Data will be saved and returned as raw text

Format: RESTful/JSON

Save World
Code:
action = post/get
uid = post/get
mid = post/get
sid = post/get
data = post

Request:
http://playminicraft.com/api/?action=save&uid={user_id}&mid={mod_id}&sid={slot_id (1-2)}

Response:
200 - Save Worked
400 - Bad Request
500 - Internal Error


Thinking Notes:
* I am thinking that saves might look like this, but not sure how you guys are doing it.
Code:
inventory|s1-10-2!s2-4-3=World|l1-0-0-0|l2-0-1-0

Inventory:
Slot 1 - Item 10 - Amount 2
Slot 2 - Item 4  - Amount 3

World:
Level 1 - X 0 - Y 0 - Water 0
Level 1 - X 0 - Y 1 - Water 0

Like I said not sure how you guys are doing it, but this is how I am seeing it. Let me know what you are doing.

_________________
Image
Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Style created by © Matti, gry komputerowe, reklama sem reklama seo

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group