Webstorage for Arcade

Forum Home Forum Home > Arcade > Arcade
 Post Reply Post Reply Page  12>
Author
4,219 Rep
Post Options Post Options   Quote Ize Quote  Post ReplyReply Direct Link To This Post Topic: Webstorage for Arcade
    Posted: 13 Feb 2012 at 9:56am
While working on my game for the rotary competition, i noticed that the webstorage plugin is not available in the arcade?!

I think this is one of the most important plugins and it NEEDS to be available in the arcade to save scores, unlocked level(my case), achievements etc.

Please allow us to use it in the arcade.
Back to Top

Scirra Developer
78,178 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 13 Feb 2012 at 9:36pm
It's on the todo list, we just need to modify it otherwise all arcade games will share the same storage.
Back to Top

Moderator
28,466 Rep
Post Options Post Options   Quote Kyatric Quote  Post ReplyReply Direct Link To This Post Posted: 13 Feb 2012 at 10:00pm
I hope it can be acheived before the competition deadline
I had overlooked this before, thinking webstorage was supported and implemented it in my entry.
Back to Top
4,219 Rep
Post Options Post Options   Quote Ize Quote  Post ReplyReply Direct Link To This Post Posted: 14 Feb 2012 at 9:52am
@Ashley thanks :D

@Kystric hah! me too... :D
Back to Top
19,038 Rep
Post Options Post Options   Quote sqiddster Quote  Post ReplyReply Direct Link To This Post Posted: 20 Feb 2012 at 12:50pm
Yeah, me too! This needs to be a priority to be done before the competition deadline! some of us have longer games, and if there is no way to save progress... :O
Back to Top
8,519 Rep
Post Options Post Options   Quote Weishaupt Quote  Post ReplyReply Direct Link To This Post Posted: 20 Feb 2012 at 1:00pm
@Ashley - you may have already found a way to make the WebStorage "arcadable", but if not, here's my idea:

I thing, WebStorage is nothing else then "placing" cookies, and the cookiefile has a generic name. Why don't use the MAC-Adresse of the c2 "compiling" PC (ie the game developers PC) as a HASH-seed to generate a uniqe name for the cookie file?
_____________________
You want help? Post your CAPX!

virtus junxit mors non separabit
Back to Top
4,219 Rep
Post Options Post Options   Quote Ize Quote  Post ReplyReply Direct Link To This Post Posted: 22 Feb 2012 at 8:14am
Sounds like a good idea. I hope you guys can push out a new release with the "fixed" webstorage before the rotary competition closes. :O
Back to Top
19,038 Rep
Post Options Post Options   Quote sqiddster Quote  Post ReplyReply Direct Link To This Post Posted: 27 Feb 2012 at 11:18pm
@Ashley...
On the blog post, you mention that
"on the Arcade the following features are blocked to prevent games accessing other game's data: clear storage, get number of values, get value at, get key at."

What exactly does this mean? Does this mean that webstorage is completely useless as we can't use webstorage.localvalue?

I urgently need a response for this. If we can't save our user's progress, what hope is there for big games???
Back to Top
5,524 Rep
Post Options Post Options   Quote 0plus1 Quote  Post ReplyReply Direct Link To This Post Posted: 27 Feb 2012 at 11:20pm
Nice question @sqiddster.. I was wondering that myself
Back to Top

Scirra Developer
78,178 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 27 Feb 2012 at 11:35pm
@sqiddster, no, localvalue wasn't on that list! It's only the get key at expressions, which take an integer index rather than the key names, that are blocked. To clarify, the following ACEs work on the arcade:

Local key exists
Session key exists
Set local value
Set session value
Remove local value
Remove session value
LocalValue (get local value)
SessionValue (get session value)

The following are blocked:
Clear local storage
Clear session storage
LocalCount (number of local values)
SessionCount (number of session values)
LocalAt (Nth local value)
SessionAt (Nth session value)
LocalKeyAt (Nth local key)
SessionKeyAt (Nth session key)

The latter can also be worked around if necessary, but with a lot to do that build I thought I'd just get the basics out in time for the competition. You can still save and load values. The blocked stuff, without some extra work, would allow using and modifying other game's data, since they work with the global list of all saved data. That's why for the time being they're not allowed. Do you urgently need any of those other features?

Edited by Ashley - 27 Feb 2012 at 11:37pm
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down