pugbreeder's Recent Forum Activity

  • Even if I use the "multiplayer chatroom tutorial" project I still get the same behavior. The peer is always kicked after a short time.

    Edit

    I just found out that it works on google chrome but not on firefox.

  • I just found out that "On Kicked" is being set off which means the peer is being kicked out for some reason.

    "On kicked

    Triggered if kicked from the current room. This can occur if the host quits, the connection to the host could not be established, or the host otherwise decides to forcibly remove you from the room. After On kicked the player is no longer in the room and must re-join a room to be able to participate in a game."

    I think this is whats happening here... So can you just not test multiplayer from the same computer/IP? Is that why its not working?

  • Im trying to test multiplayer for my game on the same computer and I join a room with 2 players and after about 10 seconds the peer will just drop out of the room but the host will remain in the room.......

    Why does the peer randomly disconnect?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Im currently using AJAX plugin to post to a server and then i start a session like this

    <?php

    session_start();

    $_SESSION['user'] = 'cat';

    ?>

    Then i go to a different layout in construct 2 and i post to a different php script on the same server like this

    <?php

    session_start();

    echo $_SESSION['user'];

    ?>

    I get nothing back. The session variable is empty . The variables are not saving from one script to another.

    Is this not going to work?

    Ive been toying with this for days

  • looking at the manual it looks like it needs to be on the same domain to work and testing locally make it run as separate domains try uploading to a website to test

    Storage per domain

    The WebStorage object associates all stored data with the current domain. For example, all games running on scirra.com share the same data, but games running on facebook.com use a different set of data and cannot access any data saved from scirra.com.

    Most browsers implement a maximum size of the data that can be stored with WebStorage - 5mb is a common limit. If you exceed the limit, the WebStorage's On quota exceeded trigger runs.

    Well then would it work if i hosted my first project on something.com and then the 2nd project on something.com/something

    would the webstorage work like that

  • im not sure you can access webstorage between projects

    i thought webstorage was saved inside the browser

    which means it wouldnt matter which project im in as long as its still in the same browser

  • Hello I am trying to share webstorage variables between multiple tabs that are running different projects.

    I set a webstorage key in the first tab on localhost:50000 and then I open up another construct 2 project running on localhost:50001 and I need to be able to access the webstorage variable that I set in the first project but its not letting me.

    I thought that webstorage worked for your whole browser so you can access them from anywhere....... even multiple tabs.

    Why wont this work?

  • How do you run code immediately before the user presses the [X] on the browser ?

    Im trying to update a variable on the server using a AJAX request when the user exits out in order to log them out.

    I tried "on end of layout" but that only works when the user changes layouts, not exits the entire browser... or shuts off their computer etc

  • I was having a problem where you would inject the image and then it wouldnt update until you went to a different layout and came back....

    I just spent about 3 days trying to figure this shit out!!!

    Apparently you have to disable WebGL for this plugin to work... now i guess i have to take a performance hit for this

    ;/

pugbreeder's avatar

pugbreeder

Member since 19 Oct, 2014

None one is following pugbreeder yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies