well in ioclient i tried deleteing this /* ( commenting this out )which was around this code.
Code:
public PlayerSave loadGame(String playerName, String playerPass)
{
PlayerSave tempPlayer;
try {
ObjectInputStream in = new ObjectInputStream(new FileInputStream("./savedGames/"+playerName+".dat"));
tempPlayer = (PlayerSave) in.readObject();
in.close();
}
catch(Exception e){
return null;
}
return tempPlayer;
}
still no luck tho it wont save :/
error when i log out
Code:
Magic.cfg: file not found.
Starting server on 0.0.0.0:43594
ClientHandler: Accepted from localhost:1365
java.io.FileNotFoundException: .\Characters\rawr.txt (The system cannot find the
file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at Player.loadGame(Player.java:733)
at IOClient.process(IOClient.java:234)
at PlayerHandler.processIOClients(PlayerHandler.java:472)
at IOThread.run(IOThread.java:11)
at java.lang.Thread.run(Unknown Source)
rawr Has Logged In
java.io.FileNotFoundException: .\Characters\rawr.txt (The system cannot find the
file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at Player.loadGame(Player.java:733)
at PlayerHandler.process(PlayerHandler.java:737)
at Server.main(Server.java:70)
java.io.FileNotFoundException: .\Characters\rawr.txt (The system cannot find the
file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at Player.loadGame(Player.java:733)
at PlayerHandler.removePlayer(PlayerHandler.java:921)
at PlayerHandler.process(PlayerHandler.java:744)
at Server.main(Server.java:70)
rawr has logged out.
ClientHandler: Accepted from localhost:1366
java.io.FileNotFoundException: .\Characters\rawr.txt (The system cannot find the
file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at Player.loadGame(Player.java:733)
at IOClient.process(IOClient.java:234)
at PlayerHandler.processIOClients(PlayerHandler.java:472)
at IOThread.run(IOThread.java:11)
at java.lang.Thread.run(Unknown Source)
rawr Has Logged In
java.io.FileNotFoundException: .\Characters\rawr.txt (The system cannot find the
file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at Player.loadGame(Player.java:733)
at PlayerHandler.process(PlayerHandler.java:737)
at Server.main(Server.java:70)
java.io.FileNotFoundException: .\Characters\rawr.txt (The system cannot find the
file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at Player.loadGame(Player.java:733)
at PlayerHandler.removePlayer(PlayerHandler.java:921)
at PlayerHandler.process(PlayerHandler.java:744)
at Server.main(Server.java:70)
rawr has logged out.