ZeldaVerde's Recent Forum Activity

  • Hi,

    I'm making a multiplayer game (using Construct's Multiplayer plugin) and the engine seems to freak out about destroying synced objects when I try to switch layouts. My guess is that basically if they are not switched exactly at the same time, the engine has a hard time keeping the same amount of sync objects created on host and peers. What is the intended way of changing layouts for Multiplayer plugin games?

    Thanks!

  • Hey Diego, I'm thankful that you were willing to take the time to try and help me, but I felt bad making you do it so I continued looking and found out the problem.

    What happens is: I have an object with the Fade behavior (fade in: 0, wait: 0.2, fade out: 0.001) that is also synced thru multiplayer, and it appears that when multiplayer tries to destroy it on peers after it is destroyed on the host, both it and the Fade behavior queue the destruction, making for 2 calls (as you've described) that are causing the exceptions.

    On that note, it also seems there isn't a way to disable the Fade behavior in runtime (as in the "time of running", not the runtime object) for me to do it for peers, or am I mistaken?

  • Yes, and I can't just make a minimal project because I have no clue where the issue is. Would you be willing to take a look at it then?

  • So what can I give you to help? Also, I'm pretty sure nothing is being destroyed when it happens, at least not externally (by my code).

  • Yes, exactly. What then?

    edit: could you maybe tell me what methods internally call getInstances() so I can look for places where I use those?

  • Yes that seems logical enough but I tried that immediately as I do and couldn't quite figure it out clearly, seemed a bit "random". Is there any way to maybe log whatever 'e' is, internally, for _FlushInstancesPendingDestroyForObjectClass(e, t) so I can then track it?

  • Hey Diego, thank you for taking the time. I was just looking at the new 3D features btw and I'm super excited, congrats on the work!

    Anyway, what do you mean exactly by "when your game produces the error"? If you mean what occasion causes it, I am clueless.

  • So my game has thrown this: drive.google.com/file/d/1o6EYyW2GTv3MywgYJPW1sWVmRGZW2MGU/view

    and I have no idea what it is.

    In the exception it says the error was inside an internal script of Construct (runtime.js) and I can't figure out what's wrong neither from reading the exception nor from reading what I can from runtime.js from the f12 menu.

    Tell me if you need any other piece of info and thanks in advance.

  • In "Multiplayer game example" for example, why are the input instance variables given the client input value tag when synced? What does this do?

    Also, I might also ask, what exactly does "Associate object with peer" do?

    Tagged:

  • This is about the Multiplayer plugin if that is not obvious.

    In the documentation it says syncing does not work with containers, but it seems like it also doesn't work with hierarchies (children are not created). Is this intended? If so and if I have players with separate sprites for their animations, is there any "official" or intended workaround I'm supposed to do?

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you!!

  • Is there a way to call a function I made with events in an event sheet from Js/Ts?

    I'm making a game entirely with scripting but want to have the events multiplayer actions (which are very nice shortcuts). As there are no equivalents in the API, I thought of putting those in functions in an event sheet and then calling those from script.

    Can you do that?

ZeldaVerde's avatar

ZeldaVerde

Member since 11 Nov, 2018

None one is following ZeldaVerde yet!

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies