Weishaupt's Forum Posts

  • Did you get the mail?

    This is the error dialog

    <img src="http://quak.laurig.de/error.PNG" border="0" />

    If I bypass the build in sprite editor by dropping the picture direct to the layer it works...

    Then the same thing happens if I try to save the project to a new file.

  • Hi. My project for the current "Rotary" Challenge seems to push C2 into memory issues. Every once in a while I get a dialog brabbling about resources, or c2 just gets stuck.

    I sure will give the CAPX for debugging, but not in the "public"....I dont want the idea getting coppied.....so give me another option to give to SCIRRA.

  • Thx

    <img src="smileys/smiley20.gif" border="0" align="middle" />

  • why dont you send the log only once at the end of the race. at this time it shoule hold all the data?

  • First - no, you need only ONE log, since all x,y,and z is stored there...

    So if you can retreive the LOG for one named user, you should be able to play it back to him...

    And Second, if a log for any named user exists on you server, you should be able to load this. maybe you want to generate a second CSV file, that hold all usernames that have been saved, so you can generate a pick list

    Sorry, I am also working on the rotary challenge ;-)

  • Cheers....

    Hope that it rotates now witout leaving the screen ;-)

  • So, the PHP now is working?

    I would grant you access to one of my DB, but due to security restrictions of my provider, i can not....sorry <img src="smileys/smiley19.gif" border="0" align="middle" />

  • MySQL would sure make things alot easier ;-)

  • Does anyone know, around which point a tiled backround image rotates?

  • first of all, does saving and loading now work?

    ....and where is the CAPX for me to look at?! <img src="smileys/smiley5.gif" border="0" align="middle" />

  • GingerBatMan:

    Try the following PHPs:

    <?php

    // read variables from POST data.

    $username = $HTTP_GET_VARS[name]; <-- DEFINE THE USER??

    $log = $HTTP_GET_VARS[log]; // <-- MODIFY THIS TO SEND THE REPLAY??

    // verify the username is set and not empty

    if (!isset($username) || $username == "") {

        echo "failure";

        exit;

    }

    // verify the log is set and a number

    if (!isset($log) || $log == "") {

        echo "failure";

        exit;

    }

    // format the username and log as a comma delimited row

    $entry = $username . "#" . $log . "\n";

    // append entry to the log file

    if (!file_put_contents("logs.csv", $entry, FILE_APPEND)) {

        echo "failure"; // failed to write to file

        exit;

    }

    echo "success";

    ?>

    ...and...

    <?php

    /** Return a list of top logs. */

    // read variables from GET data

    $num_logs = $HTTP_GET_VARS[num_logs];

    // read each line in logs.csv as a string into an array

    $logs = file("logs.csv");

    // define a comparator to sort items by log

    function compare($s1, $s2) {

        // split the strings by their delimiter

        $a1 = explode("#", $s1);

        $a2 = explode("#", $s2);

        // compare the logs

        return $a2[1] - $a1[1];

    }

    // sort the array of logs

    usort($logs, "compare");

    // output the requested number of top logs

    for ($i = 0; $i < $num_logs && $i < count($logs); $i++) {

        echo $logs[$i];

    }

    ?>

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is it a bug, that the "Ping-Pong" within the animation only works if you set the animation to loop? I just want it to PingPong once, or n times, but nor continuetly...

    Here is a CAPX to play with

  • Sorry GingerBatMan - I had not had a chance to look at it today :-(

    No bad feelings please - there are days I am just not able to "work" <img src="smileys/smiley11.gif" border="0" align="middle" />

  • Confirmed!

  • The frontwheel seems to be off centered. Have you set the bounding box to circle?