plaza-in-a-heatwave / Cadesim

The cadesim server and client, inspired by Puzzle Pirates.
1 stars 1 forks source link

Fix getdown.txt parsing #95

Closed plaza-in-a-heatwave closed 4 years ago

plaza-in-a-heatwave commented 4 years ago

Currently we skip a fixed number of lines in getdown.txt, I managed to break this just by adding a comment line. We should parse out the key-value pairs instead.

...
sc.readLine();                               # skip a comment (but what if there are more comment lines?)
//get server url from getDown.txt
String cadesimUrl = sc.readLine();
String[] url = cadesimUrl.split("=");
//read version from getDown.txt
String cadeSimVersion = sc.readLine();
...
David52920 commented 4 years ago

Fixed in commit 7837f6ba8e5f5ef637136825fe8255297d4d0274; accidentally wrote incorrect bug in commit description