Maintaining high scores after a restore

If I restore my ipod touch, and then use the auto-back ups to put everything back on the ipod, will the highscores in games be deleted? or are they automatically stored in the back up?
Thank you

If you have OS 2.0 or higher, they are stored in your backup. I have done this a couple of times without losing anything. See this for details of what is included in the backup: http://support.apple.com/kb/HT1766

Similar Messages

  • How can you get back a lost high score after a partial sync?

    I was playing a Temple Run game, which I was currently getting a high score on, when I plugged it into my computer to charge. Since it was the first time I had plugged it in, the Mac asked me to do some stuff. After my iPod started to sync, everything was fine. I then had to leave, so I ejected it and left. It kept syncing until I was out of the wi-fi range and down the road. I go into Temple Run, and find my game I was playing gone. The coins weren't added, and the high score wasn't even updated. When I came home, I tried syncing it again, and the info still didn't come back. Is is possible to regain the data back? I just really want the 7 million high score back...

    Try restoring from backup.  If yu did not backup since you messed up, restoring from backup should get you back to when the backup was made. Got to iTunes>Preferences>Devices and check the box that says "Prevent iPod...syncing" otherwise when you connect, a backup will be made that does not contain the info you want.

  • After i restore my ipod 5, it automatically takes me back to the hello page to start over again, this is highly frustrating i just want to be able to use my ipod, how do i fix this?!?!

    After I restore my iPod 5th generation, it automatically takes me back to the "hello page" where you create a whole new iPod, I've tired several thing, it's highly frustrating!Help me!

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Connect to computer and setup via iTunes
    - Connect the iPod to your computer and restore via iTunes
    iTunes: Restoring iOS software

  • Flash Game High Scores Board

    Hello everyone,
    I know this is a subject that gets covered a lot as i have found a ton of tutorials that show a million dfferent ways to create a high scores board on a flash game.  So i decided to go out on a limb and pick a tutorial out to try.  Well I have now tried 3 different ones and have yet to get a working high scores board with my game.
    http://www.flashkit.com/tutorials/Games/How_to_c-Nick_Kuh-771/index.php
    That is the link to the most recent attempts to creat my high scores board.  When i finished everything the way the tutorial said it seemed like everything would work and then it just didnt.  After spending oh about 40 plus hours trying to make a high scores board i am getting very frustrated.  My game is scripted in AS2 and i have access to mysql and can set up unlimited databases.
    Can anyone please help me by sending an easy to follow tutorial that will work with AS2?  I would just like any kind of help right now as I feel ALL of my valid ideas have been ehausted.  Thanks in advance to anyone that can help!
    kapelskic

    Okay not a problem.
    This is my code on the very first frame of the game that initializes the the highscores.php script
    command = "init";
    _root.loadVariables("highscores.php?"+int(Math.random()*100000), "POST");
    This is the code that I have on a submit button, next to the input text box where the user enters their name for the scoreboard.
    on (release) {
    if(name ne ""){
    command = "update";
    _root.loadVariables("highscores.php?"+int(Math.random()*100000), "POST");
    gotoAndStop ("highScores");
    In every place the code says _root. I have also tried this. and neither of them work.  I have also tried a million other things.  So far the game plays through, goes to the game over screen where it asks for a user name and tells them their score.  Then once they press submit the game goes to the highScores screen but the name and score are not there.  The high scores screen cosists of 2 dynamic text fields one named "players" and one named "scores".  I hope this helps because I spent another 5 or so hours after my initial posts trying more tutorials with still no luck.  (the problem i am having is that i am new to flash, however not to PHP)
    kapelskic

  • Disp+work process was down after the Restoreing the backup

    Disp+work process is down after the Restore of the backup
    s/m configration: windows 2003 server + oracle 10g
    The below is the log file
    trc file: "dev_disp", trc level: 1, release: "700"
    sysno      01
    sid        PRA
    systemid   560 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    52
    intno      20050900
    make:      multithreaded, Unicode, optimized
    pid        2928
    Thu Apr 07 18:58:10 2011
    kernel runs with dp version 210000(ext=109000) (@(#) DPLIB-INT-VERSION-210000-UC)
    length of sys_adm_ext is 572 bytes
    SWITCH TRC-HIDE on ***
    ***LOG Q00=> DpSapEnvInit, DPStart (01 2928) [dpxxdisp.c   1231]
         shared lib "dw_xml.dll" version 52 successfully loaded
         shared lib "dw_xtc.dll" version 52 successfully loaded
         shared lib "dw_stl.dll" version 52 successfully loaded
         shared lib "dw_gui.dll" version 52 successfully loaded
    rdisp/softcancel_sequence :  -> 0,5,-1
    use internal message server connection to port 3901
    Thu Apr 07 18:58:15 2011
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
    ***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  5233]
    MtxInit: 30000 0 0
    DpSysAdmExtInit: ABAP is active
    DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
    DpIPCInit2: start server >pwsap_PRA_01                            <
    DpShMCreate: sizeof(wp_adm)          18304     (1408)
    DpShMCreate: sizeof(tm_adm)          3954072     (19672)
    DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    DpShMCreate: sizeof(comm_adm)          528064     (1048)
    DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    DpShMCreate: sizeof(file_adm)          0     (72)
    DpShMCreate: sizeof(vmc_adm)          0     (1452)
    DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    DpShMCreate: sizeof(gw_adm)     48
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 05C00040, size: 4613144)
    DpShMCreate: allocated sys_adm at 05C00040
    DpShMCreate: allocated wp_adm at 05C01E28
    DpShMCreate: allocated tm_adm_list at 05C065A8
    DpShMCreate: allocated tm_adm at 05C065D8
    DpShMCreate: allocated wp_ca_adm at 05FCBB70
    DpShMCreate: allocated appc_ca_adm at 05FD1930
    DpShMCreate: allocated comm_adm at 05FD3870
    DpShMCreate: system runs without file table
    DpShMCreate: allocated vmc_adm_list at 06054730
    DpShMCreate: allocated gw_adm at 06054770
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 060547A0
    DpShMCreate: allocated wall_adm at 060547A8
    MBUF state OFF
    EmInit: MmSetImplementation( 2 ).
    MM diagnostic options set: 0
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation flat
    <EsNT> Memory Reset disabled as NT default
    <ES> 511 blocks reserved for free list.
    ES initialized.
    Thu Apr 07 18:58:16 2011
    J2EE server info
      start = TRUE
      state = STARTED
      pid = 3208
      argv[0] = D:\usr\sap\PRA\DVEBMGS01\exe\jcontrol.EXE
      argv[1] = D:\usr\sap\PRA\DVEBMGS01\exe\jcontrol.EXE
      argv[2] = pf=D:\usr\sap\PRA\SYS\profile\PRA_DVEBMGS01_pwsap
      argv[3] = -DSAPSTART=1
      argv[4] = -DCONNECT_PORT=1069
      argv[5] = -DSAPSYSTEM=01
      argv[6] = -DSAPSYSTEMNAME=PRA
      argv[7] = -DSAPMYNAME=pwsap_PRA_01
      argv[8] = -DSAPPROFILE=D:\usr\sap\PRA\SYS\profile\PRA_DVEBMGS01_pwsap
      argv[9] = -DFRFC_FALLBACK=ON
      argv[10] = -DFRFC_FALLBACK_HOST=localhost
      start_lazy = 0
      start_control = SAP J2EE startup framework
    DpJ2eeStart: j2ee state = STARTED
    rdisp/http_min_wait_dia_wp : 1 -> 1
    ***LOG CPS=> DpLoopInit, ICU ( 3.0 3.0 4.0.1) [dpxxdisp.c   1617]
    ***LOG Q0K=> DpMsAttach, mscon ( pwsap) [dpxxdisp.c   11414]
    DpStartStopMsg: send start message (myname is >pwsap_PRA_01                            <)
    DpStartStopMsg: start msg sent
    CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    CCMS: Initalizing shared memory of size 60000000 for monitoring segment.
    Thu Apr 07 18:58:17 2011
    CCMS: start to initalize 3.X shared alert area (first segment).
    DpJ2eeLogin: j2ee state = CONNECTED
    DpMsgAdmin: Set release to 7000, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   1050]
    DpMsgAdmin: Set patchno for this platform to 52
    Release check o.K.
    Thu Apr 07 18:58:42 2011
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4235]
    ERROR => NiIRead: SiRecv failed for hdl 4 / sock 1472
         (SI_ECONN_BROKEN; I4; ST; 127.0.0.1:1085) [nixxi.cpp    4235]
    DpJ2eeMsgProcess: j2ee state = CONNECTED (NIECONN_BROKEN)
    DpIJ2eeShutdown: send SIGINT to SAP J2EE startup framework (pid=3208)
    ERROR => DpProcKill: kill failed [dpntdisp.c   371]
    DpIJ2eeShutdown: j2ee state = SHUTDOWN
    Thu Apr 07 18:58:56 2011
    ERROR => W0 (pid 3216) died [dpxxdisp.c   14021]
    ERROR => W1 (pid 3224) died [dpxxdisp.c   14021]
    ERROR => W2 (pid 3232) died [dpxxdisp.c   14021]
    ERROR => W3 (pid 3240) died [dpxxdisp.c   14021]
    ERROR => W4 (pid 3248) died [dpxxdisp.c   14021]
    ERROR => W5 (pid 3256) died [dpxxdisp.c   14021]
    my types changed after wp death/restart 0xbf --> 0xbe
    ERROR => W6 (pid 3264) died [dpxxdisp.c   14021]
    my types changed after wp death/restart 0xbe --> 0xbc
    ERROR => W7 (pid 3272) died [dpxxdisp.c   14021]
    my types changed after wp death/restart 0xbc --> 0xb8
    ERROR => W8 (pid 3280) died [dpxxdisp.c   14021]
    ERROR => W9 (pid 3288) died [dpxxdisp.c   14021]
    ERROR => W10 (pid 3296) died [dpxxdisp.c   14021]
    my types changed after wp death/restart 0xb8 --> 0xb0
    ERROR => W11 (pid 3304) died [dpxxdisp.c   14021]
    my types changed after wp death/restart 0xb0 --> 0xa0
    ERROR => W12 (pid 3312) died [dpxxdisp.c   14021]
    my types changed after wp death/restart 0xa0 --> 0x80
    DP_FATAL_ERROR => DpWPCheck: no more work processes
    DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs
    NiWait: sleep (10000ms) ...
    NiISelect: timeout 10000ms
    NiISelect: maximum fd=1597
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu Apr 07 18:59:06 2011
    NiISelect: TIMEOUT occured (10000ms)
    dump system status
    Workprocess Table (long)               Fri Apr 08 01:59:06 2011
    ========================
    No Ty. Pid      Status  Cause Start Err Sem CPU    Time  Program  Cl  User         Action                    Table
    0 DIA     3216 Ended         no      1   0             0                                                             
    1 DIA     3224 Ended         no      1   0             0                                                             
    2 DIA     3232 Ended         no      1   0             0                                                             
    3 DIA     3240 Ended         no      1   0             0                                                             
    4 DIA     3248 Ended         no      1   0             0                                                             
    5 DIA     3256 Ended         no      1   0             0                                                             
    6 UPD     3264 Ended         no      1   0             0                                                             
    7 ENQ     3272 Ended         no      1   0             0                                                             
    8 BTC     3280 Ended         no      1   0             0                                                             
    9 BTC     3288 Ended         no      1   0             0                                                             
    10 BTC     3296 Ended         no      1   0             0                                                             
    11 SPO     3304 Ended         no      1   0             0                                                             
    12 UP2     3312 Ended         no      1   0             0                                                             
    Dispatcher Queue Statistics               Fri Apr 08 01:59:06 2011
    ===========================
    --------++++--
    +
    Typ
    now
    high
    max
    writes
    reads
    --------++++--
    +
    NOWP
    0
    2
    2000
    5
    5
    --------++++--
    +
    DIA
    5
    5
    2000
    5
    0
    --------++++--
    +
    UPD
    0
    0
    2000
    0
    0
    --------++++--
    +
    ENQ
    0
    0
    2000
    0
    0
    --------++++--
    +
    BTC
    0
    0
    2000
    0
    0
    --------++++--
    +
    SPO
    0
    0
    2000
    0
    0
    --------++++--
    +
    UP2
    0
    0
    2000
    0
    0
    --------++++--
    +
    max_rq_id          12
    wake_evt_udp_now     0
    wake events           total     8,  udp     6 ( 75%),  shm     2 ( 25%)
    since last update     total     8,  udp     6 ( 75%),  shm     2 ( 25%)
    Dump of tm_adm structure:               Fri Apr 08 01:59:06 2011
    =========================
    Term    uid  man user    term   lastop  mod wp  ta   a/i (modes)
    Workprocess Comm. Area Blocks               Fri Apr 08 01:59:06 2011
    =============================
    Slots: 300, Used: 1, Max: 0
    --------++--
    +
    id
    owner
    pid
    eyecatcher
    --------++--
    +
    0
    DISPATCHER
    -1
    WPCAAD000
    NiWait: sleep (5000ms) ...
    NiISelect: timeout 5000ms
    NiISelect: maximum fd=1597
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu Apr 07 18:59:11 2011
    NiISelect: TIMEOUT occured (5000ms)
    DpHalt: shutdown server >pwsap_PRA_01                            < (normal)
    DpJ2eeDisableRestart
    DpModState: buffer in state MBUF_PREPARED

    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Thu Apr 07 18:58:16 2011
    B  create_con (con_name=R/3)
    B  Loading DB library 'D:\usr\sap\PRA\DVEBMGS01\exe\dboraslib.dll' ...
    B  Library 'D:\usr\sap\PRA\DVEBMGS01\exe\dboraslib.dll' loaded
    B  Version of 'D:\usr\sap\PRA\DVEBMGS01\exe\dboraslib.dll' is "700.08", patchlevel (0.46)
    B  New connection 0 created
    M sysno      01
    M sid        PRA
    M systemid   560 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    52
    M intno      20050900
    M make:      multithreaded, Unicode, optimized
    M pid        3216
    M
    M  kernel runs with dp version 210000(ext=109000) (@(#) DPLIB-INT-VERSION-210000-UC)
    M  length of sys_adm_ext is 572 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 3216) [dpxxdisp.c   1293]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M  DpShMCreate: sizeof(wp_adm)          18304     (1408)
    M  DpShMCreate: sizeof(tm_adm)          3954072     (19672)
    M  DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    M  DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    M  DpShMCreate: sizeof(comm_adm)          528064     (1048)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1452)
    M  DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 05C00040, size: 4613144)
    M  DpShMCreate: allocated sys_adm at 05C00040
    M  DpShMCreate: allocated wp_adm at 05C01E28
    M  DpShMCreate: allocated tm_adm_list at 05C065A8
    M  DpShMCreate: allocated tm_adm at 05C065D8
    M  DpShMCreate: allocated wp_ca_adm at 05FCBB70
    M  DpShMCreate: allocated appc_ca_adm at 05FD1930
    M  DpShMCreate: allocated comm_adm at 05FD3870
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 06054730
    M  DpShMCreate: allocated gw_adm at 06054770
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 060547A0
    M  DpShMCreate: allocated wall_adm at 060547A8
    X  EmInit: MmSetImplementation( 2 ).
    X  MM diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation flat
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.

    M Thu Apr 07 18:58:17 2011
    M  ThInit: running on host pwsap

    M Thu Apr 07 18:58:18 2011
    M  calling db_connect ...
    C  Prepending D:\usr\sap\PRA\DVEBMGS01\exe to Path.

    C Thu Apr 07 18:58:27 2011
    C  Client NLS settings: AMERICAN_AMERICA.UTF8
    C  Logon as OPS$-user to get SAPSR3's password
    C  Connecting as /@PRA on connection 0 (nls_hdl 0) ... (dbsl 700 240106)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   0619F158   061A46F4   061A3F7C
    C  Attaching to DB Server PRA (con_hdl=0,svchp=061A3EC8,svrhp=061B5794)
    C  Starting user session (con_hdl=0,svchp=061A3EC8,srvhp=061B5794,usrhp=061CA558)

    C Thu Apr 07 18:58:28 2011
    C  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1033
    [dboci.c      4345]
    C  Detaching from DB Server (con_hdl=0,svchp=061A3EC8,srvhp=061B5794)
    C  *** ERROR => CONNECT failed with sql error '1033'
    [dbsloci.c    10704]
    C  Try to connect with default password
    C  Connecting as SAPSR3/<pwd>@PRA on connection 0 (nls_hdl 0) ... (dbsl 700 240106)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   0619F158   061A46F4   061A3F7C
    C  Attaching to DB Server PRA (con_hdl=0,svchp=061A3EC8,svrhp=061B5794)
    C  Starting user session (con_hdl=0,svchp=061A3EC8,srvhp=061B5794,usrhp=061CA558)
    C  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1033
    [dboci.c      4345]
    C  Detaching from DB Server (con_hdl=0,svchp=061A3EC8,srvhp=061B5794)
    C  *** ERROR => CONNECT failed with sql error '1033'
    [dbsloci.c    10704]
    B  ***LOG BV3=> severe db error 1033      ; work process is stopped [dbsh#2 @ 1199] [dbsh    1199 ]
    B  ***LOG BY2=> sql error 1033   performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> ORA-01033: ORACLE initialization or shutdown in progress [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1403]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10019]

    M  Info for wp 0

    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = V-1

    M  *
    M  *  LOCATION    SAP-Server pwsap_PRA_01 on host pwsap (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Thu Apr 07 18:58:28 2011
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10204
    M  *  COUNTER     1
    M  *

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 3216) [dpnttool.c   327]

  • Project Server 2010 Reporting database corrupt after Administrative restore of Enterprise Lookup Tables

    Hi Guys
    Prosperous 2014 to all . I am stuck with a Huge issue that I am unable to resolve. I did a PWA Administrative restore the other day to try to recover some fields that was deleted.
    After the restore I got a queue error and since then my reporting database is screwed up. I tried to re-save the lookup tables, fields and views to no avail.
    None of my reports are working and every time I publish I get a reporting queue error on the projects.
    Your urgent help to sort this issue out will be highly appreciated
    Thanks
    Willem

    Hello,
    What was the queue error? Have you tried the restore of custom fields again?
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • How to maintain high image quality of still images

    Hello,
    I have been creating flipbooks out of still images shot on a canon MK II. They are 8 mp files and look great blown up large in photoshop, however, once imported into iMovie through iPhoto and played as a sequence in rapid succession they seem to lose quality. They appear slightly compressed or otherwise a little pixelated. A get info on an individual frame says it is is less than 200 KB when the original file is 3 mb. Is there a setting I am missing or other technique for maintaining the images' high quality after being brought into this rapid slideshow? Should I be using final cut to achieve this type of high quality?
    thanks!

    The following works well. Save your images in photoshop as TIFF files, with a resolution of 1920 x 1080, 72 pixels per. Save to the desktop. Drag into imovie. Make sure your imovie is hd 1080i. Use the Ken Burns to expand the picture to fill the black spaces, if you so desire.
    At that point, you'll have a super high def show.
    Hope this helps.

  • IPhone High Score Data File/Sort Oddities

    Hello all.
    I am working on an iPhone game which is nearly complete but I am having trouble with the following high score sort/write code. I am aiming to keep up to 10 scores, sorted from highest to lowest obviously.
    The code creates a new data file with the current score added as first entry if there is no existing data file (and this works), or it creates a data file with the current score as first entry if a data file exists but is empty for some reason (and this works as well), or it adds the current score to a data file of existing scores if it is within the top ten or there are less than ten entries (this is where it gets odd).
    If there is one existing score in the data file, the current score is added and sorted properly. If there are two scores in the data file, the application crashes BUT the data file shows the current score was correctly added and sorted to the existing scores. If there are three existing scores, the application crashes and the data file remains unchanged.
    I have been over the logic many times and tried many different variations of the logic structure to no avail. I suspect it is something simple but I've been staring at it too long to see. Any ideas?
    If there is a better way to display the code/formatting on the forum, please let me know. It doesn't look pretty this way and there must be a way to make it more readable here. I tried to manually format it some to help. The code follows (score variable is brought in from another class but works properly in my tests). At the end I have repeated an isolated snippet of the code where I think the problem occurs.
    *CODE START:*
    int i, ii;
    struct highscoreentry {
    NSString *name;
    int highScore;
    struct highscoreentry structArray(10);
    FILE *fin = fopen("highscore.dat", "rb");
    if (fin != NULL) { //if the data file exists proceed here
    for (i = 0; i < 10; i++) {
    if (fscanf(fin, "%s %d\n", structArray(i).name, &structArray(i).highScore) != EOF) { //if data exists for this iteration proceed
    ii = i; //ii will be the last entry of existing data
    for (i = ii; i > -1; i--) { //will begin at last entry and work up the list of scores to sort
    if (score > structArray(i).highScore) { //if current score is higher than recoded score, recorded score moves down 1 place
    structArray(i + 1) = structArray(i);
    structArray(i).name = (NSString *)"JESSE";
    structArray(i).highScore = score;
    if (i == ii && ii < 9) //if there are less than 10 entries we will add another for our new entry
    ii = ii + 1;
    else if (score < structArray(i).highScore && i == ii) { //if current score is less than last recorded score it becomes new last entry
    structArray(i + 1).name = (NSString *)"JESSE";
    structArray(i + 1).highScore = score;
    if (ii < 9)
    ii = ii + 1;
    fclose(fin);
    if (fin == NULL) { //if the data file does not exist prepare data for new file
    ii = 0; //will be used to limit write iterations to this single new entry
    structArray(0).name = (NSString *)"JESSE";
    structArray(0).highScore = score;
    FILE *fout;
    fout = fopen("highscore.dat", "wb"); //should create/rewrite data file from scratch
    for (i = 0; i <= ii; i++) {
    fprintf(fout, "%s %d\n", structArray(i).name, structArray(i).highScore);
    fclose(fout);
    *CODE END*
    As far as I can tell by commenting out different portions of the code, the problem appears to be somewhere in here:
    *CODE START:*
    if (fin != NULL) { //if the data file exists proceed here
    for (i = 0; i < 10; i++) {
    if (fscanf(fin, "%s %d\n", structArray(i).name, &structArray(i).highScore) != EOF) { //if data exists for this iteration proceed
    *CODE END*
    ...but it baffles me that this works with one structure in the data file, crashes with two structures in the data file but correctly processes/sorts them and writes the file properly, and crashes with three structures in the data file without doing any additional work.
    Jesse Widener
    www.artandstructure.com

    Actually I've found online material to be adequately, and sometimes more than adequately, elucidating in learning the language. When I decided to take a stab at this I spent about 40 hours of my spare time the first week reading 2 or 3 different "takes" on the C/C++/Objective C language in addition to Apple's docs on their implementation along with the iPhone SDK. As I mentioned, I've thus far found the language quite clear and concise. I began my application the second week and this is the first time in 7 weeks of coding where I've felt the need to ask assistance. Every other problem I've solved, leaving no errors, warnings or leaks in my software and accomplishing every task I've set to this point.
    I find reading several different "takes" on a subject helps fill out an understanding from different perspectives. In this case, one perspective might lead the reader to believe or misunderstand the full use/context of a particular syntax, while reading from multiple sources can show the same syntax used in different contexts, broadening the understanding of its use, and that understanding can be user further to interpolate uses in a variety of situations.
    I am new to C/C++/Objective C and the iPhone SDK, but I am not new to programming. It may have been some time (other than hand-coding my website the last few years) and my language experience may be limited to BASIC, HTML, PHP and Javascript, but from my view learning a new language is relatively easy once you know one...even if it is BASIC. The general logic structure remains the same. The overall software design concept remans essentially the same. Both are going to use variables, arrays, subroutines, memory allocation/management, input and output of data, runtime logic, etc. I am 80-90% sure I know exactly how I want to attack a coding problem every time...I just need to know how to "say it in C".
    I don't remember when I first started coding, but I know by age 7 I wrote a karaoke style "Happy Birthday" for my great aunt with music playing through a Commodore 16 via "beeps" figuring the particular vibrations per second of the speaker (the hertz values) and durations for each note in time and pitch perfectly along with "lyrics" printed to screen with the music. To me, learning C is like learning a new foreign language. I took 2 years of French in high school and had to study at it but aced it nonetheless. I then opted to take Spanish but after a semester I opted to stop because the pacing was too slow. Learning Spanish after learning French was a piece of cake. They are in the same general language family and the syntax construction is very similar. I only needed the raw data of the words to fit to the rules I already knew. I didn't need to learn the same rules a second time.
    The C/Objective C language seems no more complicated than it need be, which is to say it seems simple in doing what it needs to do and I am impressed with that simplicity thus far. I am also impressed with Apple's implementation with regard to the iPhone. Being able to provide music via 4-5 lines of code using AVAudioPlayer is transcendental compared to "beeping" every note monophonically.
    Apple's explanations are very clear and concise. It is just, sometimes their examples are sparse or too narrow in scope to get a rounded context. However, their docs are very good and there is a wealth of information here on the net. My biggest complaint with Apple's docs really stems from the fact they seem to want to shove Interface Builder at everything and provide the code to do so but leave the reader stranded if the reader would rather stay within XCode exclusively and do more programmatically rather than leave that much "behind the curtain" work to Interface Builder...but it is a minor complaint.
    On pointers...I do understand the use of pointers, perhaps not to the nth degree as I am just starting out, but the concept makes sense to me. I understand they are not "content" but a memory address location of the "content". I also understand why pointing to a location which is undefined or unprotected is damaging to whatever may be in that location already and to the data being pointed since it can be inadvertently overwritten my some other memory using item.
    {quote}No. The (i < 9) condition is critical. Writing to structArray[10] will crash, since structArray[9] is the end of the array. In practice such a crash might not happen right away, though. If our program's data allocation actually ended at the end of the array, the crash would be immediate. But what usually happens when we write past the end of an array is that the beginning of some other data is overwritten.{quote}
    I need to slap my forehead on this one. I know better than that. I don't know why I missed that. Too many late nights I suppose.
    {quote}(NSString*) is called a type cast in that context.{quote}
    Yes, which is why I used it to deal with the incompatible type error I thought I had at that point, but I shouldn't have assumed by appeasing the compiler I was necessarily solving the problem.
    {quote} The best I can do for now is to caution that an enquiring mind, like all virtues, can be taken too far. I think it's important to compromise and copy good models sometimes. This isn't just to avoid reinventing the wheel. Sometimes it's good to remember we only have a limited time on Earth.{quote}
    Agreed...and I don't expect to understand every nuance the first time around. I expect to at least understand how each successful line of code works in its context, but I imagine some processes will take a few times through before it "clicks" how it works in a greater context than its own, and I am all right with that. I also understand deadlines are deadlines whether they be software development or otherwise and a broad eye needs to be kept to remaining on the track forward.
    Anyway, off to my day job.
    Thank you again...I began reading up on NSDictionary and NSUserDefaults last night. Will post soon.
    Jesse Widener
    www.artandstructure.com

  • Error with Oracle temp file after Offline restore

    Hi,
    I did a offline backup of my Oracle 9I database after shutting down the DB. After I restore the offline file system backup, I saw the following error in alter.log:
    "ORA-01186: file 255 failed verification tests
    ORA-01122: database file 255 failed verification check
    ORA-01110: data file 255: '/oracle/SED/sapdata1/temp_1/temp.data1'
    ORA-01205: not a data file - type number in header is 0
    File 255 not verified due to error ORA-01122"
    When I did a query I got the following error :
    "SQL> select * from dba_temp_files;
    select * from dba_temp_files
    ERROR at line 1:
    ORA-01187: cannot read from file 255 because it failed verification tests
    ORA-01110: data file 255: '/oracle/SED/sapdata1/temp_1/temp.data1'
    I know how to recover it but Why is this so ? Is this normal when I restore the offline backup file including the temp.data1 ?
    Any reply is appreciated.
    Rgds,
    WP

    Because you did something wrong.
    This is just one more brilliant laser beam example of why RMAN is the only tool that should be used for backup and recovery once you are on 9i or higher versions.

  • I have a really high score on a game app on the ipad 2 ... Can I sync or transfer ONLY that game to my ipad 3 somehow ???

    I have a really high score on a game app on my ipad 2 ... I want to sync, or transfer, or move somehow,  the app with the high score to my ipad 3... Can I do it without syncing the whole ipad?? Or is there another way to get the game app to my "3" ???

    You would need to backup your data to iTunes or iCloud and then restore from backup on the iPad 3. Content should reside on your computer or you can reload apps from the cloud. I don't believe you can just restore one app
    http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_US

  • HT201272 I lost an app after I restored my iPod Touch and now I can't find it

    Before I restored my iPod I moved a majority of the songs I downloaded on the app to my computer. After I restored the iPod I downloaded the main apps I used, but I couldn't find the music app that I payed for months ago. I've looked through purchases All & Not On This iPod but I just can't find it. What can I do?

    If the app is no longer in your country's store then you won't be able to re-download it. Do you have a copy of it on your computer's iTunes or on a backup of your downloads that you can use to re-sync it to your iPod ? Or if the app is still in the store, does it now need a higher iOS version than you have on your iPod ?

  • How to manage high score file

    Hello,
    I have made i little game in CVI, in the end of the game user get a score base on the levels he passed and the level of difficulty.
    As this is a school assignment i have to have a score board. I've made score board using a table and i read arguments from a txt file.
    All I read is the name of the player and his score.
    The trouble that I'm having is to check the txt file and see if the new score of the user can be put in the score board.
    I need to known how I check if user's new score need to be put into the score txt file, and how to put it there.
    Thanks in advacne!

    Hello Slavik87!
    If I understand your question correctly, want to are asking is how to read the text file, retrieve the highest scores from it and update the file again.
    If you are asking about which functions to use, these are some functions you can use to perform the file operations:
    fopen, to open the file
    fputs, to write a string to the file
    fgets, to get a string from the file
    fseek, to navigate through the file
    fclose, to close the file
    Here are some suggestions about how you can manage the information in your text file:
    Insert each new entry (name, score) on a separate new row, optionally using separators:
    John Doe, 10
    Kelly Smith, 43
    Kevin Brown, 4
    After reading these lines from disk, you would have to store the entries in some data structures (e.g. lists, structures) for your application to manage.
    For optimization, you can also sort the rows based on the highest score, this way, when you want to retrieve the highest scores, these are already situated at the beginning of the file. However, when you update the rows, you would have to switch places of rows, when a person will have a higher score than the previous item(s).
    Best regards!
    - Johannes

  • Game app high scores

    Morning all.
    I have a game app called Blitz.  (It is a version of Bejewelled.)  Every week, my high score sets reset to zero.  Fair enough ... except no-one else's does.  The same other high scores are there week after week, month after month.  Now, I think it unlikely that on every reset Splork gets exactly 365,050 again and Wall-nut gets exactly 151,350, etc, etc, so I can only assume they are not being reset.
    And my question is ... why would this be?  I am mystified.

    I'm not near the top score, so I can't think they think I'm cheating.
    I am connected up properly.  My scores get recorded fine.  Then, once a week, it says "time for a new high score" or something similar and the next game I play gets shown as my highest.  Then, through the week, I improve on this (or not, depending), and then it all happens again.  But everyone else's scores just stay there.
    The only explanation I can think of is that none of the others on the leader board have played again since recording their last score.  Maybe as soon as they do, their old score will go. 

  • Will this delete high scores?

    if i restore my ipod, will it delete my high scores on my apps?

    My highscores and data were retained on my last restore.

  • High Scores Board AS2

    Hello everyone,
    I know this is a subject that gets covered a lot as i have found a ton of tutorials that show a million dfferent ways to create a high scores board on a flash game.  So i decided to go out on a limb and pick a tutorial out to try.  Well I have now tried 3 different ones and have yet to get a working high scores board with my game.
    http://www.flashkit.com/tutorials/Games/How_to_c-Nick_Kuh-771/index.ph p
    That is the link to the most recent attempts to creat my high scores board.  When i finished everything the way the tutorial said it seemed like everything would work and then it just didnt.  After spending oh about 40 plus hours trying to make a high scores board i am getting very frustrated.  My game is scripted in AS2 and i have access to mysql and can set up unlimited databases.
    Can anyone please help me by sending an easy to follow tutorial that will work with AS2?  I would just like any kind of help right now as I feel ALL of my valid ideas have been ehausted.  Thanks in advance to anyone that can help!
    kapelskic

    Please don't cross post in these forums

Maybe you are looking for

  • Report Painter Confg  - Urgent

    Hiiii all of u can u plsss send me confg documentation with screen shots regarding Report Painter... My mail ID is - [email protected] Plssss send it to me friends my client is asking reguralry..it is very urgent for B/S and P& L reports thanks in ad

  • How to add new rows in Advanced Table along with attribute value?

    Hi, I have one advanced table that contain one messageChoice and messageTextInput field. I want to add new rows in advanced table. I can able to add rows using the AddMoreRows button in the footer of the advanced table, but I want to add attribute va

  • "condition already exist" – except it doesn't [FM 9.0p230]

    Here is the list of condition tags defined in the document I'm working on, extracted from a .mif copy:   <CTag `deleted_012006'>   <CTag `deleted_012007'>   <CTag `deleted_022007'>   <CTag `deleted_032006'>   <CTag `deleted_032007'>   <CTag `deleted_

  • How to set ListBox Option Group name

    hi, i populate h:selectOneListBox and it's done well, now i want to put optionGroup Label but it is not set, i try using SelectItemGroup with selectItem but it also not set. my jsp code   <h:selectOneListbox binding="#{TOPLIsting.bio_tab2lstbx}" id="

  • VAT on frieght

    Hi all, At the time of MIRO, VAT on frieght is calculating for Goods items and Planned delivery cost also. Can anybody help what could be the reason. Regards, Aman