Commit Graph

209 Commits

Author SHA1 Message Date
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
Admiral H. Curtiss
675201d3bc Custom PWT Tournament file.
The PWT Tournament file has 12 slots for downloadable tournaments, only
3 of those were used in the English version. The remaining 9 were filled
with the six Asia-only tournaments as well as three of the debug
tournaments.

PWT Tournament format:
http://projectpokemon.org/forums/showthread.php?25121-PWT-Download-Tournaments

One tournament is 4628 bytes.
Last four bytes for both every individual tournament as well as the
whole file are a CRC16 CCITT checksum of all previous bytes and two null
bytes.

The added tournaments are still in Japanese, if someone wants to provide
me good translations for them feel free.
2014-05-24 20:08:32 +02:00
Admiral H. Curtiss
96e3f6145f Storage: Download files, WarioWare freezes on this for some reason, will check out the problem later. 2014-05-24 05:47:41 +02:00
Admiral H. Curtiss
acbbc527d9 Storage: Actually save uploaded files. 2014-05-24 05:28:04 +02:00
Admiral H. Curtiss
cb2ba136aa Loginticket is now stored, which allows the storage server to properly process GetMyRecords.
Also added a check so an user may only edit his own records, I dunno if
the official server actually enforced this but it makes sense to.
2014-05-24 04:02:52 +02:00
Admiral H. Curtiss
3cbb56b090 Storage: Implement CreateRecord. 2014-05-23 21:17:28 +02:00
Admiral H. Curtiss
47ca4ca2fc Storage: Implement GetSpecificRecords, fix errors in UpdateRecord. 2014-05-23 20:33:40 +02:00
Admiral H. Curtiss
50b67314f3 Storage: Basic file uploading support (doesn't actually store the uploaded file yet) 2014-05-23 19:05:26 +02:00
Admiral H. Curtiss
c8c0ad6997 Storage: Implement UpdateRecord.
WarioWare DIY can now successfully delete owned games.
2014-05-23 17:49:00 +02:00
Admiral H. Curtiss
6ebaff0475 Storage: Start getting WarioWare DIY to work. 2014-05-23 15:09:23 +02:00