Commit graph

298 commits

Author SHA1 Message Date
Jonathan Barrow
ca8ad16294
Merge pull request #18 from DaniElectra/update-session-url
Implement various functions and player disconnects
2023-10-03 22:47:19 -04:00
Daniel López Guimaraes
0e7243fb78
Update go modules and add JoinMatchmakeSession
This allows players on Mario Kart 7 to join to their friends or other
people they have played with (rivals).
2023-10-03 23:45:34 +01:00
Daniel López Guimaraes
d33369f5bc
Rework handling of player disconnects
Reassign owner on session when it leaves unreliably.
2023-09-03 00:46:50 +01:00
Daniel López Guimaraes
c158b4f3b7
Implement UpdateSessionURL properly
Hopefully...
2023-09-02 21:13:14 +01:00
Daniel López Guimaraes
bcc5fc6e39
Implement UpdateSessionURL 2023-09-02 20:35:48 +01:00
Jonathan Barrow
d2d3440e9d
Merge pull request #17 from DaniElectra/fixes-2
Handle multiple station URLs on Register and more
2023-09-02 10:27:32 -04:00
Daniel López Guimaraes
d9bb79bc0e
Better check for nil clients
EndParticipation triggered a nil client during testing. Add checks for
all client searches.
2023-09-02 11:51:23 +01:00
Daniel López Guimaraes
eaecd44bbe
Search for public station on Register
This is more reliable than just taking the second URL.
2023-09-02 11:49:39 +01:00
Daniel López Guimaraes
07fa6d10c7
Use NEX Counter for gathering IDs 2023-09-02 11:48:46 +01:00
Daniel López Guimaraes
242bf55ff1
Various fixes 2023-08-31 18:32:47 +01:00
Daniel López Guimaraes
45027fb32f
Implement CloseParticipation
Called when a gathering fills up.
2023-08-31 18:28:19 +01:00
Daniel López Guimaraes
61960be5dc
Use sequential gathering IDs 2023-08-31 18:26:27 +01:00
Daniel López Guimaraes
665c2b80db
Handle multiple station URLs on Register
Games like Mario Kart 7 or Mario Tennis Open set two station URLs on the
Register method, the local sattion and the public station. In these
cases, use the public station given by the client.

Also add the PID and RVCID on both stations, as they are required on NAT
traversal and not all games will call `ReportNATProperties` to add them.
2023-08-31 18:21:32 +01:00
Jonathan Barrow
1a0be46eba
Updated Go modules 2023-08-31 00:48:41 -04:00
Jonathan Barrow
b369cddadf
Added BrowseMatchmakeSession and refactor FindSessionsByMatchmakeSessionSearchCriterias 2023-08-31 00:45:28 -04:00
Jonathan Barrow
1dc1b89c74
Split globals and util functions 2023-08-30 21:24:56 -04:00
Jonathan Barrow
c033481f9b
Rename and refactor some matchmaking utils 2023-08-30 21:23:22 -04:00
Jonathan Barrow
611a1146c5
Use NEXVersion.GameSpecificPatch for checking patch versions 2023-08-30 19:29:47 -04:00
Jonathan Barrow
2d4c8014a4
Updated NEX version check in CreateMatchmakeSession 2023-08-30 19:20:43 -04:00
Jonathan Barrow
2aec134810
Added MatchmakeExtension::ModifyCurrentGameAttribute 2023-08-30 01:26:52 -04:00
Jonathan Barrow
deae7db4c8
Added Utility protocol and Utility::AcquireNexUniqueID 2023-08-30 01:20:01 -04:00
Jonathan Barrow
c34842ee0b
Updated Go modules 2023-08-29 13:49:14 -04:00
Jonathan Barrow
8429e5ec77
Added JoinMatchmakeSessionWithParam 2023-08-28 05:35:14 -04:00
Jonathan Barrow
cde148bf02
Added FindBySingleID 2023-08-28 05:03:49 -04:00
Jonathan Barrow
fe22fe4646
Added UpdateApplicationBuffer 2023-08-28 04:54:33 -04:00
Jonathan Barrow
e3e9d1fa85
Added CreateMatchmakeSessionWithParam 2023-08-28 03:42:55 -04:00
Jonathan Barrow
130669545d
Improved matchmake criteria searching 2023-08-27 18:21:16 -04:00
Jonathan Barrow
d2c568777b
Improved NAT and StationURL handling 2023-08-15 06:49:48 -04:00
Jonathan Barrow
48ea32c4bd
Updated go modules 2023-08-15 00:05:07 -04:00
Jonathan Barrow
ef246842d4
Added UpdateProgressScore 2023-08-15 00:00:38 -04:00
Jonathan Barrow
1ff762db4e
Fixed ReplaceURL not always finding station 2023-08-14 23:29:48 -04:00
Jonathan Barrow
ea0e9a9e3c
Make Matchmake Extension protocol support game patches 2023-08-14 22:46:54 -04:00
Jonathan Barrow
6fdfb063c1
Added CreateMatchmakeSession and GetSimplePlayingSession 2023-08-14 22:31:53 -04:00
Jonathan Barrow
ff41aad31a
Beep boop wrong error 2023-08-08 10:31:54 -04:00
Jonathan Barrow
dc64652089
Check error on UpdateRC4Key 2023-08-08 10:20:50 -04:00
Jonathan Barrow
f75330649c
Formatting updates 2023-08-08 10:20:06 -04:00
Jonathan Barrow
1700e4e402
Added CreateReportDBRecord for SecureConnection 2023-08-08 10:17:54 -04:00
Jonathan Barrow
212370d13d
Check err on rand.Read(sessionKey) 2023-08-07 13:09:03 -04:00
Jonathan Barrow
155be71969
Updated Login error if insecure login disabled 2023-08-07 13:07:05 -04:00
Jonathan Barrow
f900166ae2
Merge pull request #16 from DaniElectra/errors
Update go modules and proper error handling
2023-08-07 13:03:53 -04:00
Daniel López Guimaraes
87a101c568
Upadte go modules 2023-08-07 17:28:45 +01:00
Daniel López Guimaraes
71163070db
Update go modules and proper error handling
With the latest release of nex-protocols-go we can now implement error
handling in a clean way.
2023-08-06 01:44:42 +01:00
Jonathan Barrow
807004e576
Merge pull request #15 from PretendoNetwork/style-update
Update to new naming style in nex-protocols-go
2023-07-27 17:11:10 -04:00
SuperMarioDaBom
613f7a7a82 Why didn't it pull the latest one... (facepalm) 2023-07-27 14:09:01 -07:00
SuperMarioDaBom
6a8807ee4a Update go.mod and go.sum 2023-07-27 14:07:10 -07:00
SuperMarioDaBom
5b5b237027 Update to new naming style in nex-protocols-go 2023-07-27 13:54:39 -07:00
Jonathan Barrow
d3e1504e17
Merge pull request #14 from shutterbug2000/pokegen6-pt1
Implement methods for Pokemon Gen6
2023-07-12 15:46:27 -04:00
shutterbug2000
70423fc875 Merge branch 'pokegen6-pt1' of https://github.com/shutterbug2000/nex-protocols-common-go into pokegen6-pt1 2023-07-12 19:45:12 +00:00
shutterbug2000
fc68fbf5c3 Update Go modules 2023-07-12 19:45:07 +00:00
shutterbug2000
d66db4e657
Apply suggestions from code review
Fixes some spacing issues

Co-authored-by: Jonathan Barrow <jonbarrow1998@gmail.com>
2023-07-12 14:40:58 -05:00