Commit Graph

177 Commits

Author SHA1 Message Date
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
Admiral H. Curtiss
f4187f5d53 Storage: SearchForRecords and GetRecordCount work now, though without any filtering. 2014-05-23 04:54:07 +02:00
polaris
8ee93d1ac1 Allow server browser to start on its own 2014-05-22 21:21:50 -04:00
Toad King
e649bb4764 allow starting QR server on its own 2014-05-22 20:54:18 -04:00
Toad King
ecd1a85e60 fix QR server (how did this work before?) 2014-05-22 20:51:03 -04:00
Admiral H. Curtiss
8549ca3cb1 Some basic code for a StorageServer, doesn't work yet. 2014-05-23 02:46:47 +02:00
polaris
9687bbcce1 Removed some example DLCs
We have custom generated DLCs which can be looked at as an example now.
2014-05-22 11:13:03 -04:00
polaris-
753ef14d04 Renaming NAS server 2014-05-22 10:20:15 -04:00
polaris
a103a09f9f Just scrubbing some names 2014-05-22 10:19:41 -04:00
polaris
7379dc2a7a Small fixes
- Sometimes the game sends port 0 as the port to forward to. Obviously
this isn't right, so *try* to match up the server with something, even
if it may or may not be right. Hopefully it's right.
- Tried to fix friends games in some games. Metroid Prime: Hunters seems
to look for the dwc_pid for a friend, and sometimes the friend never
does a statechanged, so assume that any state except 2 should be added
to the server list.
2014-05-22 08:49:14 -04:00
Toad King
7aeac3c525 move sleep in UDP handlers to threads 2014-05-22 06:31:08 -04:00
polaris
4391e85642 More misc bugs 2014-05-21 23:17:25 -04:00
polaris
ceb8652f3c Fix misc bugs
How did these even work before?
2014-05-21 22:14:24 -04:00
polaris
411a829624 Fixed bug in natneg, threading for UDP packets 2014-05-21 21:50:47 -04:00
Toad King
c85fe43ab2 add 50ms delay to udp packet processing, fixes errors in UDP packets getting dropped in some games 2014-05-21 21:10:15 -04:00
polaris-
2a776973e4 Update README.md 2014-05-21 17:37:19 -04:00
polaris-
d652d565fe Update README.md 2014-05-21 16:30:00 -04:00
polaris-
78263346b0 Update README.md 2014-05-21 16:12:40 -04:00
polaris
30229b9fa5 More error checking
Sometimes it fails to decode a string. Try to figure out why.
2014-05-21 12:21:42 -04:00
polaris
ba7b808623 Error checking
Why does this error even occur? Does the session get pruned by keep
alive or is it not properly started (between server restarts)?
2014-05-21 08:36:31 -04:00
polaris
2a85dff62f Trying to make natneg more stable 2014-05-21 05:58:14 -04:00
polaris-
f661e8d434 Merge pull request #15 from AdmiralCurtiss/dlcrestore
Restored downloadable missions for Pokemon Ranger 2 and 3.
2014-05-21 05:53:22 -04:00
Admiral H. Curtiss
7bd6023117 Ranger 2 downloadable missions. 2014-05-21 02:37:12 +02:00
polaris
3c0cfb432d Added simple stats server 2014-05-20 18:34:12 -04:00
polaris
4fc163ec75 Only count lines with data as for dls1 count 2014-05-20 18:33:49 -04:00
Admiral H. Curtiss
05d2b06970 Ranger 3 JP downloadable missions.
Someone needs to test if the US and JP missions actually work, I just
based them off some saves off GameFAQs and how the EU version handles
data.
2014-05-20 23:41:43 +02:00
Admiral H. Curtiss
9b2ed931f8 Ranger 3 US and EU downloadable missions. 2014-05-20 21:45:45 +02:00
polaris
c9d525cc02 Fix some small issues 2014-05-20 12:50:20 -04:00
polaris
04f6b1ac04 Fix some small exceptions that sometimes occur
Mostly harmless
2014-05-20 11:37:52 -04:00
polaris
f64ea72096 Updated .gitignore
Tired of seeing junk in the list
2014-05-20 11:30:39 -04:00
polaris
d1c417260f Return correct file count
A listing file with no entries may contain just "\r\n", so strip that
before counting
2014-05-20 11:22:31 -04:00
polaris
e6a97fe002 Build entire command if it spans multiple packets 2014-05-20 11:21:09 -04:00
polaris
c696686e32 Store own server so we can retrieve it for natneg 2014-05-20 11:19:51 -04:00