Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Need Help! - Place Many Strings Into 1 String - Both Read & Write...

Author
Message
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 7th Nov 2019 16:18 Edited at: 7th Nov 2019 18:01
Hi,

Ran into a bad problem with new Internet Cookie support in AGKC:
Browsers limit to 50 Internet Cookies, but our game "Space Swap" currently has more than 50 Internet Cookies.

Can someone with Jedi programming skills help us?
We need to place multiple strings into one string both read and write.

Current read/write code is below, hope you can help us!:
Thanks!

Jesse



JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com

The author of this post has marked a post as an answer.

Go to answer

Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 7th Nov 2019 17:08 Edited at: 7th Nov 2019 17:14
Since we do not yet have this version, I can only assume that the download function loads the data successfully, otherwise you can get the default row.
'MusicVolume = 100; EffectsVolume = 100 '

https://www.instagram.com/qugurun/
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 7th Nov 2019 17:30
Good stuff, let me play with it and I'll come back with result!
Thank you!

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 7th Nov 2019 18:00 Edited at: 7th Nov 2019 18:01
Hi,

You idea will work, just need some more help:

How would I modify below?:
(currently 60 Cookies, want to modify to use only 3 Cookies)

Let me know, thanks for your help and support!

NOTE: "HighScoreName" is a String, and "HighScoreLevel" & "HighScoreScore" are Integer.

Jesse

JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 7th Nov 2019 19:23 Edited at: 7th Nov 2019 19:32
Maybe consider using a type and the JSON functions to handle saving data



Then all your data is neatly encapsulated in one type and loading and saving functions are super easy and simple, plus they are easy to extend in the future?? You could just have the high scores in a type and the toJSON() and fromJSON() inbuilt functions create your save strings for you.

Just an idea.
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 7th Nov 2019 20:04 Edited at: 7th Nov 2019 20:06
Just a guess



UPD
Bengismo, JSON bravo! I forgot about him
https://www.instagram.com/qugurun/
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 7th Nov 2019 21:11
Hi, finally got it working, I'll post the code shortly!

JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com

Attachments

Login to view attachments
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 7th Nov 2019 22:44 Edited at: 7th Nov 2019 22:47
Hi...

Please test below on all your Internet browsers:
http://fallenangelsoftware.com/stuff/files/SpaceSwap/HTML5/index.html

The code below works, but the last part is too long horizontally and I don't know how to compact it?
Any ideas?
https://pastebin.com/XficJwuE

Thanks!

Jesse

JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 8th Nov 2019 04:28 Edited at: 8th Nov 2019 04:51
This post has been marked by the post author as the answer.
Got the number of Internet Cookies down to ONE(1) !!!

JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 8th Nov 2019 04:45 Edited at: 8th Nov 2019 06:40
I am glad to help

Do you happen to know when a new version of the AGC with cookie support will appear
https://www.instagram.com/qugurun/

Login to post a reply

Server time is: 2024-11-22 10:43:37
Your offset time is: 2024-11-22 10:43:37