Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Dictionary load and save tutorials

Dictionary load and save tutorials

Scheduled Pinned Locked Moved Help and Support
35 Posts 4 Posters 365 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RobinsonXR Online
    RobinsonXR Online
    RobinsonX
    wrote last edited by RobinsonX
    #22

    But yeah, about the tutorials, I am disappointed with how we currently do things and the lack of tutorials we have. We do have a dedicated Help page with all the documentation, links to video tutorials, etc. but either the content doesn't help (too broad/no examples) or nobody refers to them.

    It also doesn't help that most of it is outdated šŸ™ƒ They're reliable but the screenshots would show UI that is different than what we have now

    We are currently focusing on web support, but I also think we should also focus on making the app itself more beginner friendly with built-in interactive examples and explanations. If the stuff that we have isn't clicking, then we should probably focus on more concrete foundational examples like this one:

    1 Reply Last reply
    0
    • MrAeon1111M Offline
      MrAeon1111M Offline
      MrAeon1111
      wrote last edited by
      #23

      We could really use a clear tutorial on arrays and dictionaries — something that shows how to add and remove elements with simple, clean examples, and explains how an inventory system should work.

      This would be perfect. ā¤ļø

      1 Reply Last reply
      0
      • RobinsonXR Online
        RobinsonXR Online
        RobinsonX
        wrote last edited by
        #24

        šŸ™ I agree. I need to redo that array/dictionary tutorial 😭 I feel a bit of cringe rewatching that

        1 Reply Last reply
        0
        • MrAeon1111M Offline
          MrAeon1111M Offline
          MrAeon1111
          wrote last edited by MrAeon1111
          #25

          How do I put an object at the next index value place?
          It’s not append and not prepend. And I am not supposed to know the current index.

          After the A9. How can I put my next object there? Is there any function to put things one after the other?

          IMG_2807.jpeg

          RobinsonXR 1 Reply Last reply
          0
          • MrAeon1111M Offline
            MrAeon1111M Offline
            MrAeon1111
            wrote last edited by
            #26

            How to delete a spawned object from the array?
            I pick up an object and that object appears in the inventory. I want to remove the object from the inventory and from the array at the same time. Destroying the inventory object itself is easy, but I don’t know how to remove the source object (the one that was used to spawn the inventory object) from the array.
            The problem is that the object I pick up and the object in the inventory do not share the same object ID. Every time I pick something up, the inventory gets a new object instance with a new ID.
            How can I delete the original source object (the one that was used to spawn the inventory object) from the array when I destroy the inventory object?

            RobinsonXR 1 Reply Last reply
            0
            • MrAeon1111M Offline
              MrAeon1111M Offline
              MrAeon1111
              wrote last edited by
              #27

              Here I found it

              IMG_2821.jpeg

              1 Reply Last reply
              0
              • MrAeon1111M MrAeon1111

                How do I put an object at the next index value place?
                It’s not append and not prepend. And I am not supposed to know the current index.

                After the A9. How can I put my next object there? Is there any function to put things one after the other?

                IMG_2807.jpeg

                RobinsonXR Online
                RobinsonXR Online
                RobinsonX
                wrote last edited by
                #28

                @MrAeon1111 said:

                How do I put an object at the next index value place?
                It’s not append and not prepend. And I am not supposed to know the current index.

                After the A9. How can I put my next object there? Is there any function to put things one after the other?

                IMG_2807.jpeg

                You must find the index of the first occurrence of "".

                Loop loop through all elements of an array --> If check whether the current value is equal to "" --> Modify Array if the current value is equal to "", then you can replace the item given the current index of the Loop behavior -->Break you want to break out of the loop so it doesn't do it for the rest of the array.

                IMG_8527.jpeg IMG_8528.jpeg IMG_8529.jpeg IMG_8530.jpeg

                1 Reply Last reply
                0
                • MrAeon1111M MrAeon1111

                  How to delete a spawned object from the array?
                  I pick up an object and that object appears in the inventory. I want to remove the object from the inventory and from the array at the same time. Destroying the inventory object itself is easy, but I don’t know how to remove the source object (the one that was used to spawn the inventory object) from the array.
                  The problem is that the object I pick up and the object in the inventory do not share the same object ID. Every time I pick something up, the inventory gets a new object instance with a new ID.
                  How can I delete the original source object (the one that was used to spawn the inventory object) from the array when I destroy the inventory object?

                  RobinsonXR Online
                  RobinsonXR Online
                  RobinsonX
                  wrote last edited by
                  #29

                  @MrAeon1111 said:

                  How to delete a spawned object from the array?
                  I pick up an object and that object appears in the inventory. I want to remove the object from the inventory and from the array at the same time. Destroying the inventory object itself is easy, but I don’t know how to remove the source object (the one that was used to spawn the inventory object) from the array.
                  The problem is that the object I pick up and the object in the inventory do not share the same object ID. Every time I pick something up, the inventory gets a new object instance with a new ID.
                  How can I delete the original source object (the one that was used to spawn the inventory object) from the array when I destroy the inventory object?

                  For this one you want to store the source object ID in the spawned object using attributes. You can use Set Attribute to set a key with the object ID as the value. Then when destroying the object, you can use Get Attribute to retrieve it from the object.

                  Here's an example:

                  Original Object

                  The original object spawns another object (the red one). In the spawned object, we can set an attribute source object id with the original object id.

                  IMG_8532.jpeg

                  Spawned Object

                  The spawned object can retrieve the original object that spawned it and destroy it.

                  IMG_8533.jpeg IMG_8534.jpeg

                  1 Reply Last reply
                  0
                  • MrAeon1111M Offline
                    MrAeon1111M Offline
                    MrAeon1111
                    wrote last edited by
                    #30

                    Thanks 😃

                    1 Reply Last reply
                    0
                    • MrAeon1111M Offline
                      MrAeon1111M Offline
                      MrAeon1111
                      wrote last edited by
                      #31

                      Yes but it is coming from a loop and a spawn the entire array. So what would you do?

                      RobinsonXR 1 Reply Last reply
                      0
                      • MrAeon1111M Offline
                        MrAeon1111M Offline
                        MrAeon1111
                        wrote last edited by
                        #32

                        A little option to destroy the source would be nice 😊

                        1 Reply Last reply
                        0
                        • MrAeon1111M Offline
                          MrAeon1111M Offline
                          MrAeon1111
                          wrote last edited by
                          #33

                          It’s weird because sometimes it delete the source even if the ID is not the same… For that I do a modify array by doing a get array value at index when the spawn object is touched. But it doesn’t work every time. I don’t understand why.

                          RobinsonXR 1 Reply Last reply
                          0
                          • MrAeon1111M MrAeon1111

                            Yes but it is coming from a loop and a spawn the entire array. So what would you do?

                            RobinsonXR Online
                            RobinsonXR Online
                            RobinsonX
                            wrote last edited by
                            #34

                            @MrAeon1111 said:

                            Yes but it is coming from a loop and a spawn the entire array. So what would you do?

                            I'm not sure what you mean by this. Can you send a screenshot/picture?

                            1 Reply Last reply
                            0
                            • MrAeon1111M MrAeon1111

                              It’s weird because sometimes it delete the source even if the ID is not the same… For that I do a modify array by doing a get array value at index when the spawn object is touched. But it doesn’t work every time. I don’t understand why.

                              RobinsonXR Online
                              RobinsonXR Online
                              RobinsonX
                              wrote last edited by
                              #35

                              @MrAeon1111 said:

                              It’s weird because sometimes it delete the source even if the ID is not the same… For that I do a modify array by doing a get array value at index when the spawn object is touched. But it doesn’t work every time. I don’t understand why.

                              It is worth noting that Get Array Value takes a number for the index. If you put text for the input, it treats it as 0 (getting the first element instead).

                              1 Reply Last reply
                              0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better šŸ’—

                              Register Login
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Search