Тёмный

[2022] Google Play Game Services #4 - Saved Games 

Flarvain
Подписаться 2,8 тыс.
Просмотров 12 тыс.
50% 1

Hey All,
My Patreon: / flarvain
Discord: / discord
GPGS github: github.com/pla...
This was a huge amount of effort but i'm really proud of the output. I hope you enjoy this one and it helps you get the pain that is Saved Games in GPGS under control.
It's likely that you'll run into some errors along the way with this, they aren't simple to solve generally. If that's the case, come join the discord and we'll see if we can help you out :)
I also am affiliated with NordVPN, if you're both interested in a VPN and want to help support or already have a subscription and need to renew it then please consider using my link:
NordVPN: go.nordvpn.net...
NordPass (password manager): go.nordpass.io...
The above helps a lot!
#GooglePlayGameServices
#Flarvain
#Unity3dTutorial
#SavedGames

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@RevolverEagle
@RevolverEagle Год назад
Oh my this is the best GPGS Cloud Save tutorial ever exist! The schematic diagrams you made is super!
@Flarvain
@Flarvain Год назад
Cheers ricky!
@leagueofmusic9622
@leagueofmusic9622 2 года назад
Thank you for this tutorial, it made me understand (at least more than before) of how cloud saves work. Will be waiting for JSON implementation video! Considering this video covers all basic actions, changing type of data won't be too difficult (I think so). By the way, I was searching for this tutorial for weeks, and this one is the best IMHO! Thank you, Flarvain! And I wish you more subscribers!
@Flarvain
@Flarvain 2 года назад
Glad it could help! The json part may not be my next video but ill get it done once ive had a bit of a break from gpgps. Thank you for the high praise 🙏
@lyndoniousprime
@lyndoniousprime 2 года назад
Thanks for the diagrams at the start, made it easier to visualise how things work.
@rameezfayyaz2041
@rameezfayyaz2041 2 года назад
Thanks Flarvain. It is a great tutorial for begineers like me. Hope you keep doing this. Cheers!
@keelanaskew6370
@keelanaskew6370 2 года назад
Thanks for making this, helped soo much 👍
@Flarvain
@Flarvain 2 года назад
No worries, glad it helped!
@jellybean4049
@jellybean4049 2 года назад
Subbed and a thumbs up for the Collie! Very well done videos. Look forward to the Json I've been stuck on this one for awhile.
@Flarvain
@Flarvain 2 года назад
I see ive found a fellow dog appreciator. Welcome to the channel!
@user-hm2bl9wo1v
@user-hm2bl9wo1v Год назад
Thanks! Your tutorial is really great. Now I can save my game to Google cloud. I am so excited! ^^
@HausCoding
@HausCoding 2 года назад
Nice tutorial easy to understand, Thank you very much
@Flarvain
@Flarvain 2 года назад
You're welcome, thank you for the praise!
@sandeepraj5744
@sandeepraj5744 2 года назад
Great tutorial series, Thank You Flarvin..... I will be waiting for JSON implementation Video
@castanojuan
@castanojuan Год назад
You sound younger than 29 😂 Great video, thanks Flarvain!
@Flarvain
@Flarvain Год назад
Haha, thanks juan :)
@realprodigious
@realprodigious 2 года назад
Subbed, awesome tutorial
@Flarvain
@Flarvain 2 года назад
Thanks prodigious, appreciate the sub 🙏 welcome to the channel :)
@imc0der
@imc0der Год назад
Nice tutorial thanks
@medalimakhlouf1508
@medalimakhlouf1508 2 года назад
Great Bro
@ClintDecker
@ClintDecker 2 года назад
Thanks for this demo and clarification. If we are saving via PlayerPrefs within Unity, is it safe to assume we won't have to have the saved games option enabled in GPGS because the data will be saved locally on the device?
@Flarvain
@Flarvain 2 года назад
Hi Clint, theyre two different saving operations, they could both be used together and have the playerprefs used in some kind of local offline mode if you wanted. But in general if you're doing something simple and dont need data to transfer across devices then player prefs is fine. The other note would be that the data you're saving in player prefs will is some of the easiest to hack and edit because its just a local file on their device. Im doing a video on both binary saving / encryption and json data structures which are all different methods with their own advantages and disadvantages. Best of luck and welcome to the channel!
@fulgencejuniorlohore854
@fulgencejuniorlohore854 Год назад
Great!
@Flarvain
@Flarvain Год назад
Thanks, youve been on a bit of a binge! I love to see it, hope its all helping :)
@fulgencejuniorlohore854
@fulgencejuniorlohore854 Год назад
@@Flarvain I went through all your tutorials about Google Play Game Services (0 - 4) and I understand the process thanks to your explanations and your approach! Even if the Saved Games part is not working for me, I'm really happy get how it works now. Keep the good work buddy! You really help a lot, I'm telling you! Looking forward for the new year to see all your new and updated contents. If I new your Chanelle before, I would have gladly supported you instead of wasting my money in some online courses not well explained and not updated. But it is never late as long as we survive 😂, I just started with programming and Unity this year. Thank you again for your videos buddy! I will definitely check your sections about in-app purchase, it looks fire.
@evenprime1658
@evenprime1658 Год назад
u got any in-app purchase vids?
@Flarvain
@Flarvain Год назад
Haha. I do but i see you've already found it :)
@heman922
@heman922 2 года назад
Google play console vs firebase what is the best for save game data???
@Flarvain
@Flarvain 2 года назад
Hey there. Google play can only ever save one string of data. Firebase is a lot more complicated but has much more capabilities in saving and verifying data. Firebase can also be used for more than just mobile games. However, GPGS is a good compromise if you dont need the complexity and also dont wish to pay for storage of data. Firebase fast becomes a paid service so it ends up depending on your implementation. Welcome to the channel :)
@phantomosteam3727
@phantomosteam3727 Год назад
Is it unlimited data that you can save or there is some limitations ? For what if 100K download app and save it has it some limitations?
@Flarvain
@Flarvain Год назад
Hey there, thanks for the comment. The data storage space is based on the individuals google storage account. So 100k downloaded app would all be using their own storage limits which means number of downloads wont have any impact on the ability to save :)
@phantomosteam3727
@phantomosteam3727 Год назад
@@Flarvain so even if I have like thousands variables saved to google cloud won't impact ? Btw thank you for answering ☺️
@Flarvain
@Flarvain Год назад
@@phantomosteam3727 No worries. Here's a link but basically you get 3MB of binary data to save per player. in terms of the majority of games that's pretty significant in the way that you're storing it. If you were needing more i'd say it's probably better to go down the route of something like firebase or another full db solution. developers.google.com/games/services/common/concepts/savedgames Hope that helps!
@phantomosteam3727
@phantomosteam3727 Год назад
@@Flarvain I'm actually using Playfab but the only problem is that have a per user limitations and sometimes data is automatically deleting itself that's probably due to limitations. So i don't really know where or how indie developer store their data. :(
@Flarvain
@Flarvain Год назад
@@phantomosteam3727 hmm. I thought playfab would just charge over a certain amount of data not delete data. Perhaps theres some settings im unaware of. Im afraid im not able to help you much further with that though. Feel free to join the discord and shoot some questions through there. Theres a few hundred people so im sure someone has some experience with playfab 😀
@Jimaniki
@Jimaniki Год назад
Thank you
@Flarvain
@Flarvain Год назад
No problem joseph!
@StickyLabDev
@StickyLabDev Год назад
when i wanto add another data ,, do i have to make something like this dataToSave += words; dataToSave += "|"; dataToSave += koin.ToString(); dataToSave += "|"; dataToSave += koin.ToString(); dataToSave += "|"; dataToSave += koin.ToString();
@Flarvain
@Flarvain Год назад
Having some way to delimit the data so you can tell where some data starts and ends is a good thing to do. You could also write it all to json and store that json as a string
@StickyLabDev
@StickyLabDev Год назад
@@Flarvain i m noobgrammer , so i can not do it my self yet ,and take so long to learn it :)
@Flarvain
@Flarvain Год назад
@@StickyLabDev your above strategy will work fine for saving for now then :)
@StickyLabDev
@StickyLabDev Год назад
@@Flarvain thanks sir
@adslpiulentoditalia2545
@adslpiulentoditalia2545 Год назад
@@Flarvain could you please show how to doing that I'm trying literally for months and still can get it could you help me please I have a a lot of data saved to one Json file but I have no idea how to save this Json file to Google cloud could you help me please
@톰-l2o
@톰-l2o 2 года назад
Hi Thank lot!! you are so genius.
@Flarvain
@Flarvain 2 года назад
Thanks for the kind words :) glad it was helpful
@톰-l2o
@톰-l2o 2 года назад
​@@Flarvain Hi Flarvain. I have some question. How can I delete data?
@톰-l2o
@톰-l2o 2 года назад
I Think I just try input 0 or " " right?
@Flarvain
@Flarvain 2 года назад
@@톰-l2o yep, you can just replace the data with any other value. Using "" is probably easiest so no data values get mixed up. Keep in mind itll error on the load without some real data so you game will need to be able to handle a failed load :)
@doorbell5869
@doorbell5869 Год назад
does the file name have to be different for different users or is it local for every user?
@Flarvain
@Flarvain Год назад
Its local to each user. So provided you havent named it the same as another saved game they have itll just make a new one against their google account. You could safely just name it something like your company+game name to ensure its unique :)
@borisburdeyniy7909
@borisburdeyniy7909 2 года назад
Bro tell me please what to do, I have a problem with SavedGameRequest Status.success. Many where in the forums they write that this is an internal mistake and it will be corrected with time but has passed the week and still without results. Tell me please if you know how to solve this problem. I would be grateful for the help.
@Flarvain
@Flarvain 2 года назад
Hey there, sorry for the late reply, missed this one. Ive pinned a comment in the code help section talking about what code to write and what to check to make sure it works over on discord if you're still stuck :)
@stressbuster5500
@stressbuster5500 2 года назад
Really good video but I have a problem.. In saveGameOpen() Function (status == SavedGameRequestStatus.Success) is returning false for me.. what can be the reason? who to solve this issue? Help me plz
@stressbuster5500
@stressbuster5500 2 года назад
One more question.. You did not create any file to save data you just named it "MyFileName" so does it get created automatically by just naming?
@evenprime1658
@evenprime1658 Год назад
god bless u exist
@Heero5308
@Heero5308 2 года назад
Thanks for the awesome tutorial! Liked and Subscribed :) And seriously, you are better then Brackeys!! Just one thing, your voice volume is too low. Hard to hear you. Also, can you please do the same tutorial on iCloud save for iOS please!! 🙏🙏🙏 Also, a suggestion, you know you give a brief explanation on "don't just copy the code, but to learn it" in the intro of you videos. I think you can condense those into RU-vid Shorts (ie less than 1 minute). RU-vid Shorts can boost your views and subscribes very very very quickly. Couple thousand views on RU-vid Shorts within days is easy. So do that asap while RU-vid algro still trying to promote RU-vid Shorts to compete TikTok.
@Flarvain
@Flarvain 2 года назад
Thats an amazing idea. I might start looking at integrating that, thanks!
@user-ic7hb7td6v
@user-ic7hb7td6v 2 года назад
hi update video how to save and load saves
@Flarvain
@Flarvain 2 года назад
Hey there, im not sure what you mean. I think i cover how to save and load save files. If you need more info consider joining the discord :)
@StickyLabDev
@StickyLabDev Год назад
we need to know howw to save bool to da cloud
@Flarvain
@Flarvain Год назад
Hey there, you can save a long string of text. You could either convert everything to json and then store the data as json and convert it back or you could just have a converter method when you save and change true values to 1 and false values to 0, then you can convert back when you read your file :) Any variation of this would effectively do the same thing. Good luck!
@StickyLabDev
@StickyLabDev Год назад
@@Flarvain thanks for your reply, I've implement play game service, it works when i build the apk but when iupload on play store and other people install it, it not work at all,,,,,,, also the oaut consent screen is very confusing, i can not remove the icon once I've upload it... Id prefer to delete play game service jxisndkeidjd
@Flarvain
@Flarvain Год назад
@@StickyLabDev it sounds like you might be building with your own sha key. Google changed to requiring users to sign with the developer consoles sha 1 if you wish to use gpgs with it. All youll need to do is set that up in your developer console the same way you set up your original sha 1 and it should be fine for others to download too :)
@StickyLabDev
@StickyLabDev Год назад
@@Flarvain daym
@StickyLabDev
@StickyLabDev Год назад
@@Flarvain ive used sh1 key by google but still doesn work ,,,,,,,,,,,,,,,,, do i have to verify the oauth ???? and publish it ? i done it but still doesn work
@ozalpm
@ozalpm 2 года назад
wtf???? why you have only 500 subscriber
@Flarvain
@Flarvain 2 года назад
Haha. Its growing slowly :) welcome to the channel and thanks for the praise!
@user-xk8mt9tq7e
@user-xk8mt9tq7e 2 года назад
Outdated :(
@Hozgen
@Hozgen Год назад
the thing i hate is response coming with some delay and testing it is really hard because some methods are missing some things with occured delays something like TMP.text :D
@Ballistic_Defense
@Ballistic_Defense Год назад
if (status != SavedGameRequestStatus.Success) { Debug.LogError("Error opening saved game"); isSaving = false; return; } the status always returns "internal error", has anyone experienced this or have a solution to it for google saved games?
@simonschmid4781
@simonschmid4781 11 месяцев назад
Did you solve this? I have the same issue and don't know how to solve it :(
Далее
[2021] Google Play Game Services  #0 - Making it work
32:29
How To Use GOOGLE PLAY GAMES SERVICES With UNITY!
23:06
Почему не Попал?!
00:15
Просмотров 41 тыс.
[2021] Google Play Game Services  #1 - Authentication
23:28
MARKETING my SECOND Android GAME
8:01
Просмотров 21 тыс.
Unity Performance Tips: Draw Calls
4:24
Просмотров 189 тыс.
How I Beat The Password Game
39:53
Просмотров 43 тыс.