Repository navigation
Clans: Emulator and server implementation - #17835
Conversation
- Needs GUI implementation to pick the server host - Needs code to select the server host from config Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
- Enabled SSL host verification Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
RipleyTom
left a comment
There was a problem hiding this comment.
You also need to add the files to msvc projects.
Apparently, when paging is null we're supposed to return the total count from the server. The game will only access `pageResult->total`.
|
Addressed a good chunk of the suggestions. Current to-do list of what's left:
|
- Renamed some fields - Implemented fmt::format for consistency - Made some constant fields `const`
Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
|
I've implemented an IDM for request handling and tested in-game -- everything seems fine and working. Clan search, membership status, sanity checks (don't join a clan you already are in, etc...). Ticket request failure is also now handled, meaning the game will display "Service Unavailable." if a ticket fails to be fetched. Next step is now improving ticket requesting via callbacks! |
Using proper atomic synchronisation primitives, instead of a busy loop Signed-off-by: zeph <[email protected]>
|
Everything has been handled. Please let me know if there's anything left to fix! |
|
Switched to |
Signed-off-by: zeph <[email protected]>
RipleyTom
left a comment
There was a problem hiding this comment.
Make sure to remove those sscanf too, you can just use the std::string directly with string_to_npid
- Replaced `sscanf` with `np::string_to_npid` - Reinstated log messages on level `warning` for implemented functions Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
…eat/clans Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
RipleyTom
left a comment
There was a problem hiding this comment.
The PR also lacks a mechanism to handle sceNpClans request when the game is not configured as Connected/RPCN. I don't know if that is an actual issues in games but if it does happen it will result in RPCN required assert.
clans_client::getClanTicket is probably a good place to return "" if nph.get_psn_status() != SCE_NP_MANAGER_STATUS_ONLINE, returning an empty ticket which leads most of your code to return SCE_NP_CLANS_ERROR_SERVICE_UNAVAILABLE.
- Removed usage of raw pointers with `new` - `clans_client::getClanTicket` now _actually_ uses the cached ticket if available. - Avoid setting `current_ticket` and instead hijack it if it's the Clans ticket - Refusing to get a ticket if emulator is not connected to RPCN Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
…ical error - Implemented clan creation syscall - Implemented clan disbanding syscall - Fixed an issue where the ticket would only actually be fetched once and never again, causing `service unavailable` every time after the 1st one Signed-off-by: zeph <[email protected]>
- Replaced camelCase variables and function signatures with snake_case Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
…ig option Signed-off-by: zeph <[email protected]>
Signed-off-by: zeph <[email protected]>
|
I've updated the Checkbox to reflect the behavior of the UPnP one: disabled when connection is toggled off, but still keeping its checked/unchecked state. |
|
Killzone 2 and Ratchet: Deadlocked uses clans too |
This PR implements the Sony Clans subsystem for the RPCS3 emulator.
Used in:
Addresses and closes #16464.
The source code for the server is available here and is licensed AGPLv3.
NOTE: The server is fully compatible with the PS3 console as well, as it follows the PS3 Clans Library specification.
The emulator code tries its best to follow on the steps of the RPCN client code wherever possible; both in the Client as well as the Settings and Config components.
Features:
clans_client.[h,cpp]sceNpClans.[h,cpp]sceNp.hclans.rpcs3.net)clans_settings_dialog.[h,cpp]clans.ymlconfig file for persistenceclans_config.[h,cpp]