Commit graph

298 commits

Author SHA1 Message Date
shutterbug2000
f3f84c3cbd Fix code review issues 2023-07-12 19:31:54 +00:00
shutterbug2000
5760221e74
Apply suggestions from code review
Co-authored-by: Daniel López Guimaraes <112760654+DaniElectra@users.noreply.github.com>
2023-07-12 13:47:32 -05:00
shutterbug2000
9ec24f6297 Implement methods for Pokemon Gen6
This allows Wonder Trade and Random Matchup free battle to function.
PSS matchup will require more methods.
2023-07-12 17:26:56 +00:00
Jonathan Barrow
41f4655e6d
Disable insecure Login method by default 2023-07-05 01:03:06 -04:00
Jonathan Barrow
1421c488af
Moved to new protocol library format 2023-07-04 23:32:42 -04:00
Jonathan Barrow
5785c860f9
Merge pull request #13 from DaniElectra/login-version
Set  RVConnectionData time as DateTime
2023-06-21 17:20:14 -04:00
Daniel López Guimaraes
01db10686f
Set RVConnectionData time to DateTime
Also revert structure version change, as it is handled in nex-go.
2023-06-21 22:16:41 +01:00
Daniel López Guimaraes
b7e6c97f94
Update go modules 2023-06-21 22:14:35 +01:00
Daniel López Guimaraes
e6b3e0b842
Set StructureVersion on RVConnectionData
Set the structure version to 1 if NEX version is 3.5+
2023-06-20 23:30:56 +01:00
Jonathan Barrow
0342dc2906
Merge pull request #12 from DaniElectra/revamp
Lots of changes on common protocols
2023-06-16 21:53:36 -04:00
Daniel López Guimaraes
eaad0fcea8
Fix time validation of Kerberos tickets
We have to increase the ticket time and compare to the server time.
Whoops.
2023-06-15 19:35:24 +01:00
Daniel López Guimaraes
ec12cfb374
Update go modules
Also implement Kerberos ticket time check.
2023-06-15 19:06:08 +01:00
Daniel López Guimaraes
c1dc70edfc
Fix PR issues 2023-06-12 19:04:17 +01:00
Daniel López Guimaraes
6f5fbd94d5
Send ownership change from EndParticipation 2023-06-08 18:30:01 +01:00
Daniel López Guimaraes
e598334373
Address PR issues
And other improvements
2023-06-06 21:29:47 +01:00
Daniel López Guimaraes
237060b9cb
Update go modules 2023-06-06 20:48:03 +01:00
Daniel López Guimaraes
3e7d634b71
Various changes to Matchmaking
- Use structure.Copy() and structure.Equal() now that they are
  implemented.
- Add notification types that weren't used before.
- Remove handlers for MatchMaking(-Ext) and use global sessions for
  handling rooms.
- And possibly more
2023-06-05 21:04:29 +01:00
Daniel López Guimaraes
2e3bc892e8
Use common struct on NAT Traversal
Also remove external handlers, as we now store the client station URLs
on nex.Client. And implement ReportNATTraversalResult.
2023-06-05 20:46:52 +01:00
Daniel López Guimaraes
7b54d5fa1d
Remove handlers on Secure Connection
Since we now store the client station URLs on nex.Client, there's no
need for external handlers to do so, so remove them. Also, the handlers
were deprecated as they didn't do anything anyway.
2023-06-05 20:44:31 +01:00
Jonathan Barrow
618b185517
Merge pull request #11 from shutterbug2000/matchmaking-common-2
Matchmaking protocol additions and changes
2023-05-23 16:03:42 -04:00
shutterbug2000
3e7de77680 Add a space that I missed
whoops lol
2023-05-23 03:55:03 -05:00
shutterbug2000
9f2d34a7ee Change session removal to go with the first session found
There shouldn't be any instance where a client can be in multiple sessions at once
2023-05-23 03:53:08 -05:00
shutterbug2000
46bc3e2bb4 Code review changes 2023-05-22 22:47:55 -05:00
shutterbug2000
9322a0ae3c Matchmaking protocol additions and changes
- Move utility methods to global so any MatchMaking protocol can use them
- Add EndParticipation to Matchmaking Ext
- Remove clients from Sessions when they leave the server
2023-05-22 13:11:39 -05:00
Jonathan Barrow
175bbe4ede
Updated go modules 2023-05-21 01:49:50 -04:00
shutterbug2000
dfd3680156 Bugfix 2023-05-21 00:46:59 -05:00
Jonathan Barrow
8e5711cb38
Merge pull request #10 from shutterbug2000/matchmake-extension-common-1
Add AutoMatchmake_Postpone common method
2023-05-21 01:39:41 -04:00
shutterbug2000
4ebf815657 TODOs for Jon
Also changes references to PlayersByConnectionId
2023-05-21 00:34:06 -05:00
shutterbug2000
a89c9d3ac7 Change PlayersByConnectionId to ConnectionIDs 2023-05-21 00:33:10 -05:00
shutterbug2000
eee585960d WriteDataHolder for MatchmakeSession 2023-05-21 00:30:03 -05:00
shutterbug2000
468c4143af Accidentally removed this, re-adding it lol 2023-05-20 23:59:13 -05:00
shutterbug2000
39ac779726 Fix some code review issues and other bugs 2023-05-20 23:55:02 -05:00
shutterbug2000
f2a32710a8 Add AutoMatchmake_Postpone common method
This gets MK7 into a match
2023-05-20 23:05:29 -05:00
Jonathan Barrow
e3729c531a
Merge pull request #9 from shutterbug2000/station-urls-change
Fix StationURLs for the changes in nex-go
2023-05-20 23:40:58 -04:00
shutterbug2000
f5c2a38b94 Fix StationURLs for the changes in nex-go 2023-05-20 22:33:11 -05:00
Jonathan Barrow
24dfd6451e
Merge pull request #8 from shutterbug2000/update-common-mm 2023-05-19 23:21:05 -04:00
shutterbug2000
2170b0dc1f Update Common MatchMaking to new format 2023-05-19 22:13:45 -05:00
Jonathan Barrow
b61d65d389
Merge pull request #7 from DaniElectra/hpp
Use PasswordFromPID function from NEX server
2023-04-23 14:28:59 -04:00
Daniel López Guimaraes
4424b19205
Update go modules 2023-04-23 19:27:59 +01:00
Daniel López Guimaraes
ff19b6d446
Use PasswordFromPID function from NEX server
Since we have to get a password on the server for HPP, check that
function to avoid confusion.
2023-04-23 18:02:56 +01:00
Jonathan Barrow
dce7956806
Merge pull request #6 from DaniElectra/matchmaking
Remove Matchmaking notification hacks
2023-04-08 20:44:30 -04:00
Daniel López Guimaraes
994a11276b
Remove Matchmaking notification hacks
The notification can be simplified since we have a structure for that.
2023-04-08 22:18:23 +01:00
Jonathan Barrow
a28a4364d7
Updated NEX library versions 2023-04-07 21:03:47 -04:00
Jonathan Barrow
0627dc3d7e
Bump module versions 2023-04-04 18:11:44 -04:00
Jonathan Barrow
14ae2f317f
Bump module versions 2023-04-04 15:57:02 -04:00
Jonathan Barrow
574dd852ab
Updated module versions 2023-03-30 00:57:37 -04:00
Jonathan Barrow
b594be18f3
Bump module versions 2023-03-26 18:53:49 -04:00
Jonathan Barrow
f84141fc31
Bump module and Go versions 2023-03-26 12:37:35 -04:00
Jonathan Barrow
abd27af2b2
Merge pull request #5 from DaniElectra/fixes
Various fixes
2023-03-26 12:36:03 -04:00
Daniel López Guimaraes
9c79a8c7d4
Fix RVConnectionData time
Add current UTC time to pConnectionData to fix Badge Arcade time issues.
2023-03-25 23:42:57 +00:00