Minor's Forum Posts

  • Thanks for the suggestions.

    I was thinking of renaming the file extension something different than ini but hadn't got round to trying it yet.

    Also making the hash look different than what it is ie hiding it in a longer "fake" hash sounds good as well.

    I'll play around with the ideas.

    Thanks guys.

  • The game isn't really a game. It was just an interactive way of collecting some variables that I could write to the ini.file, I could have just randomly selected them but thought this method might help newer users in Construct.

    I have no idea what the error is there should only be 3 files - the cap file and the 2 ini files.

    Thanks.

  • Just an example of how to use CRC32 to hash an ini file storing highscores, protecting it from easy editing via a text editor. It isn't completely hacker proof but at least you'll make them work for their 100 lives.

    It is commented as best i can for new users like myself. Also includes info on reading and writing INI files.

    http://dl.getdropbox.com/u/1646976/INI%20Protection.rar

    Might not be the prettiest event sheets but it seems to work OK. Don't forget to unzip and have the hash.ini and info.ini in the same folder as the .cap file.

  • Well so it isn't hacker proof but at least some one is going to have to try a lot harder to hack any values.

    And nearly every commercial has been hacked/cracked so if proffesional studios can't be hacker safe I feel a bit better.

    Thanks for the info Yaraslau.

  • There is some awesome stuff going on here!

    Here's what i'm working on.

    <img src="http://i19.photobucket.com/albums/b170/mr_flibble_hhah/fleeced-4.png">

    <img src="http://i19.photobucket.com/albums/b170/mr_flibble_hhah/fleeced-3.png">

    <img src="http://i19.photobucket.com/albums/b170/mr_flibble_hhah/fleeced-2.png">

    <img src="http://i19.photobucket.com/albums/b170/mr_flibble_hhah/fleeced-1.png">

    <img src="http://i19.photobucket.com/albums/b170/mr_flibble_hhah/fleeced-5.png">

    Just a simple one button game where the world rotates and you have to jump the fences. I usually pick something too complicated to start with and get annoyed when I can't do what I want to do, so this time I'm starting small. Finished game will hopefully have achievements and stat tracking.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • every time you save a file, save a hash of the file too (with crc32). Then when loading, make sure the hash equals the file.

    Thats exactly what I was going to do .

    At the end of the game it'll write the new info in the crc32.ini then rehash and save the hash in the hash.ini and recheck at the start of the first layout of the game. If they don't match I'll reset all the info to default.

    I did have one DUH! moment when playing about with this, I stored the hash of the crc32.ini in the crc32.ini and kept wondering why the hashes never matched.

  • Hello all.

    I've been making a simple little game to learn more about construct (usually I bite off more than I can chew, give up and never come back to a program again).

    Now the basics are done I've been thinking of stuff to add to add replay value, better my construct knowledge and turn the small simple game into something bigger but still simple.

    I had two nice ideas stat tracking & achievments. To track these I was going to use INI file(s) but these are simple to hack with a text editor, so I need to protect my files from naughty hackers.

    This is what I came up with. It's pretty simple (and probably sloppily made) but seems to work great. When it gets a match between the stored hash it gives one message, if the hash isn't a match it gives a different message. In my game i intent to make it so if the hashes don't match it will simply reset all the stats & values to the default ones.

    http://dl.getdropbox.com/u/1646976/inicrc32.zip

    Oh and make sure all the files are unzipped to the same folder or else it won't work

    Can anyone help me improve upon it? Or have any suggestions?

  • The timer event will only run for one frame when it goes off, so you'd have to release Z at the exact moment the timer went off for this to work properly.

    Ah ok thanks. Should be easy to work around this.

    Thank you.

  • Very cool game. I saw only one problem - it's veeeeery hard.

    Agreed! Nice idea and well implemented.

  • I can't get the keyboard event to work when certain parameters are met.

    eg.

    I have a timer that is set to 10 seconds. Then when the timer hits 10 seconds I have a keyboard sub event that lets you press Z however I can't get this to work.

    This is the setup

    + - On Timer "timer1"

    - On key Z released - Goto layout 1 <This is the sub-event of the timer

    Shouldn't that setup check if the timer has been met and then if the "Z" key has been pressed?

    Is this possible or is it just me missing something blindingly obvious?

    Thanks

  • Thanks for taking the time creating these tutorials. Very handy. Almost everything in here can be put to good use in any genre of game.

    Thanks again.

  • Nice! Worked great on my 5/6 year old laptop.

    Love the blood & gib effect.

    Although personally I think the size of the screen took something away from the pixelly graphics.

  • > Signed up. Thanks.

    >

    As for a workaround just dont use Box object if you gonna rotate something, just use one Sprite that you can resize freely (you can resize multiple copies of one sprite and they wont interfiere with other copies).

    No still the same thing unfortunatley. Sprite rotates fine but doesn't change it's collision/bounding box, the platform guy still stands on the platform that should have rotated.

  • Signed up. Thanks.

  • Well, it seems that you are rotating layer 1 only. You probably want to rotate both layers.

    Can't do that because the platform guy should always be unmoved by the world(layer) rotation, thats why he's on layer 2.

    >

    > http://rapidshare.com/files/261679522/l ... roblem.cap

    >

    <img src="http://files.getdropbox.com/u/888303/rapidshit.gif">

    Why you use Rapidshare? Waiting 40s for download and download limit is not great you know

    Edit: As for rotating, it seems the Box object is rotating with layout but not collision mask.

    I have a Rapidshare account

    Yeah that's the problem. But is it a bug or is it fixable by someone cleverer in Construct than me.