AnD4D's Forum Posts

  • This is all very interesting... but let's go back to my initial question.

    "but what if the signalling server goes down?"

    I understand that at present you should leave the room BEFORE leaving the signalling server... but why doesn't Construct have measures in place to sort this out?

    Why is there even an action in Construct that will completely break a feature?

    If someone chooses to leave the signalling server before leaving a room, why doesn't Construct leave the room first automatically? In my tests, it takes 0.4 seconds to do that. Any less, and things break again. If it detects that we're in a room when we lose access to the signalling server, why isn't there some kind of safety in place to stop the multiplayer plugin from breaking entirely.

    You all keep talking to me as though I'm not understanding what you're saying, while steering around my actual question. I mean, the solutions you're offering me is exactly what is already in my code!

    For example, while testing this out, I unplugged my ethernet cable. How do you code for that? What if your ISP goes down? What if you have a power cut? Hell, what if you switch from wifi to 4g?

    At present the only result is "Entirely break the multiplayer plugin, requiring your app to be reset!"

    How is that an acceptable answer?

    I was playing Apex the other day, and lost connection. When it recovered, I was able to join the game again immediately. They didn't expect me to quit Apex and reload it.

  • Yes, I'm the host.

    I connect to the signalling server, log in, join a room and it all works.

    When I use the Disconnect from signalling server action, multiplayer immediately becomes useless.

    Then, when I try to reconnect to the signalling server, it's fine... When I log in again, it's fine... When I try to join a room... It breaks.

    If you ever use that disconnect action there's nothing you can do to use multiplayer again until you restart the program.

    UNLESS you leave the room BEFORE you disconnect from the server.

    It doesn't make sense that you can break multiplayer if you do things in the wrong order.

  • I think you misunderstand.

    It only works if you leave the room first. If, for some reason, you disconnect from the server, you cannot reconnect.

    That's not right, surely.

  • Can someone tell me what I'm doing wrong?

    Multiplayer appears to work perfectly fine, right up until it doesn't. When it crashes, it's impossible to reconnect without completely restarting the program.

    I thought it was something I had done wrong with my game, so I decided to simply make a program that purely connected to a multiplayer room, then restarted.

    I tried adding in all kinds of leaving the room, etc, just to see if there was something I was missing.

    It works if I have the player leave the room, but what if the signalling server goes down?

    https://1drv.ms/u/s!Am3CPIM7woZ9i-gVN45be9UWV5ulgA?e=2JGq39

  • I'd like to create a very simple calendar that allows me to click a next button, and it will display the next monday.

    So for this month, for example, it will display:

    Week commencing 23 Aug 21.

    I then click the next button, and it changes to:

    Week commencing 30 Aug 21.

    I could do this with a lot of effort using the old browser timestamp system, but I was wondering it it was easy to do with the newer Date object.

    I had a look at the Scirra examples, but rather than use the date object to create a calendar, they opted to provide an example for a calculator.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That's why it was possible in Construct 2 but not Construct 3?

    That's the reason it took me so long to upgrade to C3, as I had made a drawing game in C2 and couldn't upgrade it because of the non-round cap.

  • The thing is, if I do that and draw something fast, I just see a load of dots.

    If I use the line tool, it draws a line between those dots.

  • A circle Line Cap was requested over a year ago. Is this really that hard to achieve? I was able to do a circle line cap back in Construct 2, so why can't we do it in Construct 3???

    Does anyone really want to draw scratchy jagged images rather than smooth images?

    Who uses a square pen to draw things???

    The first 2 images are done in Construct 2 with a round pen.

    The final 2 are in Construct 3 with a square pen.

    The problems are really highlighted in the space image, where all they've done is tried to colour it in.

    So my honest question is this... is it really that hard to just add in a circle Line Cap???

  • I've been looking around, and found this open source program to deal with audio and video calls.

    https://peerjs.com/

    Games have had voice chat for a very long time, so it's pretty incredible that Construct hasn't even touched on it, despite it being a requested feature for many years now.

    Unfortunately, I do not know real coding, so have no idea how to do something like this... but if someone were to develop a plugin, I'd happily pay for it.

  • I have a JSON file similar to the following:

    {
     "data": [
    	 {
    	 "name": "Bob",
    	 "condition": {
    		 "health": "100",
    		 "married": "yes",
    		 "age": "34",
    		 }
    	 }
     ]
    }
    

    I understand that I can do:

    For Each data
    	For Each .name - JSON.CurrentValue
    

    But I can't quite figure out how to get a specific lower value. For example, I'd have thought:

    For Each data
    	For Each .condition
    		For Each .age - JSON.CurrentValue
    

    Would work... but it doesn't. It all comes up blank.

    If I do:

    For Each data
    	For Each .condition - JSON.CurrentValue
    

    It'll post "100, yes 34" to me, but how do I specifically grab just the one I want?

    In the manual it suggests I do ".condition.age - JSON.CurrentValue"

    But that doesn't work either. Kinda at a loss here...

  • Is it possible to have C3 listen to a PHP file that's stored on a web server, so when said PHP file is changed it downloads the data?

    Honestly scripting is something I simply do not understand, which is why I love Construct so much.

    Basically, I have a PHP file already in place on my server which is being fed data. I want that PHP file to update another PHP file (or whatever is more useful) with JSON data.

    Then when C3 notices that the file has changed, it will download the data and act on it.

    Does that make sense?

    I have systems in place where C3 will listen to a Twitch channel's chat, as well as a Discord server at the same time, reacting when someone writes a message, but I need to be able to react to an event.

    So close... just missing a few more steps.

  • Ah, sorry, the 'and' symbol - &

    Sorry for not responding, but that worked! Thanks :)

  • Just to clarify, is it the at symbol of the and symbol?

    The first example showed both, and the second showed just the at.

  • (Edit - Apparently Scirra hates my at sign)

    ughkzg@broadcasterlanguage?

    https://dev.twitch.tv/docs/api/reference#modify-channel-information

    Twitch specifically say it must be PATCH rather than POST (as do other people who have apparently gotten this working) :(

    I've never had any luck sending DATA through Construct. I tend to send things simply up updating the URL.

  • I've always wondered this, so figured I'd ask here.

    How should I go about posting this kind of information? Is is best to do something like this via javascript?

    {"game_id":"33214", "title":"there are helicopters in the game? REASON TO PLAY FORTNITE found", "broadcaster_language":"en"}
    

    This is the example given. Seeing as Construct always seems to struggle whenever a " appears, I immediately knew this was going to be a problem.

    Does anyone have any idea how I should go about posting this? It's odd that it's asking for a PATCH, but then again, I don't know anything about this kind of thing :D