Commit Graph

267 Commits

Author SHA1 Message Date
polaris
35e8cd2135 Generic gamestats http server 2014-06-29 22:33:33 -04:00
Admiral H. Curtiss
876689c259 Avoid calling initialize_db() on every database connection, to hopefully improve preformance and log spam. 2014-06-17 20:52:30 +02:00
Admiral H. Curtiss
97e1c01a5c Profile Server: Return Error on invalid authtoken. 2014-06-17 20:11:57 +02:00
Admiral H. Curtiss
9882da3af3 Combine user login in profile and gamestats. 2014-06-17 19:45:19 +02:00
Admiral H. Curtiss
8e535e005b Actually return an error when authp fails. 2014-06-15 20:03:23 +02:00
Admiral H. Curtiss
982c70eba7 Better handling of getpd when no profile is found, maybe?
Honestly I'm not sure about this one but it's better than logging three
errors and throwing an exception.
2014-06-15 07:01:14 +02:00
Admiral H. Curtiss
68b6871754 logger != log, can't use the same syntax here... 2014-06-15 06:46:52 +02:00
Admiral H. Curtiss
72a5f99b1d Should fix #40 and similar errors with extra backslashes. 2014-06-15 06:46:50 +02:00
Admiral H. Curtiss
2600a98f06 Fixes #39 2014-06-14 16:44:28 +02:00
polaris
45060abc19 Return all keys if none specified (2)
Didn't test before. This works now though.
2014-06-09 11:15:17 -04:00
polaris
ac4d659e75 Return all keys if none specified 2014-06-09 09:10:00 -04:00
polaris
173998c88b Fix problem with parsing data in gamestats 2014-06-08 12:57:53 -04:00
polaris
ed3220e500 Force encoding on data 2014-06-08 10:00:03 -04:00
polaris
c22dd4e137 Tried to fix report, added preinit to natneg 2014-06-07 07:08:18 -04:00
polaris
de70413b6a Start stats server on startup 2014-06-06 16:27:17 -04:00
polaris
607b0f56f2 Changed response for report 2014-06-06 05:27:32 -04:00
polaris
aebc1757de I am no longer a game 2014-06-05 06:58:32 -04:00
polaris
e661fa7466 Decrypt entire command in gamestats
Previously it would decrypt by packet, now it will wait for the entire
packet before trying to decrypt. This fixes games like Mega Man Star
Force.
2014-06-05 04:08:11 -04:00
polaris
000f3170e1 Added new game 2014-06-05 04:08:10 -04:00
Admiral H. Curtiss
97051e6098 NAS: Real server has a newline at the end of the returned data. 2014-06-04 23:32:41 +02:00
polaris
e85c0b0636 Tried to fix returning multiple servers in the server browser
This should hopefully make matchmaking go smoother in the future.
2014-06-04 08:52:08 -04:00
polaris
3318c0c297 Changed max_count usage in server backend 2014-06-04 07:08:45 -04:00
polaris
bf8b6644ea Added another game 2014-06-04 07:08:26 -04:00
polaris
23208e28ca Change how an empty filter is handled 2014-06-03 16:11:22 -04:00
polaris
5a6c00b74c Added more games 2014-06-03 16:11:22 -04:00
Admiral H. Curtiss
7c522eab2d Storage: Super hacky Filter evaulation, needs to be improved later. 2014-06-03 21:14:36 +02:00
Admiral H. Curtiss
cebf17efca We should also log unknown game connections, so we can add them to the game list later. 2014-06-02 19:46:18 +02:00
polaris
88eb6112d7 Check if the game is even in the secret key list 2014-06-02 13:38:24 -04:00
polaris
c4c0ebb659 Return local port if public port is set to 0
This should hopefully fix Puyo Puyo!! 20th Anniversary and Tatsunoko vs
Capcom's matchmaking. Without it, the games will not recognize their own
servers.
2014-06-02 07:18:44 -04:00
polaris
a62b29a28f Note to self: actually send message data 2014-06-02 06:38:09 -04:00
polaris
770dd64b4b Remove fields that shouldn't be there 2014-06-02 01:15:05 -04:00
polaris
2940611f52 Fix the delimiter for the block and buddy lists 2014-06-02 00:40:21 -04:00
polaris
67cb70ac12 Fixed sdkrevision
I made a mistake here. namespace is 16 in this case, not sdkrevision.
2014-06-02 00:35:17 -04:00
Admiral H. Curtiss
8d5efa344d Presumably fixes #29 2014-06-02 02:42:26 +02:00
Admiral H. Curtiss
0481f1ab13 Create some indexes in gpcm.db. 2014-06-01 18:51:18 +02:00
polaris
bb5a83f916 Add new commands where sdkrevision == 16 2014-06-01 08:36:10 -04:00
polaris
d6d22611b5 Add new game to server 2014-06-01 08:36:10 -04:00
Admiral H. Curtiss
72ce04cdd9 Merge remote-tracking branch 'origin/database_refactor' 2014-05-31 21:06:54 +02:00
Admiral H. Curtiss
b5cc713a35 Explicit log warning when SQL statement takes long. 2014-05-31 20:58:58 +02:00
Admiral H. Curtiss
2c8f29f551 Cleaner database log output. 2014-05-31 20:42:47 +02:00
polaris
2f25dab9b7 Return if the RC4 is 0 2014-05-31 14:41:17 -04: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