Anyone successfully updated a CJS game to XDK?

Discussion and feedback on Construct 2

Post » Fri Jul 18, 2014 2:43 pm

I am fed up with CJS crashing on way too many devices and want to update to Xwalk/XDK, problem is the game is already published with a lot of users so far, so if I were to update, it has to go smooth.

I tried doing it on my test device LG G-Pad 8.3, it installed on top of the old CJS version fine, but the game resets all the saved data! > :o I use Webstorage Local Vars to save all the progress.

If you've done it I'd love to hear your experience on it.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Wed Jul 23, 2014 3:50 pm

Yes have done it today

Updated my android game jetpack space miner from cjs to crosswalk.

Wha do you need to know
B
50
S
22
G
14
Posts: 174
Reputation: 10,842

Post » Wed Jul 23, 2014 4:02 pm

Darth Crusher wrote:Yes have done it today

Updated my android game jetpack space miner from cjs to crosswalk.

Wha do you need to know


I use Webstorage, Set Local Key and store Global Numbers to keep track of almost all of progress.

When I update to XDK from CJS, it resets the saved data, so the game starts like a new install.

Did your game manage to keep saved data and if so, which save system did you use, Webstorage or Dictionary? etc.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Wed Jul 23, 2014 5:12 pm

It lost my webstorage as well

but i only save high score variable so wasn't a major issue

getting leadbolt ads working was really easy though

thats what has been putting me off changing to crosswalk the lack of ads
B
50
S
22
G
14
Posts: 174
Reputation: 10,842

Post » Thu Jul 24, 2014 1:19 am

Darth Crusher wrote:It lost my webstorage as well

but i only save high score variable so wasn't a major issue

getting leadbolt ads working was really easy though

thats what has been putting me off changing to crosswalk the lack of ads


Lost your saved data too.. oh well, I can't lose my user's saved data, there will be a crap-storm as they find their game resets after an update.

I hate the idea but i'll have to release a 2nd version with XDK, such a stupid situation with CJS crashing on so many devices.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Thu Jul 24, 2014 8:33 am

Silverforce wrote:Lost your saved data too.. oh well, I can't lose my user's saved data, there will be a crap-storm as they find their game resets after an update.

If you're up to the challenge, you could create an online facility for storing that WebStorage data, or at least the most critical bits. Release a CJS-based update that syncs local storage online, then release an XDK update that pulls down that data and loads it into local storage.

It'd probably just be a matter of pushing data into a SQL database through Ajax and PHP, much like how ArcadeEd's online high score table tutorial works. The only hurdle is that you'd need a unique identifier for each user to keep their data together while it's online. I'd suggest generating a string of numbers and letters, then just say to the user "Hey, there's an update that's going to massively improve your user experience; if you want to keep your data, write down this string carefully and re-enter it in the updated version".

It's a long, laborious, possibly messy process, but if in the end you have a more stable and overall better product, I think it'd be worth the effort.
B
57
S
15
G
11
Posts: 912
Reputation: 12,606

Post » Thu Jul 24, 2014 10:26 am

GeometriX wrote:
Silverforce wrote:Lost your saved data too.. oh well, I can't lose my user's saved data, there will be a crap-storm as they find their game resets after an update.

If you're up to the challenge, you could create an online facility for storing that WebStorage data, or at least the most critical bits. Release a CJS-based update that syncs local storage online, then release an XDK update that pulls down that data and loads it into local storage.

It'd probably just be a matter of pushing data into a SQL database through Ajax and PHP, much like how ArcadeEd's online high score table tutorial works. The only hurdle is that you'd need a unique identifier for each user to keep their data together while it's online. I'd suggest generating a string of numbers and letters, then just say to the user "Hey, there's an update that's going to massively improve your user experience; if you want to keep your data, write down this string carefully and re-enter it in the updated version".

It's a long, laborious, possibly messy process, but if in the end you have a more stable and overall better product, I think it'd be worth the effort.


Thanks. I thought about doing a similar solution, but it will require user input and from my experience with users on the Store, its just not going to happen and many of them will find they suddenly update and lose all their data.

Not all users auto update to the latest build, a lot of them are lagging 1, 2 or even 3 updates behind. If they suddenly update later to the XDK build, their current progress resets. You can imagine the fury.

It'll have to be a 2nd edition, like Star Nomad Elite. One of the great feature of XDK is the memory management and fast load times, it means I can put in PC/MAC high resolution art on the XDK build, in fact, I've already tested it and it ran very well on a lot of devices! I'll have to update the app description to point new users to the Elite version and overtime, phase out the CJS version.

Anyway, for those who don't know the problem, now its out there. Updating a different compiled game will reset Webstorage.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Tue Jul 29, 2014 2:13 pm

Darth Crusher wrote:It lost my webstorage as well

but i only save high score variable so wasn't a major issue

getting leadbolt ads working was really easy though

thats what has been putting me off changing to crosswalk the lack of ads


DC, how did you get your lead bolt ads to work? I've been trying to implement it for months and never got it to work. I tried the podes method without success. Also, I've been having problems with version numbers and cannot update to google play. Where in XDK do we change the version numbers?
B
17
S
2
Posts: 34
Reputation: 853

Post » Tue Jul 29, 2014 2:38 pm

@Silverforce @Darth Crusher

Wouldn't crosswalk give lower fps than cjs?. assuming your game has iap, is crosswalk able to handle iap and leader boards and such. I assumed that many preferred cjs because it could handle iap, leaderboards, ads( a long long time ago) etc whereas crosswalk had issues with the above mentioned.

And Silverforce , i'm not familiar with your game but couldn't you use the players username as a sort of key for the saved file. Maybe in an update you can have the ability to name the ship and squad and etc etc, so you use the ships name and the squads name and etc etc name in digits(1 for a, 2 for b etc etc) multiplied by a large number and keep it as a save file key. Probability of 2 people with the same ship name and squad name and etc etc name would be zero, i guess. Just my 2 cents.
B
16
S
4
Posts: 140
Reputation: 1,458

Post » Tue Jul 29, 2014 6:18 pm

@Pariunos

leadbolt ads are really easy to do

all you need to do is put iframe in your project and copy the url that leadbolt give you for the ad, just remove .js from this link and away you go
B
50
S
22
G
14
Posts: 174
Reputation: 10,842

Next

Return to Construct 2 General

Who is online

Users browsing this forum: AnimH01, MrQuickGame and 12 guests