Commit Graph

41 Commits

Author SHA1 Message Date
Admiral H. Curtiss
0481f1ab13 Create some indexes in gpcm.db. 2014-06-01 18:51:18 +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
Admiral H. Curtiss
ca7d44339d Refactor GamespyDatabase for easier use and logging. 2014-05-31 20:13:02 +02:00
polaris
0a0e37cc11 Changed console detecting, added more debug code 2014-05-28 15:54:58 -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
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
polaris
3a4faf53d4 Turn binary blob into base64 2014-05-20 11:15:59 -04:00
polaris
12367dcf0b Updated devname field in DB 2014-05-17 15:52:55 -04:00
polaris
0e0d4bebe5 Implement getpd 2014-05-15 14:56:41 -04:00
polaris
751b0066cf Added more fields to the database 2014-05-14 16:56:03 -04:00
Toad King
23776c1b18 cleanup nintendo_nas_server and implement stub /pr handling 2014-05-03 14:04:19 -04:00
polaris
9c8824ff0c Modified NAS slightly
I was having trouble with the base64 encoded data, so I replaced it with
something that should definitely work.
I also reduced the size of the auth token so there won't be any possible
overflows. Since it's random data it can easily be adjusted in the
future if for some reason it's too small.
2014-04-18 09:19:57 -04:00
polaris
d1ecc4e480 Commented out most of pd_get 2014-04-18 08:11:09 -04:00
Toad King
71111340df fix nas_logins entries not being reused when possible 2014-04-18 01:59:02 -04:00
Toad King
5ceff7e29f move NAS server to python, save authentication data in database instead of challenge key 2014-04-18 01:40:50 -04:00
polaris
199cdc835e Small tweaks part 2 2014-04-17 16:56:27 -04:00
polaris
ec3410c8c2 Small tweaks, nothing major 2014-04-17 16:55:33 -04:00
polaris
98e97ba6d3 Added gamestats server
Not everything is implemented but it should be good enough for now.
2014-04-16 22:01:52 -04:00
polaris
6cdf7ea3ae Updated sql statement 2014-04-15 15:32:25 -04:00
polaris
1de133d779 Started implementing more buddy commands 2014-04-15 15:00:14 -04:00
polaris
acf67b2857 Somehow missed the actual insert code 2014-04-13 13:14:50 -04:00
polaris
bdaaba296a Store the gameid in the database
I wanted to make it easier to do searches in the future based on games,
so the game ids (not region specific, but the generic one that all
regions share) is stored in the datbase now too.
2014-04-12 05:26:36 -04:00
polaris
6b47de9655 Fixed bug #2
Exception "variable 'now' referenced before assignment"
2014-04-11 10:31:30 -04:00
polaris
156948f401 Fixed a bug in the update_profile sql query 2014-04-10 19:14:15 -04:00
polaris
d4e65391cf Updated logging levels 2014-04-10 18:20:40 -04:00
polaris
7f39c5cf66 Log all sqlite commands 2014-04-10 17:35:22 -04:00
polaris
986627e645 Significantly changed the layout of the server.
All parts of the server can now be run on their own or used as a class.
master_server.py will start running all of the servers at once.
2014-04-10 17:35:17 -04:00
polaris
23aae4d552 Fixed some buddy list things.
Also, for some reason Phantasy Star Zero matchmaking lobbies work now. I
didn't change anything that should've affected that but who knows?
2014-04-09 18:46:48 -04:00
polaris
29160bf721 Store sig in database
Also fixed some tabs.
2014-04-09 13:13:24 -04:00
polaris
d5086d0909 Added firstname column to database.
Required for the Wii.
2014-04-08 15:33:55 -04:00
polaris
9ca80fa6f9 Tried to fix Wii logins 2014-04-08 14:03:02 -04:00
polaris
2e41215d09 Fixed bugs from merge, save leftover command data 2014-04-07 14:24:20 -04:00
polaris
5cb276d384 Merged changes made by leseratte
Merged the changes made by leseratte and made some of my own. This
should possibly be enough to get Mario Kart Wii to login but I do not
have a way to test it myself.
2014-04-07 13:53:18 -04:00
polaris
fb6e439888 Added compatibility to readme, updated db for PS0 2014-04-06 07:04:08 -04:00
polaris
c59645a6aa PlayerSpy server now written with Twisted
- Rewrote the PlayerSpy server to easily handle more than 1 connection.
It now requires Twisted to run.
- The basics for the buddy list have been added. Friends can be added
and authorized, as well as sending status messages to buddies. The
feature is still incomplete, however. It's enough to show a friends only
game in Tetris DS, though.
2014-04-01 21:29:40 -04:00
polaris
48f753f88e Make getprofile use the id instead of session key
Fixed some broken code that stopped the game from logging in.
2014-04-01 06:55:15 -04:00
polaris
74df6f1ea7 Documentation, tidying up
- Moved some gamespy-related utility functions to where they should've
been.
- Added more documentation.
2014-03-30 08:37:52 -04:00
polaris
63a173cf1f Fix some indentation errors
- Fixed some errors made last night while formatting the code using
PyCharm.
- Added more documentation for the \bm\ command on the GameSpy server.
- Added some documentation for the opcodes used on the master server.
2014-03-30 06:37:49 -04:00
polaris
eae79e9def Cleaned up
Cleaned up the code using PyCharm. Also added a few comments about the
master server.
2014-03-29 23:41:47 -04:00
andromeda32
f9c710af99 Initial code.
Contains enough code to allow Tetris DS to get to the post-login wifi
menu.

This is very rough, basic code. I expect it to change quite a bit from
its current format once I start adding more features. It's nowhere near
ready for public use yet.
2014-03-29 21:41:02 -04:00