Flamespectre's Recent Forum Activity

  • http://flamespectre.110mb.com/Scirra/

    I made a basic design at the link above if anyone's interested. Does it look good? Should I continue and add content?

    Oh, Aritz, hope you don't mind that I used your logo

  • Woo, maybe Construct 2 will work on linux then, or even mac \o/

  • You should host it with dropbox or something.

    Thanks, never thought of that.

    Fix'd:

    http://dl.getdropbox.com/u/1011792/Example.cap

  • Device name: NVIDIA GeForce 8400 GS

    Pixel shader: 3

    Estimated VRAM: 603 MB

    Motion blur: Yes

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi guys, just wanted to share some screenshots of my success and failures with Construct on Linux. To get this to work on Ubuntu i installed Wine and Wine-Doors, then I installed DirectX using Wine-Doors and Construct using Wine.

    Installing:

    <img src="http://s5.tinypic.com/2150f49.jpg">

    Running:

    <img src="http://s5.tinypic.com/1zw29m1.jpg">

    As you see you can't really do anything more than start and close it:

    <img src="http://s5.tinypic.com/10hncit.jpg">

  • Download link wont work :S

    Yeah, I know, MediaFire has removed it two times now and I don't have a backup to replace it with

  • ...or you can use irssi like a real geek

    http://irssi.org/

  • Sorry for the long wait, school have kept me busy. I have managed to make a mod on my script that uses a flat file instead of a regular database. I'm not really sure of how well it works since I haven't been able to test it properly with Construct since MediaFire keeps removing my .cap files . Anyways, here's the code:

    <?
       // File details
       $file = "scores.db";
       
       // Loads the database file and sorts it
       $file_read = file($file);
       sort($file_read, SORT_NUMERIC);
       $file_read = array_reverse($file_read);
       
       // Checks if everything has been submitted
       if (isset($_POST['name']) && isset($_POST['score'])) {
          
      	  // Loads the database file
      	  $file_open = fopen($file, 'a');
    	  
          $name = $_POST['name'];
          $score = $_POST['score'];
          
          // Stores the IP adress of the submitted score (in case of cheating)
          $ip = $_SERVER['REMOTE_ADDR'];
          
          // Submits the info
    	  $file_content = "\n" . $score . "\t" . $name . "\t" . $ip;
          fwrite($file_open, $file_content);
          
          // Closes the file
          fclose($file_open);
       }
       
       // Displays names and score
       $count = 0;
       
       foreach($file_read as $line) {
       	  $file_score = explode("\t", $line);
    	  ?>
             <b>#<?= ++$count ?></b> | Name: <?= $file_score[1] ?> | Score: <?= $file_score[0] ?><br />
          <?
       }
    ?>[/code:18ymezra]
    If anyone wants to correct it or upload another working .cap example please feel free to do so.
    Oh, right, the database file is named scores.db (just create a blank text file and rename it)
  • Good tutorial but keep in mind that if the user finds out the URL the form is posted to (fairly easy to do) then they can "post" their own high scores, as a hack. But as a foundation for a high score board or a high score board for simple games it's a good introduction tutorial!

    Yeah, I know. But that's easily solved by using some kind of encryption technique that would send a random number to the server along with another one that would be based on the old one (if the generated number is 3, and the "encryption" would be something like (4 + X) * X ^ 3 then the second number would be 9261) and the PHP page could then check if the correct function was used.

    To view it with a browser could you insert it into an Iframe?

    Also would it be possible to do this using a flatfile?

    The iframe shouldn't be much harder than

    <iframe name="score">score.php</iframe>[/code:22z75iw3]
    But using flatfiles with PHP is a bit more complicated, though fully possible. I will see if I can write you an example later.
  • hmm.. your download link seems to be broken

    Fixed, http://www.mediafire.com/?mgywt2lg0g0

    I also noticed that I started the PHP tag with "<?" and not "<?php", this is not valid by default in wamp, so if the script isn't working for you, try changing "<?" to "<?php" in the code.

    Btw, this .cap has been tested with the latest-latest version (v97.5) of Construct

  • No problem, good luck with the game

  • If you open up phpMyAdmin, (click the white semicircle and select phpMyAdmin) below the logo there's a button that says SQL, click it and copy-paste the code there and it will set up the database for you.

Flamespectre's avatar

Flamespectre

Member since 19 Jul, 2008

None one is following Flamespectre yet!

Trophy Case

  • 16-Year Club

Progress

16/44
How to earn trophies