Tobye's Forum Posts

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

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

  • I just noticed there's a severe lack of beavers. Hidden hero perhaps?

  • Hey all,

    I'm wondering if anyone has got the new google play plugin to work yet? I got to the point where it goes to sign me in, but then I get this error:

    400. That’s an error.

    Error: origin_mismatch

    Application: Hooray Heroes!

    You can email the developer of this application at:

    Request Details

    =

    from_login=1

    scope=https://www.googleapis.com/auth/games

    redirect_uri=postmessage

    state=394486605|0.1977598773

    origin=http://localhost:50000

    as=-608d98e513fe811

    hl=en

    response_type=code token id_token gsession

    cookie_policy=single_host_origin

    proxy=oauth2relay601643338

    include_granted_scopes=true

    client_id=168236594298-paetp32d2ag0g39l8harvuarm1lbnk2l.apps.googleusercontent.com

    authuser=0

    That’s all we know.

    Does anyone know where I'm going wrong or has anyone got it working?

  • This is the sort of game that is best made through an accumulation of your work over the years. If you just go 'let's build an MMO!" you are going to have a really hard time, and I dare say never even get close to finishing it.

    Break it down into what you need to do. Combat systems and text systems are amongst the hardest things to make, and you need to make sure that your design is 100% compatible with MP. I spent some months on a combat system and earlier this year had to revamp it considerably to fit into MP. Then just this week while working on the New Grounds comp I found a much, much easier way of handling all my customisation menus, which if I were to make a full MMO would save me literally days to weeks of programming.

    Also bear in mind that C2 has no inbuilt login/online storage yet, meaning you need to find other ways of going about it. I read somewhere that they plan to add it later though.

    So my advice to you: build tiny games, each using a different component of your grand plan. Make a quick text-based adventure, some arena combat game, and some light puzzle adventure for example. Try to polish each of them up to a releasable standard and then you will have a much better idea of what you're in for, and have something to show for your efforts. Which is a very good thing, because honestly, you are not going to make a grand-scale MMO by yourself in less than a few years - if at all.

    Oh also, and this is actually the hardest part I have come across, find someone else to program with you! You will see that a lot of people here don't do it simply because of the difficulty in merging your work (SVNs even make it worse in my experience). But when you get a structure together and know how to lay your work out in a way you can easily merge, you are going to get things done sooo much faster and easier.

    Anyway, good luck to you!

  • lucid - Wow, great! That was super quick! Thanks a bunch.

  • Hey all,

    I have a game where I want you to enter multiplayer as either an attacker or defender. But I really can't work it out! I have played around with different game instances, but I haven't got it to connect consistently. I would like to just say 'connect to room attacker' if you are the defender, but if there is no host it will make you one.

    Can someone help me out here a little? I can get the actual game working no problems at all, it's just this lobby issue. Thanks!

  • lucid - sent! I'll link to the capx here too in case anyone has some work-arounds: https://www.dropbox.com/s/mmafwljw1cs7c ... Issue.capx

    Just press around the screen and you will soon witness the ordering bug.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • lucid - I'm having an issue where when I reorder the spriter objects on a layer, their bits get all mixed up. So for example one character's arms may be infront of another character's body while they are overlapping. I remember someone else had this issue many months ago but I don't know if they found some work around.

    Do you know of any way to get around this? Or are their plans to fix it in the future?

  • Hey mate,

    I'd like someone to chat to about C2 programming. I do a lot on RPG systems, like team building and inventories etc., but not so much on visual stuff. If you're interested just PM me your skype!

  • Hey all,

    I've just started releasing some games made with a few artists and we have come to the conclusion that we really need custom made sound effects for our current and future projects. We already have some go-to guys for music, but if you can do that as well it's a bonus.

    This is a profit share sort of a deal and we can talk about it more if you're interested, but it's a pretty low workload for anyone with experience. PM me if you might be able to help!