Webstorage for Arcade

If you have found a bug, or have a suggestion/comment then leave it here

Post » Mon Feb 13, 2012 9:56 am

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.
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Mon Feb 13, 2012 9:36 pm

It's on the todo list, we just need to modify it otherwise all arcade games will share the same storage.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Mon Feb 13, 2012 10:00 pm

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.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Tue Feb 14, 2012 9:52 am

@Ashley thanks :D

@Kystric hah! me too... :D
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Mon Feb 20, 2012 12:50 pm

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
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Feb 20, 2012 1:00 pm

@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?
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Wed Feb 22, 2012 8:14 am

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
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Mon Feb 27, 2012 11:18 pm

@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???
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Feb 27, 2012 11:20 pm

Nice question @sqiddster.. I was wondering that myself
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Mon Feb 27, 2012 11:35 pm

@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?Ashley2012-02-27 23:37:21
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Next

Return to Website Issues and Feedback

Who is online

Users browsing this forum: No registered users and 0 guests