Commit Graph

16 Commits

Author SHA1 Message Date
Jeremy Rand b8b9089aa2 Start trying to extract the global high scores code so it can be turned into a generic library. 2022-05-25 21:50:38 -04:00
Jeremy Rand 40da3b3434 Do not consider a network connection problem a soft error. Bump the version number for an upcoming bug fix release. 2021-07-07 20:11:05 -04:00
Jeremy Rand 2a43113f4b Add a timeout to the TCP connect state. Prior to this, it was possible to block (indefinitely?) if there is a network glitch when trying to upload a score. 2021-07-03 16:42:41 -04:00
Jeremy Rand 739d89add0 Display the position of the players score after upload. 2021-06-28 23:12:06 -04:00
Jeremy Rand 08be64a61c Add some more prompts to be clearer when the network is busy. Allow the user to retry uploading their score. Even if things go wrong, add a retry mechanism so that we will try to get the network connection up after three minutes. 2021-06-28 00:03:32 -04:00
Jeremy Rand ea085174eb Also include the position of the score and the number of scores in the response to setting a score. Bump the version number. This will become a new beta build soon. 2021-06-27 15:48:57 -04:00
Jeremy Rand abe5f0c72b Uploading scores is working now. Add timeouts for reads and the close operation so we don't end up stuck in any one state forever. Improve the error handling and provide an error code for debugging purposes if there is a problem. 2021-06-05 23:34:30 -04:00
Jeremy Rand 2c511fe33a Add some todos for the networking code. 2021-06-04 00:42:39 -04:00
Jeremy Rand 4e456cab15 Major rework because I am out of code space in the main segment. Move some stuff around in the C code to get them into other segments. Change the network code so that most of its globals are actually allocated dynamically when network functionality is detected. Change the network state machine so the connection is closed and re-opened on each transaction rather than trying to hold the connection open. It was failing during the game because the network is not being polled. Provide some visual feedback if there is a network problem in the game itself.
Re-opening the connection isn't working for some reason but this is getting pretty close to working.
2021-06-04 00:41:11 -04:00
Jeremy Rand fb36a28e98 With this commit, processing of the result of a score set request is working. The connection seems to drop during the game and I don't want to poll the network during the game so the next steps will be to close and re-open the connection between games. 2021-06-03 00:32:56 -04:00
Jeremy Rand 9a77919702 Update some TODOs in the code. 2021-06-02 00:39:05 -04:00
Jeremy Rand 14cbdbac2b Fix a problem where the players initials were not going to the correct place in the global high score request. Make the set high score request message a multiple of 2. It seems that the hash functions do not agree between the GS and the server when the request is an odd number of bytes. 2021-06-02 00:33:53 -04:00
Jeremy Rand 35930c72e2 Add the code to send high scores to the server, although it is being rejected right now due to a md5 hash problem in the request that I don't yet understand. 2021-06-01 23:53:52 -04:00
Jeremy Rand 5e26684fd2 Retrieve global high scores from the Internet and display them in the game. 2021-06-01 23:13:14 -04:00
Jeremy Rand 4b76293125 Add code to load Marinetti and the Hash tool if present and bring up the network if possible. 2021-06-01 00:35:47 -04:00
Jeremy Rand 8d95d0a674 Bump the version to 1.9 since this is work towards v2.0. Add the structs for the messages to a server side high score list. Add the hash tool to the boot image for network testing. The requests will use hashes to validate that they come from the game. 2021-05-28 00:03:04 -04:00