Preventing Hackers Adding High Scores To Flash Game
Hey everyone, Here's a question which has been bugging me. I've written a simple Flash game, available via my website which anyone can play just by going to the page - without having to log in or anything. The game has a simple "top 10" high scores, which functions very simply: when finishing a game, the score is sent to a PHP script which returns a "yay" or "nay" to determine whether it should be on the high score board. If so, itadds the score. My question is: is there *any* way to make this process secure?? I can't think of a solution that would prevent someone like me just spoofing the HTTP request, saying the "referrer" script was the same URL and thus hacking into it to get a high score. I've seen a number of Flash games out there that have ridiculously high scores - which have been clearly hacked. Anyone know of any solutions...? 'cause I'm sure stumped.
SitePoint > Design Your Site > Flash and Actionscript
Posted on: Mar 18, 2005, 15:54
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help Make High Scores On My Game?
Hi, i have seen flash games that saves .sol files for flash containing a high score or a saved game.
Can someone add a high score to this game that i made and explain how you did it please ?
High Scores On My Internet Game
I've been scouring the web for days now trying to locate an answer to this question. Is there a way for a meager beginner like myself to put a High Score onto my flash game on my web site so that it would save to a text file? I'm quite familiar with variables, so I'd like two variables to be saved. The high scorer's 3 letter initials (I'll have them pick the three initials from the on screen alphabet, just like the old games) and their score, a variable generated by my game.
Then obviously the next time they log onto the game, they'd see their initials until someone took their top ten spot.
Any help on this would be appreciated and I apologize in advance for being such a novice.
[MX04] Flash High Scores.
so i want to save the highscores in the flash document so anyone can view them. (like a normal game) Is there an easy way to do it? Do i need PHP? My website actully has php suport..if i knew how to use it.
High-scores
Has anybody got an actionscript and cgi-script I can use to keep track of high-scores? I made a shooting-game, but like to add a hall of fame.
High Scores
Could someone please send me a tutorial on how to make a high score list that doesn't use PHP? thanks!
High Scores
Hi i have found this GAME on flashkit and have edited it to my specifications etc. but i want to know how i can add an online high score tabele for the game. I want the table to show the top 50 high scores at the game, how can i do this?
High Scores Help
I need serious help with a high scores list. I know I may need to use PHP scripting and stuff involving MySQL, and as much as possible I don't want to pay for anything at all. (I think http://www.hostultra.com is free and supports PHP) I also don't get how MySQL is involved with high scores. I did found this tutorial on Flash Kit (Glen Rhodes) for the PHP scripting, but I don't know how to do all of this. I have totally no clue whatsoever. Do I have to install Apache or whatever to do this high scores board? Thanks for any help in advance.
(I'll post again tomorrow if no one replies. Lol.)
High Scores Help
Hi.
It would put a big smile on my face if someone could direct me towards an As3 tutorial that explains how to make a simple High-Scores function for a flash game.
a BIG smile.
thanks,
-kenny
High Scores
can anyone point me to a nice simple highscore board script?
High Scores
can anyone help me with high scores?
i just wanted to know if it was possible to make a high score list in my game (e.g top ten scores) just using just flash program.
so.......
is that possible???
thanks a bunch.
-- kate
Game Hackers
My users are using CheatEngine to try to hack my games. Its a program that lets you change stored variables in memory as flash is running.
So far, they can only get STOPPED out when my game goes too fast and they die before they can edit the variables! But... is there any way I can block them out during slower games, such as a slot machine game?
Anyone have any experience getting hacked by cheatengine?
Offline High Scores
Can anybody help me? I'm not sure if it can be done, but I have a flash game that creates a high-score via a PHP script sent to the server, where the high scores are displayed on a HTML document. However the game is going to be displayed on a standalone computer with no internet access. As the game will be played all day and not shut down at all, is it possible to create a high score table within the flash game itself? I would want to display the players score, email, name and company, which i dont think is difficult. Where I come undone is in the creation of the array to hold the scores in, where its location should be, and how it is updated to show new high scores. If anybody can help, or give me any clues as to how to go about this, I would be extremely grateful and have already removed my right kidney to donate. Cheers!!
Refresh High Scores?
I wrote some ASP that reads info from a database and prints a string of variables that Flash can import.
So I can now use loadVariables and point it to the ASP page and it returns variables (high scores) that I can display in Flash.
Problem is, though, the only way I can see any changes I make to the database is by actually going to the ASP page in my browser and pressing Refresh. Otherwise it just displays the last scores (because of Cache, I'm assuming).
Does anyone have any ideas of how I could force the ASP to get the new ones every time instead of being cached? Either some code I could put into the ASP page itself, JavaScript in the page that contains my game, or in ActionScript?
Any help is greatly appreciated.
-- Brad
SharedObject And High Scores
I have a game that i want to use SharedObject(s) to save high scores.
What is the easiest way to test to see if there is any scores saved on the computer, and load them accordingly, and save over them and all that neat stuff?
I also need it to be such that if there is no saved object on the computer, it has to tell if there is or isnt, and if there isnt it has to fill in some text boxes, but not refill them in everytime
Thanx Much
[F8] PHP High Scores List
I want to make a high scores list, somewhat like this one, (You might get a pop-up) using php and/or MySQL. In other words, allowing flash to give and recieve variables on the high-score list.
I serched Flashkit, and I used google, but I couldn't find a decent tutorial. If you cannot answer the question, then at least please point me to a good tutorial.
Internal High Scores (without PHP/SQL/XML), How To?
Hello people, I've searched all over internet and this forum to find a piece of code that creates a high score list of say, the 10 best scores for a Flash game, and stores it inside the .fla. (Is this even possible?)
All I found was the following file:
http://www.nettrek.de/download/highscoreMitFlash.html
(source fla http://www.nettrek.de/download/highscoreMitFlash.zip)
But when I try to ctrl-enter it from Flash 8, the program hangs and the swf just won't open...
I'm aware of the fact it'd be much handier via PHP and a MySQL database, but I'm making a game for a contest in which it isn't allowed to use any additional files (also no txt files) next to the main game swf Hopefully someone can help me out!
Cont HIGH SCORES Help
okay okay.. here's the prob I'm faced with really..
I have a game.. and then I have a website in geocities.. if I use PHP to host my high scores how do I go about it??? How does it work that when somebody plays it the high scores get retrieved from my geocities site? My server can host PHP.. can somebody explain to me in layman's terms how it works exactly???
Would appreciate it.. it seems dumb to say this but I'm up to my neck on this trying to understand this..
Thanks again.
-- Kate
Saving High Scores To Server
hey
does anyone know how to save highscores to a mySQL database?
i'm specificlaly looking for a php script to save the score to the mySQL database
anyone know how?
How To Create A File Of High Scores
Hi,
How can i create a file with high scores using flash.
For example : thre is some text filed in a movie where the user will inter his name , how can i write this data to external file ( open an existing one or create a new one ) ?
Thank you.
eldar52
Creating A High Scores Screen... Uh-oh
I think I have, officially, entered the "way, WAY over my head" section of Flash programming with my current absurd goal: I want to create an interactive high scores screen for my game.
I don't even need to know the code right now, I want to try to get that myself, all I want to know is if what I'm planning is even POSSIBLE with Flash.
Basically, I "plan" to do it like so:
1. There is a "theScore" variable that keeps score during the game.
2. Then, there is a .txt file on my website that contains the five highest scores, and the names of the people who got them.
3. When the game ends, Flash checks if "theScore" is greater than any of the top five scores in the .txt file.
4. If theScore is greater, then Flash compares it to the others, ranks it 1,2,3,4, or 5 depending on how much better it is, and then removes the obsolete scores and rearranges the numbers so they are in the correct order.
5. If Flash discovered that the user got a high score, the user is then prompted to type in their name, which is written to the .txt file also.
6. There is then a separate screen where the results of this .txt-Flash intercourse are displayed in a nice high score screen with fancy happy fonts that please the viewer.
Okay, now be very blunt:
1. Is this a fantasy that would require way, way too much complex code and/or programming experience for me to handle? (I think from my other posts you have an idea of my AS skills )
2. Is this even feasible with Flash? Would I need to start messing with PHP? How do I even mesh Flash and PHP? Ahhhhh!
feeling overwhelmed,
- wobbly
How To Keep Track Of High Scores In Games?
I created some weak games: http://mattr0x.com/games/ and was wondering how i could insert a high scores table that people could enter their names into to show the top 10 scores. Someone said i should use an actionscript to link the sprite im using that keeps track of the scores. How do i do this? Thanks. (I use SWiSH).
High Scores Made Easy
Hi,
does anyone know where I can find an open source file for a high score board.
I need to add one to a pacman style game that I have set up.
I also need to add some extra fields to enter data into aswell as the name and score to be displayed.
Can anyone point me in the right direction please?
Diggz
Neave Pacman & High Scores
Hi all,
I recently bought the "Designing Games with Flash MX" book by Mr. Neave and it came with a Pacman game. I'm trying to get it to save high scores and have been unsuccessful. www.neave.com addresses this but it seems to be for a newer version .fla of the Pacman game and not the one that came with the book. What's more, it can't be downloaded from www.neave.com for some reason.
So, I'm wondering if anyone has implemented the high score functionality with the book version of his Pacman or if they have the newer .fla that he refers to on his site.
My server runs asp.net and PHP. The book version came with a PHP script. If anyone can help me out I would appreciate it. Thanks!
Secure High Scores...impossible?
So ive been wanting to take some of my online flash games and create high score lists but im starting to think its impossible to have it be reasonably secure.
using php GET stuff is obviously ridiculous.
conversly, id like to know if POST variables to a script on my server are easily spoofed. If so, is there anyway to validate that these variables are indeed coming from my site and flash file?
Any advice? Thanks!
SHORT High Scores List Question
I have a game that saves the high scores to the local host. When i put this on to a server and on the web where will it save? OR will it even work
Storing High Scores With MySQL Database In AS2
I'm creating a game in Flash 8 and I want to store the 10 highest scores in a MySQL database, and make the queries with PHP. Does anyone know of a tutorial that exists or can anyone at least point me in the right direction? Thanks!
Loading High Scores From An ASP File (refresh Problem)
I am finishing up a game where high scores are recorded into a database. I have everything working (the reading, displaying, and recording of the scores), except I'm running into a refresh problem with the scores..
When you first enter the game, the high scores are displayed (top 10). Then you enter your name and begin playing.. after your game is over, your score is recorded to the database, and then the scores are shown again (theoretically, so you can see where you ranked with your score that game).
However, the scores do not refresh. Even if you get a high score, the scores shown after your game are not recent, they are the ones that you saw at the beginning of the game. This happens forever (every time you retry playing) until you refresh the whole movie.
I'm loading the variables from the ASP file (which formats them correctly into pairs using = and &) using the following command:
LoadVariablesNum ("http://www.myserver.com/getScores.asp?game=GameName", 0);
I have 2 dynamic text boxes for each score (10) - one for the player's name, and one for their corresponding score. So, as soon as the LoadVariablesNum command gets the values, it is automatically displayed in the input boxes.
Hopefully I explained this well.. if not lemme know
[HELP] Suspicious Scores In A Flash Game
This is an interesting one, I wrote a Yeti Penguin toss clone a while back, thoughout testing it, and for as long as I can remember the top score you could get was in the range of the 500m. Recently, it has been reseeded and a select few people are getting MUCH higher scores (at least double previous top scores ).
Obviously, people decompiling the SWF or tampering with the back end is a possibility, I was wondering if there is anything to do with Flash that might be causing this? Maybe frame rates, overclocking(?), different browsers/OS etc. Anyone got any ideas?
I dont have the code to hand (its backed up somewhere at the moment), but I was wondering if anyone had some suggestions what it might be?
I Have This Flash Game That I Want It To Be Able To Keep Scores. Site 4 Dialysis.
I really hope someone can help me.
So visit the game at it's temp location http://www.trinahalcomb.com (be sure to scroll down) It was created by a friend (the game only). He added a submit button for me. So now I need the submit score button to actually work. example, someone visits my site and plays the game, then when they get a high score they can enter a name to record the score on a different page with high scores. My site will be going live on 6/1/06 and would like to have that done by then. When you get to the site scroll down to see the link for kidneykickups.
I added a link that explains how to do this: http://www.tutorialized.com/tutorial/Keeping-Score/2413 it's a great site, however I don't have the software to edit the .swf (the flash game)
I zipped up the flash game and the other files you will need such as the score.php, you will find that this location:
http://www.trinahalcomb.com/kidneykickups.zip
It's from what I read a very easy task but I don't have a .swf editor.
This is for a really good cause and you would be helping me cheer up chronically ill people.
I hope someone can help me out.
- Epoman
Adding Scores
hi guys,
I am buillding a small quiz which has a score. When the user selects the correct button it shoud add 1 to the score, however, this only seems to work on the first frame! Could someone kindly have a look and advise where I'm going wrong! I'm sure it's something simple but I am not that advanced with AS!
Many thanks in advance!
Adding Scores To Games
Hi I'm making a very simple educational game at the mo, with a series of multiple choice questions about health issues in Nigeria
Please can you tell me how to add a simple scoring system to it?
i.e. a player gets 10 points for getting a question right 1st time and 5 if he makes a mistake + then chooses the right answer
I have the .swf and .fla files uploaded
http://leoearle.tripod.com/cafod/index.htm
its only a draft at the mo (the game's about 70% complete)
I'd be very grateful for any help
Leo
Game Scores?
hey everyone!
I'm trying to make a flash game, but I want to get a little counter that keeps track of your score, and I've never tried scores before. I've got a dynamic text box for it but I'm not really sure how to do the actual score-keeping. also, I have replaced the mouse pointer with a cross-hair, so i don't want the bleeding text input mouse icon to come up on top of it. how can I stop that happening?
How Do You Register Scores In A Game?
That's the first problem, the second one, how can I access them?
Its for a Math game for fifth graders, so I need to save the scores to make grades, the kids will access the game through a website, so any suggestion or idea will be very important.
thanks.
Storing Game Scores
Okay, this is my problem,
I am doing kiddies software, in this software it allows kids to do a number of activities , jigsaws, numbers and letters games.
After each activity the child gets feedback, eg u completed this puzzle in x seconds.
now what i want is the child to be able to use the software, and for the software to store the childs scores for each activity.
I know a bit about flash, but not much on action scripting, I was thinking of , say after each activity the score being automatically put into a table eg mySQL table or something, and then say if a parent wants to look at the childs progress they can open up a page that displays the contents of the table.
Does anyone have any suggestion of how this might be achieved, or any other possible solutions?
Thanks
Dart Game Scores
I am working on a Dart game in flash and its almost done.
Just need help in displaying scores i am using hittest for the scores
Example: The dart board has five sections (round circles) i am naming the each section as different movieclip and on fixing a particular score for each like for outer first circle it is 10 pt and the 2nd circle is 20 pt.
when the dart hits the circle the score is displayed.
I dont have complete knowledge of AS please help me.
Storing Game Scores
Okay, this is my problem,
I am doing kiddies software, in this software it allows kids to do a number of activities , jigsaws, numbers and letters games.
After each activity the child gets feedback, eg u completed this puzzle in x seconds.
now what i want is the child to be able to use the software, and for the software to store the childs scores for each activity.
I know a bit about flash, but not much on action scripting, I was thinking of , say after each activity the score being automatically put into a table eg mySQL table or something, and then say if a parent wants to look at the childs progress they can open up a page that displays the contents of the table.
Does anyone have any suggestion of how this might be achieved, or any other possible solutions?
Thanks
Adding And Updating Scores In Multimedia Games....
Hi Flashers..
Please help me with the problem of Adding Scores to the game database.
We are working on an Multimedia project that includes 6 games. Now the problem is that when the kid plays a games and scores some points, that games gets added to the Scorepots that displayed at the bottom of the Screen. The kids has to collect particular points to complete a particular task. Now, we are working on games which are Scene based and linked internally, I mean One game at one scene and then clicking on the NEXT button, he will targeted to next game of next Scene. But the Scorepots which we have kept on top layer of all the scene gets updated as the kids progresses. If the kids goes back from game 5 to game 2, the scorepots should display the updated scores. Now please tell me what type of scripting i need here as I'm not good in Actionscript. Also tell me is there any tutorials you found on such score games.
Please give a Suggestion as we have total 15 scene in a single CD project, which option wil be better..
1) We need to make the project by adding SCENES and giving link to each other or
2) Making a Separate 15 .fla files and then linking to each other will do.
Which one of these options will be easy and will not take much scripting?
Also answer me these question...
What Scripting we like to add for a Flash project that saves users info and scores (Saved games data) on its PC, so that if the user plays the same game next time, the user can select his / her profile and the scores will continue from where it is been left.
I hope you all understand the problem and will do the needful help.
Please help me as soon as possible.
Thanking You...
Vickymustdie....
Problem With Scores In A Shooting Game
hi,
i have a shooting game where you shoot wolves. Each time you get a hit the hits var goes up by 1 and each time you miss the misses var goes down by 1.
I have the following code to tell the user they have won or lost
if (_root.hits >= 2){
_root.message.text = "Win";
}
if (_root.misses >= 5){
_root.message.text = "You have lost - please continue to the reaction time test";
}
but it dosent seem to work. does any1 know why?
How Do I Store Game Scores Locally?
Ok so this is my first game ever and ive only just started working with AS2 …
So i have a game and want to make a score board, i dont want to using any server side PHP /ASP! im told the easiest way was to use shared object classes to store the data locally… so could someone show me an example of the code or send me an example?
My game is half done im not to sure about the coding so far but as i said its my first ever game, so here is the URL if you wana check out the game
look here for the file
http://william-e.co.uk/NEWESTfalconwars.fla !!!
the collision detection is lame, i have level progression and life lines for the users ship.Any advice will be very much appreciated
Real Time Scores In A Game
i am a beginner to flash and actionscript. i dont seem to have problems with flash just the actionscript.
I have a game which i am producing as part of a uni project. it is just a simple bat and ball game and i would like to put a real time score on the game page which will add points everytime a block is smashed.
i dont know where to start with this and i need help fast as the submission date is coming up. any help will be appreciated.
cheers Matty
Saving And Loading Game Scores
I am wondering if someone could please tell me how I could save and load game scores? I want to load the first name then their score and finally the time that they completed the game in. Is it possible just loading a text file or do I have to use xml? I want people to be able to download the game from my website then play it. Not play it on the Internet. Can you please show me some code to get me started? Thanks in advance.
High Score For A Game?
Hey guys, i finished the game i was making (see at www.se-miserious.com ) but I want to add a top score system to it...i read a tutorial on flashkit which uses a simple PHP script...that's really easy, but I'm confused as to how to submit the details to write to it...here's the flashkit tutorial:
http://www.flashkit.com/tutorials/Ga...-657/index.php
Please post back with help
High Scoring System For Game
Armor bot ranks software, gives you an actionscript that sends the score you want directly online, I have successfully finished it but in the game if i enter a number like 200 and a name like "yair" it works out just fine but when i put a variable like tt that is connected to a number it doesnt work. Here is the Code do you think you can help. Im guessing tt is time because i made this game with a partner
The First keyframe has the code from my game in it then the next keyframe has the armorbot code:
stop ();
sintro.stop();
t = Math.round(_global.totaltime * 10) / 10 + " units";
tt.text = t;
ct.text = _global.totalclickcount;
_global.puNUM = 1;
par = 1;
clickcount = 0;
N = 30;
hs = 3;
ci._visible = 0;
flr = floor._y;
kuid = false;
xv = 0;
yv = 20;
g = 1.010000E+000;
xd = 0;
go = true;
boost = 1;
_global.score = 0;
ballx = ball._x;
bally = ball._y;
d = 9.700000E-001;
bbu = 5;
bu = 20;
bhu = 23;
hb2l = 10;
hb2r = 10;
vb2t = 3;
vb2b = 10;
var B = new flash.filters.BlurFilter(0, 0, 2);
var bupA = new Array();
////////////////////////////////////////////////////////////////////////////////////
Heres the code on the button to the next keyframe:
on (press) {
nextFrame();
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
And Here is the ArmorbotCode take note of the t's:
//Send Highscore AS2.0 // Armor Bot Rankz
import ab3.rankz.*;
function __rankz_send__(par1,par2,par3,par4){
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = Armor_Bot_30_En_AS1.Encode(par4+"j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function(success){
if(success){
trace(par228.msg);
}else{
trace(par228.loaded);
}
}
par227.sendAndLoad("
Zuma Like Game And High CPU Usages
I am working on a Zuma like game in Flash 8 AS2. Game FPS is 30.
My problem is that game is taking too much CPU. Major CPU is used by graphical part, when Flash does repaint. Like moving the balls, rotating and spinning balls. Also I have some graphics in game that contiously runs.
In a P4 1.7 GHz system it takes 75 % CPU with only 30 balls on screen.
Also I am reading data from an array which is about 6000 elements in onEnterFrame. Is there any fast reading method from arrays ? There is several checking and loops are going on in onEnterFrame.
Anyone can tell why it is so slow and why Flash 8 repaint is so slow. Is there any way to make is fast, low on CPU usages ?
[CS3] Define Rank By High Score In A Game?
Hi, im building an quizgame and it gives different scores by different answers. And at the end i would like it to say one of 3 different "ranks" according to the gained score.
I cant seem to get a basic code for this to work, here in pseudo:
Code:
if score = <0 then trace "that was bad" else trace "you did great"
any tips? thanks!
Hackers
so i have an internet game with a highscore system....
if something just pastes this into the broswer they would be on the list.
Code:
www.fake.com/scores.php?game=cool%2Esco&winname=DRCOLBY&winscore=9999
is there anyway to prevent this??
|