Tobye's Recent Forum Activity

  • DuckfaceNinja - Yes it is very helpful! But also for your text: it does not sync! I had issues with it before and Ashley told me that text variables are not meant to sync at all by design, but it had been forgotten in the manual. You need to use messages to rely text.

  • xoros sorry, but I have no idea how to do that stuff at the moment, I'm hoping to learn from you I only know C2 side stuff, but would very much like to get my game more stable.

  • jayderyu - ah, right you are! Thanks for clearing that up for me.

  • xoros - could you please let me know if you get this working? I have the same issues.

  • Hey all,

    I am coming along in leaps and bounds with my MP game, and noticed that variables over 255 get set to 255 for the peer. Also, it does not support decimals (so 120.25 = 120). Is this intended or is this a bug? I tried looking through the manual again, but it seems the whole section on syncing variables has been removed?

    For my game it's not too big a deal for me to work around this, but I would just like to know what's going on exactly before I make any hasty alterations.

  • Ashley Okay, thanks for the reply. Would you have any advice as to the best way to do this? I have lots of ideas, but worry about efficiency.

  • Problem Description

    Text variables don't sync with the multiplayer object. At one stage they did, except for one specific variable. Then, with no change to events at all, none of the text variables sync. So I recreated in minimal capx to make sure. (As a side note, it would be great if we could also sync booleans!)

    Attach a Capx

    Attached!

    Description of Capx

    Press anywhere on layout1. Open game in a different browser and do the same. When they log in and join rooms, it will go to layout2 where the host will change the variables of the array. In the debugger you will see that only the number variable syncs, the text variable stays blank for the peer.

    Steps to Reproduce Bug

    • Step 1: Load game in browser, press anywhere in the screen.
    • Step 2: Load game in a different browser, press anywhere in the screen.
    • Step 3: Observe results of array variable syncing in the debugger.

    Observed Result

    Text variables don't sync.

    Expected Result

    Text variables sync.

    Affected Browsers

    • Chrome: Yes
    • FireFox: Yes
    • Nodewebkit (preview): Yes
    • Internet Explorer: N/A (can't connect with MP at all)

    Operating System and Service Pack

    Windows 8, and don't know sorry.

    Construct 2 Version ID

    175

  • So I tried manually syncing through messages, and again I get something very weird!

    In the attached images, you can see how the events work. And they do work, for all 'skills' except one! It for some reason places the array contents into the name variable! Perhaps someone can see where this is going wrong?

    EDIT: Found the issue with this one, there was a pipe sign in the array contents. Oops!

  • volkiller730 Ha, yeah I know it's always good to double check these things. I just solved one issue I had for ages because I was not converting a string to an integra.

    But this is pretty clear cut: sync object, sync variables, one variable won't sync. I attached some images, the first is what the peer gets, the second what the host has, and third is the events.

    As you can see, the team syncs no problem, but the name won't change. Even other text variables work okay, so not sure what's going on.

  • Hey all,

    I'm getting along nicely with my MP game, but one final bugbear exists: the 'name' instance variable of an object just won't sync! All the others sync absolutely fine, and there are a lot of them on a number of different objects. Only the 'name' variable of the 'skill' array won't and I am baffled as to why.

    I have searched all event sheets top to bottom and there is nothing at all that is changing the variable (as is backed up by the fact that the variable behaves properly for the host). So has anyone had any experience with this? Can you think of anything I may need to check? There is a workaround I can think of, but really it's not optimal.

  • I think I found the issue for anyone else who might be having this problem: it seems google play was interfering somehow. I noticed it wasn't logging in during debug (which it does in normal preview), so I removed the object. Since doing that it now works every time.

    EDIT: Scratch that, I was just lucky several times in a row. The problem persists.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey all,

    I have been trying to get my MP game playable and am facing just a few minor issues. However, when I try to find them in the debugger, MP messages seem to stop working a large percentage of the time. They still join games and rooms no problem, but messages don't get through. It's a huge system so I'm not going to bother getting into the details of my game specifically, but I wanted to know if anyone else has come across this? Any solutions or of the top of your head ideas?

    In normal preview it all works fine, but the final bugs I have relate to numbers of arrays and the data they contain which is really, really difficult to debug with events.

Tobye's avatar

Tobye

Member since 27 Jul, 2012

None one is following Tobye yet!

Connect with Tobye

Trophy Case

  • 12-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies