Commit Graph

227 Commits

Author SHA1 Message Date
Admiral H. Curtiss
2c8f29f551 Cleaner database log output. 2014-05-31 20:42:47 +02:00
Admiral H. Curtiss
ca7d44339d Refactor GamespyDatabase for easier use and logging. 2014-05-31 20:13:02 +02:00
Admiral H. Curtiss
441c17ed94 Fix wrong parameter in profile server call to delete_session. 2014-05-31 20:10:43 +02:00
polaris
2102613829 Add new tables to storage server 2014-05-29 18:56:54 -04:00
polaris
338fb37459 Some error checking and bug fixes 2014-05-29 18:56:39 -04:00
polaris
aa4463aceb Add new game 2014-05-29 08:40:29 -04:00
polaris
a5ee7e9b31 Don't forward data to port 0
Also made the loop in qr more pythonic.
2014-05-28 19:11:15 -04:00
polaris
0a0e37cc11 Changed console detecting, added more debug code 2014-05-28 15:54:58 -04:00
Admiral H. Curtiss
88cf7e1c54 Storage: Clean up the table creation mess at the top, this should be much more readable and maintainable. 2014-05-28 18:15:43 +02:00
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