Save game and load game??

i wrote a simple word base Rpg game, try to save some data and positions to a file, but dont know why it just allows me to save integer from 0-255?? why?? can anyone help? the code is following,
public void Save () throws IOException {
          x = in.readInt();
          y = in.readInt();
          FileOutputStream out = new FileOutputStream("save1");
          ObjectOutputStream o = new ObjectOutputStream(out);
          o.write(x);
          o.write(y);
          o.flush();
public Load () throws IOException {
          FileInputStream in = new FileInputStream("save1");
          ObjectInputStream i = new ObjectInputStream(in);
          int a = (int)i.read();
          int b = (int)i.read();

well...dont know what's the problem between you two.......but here is the codes.
import java.io.*;
public class Save {
          static int x = 0;
          static int y = 0;
     public void saveTo() throws IOException{
          DataOutputStream out = new DataOutputStream(new FileOutputStream("Tesing"));
          DataOutputStream s = new DataOutputStream(out);
          s.writeInt(x);
          s.writeInt(y);
     public static void main(String[] args) throws IOException{
          BufferedReader console = new BufferedReader(
               new InputStreamReader(System.in));
          System.out.print("How old are you?");
          String input = console.readLine();
          x = Integer.parseInt(input);
          System.out.print("How tall are you?");
          String input2 = console.readLine();
          y = Integer.parseInt(input2);
          Save sa = new Save();
          sa.saveTo();
import java.io.*;
public class Load {
     public static void main(String[] args) throws IOException{
          DataInputStream in = new DataInputStream(new FileInputStream("Tesing"));
          DataInputStream i = new DataInputStream(in);
          int a = i.readInt();
          int b = i.readInt();
          System.out.println(a + "\n" + b);
}

Similar Messages

  • Save and load game into and from binary file

    hello!
    I'm new to java and i'm doing a game at school.
    i�m doing the same game and i�m doing a "save" and "Load" game. i'm doing this to save the game:
    public void jMenuJogoSalvar_actionPerformed(ActionEvent e) {
    System.out.println("SAlvar o Jogo actual");
    FileOutputStream out = null;
    ObjectOutputStream s = null;
    int valorRet = jFileChooserSalvar.showSaveDialog(this);
    if (valorRet == jFileChooserSalvar.APPROVE_OPTION) {
    try {
    out = new FileOutputStream(jFileChooserSalvar.getSelectedFile().getAbsoluteFile());
    s = new ObjectOutputStream(out);
    s.writeObject(mesa);
    s.flush();
    catch (FileNotFoundException fNFExc) {
    System.out.println("FileNotFound");
    catch (IOException ioExc) {
    ioExc.printStackTrace();
    finally {
    try {
    if (s != null) {
    s.close();
    if (out != null) {
    out.close();
    catch (IOException ex) {
    and i'm getting this error:
    java.io.NotSerializableException: com.sun.java.swing.plaf.windows.WindowsFileChooserUI
    i have already implemented the method Serializable into the classes that i'm trying to write and the classes they use but i still have this.
    Tell me what to do .
    thanks for the time.

    Does the Object mesa have a com.sun.java.swing.plaf.windows.WindowsFileChooserUI
    object in side it? or does any of the object that are in side it have a com.sun.java.swing.plaf.windows.WindowsFileChooserUI
    object?
    If you post code please use the code button

  • Is nouveau good for playing 2d games and 3d games?

    Is nouveau good for playing 2d games and 3d games?I have heard from many linux users that it doesn't run games well.you have to install the nvidia-prop. driver for playing full 3d acceleration games.But the downside of nvidia-prop. driver is that it is not supported well by desktop environments like KDE and gnome as it is not a opensource driver and it cannot be modified.i'm thinking of switching from nvidia-prop. to nouveau. any suggestions will be accepted.

    Well, I previously ran the nvidia binary blob for many years, but the last couple of months I've been using nouveau and I can't say I've noticed any difference except perhaps in Blender when doing sculpting with very heavy subdivision levels. As for 2d I've noted absolutely no difference, certainly no slowdown with web animations either as someone stated. That said I'm not really doing alot of gaming, mainly some indie stuff and good old starcraft broodwars (using a VirtualBox win2k vm), so as far as taxing the 3d properties I guess only Blender applies but as I said it's been decent performance there. My card is a 9600GT.

  • Is it possible to save/export and load search queries?

    Currently, when I open the Find/Replace window (Apple+F), I see a long list over every query I have saved in the dropdown menu. This is not ideal for me because of the 100 queries, I might only use 1–10 for Project A, 11–20 for Project B, and so on. Is it possible to export and save a group of search queries in one file, a second group in a second file, and so on? I would like to be able to load only the search queries that are relevant to a specific project and have in mind something akin to the "save" and "load" options in the swatches panel and styles panels.
    I hope my question is clear, but please let me know if you would like additional information.

    Your saved queries are stored as individual xml files in the Find-Change Queries folder in the prefs written in your user profile/library. Queries in subfolders don't seem to show up in the dialog list. It seems reasonable that you might be able to save sets in subfolders, then copy them into the main folder when you want them, but doing it manually would be a major pain. If multi-find/change doesn't do it for you already, it might be worth asking in the scripting forum if anyone could help with a script that would.

  • How to save data and load data from an arrayList ??

    i got a run time problem .....when i try to save my data to a file and load a data from a file....i got some kind of error like that
    Please enter your CD`s title : ivan
    Please enter your CD`s Artist/GroupName : diw
    Please enter your CD`s year of release : wid
    InputMismatchException error occurred (the next token does not match the Integer regular expression, or is out of range) java.util.InputMismatchException
    Invaild value....Please enter the value between 1000 & 9999
    Please enter your CD`s MusicGenre(e.g.: Jazz, Blues, Funk, Classical, Rock, etc...) : w
    Please enter your CD`s comment : w
    Do you have another Cd ? (Y/N) : n
    Saving to file
    java.io.EOFException
         at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at Demo.loadDate(Demo.java:49)
         at Demo.readDataFromConsole(Demo.java:103)
         at Demo.main(Demo.java:173)
    Exit code: 0
    import java.util.ArrayList;
    import java.io.*;
    public class Demo{
         readOperation theRo = new readOperation();
         errorCheckingOperation theEco = new errorCheckingOperation();
         ArrayList<MusicCd> MusicCdList;
         public Demo()
         private void heading()
              System.out.println("\tTesting read data from console, save to file, reopen that file\t");
         private void saveDate()
              MusicCdList = new ArrayList<MusicCd>( ); 
              try
                   File f = new File("jessica.txt");
                   FileOutputStream fos = new FileOutputStream(f);
                   ObjectOutputStream oos = new ObjectOutputStream(fos);
                   for( MusicCd s : MusicCdList)
                   oos.writeObject(s);
                   oos.close();
              catch (IOException ioe)
                   ioe.printStackTrace();
         private void loadDate()
              MusicCdList = new ArrayList<MusicCd>( );  
              try
                   File g = new File("jessica.txt");
                   FileInputStream fis = new FileInputStream(g);
                   ObjectInputStream ois = new ObjectInputStream(fis);
                   ArrayList<String> stuff = (ArrayList<String>)ois.readObject();
                   for( String s : stuff ) System.out.println(s);
                   ois.close();
              } catch (Exception ioe)
                   ioe.printStackTrace();
         private void readDataFromConsole()
         //private void insertCd()
           ArrayList<MusicCd> MusicCdList = new ArrayList<MusicCd>( ); 
            readOperation theRo = new readOperation();
            errorCheckingOperation theEco = new errorCheckingOperation();
            MusicCd theCd;
            String muiseCdsTitle;
            String muiseCdsArtistOrGroupName;
            int muiseCdsYearOfRelease;
            int validMuiseCdsYearOfRelease;
            String muiseCdsMusicGenre;
            String muiseCdsAComment;
              while(true)
                    String continueInsertCd = "Y";
                   do
                        muiseCdsTitle = theRo.readString("Please enter your CD`s title : ");
                        muiseCdsArtistOrGroupName = theRo.readString("Please enter your CD`s Artist/GroupName : ");
                        muiseCdsYearOfRelease = theRo.readInt("Please enter your CD`s year of release : ");
                        validMuiseCdsYearOfRelease = theEco.errorCheckingInteger(muiseCdsYearOfRelease, 1000, 9999);
                        muiseCdsMusicGenre = theRo.readString("Please enter your CD`s MusicGenre(e.g.: Jazz, Blues, Funk, Classical, Rock, etc...) : ");
                        muiseCdsAComment  = theRo.readString("Please enter your CD`s comment : ");
                        MusicCdList.add(new MusicCd(muiseCdsTitle, muiseCdsArtistOrGroupName, validMuiseCdsYearOfRelease ,
                        muiseCdsMusicGenre, muiseCdsAComment));
                        MusicCdList.trimToSize();
                        //saveToFile(MusicCdList);
                        continueInsertCd = theRo.readString("Do you have another Cd ? (Y/N) : ");
                   }while(continueInsertCd.equals("Y") || continueInsertCd.equals("y") );
                   if(continueInsertCd.equals("N") || continueInsertCd.equals("n"));
                                        System.out.println("Saving to file ");
                                                    //MusicCdList.add(new MusicCd(muiseCdsTitle, muiseCdsYearOfRelease));     
                                                    saveDate();
                                        loadDate();
                                  break;
         public static void main(String[] args)
              Demo one = new Demo();
              one.readDataFromConsole();
              how should i fix it if i want to reach the save to a file and load from a file purpose??
    thx all
    for much more understand of this program
    import java.io.Serializable;
    public class MusicCd implements Serializable
         private String musicCdsTitle;
         private String artistOrGroupName;
            private int yearOfRelease;
         private String musicGenre;
         private String aComment;
         public MusicCd()
              musicCdsTitle = "";
              artistOrGroupName = "";
              yearOfRelease = 1000;
              musicGenre = "";
              aComment = "";
         public MusicCd(String newMusicCdsTitle, String newArtistOrGroupName, int newYearOfRelease,
         String newMusicGenre, String aNewComment)
              musicCdsTitle = newMusicCdsTitle;
              artistOrGroupName = newArtistOrGroupName;
              yearOfRelease = newYearOfRelease;
              musicGenre = newMusicGenre;
              aComment = aNewComment;
         public String getTitle()
              return musicCdsTitle;
         public String getArtistOrGroupName()
              return artistOrGroupName;
         public int getYearOfRelease()
              return yearOfRelease;
         public String getMusicGenre()
              return musicGenre;
         public String getAComment()
              return aComment;
         public void setTitle(String newMusicCdsTitle)
              musicCdsTitle = newMusicCdsTitle;
         public void setArtistOrGroupName(String newArtistOrGroupName)
              artistOrGroupName = newArtistOrGroupName;
         public void setYearOfRelease(int newYearOfRelease)
              yearOfRelease = newYearOfRelease;
         public void setMusicGenre(String newMusicGenre)
              musicGenre = newMusicGenre;
         public void setAComment(String aNewComment)
               aComment = aNewComment;
         public boolean equalsName(MusicCd otherCd)
              if(otherCd == null)
                   return false;
              else
                   return (musicCdsTitle.equals(otherCd.musicCdsTitle));
         public String toString()
              return("Title: " + musicCdsTitle + "\t"
              + "Artist/GroupName: " + artistOrGroupName + "\t"
              + "Year of release: " + yearOfRelease + "\t"
              + "Music Genre: " + musicGenre + "\t"
              + "Comment: " + aComment + "\t" );
    }import java.util.*;
    public class readOperation{
         public String readString(String userInstruction)
              String aString = null;
              try
         Scanner scan = new Scanner(System.in);
                   System.out.print(userInstruction);
                   aString = scan.nextLine();
              catch (NoSuchElementException e)
                   //if no line was found
                   System.out.println("\nNoSuchElementException error occurred (no line was found) " + e);
              catch (IllegalStateException e)
                   // if this scanner is closed
                   System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
              return aString;
         public char readTheFirstChar(String userInstruction)
              char aChar = ' ';
              String strSelection = null;
              try
                   //char charSelection;
         Scanner scan = new Scanner(System.in);
                   System.out.print(userInstruction);
                   strSelection = scan.next();
                   aChar = strSelection.charAt(0);
              catch (NoSuchElementException e)
                   //if no line was found
                   System.out.println("\nNoSuchElementException error occurred (no line was found) " + e);
              catch (IllegalStateException e)
                   // if this scanner is closed
                   System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
              return aChar;
         public int readInt(String userInstruction) {
              int aInt = 0;
              try {
                   Scanner scan = new Scanner(System.in);
                   System.out.print(userInstruction);
                   aInt = scan.nextInt();
              } catch (InputMismatchException e) {
                   System.out.println("\nInputMismatchException error occurred (the next token does not match the Integer regular expression, or is out of range) " + e);
              } catch (NoSuchElementException e) {
                   System.out.println("\nNoSuchElementException error occurred (input is exhausted)" + e);
              } catch (IllegalStateException e) {
                   System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
              return aInt;
    import java.util.Scanner;
    import java.util.InputMismatchException;
    import java.util.NoSuchElementException;
    public class errorCheckingOperation
         public int errorCheckingInteger(int checkThing, int lowerBound, int upperBound)
               int aInt = checkThing;
               try
                    while((checkThing < lowerBound ) || (checkThing > upperBound) )
                         throw new Exception("Invaild value....Please enter the value between  " +  lowerBound + " & " +  upperBound );
               catch (Exception e)
                 String message = e.getMessage();
                 System.out.println(message);
               return aInt;
           public int errorCheckingSelectionValue(String userInstruction)
                int validSelectionValue = 0;
                try
                     int selectionValue;
                     Scanner scan = new Scanner(System.in);
                     System.out.print(userInstruction);
                     selectionValue = scan.nextInt();
                     validSelectionValue = errorCheckingInteger(selectionValue , 1, 5);
               catch (NoSuchElementException e)
                   //if no line was found
                   System.out.println("\nNoSuchElementException error occurred (no line was found) " + e);
              catch (IllegalStateException e)
                   // if this scanner is closed
                   System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
              return validSelectionValue;
    }Message was edited by:
    Ivan1238
    Message was edited by:
    Ivan1238

    You should thoroughly check you code. It's full of problems.
    For example in saveDate():
    You create a new empty ArrayList and then want so save it's contents. I guess, the file size is always 0.
    For example in loadDate():
    Since you read from an empty file you get an EOFException. This is ok and you should catch and treat the exception properly.
    You try to read the ArrayList instead of single MusicCd objects, although in saveDate you saved the single MusicCD objects. You can only read from the file what to saved in it before.
    I suggest to write the size of the ArrayList as first object in the file. Then you know how much you can expect to read when loading from the file.
    private void saveDate()
              try
                   File f = new File("jessica.txt");
                   FileOutputStream fos = new FileOutputStream(f);
                   ObjectOutputStream oos = new ObjectOutputStream(fos);
                            oos.writeObject(new Integer(MusicCdList.size()));
                   for( MusicCd s : MusicCdList)
                   oos.writeObject(s);
                   oos.close();
              catch (IOException ioe)
                   ioe.printStackTrace();
         }

  • Games (and just games) crashinng on brand new iPhone 5

    So I just got an iPhone 5, and all of my apps work and look amazing - except for the high-end games - all of which crash before I can get to the starting menu. The phone's amazing screen is one of the reasons why I purchased it, so this is pretty disappointing. I paid cash for several of the games, including Gangstar: Vegas, which is $6.99. Other games of which I've experienced issues are Real Racing 3, Fast and Furious 6, and Modern Combat 4. I haven't had more than two of these games on my phone simultaneously, and I don't have many other apps, so space isn't an issue. I've attempted deleting and reinstalling the games, and I've tried hard-resetting my phone (holding the lock and home buttons until the screen turns black), and neither have worked. Since it's a brand new phone, it's updated to IOS 6.1.4. Is anyone else familiar with this issue? Is there a way to fix it?
    ~ Dave

    Huh. I may try that. I know that some of the apps (Gangstar: Vegas, Real Racing 3, etc.) don't have free versions. I'm actually resyncing my phone currently, so hopefully that'll do something. I'll let you know!

  • Puzzle Game and new Game Problem

    Hello Java Programmers,
    Once again I have encountered a problem with my ongoing puzzle game. I have completed it all. Now I want my user to be able to start a new game in after they win. I tried repaint and update method with JFrame but it deosn't reshuffle the buttons. How can I do that. The code geos below.
    [/b]
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.JOptionPane;
    public class PuzzleGame{
       String[] btn_Labels = {"1","2","3","4","5","6","7","8","9",
                            "10","11","12","13","14","15"," "};
       String[] labels = {"1","2","3","4","5","6","7","8","9",
                            "10","11","12","13","14","15"};
       private final int ONE = 1, TWO = 2, THREE = 3, FIVE = 5;
       private boolean WIN_STATE = false; 
       private JButton b[];
       public String clicked_btn_label = "";
       //Constructor method.
       public PuzzleGame(){
          showSplashScreen();
          initGame();
       public static void main(String args[]){
          PuzzleGame game = new PuzzleGame();
       //When a new Game started labels of buttons are shuffled using this method.
       public void shuffleNumbers(){
          String temp = null;   
          for(int j=0; j<16; j++){
          int k = (int)(Math.random()*16);
          temp = btn_Labels[j];
          btn_Labels[j] = btn_Labels[k];
          btn_Labels[k] = temp;           
       //Game initialization method.
       public void initGame(){
          b = new JButton[16];
          JPanel p = new JPanel();
          JFrame frame = new JFrame();
          shuffleNumbers();
          for(int i=0; i<16; i++){
             b[i] = new JButton();
             b.setText(btn_Labels[i]);
    b[i].setActionCommand(""+(i+1));
    for(int i=0; i<16; i++){
    b[i].addActionListener( new ActionListener(){
    public void actionPerformed(ActionEvent e){
    clicked_btn_label =(String)e.getActionCommand();
    doSwapping();
    checkWin();
    p.add(b[i]);
    p.setLayout(new GridLayout(4,4));
    frame.getContentPane().add(p);
    frame.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e){
    System.exit(0);
    Dimension dm = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (dm.width - 230)/2;
    int y = (dm.height - 240)/2;
    frame.setBounds(x,y,320,240);
    frame.setSize(340,240);
    frame.setVisible(true);
    //This method swaps the clicked button with the empty button if it doesn't violate rule.
    public void doSwapping(){
    int num = Integer.parseInt(clicked_btn_label);
    String temp;
    if( (num + ONE <= 16) && b[num].getText() == " " && num % 4 != 0){
    temp = b[num].getText();
    b[num].setText(b[num-ONE].getText());
    b[num-ONE].setText(temp);
    else if((num - TWO >= 0) && b[num-TWO].getText() == " " && ((num - ONE) % 4 != 0)){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num-TWO].getText());
    b[num-TWO].setText(temp);
    else if( (num + THREE < 16) && b[num+THREE].getText() == " "){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num+THREE].getText());
    b[num+THREE].setText(temp);
    else if( (num - FIVE >= 0) && b[num-FIVE].getText() == " "){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num-FIVE].getText());
    b[num-FIVE].setText(temp);
    // else{}
    public void checkWin(){
    WIN_STATE = true;
    for(int i=0; i<15; i++){
    if( b[i].getText() != labels[i])
    WIN_STATE = false;
    if(WIN_STATE == true){
    JOptionPane.showMessageDialog(null,"Congratulations You Have won the Game!","You Win",JOptionPane.INFORMATION_MESSAGE);
         initGame();
    public void showSplashScreen(){
    JWindow w = new JWindow();
    JPanel p = (JPanel)w.getContentPane();
    JLabel l = new JLabel(new ImageIcon("splash.jpg"));
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (d.width - 230)/2;
    int y = (d.height - 240)/2;
    p.add(l);
    w.setBounds(x,y,320,240);
    w.setVisible(true);
    try{
    Thread.sleep(10000);
    catch(Exception e){
    w.setVisible(false);
    [/b]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Sorry for violation. I would like to add a menubar to the application containing a single menu button for new game. adding a menubar is simple but how can i reshuffle the buttons using methods like update etc. or any other way.

  • How to save a game  and then load

    My final project of BSCS (Bachelor of Science in Computer Science) is a Multiplayer online Board game...Distributed Ludo...
    This project is in its final steps and I�m facing some difficulties.
    I do not know how to save the game and load it again. Can anybody guide me to the process?

    Saving a game is just persisting the data required for the game.
    Loading a game means reading the saved data and setting the attributes of the game (and player and ...) to start exactly the point where it was saved.
    So the steps to save are
    1. Identify the data necessary for retaining the same state when needed.
    2. Decide the data file format and structure.
    3. Get the snapshot of necessary attributes
    4. Save the data using APIs
    Steps to load are
    1. Read the data using APIs.
    2. Set the game attributes.
    3. Update the model and view accordingly.
    Hope this helps.

  • Playing game and all of a sudden phone went silent

    just got the new phone don't quite know all the functions yet. was playing a game and the game went silent.  can't get my sound back and the mute is not enabled

    I think i read on the web that you need to buy a bag of food or jewels before it eats you in again.

  • Liquify Cursor disappears when Saving and Loading Mesh (CC 2014.2.2)

    Hello.
    I'm using Photoshop CC 2014.2.2 for Mac on a perfectly built hackintosh (Yosemite, i7-4770K, GTX770, Intuos5 L, 32Gb RAM, 2 monitors).
    The arrow cursor disappears randomly when dragged over the Save Mesh or Load Mesh dialogues. It's not that the arrow cursor disappears completely. Actually, instead of switching from liquify cursor to arrow cursor as it should, it stays a circle and I can see it behind the save/load mesh window. In order to make the arrow appear in front of the save/load mesh, I have to move it out of it, and carefully move it back in. If I drag the save/load mesh window to an area of the screen clear of the liquify filter window or to my second screen, the problem goes away.
    Also, when liquifying, the cursor is a little laggy, like at a low frame rate and behind my pen. I can liquify with no problem, but I can't remember if this is the way the liquify cursor behaves now that the it is GPU accelerated.
    All these problems go away if I disable "use graphics processor", but that's a no go for me. I have tried both OS X Default Graphic Driver and NVIDIA Web Driver, but it makes no difference.
    Any ideas?
    THANKS!

    I've noticed it happens particularly when the arrow touches any of the text input fields, among other ways I haven't identified yet. The save mesh and load mesh are the only dialogs across Photoshop on which this problem happens.
    Notice that the blue cursor drawn by me is where the cursor should be, and note that the liquify cursor can be seen behind the open mesh dialogue. In this case I have to draw the cursor outside of the open window, and drag it back in making sure I don't touch the search field.

  • I can not buy game money in game. there is always told me, this is not a test user account

    game name:三国来了
    game supplier:redatoms
    I want to purchase game money in this game, but system show below box to me. I can't purchase even I still have money in my apple ID account.
    I can not find this game in game center....
    I tried several method to recover it, but useless:
    a. I have logged out my apple ID in game center, and log in
    b. delete game and download game again via apple store in itunes.
    pls help me to solve it.
    thanks

    Have you went to the developer's support site/contacted the developer?
    Is the iPod jailbroken?
    Do you have an iOS Beta on the iPod?
    See:
    iOS: Troubleshooting applications purchased from the App Store

  • Tiny Troopers 2 (iPhone and iPad Game) saves are not being synced to both devices. No option is given to load the iPhone save onto my iPad. Why is this?

    Tiny Troopers 2 (iPhone and iPad Game) saves are not being synced to both devices. No option is given to load the iPhone save onto my iPad. Why is this? Can anyone explain or help me with this problem?

    SkyzThaLimit wrote:
    Normally it gives the option via iCloud sync (infinity blade, tower defense)
    It is an option that the app developer has to decide to offer.

  • Loading and Saving Game

    I am doing a shooting game like a plane shooting aliens (like asteroids) for sch assignment. Very urgent coz deadline is Monday.
    I don't know how to save and load the game such that the image of my plane's position, score, stages etc. I don't know what class to use for saving and loading.....
    Thank you to those who read about my problem.

    If the game has levels you could simplify your saving by only saving between levels. with this you only need to save a small amount of info like highest level, player name and so on.
    if you want to save at any point of the game you will need to save all your info which is a bit complicated if you want to save images and such (in that case i recomend only saving image paths as strings and not the images themselfs).
    In an application i created i save Serializable objects in an xml format like this
    //lets call your object game which includes all the objects that make
    //up the game info
    private void save(Game game,String fileName) throws IOException
            //save the game in an ".xml" file
         if(!fileName.endsWith(".xml"))
              fileName=fileName+".xml";
            FileOutputStream out=new FileOutputStream(fileName);
            BufferedOutputStream outstream=new BufferedOutputStream(out);
            XMLEncoder encoder=new XMLEncoder(outstream);
            //write the data into the file
            encoder.writeObject((Game)game);
            encoder.close();
         outstream.close();
            out.close();

  • Game Center "Games" and "Friends Tabs loads Forever

    Well i can enter Game Center but when i go to "Friends" tab or "Games" tab it just loads forever, if i try with challenges i see the "no challenge" legend some with the turns tab (no turns) since i dont own a turn game and have no challenge from other friends, but i cant see Friends and Games tab since they wont stop loading.
    a specific problem with it is that i tried to play Clash of Clans after having deleted it (but not from game center) and the game takes it as a new one as it says im not connected to Game Center.

    Well it didn't work, it still loads forever the "Games" and "Friends" tabs, but my brother came yesterday and try to help me, i tried logging out of game center but when i go to settings>game center and log out, when i go back to settings (top left button) then go back to Game Center it says im logged in (as if i had never logged out) so my brother tried to log on his Game Center account after i logged out but then just started to load forever his account and when i tried to open the game center program it would just white screen with the loading disk forever, after doing what you told me things went back as before (my account, i can open Game Center but Friends and Games tabs wont load and games will act as if i were not connected to Game Center).
    Thanks for everything tho guys i hope i can solve this issue its driving me mad!.

  • Pogogame only loading the chat but not the game and it is a firefox problem as desltop and pogo say pogo os working right

    when I go into Pogo to play my games many when load only show the chat for that game but no game appears I contacted pogo they went in said loads all the game just fine when I load on my desk top it loads ok and also when use internet explorer it loads just fine so must be a firefox glitch this is on my laptop not desk top comp did not see anything to click was on laptop I even called Dell and they tried there best to fix it and ended up saying is firefox Please can you fix this do not want to deleetfor your help firefox and go back to internet explorer as love firefox but for this problem thanks

    I have just had a confirmation from my bank that '''they''' have a problem with FF8
    They have advised clients to revert to FF3.6 until they adjust their system to run on FF8.

Maybe you are looking for