Commit Graph

218 Commits

Author SHA1 Message Date
polaris
5a2bca3a57 Added some exception catching for debugging 2014-05-28 11:26:58 -04:00
Admiral H. Curtiss
7ff0467d2a Storage: Missed a Mario Kart column.
I need to do something about that table creation mess at the top
there...
2014-05-28 02:39:56 +02:00
polaris
4f7911ef95 Wait before deleting the QR session 2014-05-27 20:38:03 -04:00
Admiral H. Curtiss
1ba0e74881 Merge branch 'master' of https://github.com/polaris-/dwc_network_server_emulator 2014-05-27 20:22:32 +02:00
Admiral H. Curtiss
f3e4bb57c4 Storage: FriendInfo table for Mario Kart Wii. 2014-05-27 20:22:21 +02:00
polaris
d77f31725f Fixed error in handling data in gamestats 2014-05-27 14:01:05 -04:00
polaris
034a17d535 Fix some exceptions 2014-05-27 13:53:21 -04:00
Admiral H. Curtiss
c6cb8d0f6f NAS: Prevent download path attack. 2014-05-27 15:01:59 +02:00
polaris
e7ff9e5a67 Fix error in gamestats server from recent changes 2014-05-27 08:38:46 -04:00
polaris
672c698bec Avoid possible error if profile_data is not set 2014-05-27 08:09:33 -04:00
polaris-
cddc344d2a Merge pull request #27 from msoucy/ref/python/function-list
Just use a for loop instead of creating tons of wrapper functions
2014-05-27 08:04:41 -04:00
polaris-
72dd556447 Merge pull request #26 from msoucy/ref/python/context-managers
Make use of context managers to safely close files
2014-05-27 08:03:08 -04:00
polaris-
7879245484 Merge pull request #25 from msoucy/ref/python/lists
Use Python list comprehensions and literals when possible
2014-05-27 08:02:11 -04:00
Matt Soucy
293f07d25d Get rid of an unneeded lambda 2014-05-27 03:11:08 -04:00
Matt Soucy
3c12f33bae Just use a for loop instead of creating tons of wrapper functions 2014-05-27 03:07:24 -04:00
Matt Soucy
3eaf22b1a6 Make use of context managers to safely close files 2014-05-27 02:38:48 -04:00
Matt Soucy
a4870a82ac Use the builtin string module instead of roll-your-own 2014-05-26 23:19:48 -04:00
Matt Soucy
57c2265b69 Take advantage of default bool conversions 2014-05-26 23:19:48 -04:00
Matt Soucy
ca4b4683ba Take advantage of boolean operators 2014-05-26 23:19:48 -04:00
Matt Soucy
2c631489e5 More list literals (listerals?) 2014-05-26 23:19:48 -04:00
Matt Soucy
c95bebb911 Use list literals instead of constantly appending 2014-05-26 23:19:48 -04:00
Matt Soucy
692649485f Pass list literals into functions to create gamespy message 2014-05-26 23:19:48 -04:00
Matt Soucy
d1a6309875 Use lists instead of more roundabout methods 2014-05-26 23:19:47 -04:00
Matt Soucy
a9b019825a Use list comprehensions instead of manual creation
Also does some changes to use comprehensions and join instead of manually reimplementing it
2014-05-26 23:19:47 -04:00
Admiral H. Curtiss
e7837fbd4d Match the length of some things to the real server's. 2014-05-27 04:00:39 +02:00
Admiral H. Curtiss
2b9582d981 QR: Super minor but according to my dumps there's always two 0s there. 2014-05-27 03:47:11 +02:00
Admiral H. Curtiss
1ed9b24e8a NAS: Change some headers to be more accurate.
Doesn't appear to actually matter for most games but who knows, maybe
some games need the accurate data?
2014-05-27 03:04:58 +02:00
Admiral H. Curtiss
a02dab53fa The same custom PWT tournaments for FIGS. 2014-05-27 00:15:20 +02:00
Admiral H. Curtiss
f38541d3af Some of the PWT Tournaments didn't show up on Black 2, this should fix that. 2014-05-26 19:45:19 +02:00
Admiral H. Curtiss
93fd74579b Dumb error, cursor.execute() doesn't handle single values. 2014-05-26 02:24:55 +02:00
Admiral H. Curtiss
c936c819ce Storage: Change how fileids and paths are handled to closer match the real server. 2014-05-26 02:01:04 +02:00
polaris
738205b2fd Another typo... 2014-05-25 18:24:44 -04:00
polaris
9f683206ca Fix typo 2014-05-25 18:23:22 -04:00
polaris
5fd8d97c59 Added some error handling to the storage server 2014-05-25 18:22:27 -04:00
Admiral H. Curtiss
2842a936f6 Start storage server with other servers. 2014-05-25 23:00:42 +02:00
Admiral H. Curtiss
60d70d1cdc Storage: Reject big files. 2014-05-25 22:54:03 +02:00
Admiral H. Curtiss
3db4da2419 Storage: Fix accessing of non-existing files. 2014-05-25 21:47:46 +02:00
Admiral H. Curtiss
aa1dcf84c7 Storage: Implement LIMIT, fix a few small issues. 2014-05-25 21:29:43 +02:00
polaris
65fe2e39be Tried to fix base64 decoding in NAS for ingamesn
Examples of names that broke it before: D-9fAA**, MKIw8zC-MOwwuQ**,
MGowizB-, xXzWOP8e-w3-HCYF.
2014-05-25 09:20:08 -04:00
polaris
17e55933e1 How did this ever work??? 2014-05-25 08:43:32 -04:00
polaris
13b00ae85f Remove invalid commands from buffer
This should hopefully solve the issue from 4809beaad7.
2014-05-25 08:34:56 -04:00
polaris
684e2a2c94 Revert "abort decoding query string on bad values"
This reverts commit 4809beaad7.
2014-05-25 08:22:48 -04:00
Toad King
4809beaad7 abort decoding query string on bad values 2014-05-25 00:10:33 -04:00
Toad King
4aede9bb33 add stub for conntest to nas server 2014-05-25 00:00:41 -04:00
Toad King
827030f0d6 fix infinite loop with malformed messages 2014-05-25 00:00:09 -04:00
Admiral H. Curtiss
1364193e08 Storage: Tables for other WarioWare regions. 2014-05-25 05:38:04 +02:00
Admiral H. Curtiss
515ef9dd87 Storage: Fix timestamps being stored incorrectly. 2014-05-25 05:14:10 +02:00
Admiral H. Curtiss
1aadec2f47 Storage: This should make downloading of friend crates work in WarioWare but I haven't tested part of it yet. 2014-05-25 04:53:30 +02:00
polaris
9a134305ad Fixed bug with logging out 2014-05-24 20:44:50 -04:00
Toad King
6cca3e2dea change threading for UDP servers to only send data on threads 2014-05-24 15:26:59 -04:00