mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
fix(sessionmanager/rdr3): respond to game's TransitionToSession message
This fixes the game bailing with BAIL_ERROR_SESSION_ERROR shortly after initializing (due to this message timing out).
This commit is contained in:
@@ -180,3 +180,13 @@ message TransitionReady_PlayerQueue_Parameters {
|
|||||||
MpSessionRequestIdDto requestId = 5;
|
MpSessionRequestIdDto requestId = 5;
|
||||||
MpSessionIdDto transferId = 6;
|
MpSessionIdDto transferId = 6;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
message TransitionToSession_Parameters {
|
||||||
|
MpTransitionIdDto id = 1;
|
||||||
|
float x = 2;
|
||||||
|
float y = 3;
|
||||||
|
};
|
||||||
|
|
||||||
|
message TransitionToSessionResult {
|
||||||
|
uint32 code = 1;
|
||||||
|
};
|
||||||
@@ -32,6 +32,8 @@ protobuf.load(GetResourcePath(GetCurrentResourceName()) + "/rline.proto", functi
|
|||||||
const QueueForSessionResult = root.lookupType("rline.QueueForSessionResult");
|
const QueueForSessionResult = root.lookupType("rline.QueueForSessionResult");
|
||||||
const QueueEntered_Parameters = root.lookupType("rline.QueueEntered_Parameters");
|
const QueueEntered_Parameters = root.lookupType("rline.QueueEntered_Parameters");
|
||||||
const TransitionReady_PlayerQueue_Parameters = root.lookupType("rline.TransitionReady_PlayerQueue_Parameters");
|
const TransitionReady_PlayerQueue_Parameters = root.lookupType("rline.TransitionReady_PlayerQueue_Parameters");
|
||||||
|
const TransitionToSession_Parameters = root.lookupType("rline.TransitionToSession_Parameters");
|
||||||
|
const TransitionToSessionResult = root.lookupType("rline.TransitionToSessionResult");
|
||||||
const scmds_Parameters = root.lookupType("rline.scmds_Parameters");
|
const scmds_Parameters = root.lookupType("rline.scmds_Parameters");
|
||||||
|
|
||||||
function toArrayBuffer(buf) {
|
function toArrayBuffer(buf) {
|
||||||
@@ -173,6 +175,14 @@ protobuf.load(GetResourcePath(GetCurrentResourceName()) + "/rline.proto", functi
|
|||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async TransitionToSession(source, data) {
|
||||||
|
const req = TransitionToSession_Parameters.decode(data);
|
||||||
|
|
||||||
|
return makeResponse(TransitionToSessionResult, {
|
||||||
|
code: 1 // in this message, 1 is success
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
async QueueForSession_Seamless(source, data) {
|
async QueueForSession_Seamless(source, data) {
|
||||||
const req = QueueForSession_Seamless_Parameters.decode(data);
|
const req = QueueForSession_Seamless_Parameters.decode(data);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user