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
  • РазвлеченияРазвлечения

Комментарии • 24

  • @glitchydemonfairy3171
    @glitchydemonfairy3171 2 года назад

    Yes! Finally, I can learn how to make save and load!

  • @meeperhere
    @meeperhere 2 года назад

    thanks so much, i was waiting for something like this! this will help create my game!

  • @Woodrina
    @Woodrina 9 месяцев назад

    i love your work sooo much

  • @XxBobTheGlitcherxX
    @XxBobTheGlitcherxX 2 года назад +2

    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.

    • @bestbotreview
      @bestbotreview Год назад

      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

  • @copycat8725
    @copycat8725 2 года назад

    Yes.

  • @brotherhero1411
    @brotherhero1411 5 месяцев назад

    On the visual studio i cant find "LootlockerSDKManager" It should turn on green right but mine still white, how can i fix that?....Thanks

  • @kimacemarquez5064
    @kimacemarquez5064 Год назад

    I try your code but I got error when I tried to put the Getcomponent the FindSavable could not find

    • @ZygerGFX
      @ZygerGFX  Год назад +1

      Make sure your naming is correct. It's searching for a script so ensure the name is correct and that it exists.

  • @hckrs_
    @hckrs_ 2 месяца назад

    When i try this i get this error: File content is empty, not allowed.

    • @hckrs_
      @hckrs_ 2 месяца назад

      nvm i solved it. I forgot to assign the tag to the gameobjects

  • @coffeebean7502
    @coffeebean7502 Год назад

    Does it work in a WebGL build?

    • @ZygerGFX
      @ZygerGFX  Год назад

      yep should work. some things may need to be changed though

  • @Detrax17172
    @Detrax17172 2 года назад

    Hi, I've done the first part of the video and I always get not successful in the console, please help me

    • @ZygerGFX
      @ZygerGFX  2 года назад

      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.

    • @Detrax17172
      @Detrax17172 2 года назад

      @@ZygerGFX in the console I get the not succesfull from the debug.log. I will try your tip later, thanks

    • @Detrax17172
      @Detrax17172 2 года назад

      @@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"

    • @ZygerGFX
      @ZygerGFX  2 года назад +1

      @@Detrax17172 did you enable the guest platform on the loot locker website ?

    • @Detrax17172
      @Detrax17172 2 года назад

      @@ZygerGFX oh I only enabled android ,now it's fixed. Thank you

  • @Jean-by3wt
    @Jean-by3wt 2 года назад

    p̷r̷o̷m̷o̷s̷m̷ 💃

  • @AP-iq4sf
    @AP-iq4sf Год назад

    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. 🙂

  • @xezienstudios
    @xezienstudios Год назад

    You cannot call this method before an active LootLocker session is started, i get this when i click upload level