How to Make an Online Level Save & Load System in Unity - Part 1
HTML-код
- Опубликовано: 6 июн 2024
- ➤LootLocker: www.lootlocker.io/?...
➤ LootLocker SDK: github.com/LootLocker/unity-sdk
➤ Part 2: • How to Make an Online ...
➤Level Editor Tutorial: • How to make a Level Ed...
➤Assets Used in Video: pixelfrog-assets.itch.io/pixe...
➤Source Code: / 63270193
---------------------------------------------------------------------------------------------------------------------------
In this tutorial I will be showing you how to turn your level editor into something players can save and load. Players will be able to edit a level and then choose whether they want to upload it online. During this process they will give the level a name and a screenshot of the level will be taken. This is then uploaded online to lootlocker. Users in the game will then be able to view all uploaded levels and load and play any of them.
At the end you will have an awesome universal Level Editor download and upload system. That can be changed and easily implemented into your project.
---------------------------------------------------------------------------------------------------------------------------
Source Code: https: / 49266663
---------------------------------------------------------------------------------------------------------------------------
Discord: / discord
Instagram: / gabzxd
Twitch: / officialzyger
Twitter: / zygerdesigns
-------------------------------------------------------------------------------------------------------------------------
➤WISHLIST MY GAME: store.steampowered.com/app/16...
-------------------------------------------------------------------------------------------------------------------------
----Time Stamps-----
0:00 - Intro
0:30 - Setting Up LootLocker
3:32 - Upload Level Manager
10:47 - Saving Data About Our Level
15:15 - Final Unity Setup
16:03 - Testing - Развлечения
Yes! Finally, I can learn how to make save and load!
thanks so much, i was waiting for something like this! this will help create my game!
i love your work sooo much
Cool stuff, just wanted to share some quick tips for the code :
- You can remove many indentations and make the code cleaner if in the loot locker functions you replace the lamdas you write by actual functions. This feels really needed on the UploadLevelData function.
- Your function FindSaveableAssets call destroy on previously saved gameObjects and then finds new ones. However the objects you called Destroy on will not be gone yet by the time you call find, as said in unity doc "The object obj is destroyed immediately after the current Update loop".
- I did not see the download video yet, but for the text file you save, it would probably benefit using a popular text file format like json and a set up with serialiazable struct or class instead of having arrays of the names, positions. You can then have your json formatter take your serializable struct and create the text file for you, meaning if you want more info on each object saved you dont have too add new arrays and write your own custom formatting everytime.
Do you know if its possible to use an iap to buy tokens then use lootlocker to save their tokens?
Im new to unity / c#
Been wanting to use playmaker as much as possible but even when i get playmaker apps i find myself still needing to make script lol
Yes.
On the visual studio i cant find "LootlockerSDKManager" It should turn on green right but mine still white, how can i fix that?....Thanks
2:43
I try your code but I got error when I tried to put the Getcomponent the FindSavable could not find
Make sure your naming is correct. It's searching for a script so ensure the name is correct and that it exists.
When i try this i get this error: File content is empty, not allowed.
nvm i solved it. I forgot to assign the tag to the gameobjects
Does it work in a WebGL build?
yep should work. some things may need to be changed though
Hi, I've done the first part of the video and I always get not successful in the console, please help me
if you open up the error in the console what error does it specifically give you? or in the code add this to the debug.log to see what the error is: response.error.
@@ZygerGFX in the console I get the not succesfull from the debug.log. I will try your tip later, thanks
@@ZygerGFX This is the error from Debug.LogError(response.Error); : Bad Request -- Your request has an error {
"success": false,
"error": "Platform not enabled: guest",
"error_id": "NjIyN2FhYTQ2MDM3ZQ"
@@Detrax17172 did you enable the guest platform on the loot locker website ?
@@ZygerGFX oh I only enabled android ,now it's fixed. Thank you
p̷r̷o̷m̷o̷s̷m̷ 💃
Hello @ZygerGFX or @Zyger
Im making a unit android game, and i do something similar as your code and it work in UNITY_EDITOR,
but dont work in UNITY_ANDROID, can u help me with few lines of code, and i send you a email...Thx. 🙂
You cannot call this method before an active LootLocker session is started, i get this when i click upload level