lennaert's Forum Posts

    Kyatric that looks pretty old already

  • I am simply wondering why everything I do keeps showing up in the network view (shown below) as using GET even if both php and Construct2 are set to use POST.

    Perhaps calling the wrong function/Ajax call ?

    Some info

    GET method: This uses a method where the data is processed in the url. This leaves traces in various logs at different points between your connection over the http. Obviously, having passwords etc could be troublesome.

    POST method: leaves far less traces like the GET method.

    Difference, you can make simple links with the GET, like http://mysite/index.php?page=home

    Whereas POST methods require various FORM elements in web pages before being able to send stuff somewhere.

    Ajax takes care of the whole FORM formatting of your data request using POST.

    If you really want to protect your content, you should start by having a https capable server.

    By default, with https, your web connection will be encrypted and better protected.

    So your Ajax POST requests should point to files on your sever over https://yoursite/mypage.php

    You have control of what the user can enter, for instance, you could create a certain set of keys only to be allowed to enter, leaving out various mischievous characters.

    Next to that, you should encode manually entered content which are being passed

    You could use in construct 2

    URLEncode(str)

    URLDecode(str)

    Convert to and from a string in a format suitable for including in a URL or POST data.

    and in PHP you would use the base64_encode base64_decode counter part.

    mysql_real_escape_string is handy too; in PHP there are various options to strip certain undesired content from user input.

    When I have a user table in a game's database, I tend to generate md5 strings from the connection and browser information, gives me more in depth control of what to allow from a player.

    I would also try and add some flooding protection if the user is sending passwords to enter something, preventing brute force attempts.

  • You should place the objects in the HUD layer in the dotted rectangle at the top.

    This is expected behavior.

    like, place the spritefont in the top most level in that layout. ie points.X = 48, points.Y = 192 , and run it.

    The idea of the HUD layer is that you can use the space in the dotted square in the top left of the layout, and that objects placed here will remain in your viewport as the game runs.

  • Haha conceptually, it is something new and unique! So can't wait to see how they do it. Haha really want to know in what way the aliens are going to use video games to attack, hack all games? Or recreate all the game characters and attack earth.....or perhaps digitize the world into a gaming realm....or even make earth like GTA...(wait it already is :p). Haha now I am really interested in this movie!

    There is a small video preview (below the main image between the images) which even has the creator of pacman in it

    It looks pretty good graphically

  • header('Access-Control-Allow-Origin: *');

    You only need that one in the top of your PHP file.

    header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');

    header('Access-Control-Max-Age: 1000');

    header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');

    Remove these.

    Remove all the request header stuff in your events.

    Also, try setting a text object's text with the Ajax.LastData instead and remove the check if not 0.

  • This caught my eye when nosing through the imdb this afternoon, I thought it was funny and figured I'd share

    When aliens misinterpret video feeds of classic arcade games as a declaration of war, they attack the Earth in the form of the video games.

  • Yeah the whole DB idea would seem relatively easier.

    You could use it for friends lists too.

    1&2 a bit easier

    1) Host sets room name: NewGame-HostLevel10

    The peer could see in the lobby:

    Available games: NewGame (required level 10)

    2) You need a method to let the peers know there is a request for them.

    For example:

    an entry in the database containing a request to play, could contain the room name for the peer to join.

    or

    An email send to a peer as a request, could have a link to the game containing the room name: ie http://yoursite/yourgame/index.html?room=SomeGameRoom (could work for a facebook wall post too)

  • 1) in Some sort of lobby, it will likely be the host setting the standard for levels of participation.

    The host could set some sort of name for the room containing an indication of the level of play by the host.

    Peers can then select to join or not.

    2) Peers/opponents can only join rooms once they are connected to the signalling server.

    You could however, create a special/private room name, and convey the room name to other potential participants, which after connecting to the signal server, they join. When you use a mysql DB you have a lot more freedom, but users would still need to be logged in to to the signal server to join a room.

    To fetch info from the database, they should know there is a request for them, not the easiest thing, you could do something with email requests. Or have the users poll the database at an interval looking for requests.

    There are some options for construct 2 to get info from the URL calling the application/game, you could process the room name in there, and use that to join a room once connected to the signaling server.

    3) chrome, firefox and nodejs support webRTC connections. I am not sure about the cordova webRTC plugin, I have not tested this.

  • .....

    If you under no circumstances can recreate the problem

    .....

    Closed bugs 4,055 Topics .....

    If each would take just an half hour to do ... it would already take 253 8 hour work days to make them all ...

    ... and I was pleading for Ashley to get more dev time

    Aside from all this ... I think a closed bug reporting environment, like Juryiel mentions, might be a good thing.

    The whole recreating capx thing takes time ... and I am guessing quite a few people are reluctant to post their capx files as they ponder content might get stolen.

    If people could use their own 'trimmed down' versions of their capx, I would think that the user would require far less time to make the files needed for a decent report, without fearing someone might steal images/audio/idea etc.

    Trimming down is one thing, but creating a whole new capx can be very time consuming ....

    Plus, trimming down could have the benefit of the user suddenly ending up with a working variant of his game, realizing its his or her own logic causing problems. But I think users would only post this if only Support are able to see their files, as they would definitely not take their material for personal use.

    As an alternative, Scirra could set the resulting Capx upload in the bug section to be only viewable/downloadable by mods/admins

    to give the users some privacy.

  • Scirra has been growing slowly for a while. We're just not making public announcements about it as we go along, but maybe we should. We have people helping with support, software development, business development, and more. There's also a whole raft of stuff you never see from your side like figuring out how the tax arrangements work for the third party sales in the Store, or managing the increasing number of education subscriptions, or optimising the database caching so the site can scale with the increasing number of visitors, much of which I have little involvement in so I can focus on the technical stuff. But none of that changes what a reasonable bug report is!

    FWIW Tom is actively working on the new Arcade now - a ton of stuff has meant it's been put off way longer than we originally hoped (ranging from prioritising the new Store with third-party content, to customer-invisible things like adapting to the new EU tax laws). But I think he's full-steam-ahead on that now and I'm hopeful we can have the new Arcade running within a month or two.

    We're not coding in our bedrooms any more! Things have come a long way

    Haha, I would imagine you actually started out that way ;P

    I have heard 'the Arcade is coming' for a while now, so I'll believe it when I see it

    In any case. More information through the forum/facebook/etc regarding growth and participants in Scirra's path to a business success would definitely improve transparency of Scirra's going on's.

    You mention you have people helping with support, I am guessing none of these handle bugs reports or perform case studies / test cases with potential problems and workings ?

    Seeing as I generally see you replying to things hinting at performance/bug/engine problems.

    Take some of the replies in this thread for instance, at one point you ask/point out lack of for material with possible performance related issues; then someone sends you some as a reply, and you mention that it will take a few weeks before you would have time to look sorry, I lol-ed

    I meant with these kinds of things. One of the things you would do is start checking the capx ...

    You could have passed those files the same day to someone who knows what he or she is doing, and if they conclude the same as the complaint (not logic issue), I bet you would instantly want to know what the actual cause was/is, so you can work on it in your code.

  • Ashley

    I see you mention "we" here and there on occasion in reference in work needing to be done on Scirra's behalf ... but not to nag or anything, isn't it just you atm ?

    I mean, we hardly ever see Tom .. which is supposedly busy with the new arcade/site for over a year.

    That is taking some serious time, perhaps have him develop some fully deploy-able games for all platforms instead and outsource the web development.

    Because you, Ashley, read/post, write blogs, bug check, develop, give email/forum support, and keep your tech knowledge up to date ....

    You seem to be running the show alone. (not meant negatively)

    How is 'getting the new help' coming along ?

    You have a couple very capable moderators here, would it not it be an idea to look at them for some paid assistance on professional level ?

    Even if it was for official forum support, capx file checking etc ... some of these things can take up enormous amounts of time.

    Things like, primarily bug checking, case studies with games with lag/jank/overall performance issues, etc, all the things the developer really should not be doing. They (hired moderators/new function) could be the front line, (first line) for most of these problems, and if they filtered through it, recognizing a problem being more then a users mistaken logic ... then they could pass it to you ... I am guessing that could free up at least 1 day a week on your development time.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am guessing you could use a for each, sorted by IID.

    When object.IID = 0 reset a counter to 1 which increments with 1 each time its assigned to tail piece.

    counter = 1

    event

    for each tail order by tail.IID ascending

    sub

    tail.IID = 0

    action

    set counter to 1

    sub

    blank event

    action

    tail set variable tail.number = counter

    add 1 to counter

  • On a location where it always runs if the game runs I'd say

  • If you are sure you are using the correct password

    You could try

    $conn = new mysqli($servername, $username, $password, $dbname);
    // Check connection
    if ($conn->connect_error) {
        die("Connection failed: " . $conn->connect_error);
    } 
    [/code:27b1ol1a]
    
    change to 
    
    [code:27b1ol1a]
    	$conn = mysql_connect($servername, $username, $password);            
    	if (!$conn) { 
    		die('Could not connect to MySQL: ' . mysql_error()); 
    	}
       
         $result = mysql_select_db($dbname); 
         if(!$result){
            echo mysql_error();
            exit;
       }
    
    [/code:27b1ol1a]
    
    EDIT:   user  "3ixteam"  , is not what your php file shows
  • You can request here to have it removed.

    There is a new arcade in the making, if I am not mistaken the option to export for Scirra Arcade was also disabled.

    Tom Any ETA on the new Arcade ?