chat

This forum is currently in read-only mode.
From the Asset Store
Chat with smart animals using the OpenAi Chat GPT 3 API
  • hi people, im trying to create a chat using construct, is possible?

    im trying do this with text files, but im having a problem, i can download text files to show on edit box, but how i can upload text files to server?

  • There are no online plugins yet so it's not really possible at the moment. Some should be on the way soon.

  • Zero: That would be awesome to create that once possible! Looking forward to it!

  • thanks for the reply�s

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could use Python sockets; a quick google finds several socket tutorials .

  • Or PHP could be used, if you know how (I'm thinking about it too >_>)

    The gist of my idea is make it add the message by accessing "send.php?m=" & MessageBox.Text - and that page uses $_GET["m"] to get the message and add it to a database (I could, and probably should, use an array but I only really started PHP, never went far past SQL).

    Then, every ten seconds or so (or on a manual click limited to once every five seconds to prevent sidetrack DOS attacks) it downloads "readmsg.php" which returns the last fifteen messages in a format that the application then parses into the message bank.

    Of course I'd have to sanitize the inputs and the like too.

    However, using PHP to do it like this I could add certain other functions like username/login use, web control panels and even direct web access (which kind of negates the point of an external exe) to the chat.

    At least that's the idea, I know I could probably do it but I'm not sure if I can be bothered. Plus it's a bit hacky but according to Rich (or was it Ashley? I'll have to find that post D: ) it should work, because apparently the download object gets the output of the PHP script.

    Anyway, all the PHP stuff you'd need to do it that way can be learned easily at W3Schools and doesn't cost anything. The biggest problem you could possibly encounter would be finding a host that would let you do it without charging you a fair amount.

  • Yeah, though it may be easier to use the new HTTP object, you could essentially make a chat with PHP/ASP.

    It's not really the optimal way though so Python sockets is still the better option until an Online plugin is developed.

    It's worth noting that either way, you're going to need a host for the chat (be it a PHP/ASP server, or a PC which handles the custom chat host). Unless of course it's P2P, but that's not really a 'chat' .

  • Yeah, though it may be easier to use the new HTTP object, you could essentially make a chat with PHP/ASP.

    It's not really the optimal way though so Python sockets is still the better option until I finish that Online plugin I've been dropping buckets of hints about.

    It's worth noting that either way, you're going to need a host for the chat (be it a PHP/ASP server, or a PC which handles the custom chat host). Unless of course it's P2P, but that's not really a 'chat' .

    That's true, I'm not really doing it for the efficiency though - more like a "Because I can" thing. Sort of like the MacBook Air.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)