Bug 343 - Score record file not found when updating the Scoreboard
Summary: Score record file not found when updating the Scoreboard
Status: RESOLVED FIXED
Alias: None
Product: Limited Linking Kindergarten
Classification: Unclassified
Component: Scoreboard (show other bugs)
Version: V3.0
Hardware: PC Linux
: Normal major
Assignee: qihuadong2-c
URL:
Depends on:
Blocks:
 
Reported: 2019-12-05 11:11 HKT by ruikangli2-c
Modified: 2019-12-05 15:52 HKT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ruikangli2-c 2019-12-05 11:11:54 HKT
I am having problems play Limited Linking Kindergarten on my Ubuntu system.  
When the game finished and click "score" button, the terminal throw exception of java.io.FileNotFoundException: src/data/1.txt (No such file or directory)
	at java.base/java.io.FileOutputStream.open0(Native Method)
	at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)
	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:237)
	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:158)
	at java.base/java.io.FileWriter.<init>(FileWriter.java:82)
	at GUI.GamePage.endGame(GamePage.java:137)
	at GUI.GamePage.stop(GamePage.java:238)
	at GUI.Timer.Timer.stop(Timer.java:131)
	at GUI.Timer.TimerThread.run(TimerThread.java:62)
Cannot find this file!

It seems the GUI.GamePage.endGame(GamePage.java:137) failed, the file path should be different in linux system.
Comment 1 ruikangli2-c 2019-12-05 11:20:58 HKT
Actual result: 
The scoreboard dose not show any score record.

Expected result: 
The scoreboard should show at least the score record of game of this time
Comment 2 qihuadong2-c 2019-12-05 15:52:18 HKT
The path to file is different in Linux. Change it and problem is resolved.