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. How to spawn a buddy?

How to spawn a buddy?

Scheduled Pinned Locked Moved Help and Support
39 Posts 5 Posters 14.3k Views 2 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.
  • iTap DevelopmentI iTap Development

    This post is deleted!

    D Offline
    D Offline
    Deeeds
    wrote on last edited by
    #15

    @iTap-Development Each buddy has a receive message, and looks to his variable (which should be unique) to see what "channel" he should be listening on.

    This variable is set when he's spawned.

    That part works

    Him listening on the variable channel doesn't work.

    iTap DevelopmentI 1 Reply Last reply
    0
    • D Deeeds

      @iTap-Development Each buddy has a receive message, and looks to his variable (which should be unique) to see what "channel" he should be listening on.

      This variable is set when he's spawned.

      That part works

      Him listening on the variable channel doesn't work.

      iTap DevelopmentI Offline
      iTap DevelopmentI Offline
      iTap Development
      wrote on last edited by
      #16

      @Deeeds are you willing to give a project to look at?

      D 1 Reply Last reply
      0
      • iTap DevelopmentI iTap Development

        @Deeeds are you willing to give a project to look at?

        D Offline
        D Offline
        Deeeds
        wrote on last edited by
        #17

        @iTap-Development No, I'm deep into something, and simply need to know... can a receiver use a variable as the Event Key?

        That is the part that's not working.

        iTap DevelopmentI 1 Reply Last reply
        0
        • D Deeeds

          @iTap-Development No, I'm deep into something, and simply need to know... can a receiver use a variable as the Event Key?

          That is the part that's not working.

          iTap DevelopmentI Offline
          iTap DevelopmentI Offline
          iTap Development
          wrote on last edited by
          #18

          @Deeeds as far as I know, yes. That’s why I suggested a project.

          D 1 Reply Last reply
          0
          • iTap DevelopmentI iTap Development

            @Deeeds as far as I know, yes. That’s why I suggested a project.

            D Offline
            D Offline
            Deeeds
            wrote on last edited by
            #19

            @iTap-Development Are you SURE it works? Have you ever done this?

            Spawn and object. Let's call him Mate

            Spawn an object to be Mate's Buddy

            Mate sends a channelID to Buddy

            Buddy sets that variable in his local storage.

            Buddy's got a Receiver with an Event Key that's set to that locally stored variable.

            Everything works except Buddy's receiver.

            D 1 Reply Last reply
            0
            • D Deeeds

              @iTap-Development Are you SURE it works? Have you ever done this?

              Spawn and object. Let's call him Mate

              Spawn an object to be Mate's Buddy

              Mate sends a channelID to Buddy

              Buddy sets that variable in his local storage.

              Buddy's got a Receiver with an Event Key that's set to that locally stored variable.

              Everything works except Buddy's receiver.

              D Offline
              D Offline
              Deeeds
              wrote on last edited by Deeeds
              #20

              @iTap-Development @Aidan-Oxley I found the problem.

              Buddy's Receiver is set by creating a copy of what's in the variable for itself, it's not a reference to the variable's contents (nor is looking contents via a pointer etc). So once it gets a value from the variable, it's got its own copy and isn't actually looking at the variable's contents to know what it's listening to.

              In the initial Spawning, he's getting a null as the receiving channel because the variable hasn't yet been initialised.

              And that never changes, even when the variable's value changes.

              A very slight delay before activating the receiver forces it to set itself with that variable after the variable has been initialised with the value of the previously received ChannelID from his Mate.

              This goes back to my other point, somewhere else, that I think broadcasting might be quite efficient, and that @hamed is setting up fast lookup tables for messaging and been a clever fella about how he's done messaging, even if nobody has bothered to describe how/why it works the way it does.

              iTap DevelopmentI 1 Reply Last reply
              0
              • D Deeeds

                @iTap-Development @Aidan-Oxley I found the problem.

                Buddy's Receiver is set by creating a copy of what's in the variable for itself, it's not a reference to the variable's contents (nor is looking contents via a pointer etc). So once it gets a value from the variable, it's got its own copy and isn't actually looking at the variable's contents to know what it's listening to.

                In the initial Spawning, he's getting a null as the receiving channel because the variable hasn't yet been initialised.

                And that never changes, even when the variable's value changes.

                A very slight delay before activating the receiver forces it to set itself with that variable after the variable has been initialised with the value of the previously received ChannelID from his Mate.

                This goes back to my other point, somewhere else, that I think broadcasting might be quite efficient, and that @hamed is setting up fast lookup tables for messaging and been a clever fella about how he's done messaging, even if nobody has bothered to describe how/why it works the way it does.

                iTap DevelopmentI Offline
                iTap DevelopmentI Offline
                iTap Development
                wrote on last edited by iTap Development
                #21

                @Deeeds that’s why I suggested sharing a project! Glad you figured it out!

                D 1 Reply Last reply
                0
                • iTap DevelopmentI iTap Development

                  @Deeeds that’s why I suggested sharing a project! Glad you figured it out!

                  D Offline
                  D Offline
                  Deeeds
                  wrote on last edited by
                  #22

                  @iTap-Development How would that help to share a project for that?

                  This is why I asked you about conceptual thinking.

                  The question contains the problem.

                  iTap DevelopmentI 1 Reply Last reply
                  0
                  • D Deeeds

                    @iTap-Development How would that help to share a project for that?

                    This is why I asked you about conceptual thinking.

                    The question contains the problem.

                    iTap DevelopmentI Offline
                    iTap DevelopmentI Offline
                    iTap Development
                    wrote on last edited by
                    #23

                    @Deeeds because I could have looked at it and potentially found the problem, especially since I’ve built similar before.

                    D 1 Reply Last reply
                    0
                    • iTap DevelopmentI iTap Development

                      @Deeeds because I could have looked at it and potentially found the problem, especially since I’ve built similar before.

                      D Offline
                      D Offline
                      Deeeds
                      wrote on last edited by
                      #24

                      @iTap-Development I'll say this once again:

                      The problem is CONCEPTUAL!

                      How does one do this kind of thing in this engine with its limited sense of relationships?

                      That is the question and the problem.

                      This is not about one specific effort, this is about understanding the limitations of this engine and its approaches to relationships.

                      Is it making sense what I'm asking, now?

                      iTap DevelopmentI 1 Reply Last reply
                      0
                      • D Deeeds

                        @iTap-Development I'll say this once again:

                        The problem is CONCEPTUAL!

                        How does one do this kind of thing in this engine with its limited sense of relationships?

                        That is the question and the problem.

                        This is not about one specific effort, this is about understanding the limitations of this engine and its approaches to relationships.

                        Is it making sense what I'm asking, now?

                        iTap DevelopmentI Offline
                        iTap DevelopmentI Offline
                        iTap Development
                        wrote on last edited by
                        #25

                        @Deeeds you asked a specific question about a specific problem you were having with a specific behavior. Sure, you are wondering about the concept, but also specifically asked, “can a receiver use a variable as the Event Key?”. So stop with the concept nonsense.

                        D 2 Replies Last reply
                        0
                        • iTap DevelopmentI iTap Development

                          @Deeeds you asked a specific question about a specific problem you were having with a specific behavior. Sure, you are wondering about the concept, but also specifically asked, “can a receiver use a variable as the Event Key?”. So stop with the concept nonsense.

                          D Offline
                          D Offline
                          Deeeds
                          wrote on last edited by
                          #26

                          @iTap-Development It's in the very first word of the original post:

                          "imagine"

                          1 Reply Last reply
                          0
                          • iTap DevelopmentI iTap Development

                            @Deeeds you asked a specific question about a specific problem you were having with a specific behavior. Sure, you are wondering about the concept, but also specifically asked, “can a receiver use a variable as the Event Key?”. So stop with the concept nonsense.

                            D Offline
                            D Offline
                            Deeeds
                            wrote on last edited by
                            #27

                            @iTap-Development Think outside the bun.

                            The question, the Original post, is the problem trying to be solved. That is a CONCEPTUAL problem.

                            Along the way to solving that might be some examples, and I posited one, a buddy relationship. You're welcome to use other examples. But the problem remains conceptual. How does one reference a buddy of a spawned mate?

                            Whilst I thought I'd solved this problem, I have not.

                            Can you demonstrate that it's possible?

                            That might be a better way to use your literalist thinking.

                            Here's the example that demonstrates the problem.

                            Spawning 3 mates.

                            Each mate then spawns a buddy.

                            Each mate wants to be able to communicate with his buddy.

                            Is this possible in this engine?

                            At this point, I'm saying no. It seems broadcasting gets hung up around the first instance for the spawned buddy.

                            iTap DevelopmentI 3 Replies Last reply
                            0
                            • D Deeeds

                              @iTap-Development Think outside the bun.

                              The question, the Original post, is the problem trying to be solved. That is a CONCEPTUAL problem.

                              Along the way to solving that might be some examples, and I posited one, a buddy relationship. You're welcome to use other examples. But the problem remains conceptual. How does one reference a buddy of a spawned mate?

                              Whilst I thought I'd solved this problem, I have not.

                              Can you demonstrate that it's possible?

                              That might be a better way to use your literalist thinking.

                              Here's the example that demonstrates the problem.

                              Spawning 3 mates.

                              Each mate then spawns a buddy.

                              Each mate wants to be able to communicate with his buddy.

                              Is this possible in this engine?

                              At this point, I'm saying no. It seems broadcasting gets hung up around the first instance for the spawned buddy.

                              iTap DevelopmentI Offline
                              iTap DevelopmentI Offline
                              iTap Development
                              wrote on last edited by iTap Development
                              #28

                              @Deeeds I’ll see about building that....I might not have time tonight, but I’ll try.

                              D 1 Reply Last reply
                              0
                              • D Deeeds

                                @iTap-Development Think outside the bun.

                                The question, the Original post, is the problem trying to be solved. That is a CONCEPTUAL problem.

                                Along the way to solving that might be some examples, and I posited one, a buddy relationship. You're welcome to use other examples. But the problem remains conceptual. How does one reference a buddy of a spawned mate?

                                Whilst I thought I'd solved this problem, I have not.

                                Can you demonstrate that it's possible?

                                That might be a better way to use your literalist thinking.

                                Here's the example that demonstrates the problem.

                                Spawning 3 mates.

                                Each mate then spawns a buddy.

                                Each mate wants to be able to communicate with his buddy.

                                Is this possible in this engine?

                                At this point, I'm saying no. It seems broadcasting gets hung up around the first instance for the spawned buddy.

                                iTap DevelopmentI Offline
                                iTap DevelopmentI Offline
                                iTap Development
                                wrote on last edited by iTap Development
                                #29

                                @Deeeds what would you like them to communicate?

                                1 Reply Last reply
                                0
                                • D Deeeds

                                  @iTap-Development Think outside the bun.

                                  The question, the Original post, is the problem trying to be solved. That is a CONCEPTUAL problem.

                                  Along the way to solving that might be some examples, and I posited one, a buddy relationship. You're welcome to use other examples. But the problem remains conceptual. How does one reference a buddy of a spawned mate?

                                  Whilst I thought I'd solved this problem, I have not.

                                  Can you demonstrate that it's possible?

                                  That might be a better way to use your literalist thinking.

                                  Here's the example that demonstrates the problem.

                                  Spawning 3 mates.

                                  Each mate then spawns a buddy.

                                  Each mate wants to be able to communicate with his buddy.

                                  Is this possible in this engine?

                                  At this point, I'm saying no. It seems broadcasting gets hung up around the first instance for the spawned buddy.

                                  iTap DevelopmentI Offline
                                  iTap DevelopmentI Offline
                                  iTap Development
                                  wrote on last edited by
                                  #30

                                  @Deeeds is having the mate and buddy see each other’s position and move based on the position(or something like that) good enough?

                                  D 1 Reply Last reply
                                  0
                                  • iTap DevelopmentI iTap Development

                                    @Deeeds is having the mate and buddy see each other’s position and move based on the position(or something like that) good enough?

                                    D Offline
                                    D Offline
                                    Deeeds
                                    wrote on last edited by
                                    #31

                                    @iTap-Development For an example of communication, think of something that can only be seen internally by mate and buddy. Say, for example, the result of some calculation in Mate that he wants to share with his buddy.

                                    iTap DevelopmentI 1 Reply Last reply
                                    0
                                    • iTap DevelopmentI iTap Development

                                      @Deeeds I’ll see about building that....I might not have time tonight, but I’ll try.

                                      D Offline
                                      D Offline
                                      Deeeds
                                      wrote on last edited by
                                      #32

                                      @iTap-Development and CHEERS ! For the time and consideration. THANK YOU!

                                      KamdroidK 1 Reply Last reply
                                      0
                                      • D Deeeds

                                        @iTap-Development and CHEERS ! For the time and consideration. THANK YOU!

                                        KamdroidK Offline
                                        KamdroidK Offline
                                        Kamdroid
                                        wrote on last edited by
                                        #33

                                        @Deeeds Yes, it is possible, but not as easy as you’d like.

                                        This is for my new “KrystalOS” (touch-screen OS simulator)
                                        I’ve successfully made a Loop spawn my “App_Base” object, each of their X coord is unique (in the spawn Loop, SpawnObjectX = LoopIndex).

                                        After this loop finishes, another loop runs which broadcasts to each individual app by using their unique broadcast key (from the x position) in the broadcast, I send them their App Name and App Index.

                                        D 2 Replies Last reply
                                        0
                                        • D Deeeds

                                          @iTap-Development For an example of communication, think of something that can only be seen internally by mate and buddy. Say, for example, the result of some calculation in Mate that he wants to share with his buddy.

                                          iTap DevelopmentI Offline
                                          iTap DevelopmentI Offline
                                          iTap Development
                                          wrote on last edited by
                                          #34

                                          @Deeeds great! I’ll see what I can do.

                                          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