Jump to content

Leaderboard


Popular Content

Showing most liked content on 06/29/17 in Posts

  1. 2 points
    It seems this library actually lets you carry out other work whilst a request is in progress, perhaps a solution? https://github.com/stil/curl-easy You could even make use of Kitsune's event timing system to get the response from Discord.
  2. 1 point
    You have to make a value inside game_strings.json called w.app.februrary2017.town.jacket and assign the value to whatever you wish to make the text say I think. You may need to copy your modified game_strings into game_configs.bin using WinRAR or 7-Zip.
  3. 1 point
    I have decided to stop making an AS3 CPPS because in my opinions, AS2 is better. Mods can close this thread now.
  4. 1 point
    Unfortunately, because curl_exec is a blocking call, your server will actually hang whenever a post is made to the Discord webhook API. I did this a few weeks ago, and even with two users online, the effect on performance was noticeable, and this could very easily be abused by creating bots which login to the server repeatedly. PHP is able to execute multiple curl requests at once, but there isn't a way (as far as I know), to carry on with your socket server loop before the requests are complete, not without using an extension which brings real multithreading to PHP, like pthreads. A nice idea, and it works, to a degree, don't use this if your server has many players. :)
×