Help with online high scores

I'm working on a marathon runner game ( http://www.locopuyo.com/MarathonRunnerBeta1.zip ) just for the fun of it. What I am wondering is what the best way to make a high scores list would be.
I have mySQL on my server, I don't know if that is the best way to do it though.
I don't know at all how to connect files on the internet with java.
I was thinking it might be easier if I just had a plain html web site that I could edit in my java program using ftp, but I don't know how to do that and dont' even know if it is possible.
Any help would be much appretiated.

since you have MySQL on your server, I'm going to go ahead and assume you have PHP installed also. If so, you can do the highscore work in PHP and just have the game query that script. Basically (if you know anything about PHP and web queries in general) you just query the URL of the PHP script with a few GETVARS. In the simplest (and most easily hacked) way is something like:
http://yourserver.com/game/highscore.php?action=submit&name=bob&score=5000highscore.php (your script) would then use MySQL to store the data of the GETVARS ($action,$name, and $score).
All you need in Java to query this script is the URL class.
URL url = new URL("http://yourserver.com/game/highscore.php?action=submit&name=bob&score=5000");
url.openConnection(); // this is where it is queriedhighscore.php is where you need to do your database work. If you don't know anything about PHP or if this sounds too easily hacked, you might look into connecting to MySQL via JDBC (see tutorial)
If I find the time I can make a simple template for you to build off of

Similar Messages

  • Online high score list

    Hi guys,
    I was wondering how I could implement a high score list into a java applet game i wrote. The logic isnt what im worried about, its writing to a file that is on a server that i dont own. It's my school's webspace...do i have access to do this?
    If I dont have access, how would I do this, there are tons of online games with high score lists, so how do they do it?
    Appreciate the help,
    Brian

    Only you would know if you have the permission to do this!. BTW you cannot write to a file from an Applet unless it is signed.
    What I would do if I wanted to do this is, Create a webpage that has access to write to a file or database, then inside my applet use a HttpURLConnection to call this webpage with the paramaters passed along the query line:
    http://www.yourHost.com/TopScores?name=Gary&score=12345

  • Need HELP with importing high definition tape

    I am using Imovie 6HD - and trying to import a high definition tape from a CanonHV20. After importing the first tape I had a screen saying LETTERBOXING which went on for ever. I noticed it made black border tp/botom on the frames. I don't want that. What should I do - I have more tapes to import.
    What settings do I need? As mentioned I used High Definition Tapes so I would like to have a high definition movie/dvd. Also after burning the dvd I suppose I can play that on any tv?? Please help with detail explanation!!
    Thanks.

    teit wrote:
    .. import a high definition tape from a CanonHV20. .. a screen saying LETTERBOXING ...
    wrong setting on Import/New Project:
    • select in New Project dialog 'HDV 1080i' or 'HDV720p' (=depends on your settings on your camcorder...)
    ... I would like to have a high definition .../dvd. ..
    no such thing.. DVDs are allways 'Standard'-only.
    • drag iM project file into iDVD = automatic conversion from HD>>SD ..

  • Help with online support

    I've 3rd generation iPod Touch, bought in September. Now the right headphone isn't working anymore, and i'm trying to follow the process described on https://selfsolve.apple.com/ , but on the last page i receive the error message:
    +"We're sorry, the transaction cannot be completed at this time. Please try again later"+

    While there's very little we fellow users here on the forum can do to  help with regarding a refusal by Adobe's servers to activate your license, it might be helpful if you'd define exactly what you mean by "not accepting license".  It's possible you're having a basic installation problem, and not a problem with activation.
    What error message do you get, when?
    markonius wrote:
    tech support was very little help
    I'd like to make a public editorial comment on what seems like a bad recent trend...
    Adobe really needs to continue to support the reactivation of prior versions!
    Activation is not a feature that helps the customer, it's a feature that protects Adobe.  It comes at an ongoing cost - both to the customer and to Adobe, and it's simply not acceptable for them to choose to stop paying that cost, and not allowing people to continue to use the software that they legitimately licensed.
    Providing technical support for an older version is something that's completely different than providing activation support.
    We fall a bit into gray area where someone has trouble installing an old version of Photoshop on a new computer, but if the problem is just that the user has exceeded the allotted activation count then there's no excuse for being put off by Adobe Customer Support.  The activation technology is capable of continuing, as it has, to ensure the user isn't running the software on too many computers.
    I really, really hope that I'm misinterpreting what sounds like a bad trend based on recent comments on this forum about Adobe Customer Support not supporting people in reactivating their older software after a failure or computer replacement.
    -Noel

  • Help with XP2400, low scores and OCing...

    This is my first post on this forum, just to let everyone know right off the bat you are dealing with a nOOb!! I have a little knowledge on the subject from all the reading I've done the last week or two, but still am new to this...Ok, that being said, here we go...
    AMD Athlon [email protected](15x150)(49 idle, 55 under load)
    MSI KM2M combo   MS-6738
    768MB pc2700(set:BY SPD, 6,3,3,2.5)
    BFG Gforce FX5900XT 475/794
    SoundBlaster Live 5.1
    40G HD / Win XP Home
    stock PSU 250 watt (yea,yea, more power, I know)
    Ok, I just upgraded my vid. card to play BFV because my old Gforce4 mx440se just wasn't cutting it anymore....When I upgraded I started to run some benchmarks(N Bench, SiSiftwareSandra2004, Aquamark3...).....After running AM3 I noticed that my cpu score was much slower than many of the others(cpu 4989  gfx 6099  overall 37,774)...I mean slower than 1.6 G machines, which I found to be quite disturbing! My graphics score holds up nicely compared to others (the FX5900XT OC's like a champ!)...I have all the latest chipset drivers, vid card drivers, sound card drivers etc....My cpu is overclocked using fsb only because my mobo won't allow access to multipliers and voltage controls. After unlocking the 2400, it set to 933Mhz(7x133) to show it was working, but no added options are found...Ater locking it, I realize I need a new motherboard(micro-atx) that will support my pc2700 and a 400 fsb....I don't know if an Nforce 2 will work because they are very selective about the memory they accept...Any suggestions?
    I just basically wanted to know why my cpu tests so low in AM3, but not on Sandra2004 with her MIPS and MFLOPS.....It tests well above theXP2400,XP3000, and just better than theXP3200!!!  If I use AIDA32, my cpu tests really low as well...What the hell is going on here? I want to know why 1.6 G machines are beating mine? is it possible my cpu just doesn't like certain benches? Why does it test well in 1 test and bad in another? My cpu score should be almost 2000 points higher in the AM3 bench than it is...Right? What am I doing wrong?
    Thanks for taking the time to read my long, run on post....I wrote it on my way out the door just before work...If any more info is needed, please let me know...
    Thanks in advance for any replies..Like I said, I'm new to this and any help would be greatly appreciated..Thanks again!
                         TY,
                                Silly

    Quote
    Originally posted by scooter787b
    Quote
    Originally posted by goodcooper
    Quote
    Originally posted by scooter787b
    hate to put u down again slider, but remember your ram may not work with the nforce2 chipset, but theirs a very slim chance u may get lucky
    i've never had a compatibility issue with nForce2 board, EVER
    ur kidding right? ive been at these forums almost as long as the nforce2 chipset has been out, and many ram modules will not work with the nforce2 chipsets, now the k7n2 series is a bit more pickier then other manufacturers, but come on dude, check these out:
    https://forum-en.msi.com/index.php?threadid=14555&sid=
    ever notice why when someone says their comp wont boot and we ask for the ram type?
    some of my ram is ON that LIST, early revisions DID have problems with RAM,  i have never had problems with the ultra and turbo revisions

  • Help with getting high quality DVDs from AVCHD footage

    Hello,
    I know enough about video editing with PE7 to be dangerous, and was hoping someone could help me out.
    My question is regarding getting the highest quality standard DVD from AVCHD footage. I have a Sony HDR-SR12 camcorder recording in AVCHD. I am editing footage natively in AVCHD with PE7 on a quad core system. No problem with that. However, when I export to standard DVD the quality of the video goes down drastically. (Yes, I know burning to Blu-ray would give me higher quality, but I am giving this DVD to a friend who doesn't have Blu-ray).
    So far I have tried starting my project in both HD 1080i 30 5.1 channel:
    General
    Editing mode: HDV 1080i
    Timebase: 29.97 fps
    Video Settings
    Frame size: 1440h 1080v (1.333)
    Frame rate: 29.97 frames/second
    Pixel Aspect Ratio: HD Anamorphic 1080 (1.333)
    and Full HD 1080i 30 5.1 channel:
    General
    Editing mode: HD 1080i
    Timebase: 29.97 fps
    Video Settings
    Frame size: 1920h 1080v (1.000)
    Frame rate: 29.97 frames/second
    Pixel Aspect Ratio: Square Pixels (1.0)
    But I see no discernable difference in the quality of my output onto DVD.
    This is where my knowledge is lacking...how can I get the best quality output from my AVCHD onto a standard DVD? Is there some format I can convert to first, and then burn to DVD? Also, I am willing to break the footage into a couple of DVDs to improve the quality, but I don't know how or what to do for that.
    My footage looks REALLY great when viewing from the HDR-SR12 direct to HD TV with HDMI cable, but not very good on the DVD. My footage is of a ballet recital, and I lose definition in the faces, costumes, etc on the DVD output.
    Any help is appreciated! Thanks!
    Gina

    Hey Gina,
    This may be a year late, but as I have been pulling my hair out trying to solve this problem for the last 48 hours I finally did find somewhat of a work around, but it requires Adobe PP CS4.2.
    There is a plug-in here:
    http://www.mainconcept.com/site/prosumer-products-4/mpeg-pro-hd-7850/features-7861.html
    Which will actually output your edit as an AVCHD file. You can then burn this straight to an AVCHD using Nero 9 and keep the highquality level of your clips and not need Blu-Ray. The DVD player will need to be AVCHD capable, but I just bought one of those for $40 as compared to the $200+ of most Blu-Ray players.
    Hope that helps.
    Regards,
    DSW

  • HELP WITH ONLINE LOG IN

    Hi  I have recently split with my husband who was the named person on my orange mobile account. We have gone through the process of changing the account and direct debit details over to my name but i am now having trouble logging into my account online and on the app because when i log in it is still brings up my husbands details. I have tried re registering with my new account number but because the mobile number is already registered online this isnt working.  I hope I've explained things properly and i hope you can help. Thanks for your time.  

    This should be simple to fix. Sometimes the link between your Orange account and your online account becomes broken or takes a while to update itself.
    In order to get this resolved, you'll need to speak to Orange customer services and ask them to delete your online account profile.
    Once they've done this, you'll be able to register with your mobile number and this should now display your details.

  • Need help with online gaming

    When I play a online game my ping go very high and its started few days ago.
    I dont now what i can do.
    My internet is good.
    Can anyone help me?
    Also mi cant geth my memory higher.
    It says: 3,00 GB (2,60 GB avallible) how can i get it higher?

    > It says: 3,00 GB (2,60 GB available) how can i get it higher?
    Windows 32bit system can handle only 3.2GB RAM. This is 32bit limitation.
    I assume the system uses 2.6GB because the other part is used by graphic card.

  • Help with printing a SCORE To PDF! Urgent

    so once again I'm on a deadline and struggling with the score editor. I have a large score. I have been formatting one page at a time, and then moving on. What I mean exactly is that I get page 1 the way I want it, select print and then preview, save as to a PDF, and then move on with page 2 and do the same thing.
    This was working, up until page 13 (ironic). Page 13 had much more going on notes wise, so I dropped the scale of the score set by one percentage point, from 82 to 81%, so that I could still fit everything I wanted on the page and have it look good. But then when I went to print preview, the formatting was all screwed up, and now I can't figure out how to make it look good, while still keeping the decreased scale.
    Please, someone tell me you know how to get around this. It seems like what it says in the manual doesn't apply at all when it comes to preparing a score for printing, and I'm on a deadline for a grant and very frustrated.
    Help?
    Thanks....

    There are 3 ways in which you can affect the size of the Score to Print:
    1) The Page Set up ( which is probably the one you have been using - it may be that below 80% the Score cant be defined in terms of the information on it.. not sure about this)
    2) In the Score Editor if you go to Layout>Create Score Set from Selection and then open Staff Styles.. there is a Scaling Parameter there which reduces/enlarges the Score
    3) In Layout>Staff Styles> You can also change the size of the stave in individual parts which would reduce your Score size
    Hope this is in time for that deadline
    MS
    PS You are correct to print from PDF - printing from the Score Editor will not solve your problem AFAIK
    Message was edited by: musicspirit

  • Please Help with online gaming problem. Please.

    Hi. I am new to this website and I searched in the faqs but did not get much help. How do I play Age of Empires 2: Age of Kings with my cousin through online DirectPlay while the router is connected to my DSL modem? My cousin lives 9 to 10 blocks away from me and we usually use to play the game online through DirectPlay but ever since I got the router, he cannot enter my game any more. We don't play through a website or anything similar.
    Please Can someone help me.
    Info
    Computer: Windows XP Service Pack 2
    Router: WRT54G Version.8
    AT&T Yahoo DSL Modem
    Thank you for your time.

    This type of problem usually happens w/ DSL. On your PC lets try doing these steps. Open up Internet Explorer. On the address bar, just type the numbers 192.168.1.1 (username just leave it blank, password as default is admin). This should lead you to a linksys page. Go to status. On the status page, what is the Internet IP Address as listed there?

  • Need help with online book shop example!

    hi everyone!
    i am tryin and completing the online book catalog example given in sap help but i'm facin a prob with the internal table authors.can anybody tell mye the exact way to declare and use it in the program.its quite diff to describe the exact situation but i think the experienced ones will be able to understand my prob.
    eagerly waitin
    regards
    sachin

    if the navigation between pages are not working, the reason could be that the code in oninputprocessing is not maintained properly. if you just copy paste the code from the online tutorial it should work.
    navigation between pages not working? -
    to resolve this place HTTP break point in the code in oninputprocessing and run your application, click the button to navigate to other page, watch in the debugger as to whats going wrong.
    Regards
    Raja

  • Help with code for score-keeping with dynamic text box

    Hi All,
    I'm having an actionscript 2.0 problem with keeping score.
    I have a dynamic text box with a variable called score.
    I have the following action code for that variable:
    _root.score = 0;
    For the correct answer button I have this action:
    _root.score = Number (score) +10;
    This works fine to increase the score by 10 for each correct answer.
    The problem is that I can't get an if statement to work for when the score reaches 150 to gotoAndPlay a certain frame. I've tried various syntax, I've tried it on the action for a button and an action for the timeline with: 
    onRelease = function () {
    (My learning game is set up to allow for users to answer up to four extra questions to reach the score of 150).
    Nothing works. Any suggestions please?
    Pam

    Below is a link to a small sample file.  See if you can find anything different between your file and the one linked that might cause yours to not work as desired.
    http://www.nedwebs.com/Flash/AS2_score_sample.fla

  • Help with online pdf viewer

    My online pdf viewer does not seem to display the menu bar (as in the ones that pop up when you click a link for a form or journal). I have tried F9 and Alt-T, but none of them seem to work.... A little help please?
    Thanks

    Maybe something - maybe not,
    Google Chrome has a Google provided plug-in for viewing PDFs.
    My read of info in Google's webspace is that this is utilized via a "view..." action.
    If you are accessing PDFs via Chrome you may want to visit the application's Help / Communities.
    Be well...

  • Help With Online Game (Walking Talking)...

    Hello, I just want to make like something like a game where you conrol a box, and can write messages to other people...
    But the thing is that i am absolutely new in JAVA i don't know anything in it (totally)
    So i would like to get some information in working with it... and things like that ^.^
    P.S. I worked with GameMaker but I don't think that it will help me :|

    I Don't know but it' didn't work maybe cause i am using vista???
    when it didn't work i made a bat file and wrote there: javac HelloWorldApp.java
    i think it did something but new file didn't appear anywhere. maybe it shuld appear in any other folder or something?
    EDIT: I thought that vista doesn't let me to make new files in C disk so i copied the *.java file to the desktop and when i cmd i tried to javac it, the compiler started writing:
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    C:\Users\TDEsws\Desktop>javac HelloWorldApp.java
    by his self... it didn't stop waited about 30seconds...
    Edited by: TDEsws on Nov 5, 2008 5:37 AM

  • Newbie, need help with online poker install

    Hello all,
    I am brand new to iMac and am having a difficult time playing online poker. I tried installing Pacific Poker but can't get it to run. The pacificpoker.exe icon shows on the screen, but that is as far as I can get. When I double click it, it ask me which application to use. That is as far as I can get. Please help! Thanks in advance!
    Dave

    You can't use the file you downloaded in Mac OS X outside of a Windows emulator such as Virtual PC or Parallels Desktop; instead, go here and use the Java client for Pacific Poker.
    (14412)

Maybe you are looking for

  • Re: Importing Packages

    You don't need to unzip uacalc.jar. Just make sure you put the JAR file in the classpath. You first need to compile your program Maroti.java, like this: C:\mystuff> javac -classpath C:\uacalc\uacalc.jar;. Maroti.java If it compiles without errors, yo

  • Pls help decompress jsonl4 bookmark file

    After one of latest Firefox update (think it was around version 32) the bookmark file was compressed as "bookmarks_<date>....==.jsonlz4 file. After an update the new Firefox was not able to retrieve the compressed bookmark. I hope that here is a way

  • Vertical text in JTabbedPanes on MAC

    Hi all, I use the CrossPlatformLookAndFeel for my Java application and I want to have vertical text in tabs with are placed on the left side. For displaying the vertical text I use a special TabbedPanUI (see code below) which rotates the text. This w

  • Vendor rating system?

    Dear Gurus, how do we plan for a vendor rating system and move about? Thanks..

  • Severely problem with SUN HBA card SG-XPCI2FC-QF4 installation

    Hello: I'm facing a big problem when installation SUN HBA card,the machine can't recognise the HBA card when poweron with HBA installed, my system is: Server: SUN V890, Solaris 10 HBA: SG-XPCI2FC-QF4 I changed another HBA card and I/O solt,the proble