commit
1105d96e6e
@ -22,6 +22,24 @@ export default class GameModule extends Module {
|
||||
})
|
||||
|
||||
//terminal specific
|
||||
app.post('/method/start_transfer', (req, res) => {
|
||||
let msg = {
|
||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
userId: 0,
|
||||
|
||||
}
|
||||
let resp = wm.wm.protobuf.StartTransferResponse.encode(msg);
|
||||
let end = resp.finish();
|
||||
let r = res
|
||||
.header('Server', 'v388 wangan')
|
||||
.header('Content-Type', 'application/x-protobuf; revision=8053')
|
||||
.header('Content-Length', end.length.toString())
|
||||
.status(200);
|
||||
r.send(Buffer.from(end));
|
||||
})
|
||||
|
||||
//banapass loading
|
||||
|
||||
app.post('/method/load_terminal_information', (req, res) => {
|
||||
let msg = {
|
||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
@ -43,18 +61,18 @@ export default class GameModule extends Module {
|
||||
r.send(Buffer.from(end));
|
||||
})
|
||||
|
||||
//banapass loading
|
||||
app.post('/method/load_user', (req, res) => {
|
||||
//everything after this should be replaced with values from a database, but thats above my pay grade :P
|
||||
//everything after this should be replaced with values from a database, but thats above my pay grade :P
|
||||
let msg = {
|
||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
unlockAt: 1563072119,
|
||||
accessCode: "12345678901234567890",
|
||||
banapassportAmId: 0,
|
||||
mbid: 0,
|
||||
userId: 0,
|
||||
banapassportAmId: 69,
|
||||
mbid: 69,
|
||||
userId: 69,
|
||||
numOfOwnedCars: 1,
|
||||
spappState: 0,
|
||||
transferState: 1,
|
||||
spappState: wm.wm.protobuf.SmartphoneAppState.SPAPP_UNREGISTERED,
|
||||
transferState: wm.wm.protobuf.TransferState.TRANSFERRED,
|
||||
cars: [
|
||||
{
|
||||
carId: 8,
|
||||
@ -80,7 +98,7 @@ export default class GameModule extends Module {
|
||||
tunePower: 17,
|
||||
tuneHandling: 17,
|
||||
title: "Beli Kabel LAN",
|
||||
level: 0,
|
||||
level: 20,
|
||||
windowSticker: false,
|
||||
rivalMarker: 0,
|
||||
lastPlayedAt: 0,
|
||||
@ -96,16 +114,54 @@ export default class GameModule extends Module {
|
||||
hasOpponentGhost: false,
|
||||
toBeDeleted: false,
|
||||
eventJoined: false,
|
||||
transferred: true,
|
||||
transferred: false,
|
||||
driveLastPlayedAt: 0,
|
||||
},
|
||||
],
|
||||
unusedCarTickets: [
|
||||
{
|
||||
category: wm.wm.protobuf.ItemCategory.CAT_CAR_TICKET,
|
||||
itemId: 0,
|
||||
itemId: 1,
|
||||
},
|
||||
],
|
||||
tutorials: [
|
||||
true, //TUTORIAL_ID_STORY
|
||||
true, //TUTORIAL_ID_TIME_ATTACK
|
||||
true, //TUTORIAL_ID_GHOST
|
||||
true, //TUTORIAL_ID_GHOST_CHALLENGE
|
||||
true, //TUTORIAL_ID_GHOST_LEVEL
|
||||
true, //TUTORIAL_ID_UNUSED_5
|
||||
true, //TUTORIAL_ID_GHOST_SEARCH
|
||||
true, //TUTORIAL_ID_GHOST_COMPETITION
|
||||
true, //TUTORIAL_ID_HP600_CARD
|
||||
true, //TUTORIAL_ID_UNUSED_9
|
||||
true, //TUTORIAL_ID_COMPETITION_QUALIFIED
|
||||
true, //TUTORIAL_ID_COMPETITION_TERMINAL
|
||||
true, //TUTORIAL_ID_COMPETITION_NOTICE
|
||||
true, //TUTORIAL_ID_COMPETITION_FINISHED
|
||||
true, //TUTORIAL_ID_UNUSED_14
|
||||
true, //TUTORIAL_ID_UNUSED_15
|
||||
true, //TUTORIAL_ID_UNUSED_16
|
||||
true, //TUTORIAL_ID_UNUSED_17
|
||||
true, //TUTORIAL_ID_UNUSED_18
|
||||
true, //TUTORIAL_ID_UNUSED_19
|
||||
true, //TUTORIAL_ID_GHOST_STAMP
|
||||
true, //TUTORIAL_ID_GHOST_STAMP_DECLINED
|
||||
true, //TUTORIAL_ID_GHOST_STAMP_FRIENDS
|
||||
true, //TUTORIAL_ID_TERMINAL_SCRATCH
|
||||
true, //TUTORIAL_ID_TURN_SCRATCH_SHEET
|
||||
true, //TUTORIAL_ID_INVITE_FRIEND_CAMPAIGN
|
||||
true, //TUTORIAL_ID_CAR_COUPON_FULL_TUNED_RECEIVABLE
|
||||
true, //TUTORIAL_ID_VS_CONTINUE_TICKET
|
||||
true, //TUTORIAL_ID_UNUSED_28
|
||||
true, //TUTORIAL_ID_UNUSED_29
|
||||
true, //TUTORIAL_ID_UNUSED_30
|
||||
true, //TUTORIAL_ID_DRESS_UP
|
||||
true, //TUTORIAL_ID_MULTI_GHOST
|
||||
true, //TUTORIAL_ID_STORY_NEW_FEATURE
|
||||
true, //TUTORIAL_ID_GHOST_NEW_FEATURE
|
||||
true, //TUTORIAL_ID_GHOST_REGION_MAP
|
||||
],
|
||||
}
|
||||
let resp = wm.wm.protobuf.LoadUserResponse.encode(msg);
|
||||
let end = resp.finish();
|
||||
@ -119,7 +175,9 @@ export default class GameModule extends Module {
|
||||
|
||||
app.post('/method/load_drive_information', (req, res) => {
|
||||
let msg = {
|
||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
noticeWindow: [],
|
||||
noticeWindowMessage: [],
|
||||
transferNotice: {
|
||||
needToSeeTransferred: false,
|
||||
totalMaxiGold: 0,
|
||||
@ -127,10 +185,13 @@ export default class GameModule extends Module {
|
||||
porscheModels: [],
|
||||
hasR35: false,
|
||||
},
|
||||
restrictedModels: [],
|
||||
announceFeature: false,
|
||||
announceMobile: false,
|
||||
availableTickets: [
|
||||
{
|
||||
category: wm.wm.protobuf.ItemCategory.CAT_CAR_TICKET,
|
||||
itemId: 1
|
||||
itemId: 1,
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -149,42 +210,42 @@ export default class GameModule extends Module {
|
||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
//everything after this should be replaced with values from a database, but thats above my pay grade :P
|
||||
car: {
|
||||
carId: 1,
|
||||
userId: 0,
|
||||
regionId: 0,
|
||||
name: "a",
|
||||
manufacturer: 0,
|
||||
model: 0,
|
||||
visualModel: 8,
|
||||
defaultColor: 0,
|
||||
customColor: 0,
|
||||
wheel: 0,
|
||||
wheelColor: 0,
|
||||
aero: 0,
|
||||
bonnet: 0,
|
||||
wing: 0,
|
||||
mirror: 0,
|
||||
neon: 0,
|
||||
trunk: 0,
|
||||
plate: 0,
|
||||
plateColor: 0,
|
||||
plateNumber: 0,
|
||||
tunePower: 17,
|
||||
tuneHandling: 17,
|
||||
title: "Beli Kabel LAN",
|
||||
level: 0,
|
||||
windowSticker: false,
|
||||
rivalMarker: 0,
|
||||
lastPlayedAt: 0,
|
||||
aura: 0,
|
||||
auraMotif: 0,
|
||||
ghostLevel: 0,
|
||||
country: "JPN",
|
||||
searchCode: "a",
|
||||
carId: 8,
|
||||
userId: 0,
|
||||
regionId: 0,
|
||||
name: "a",
|
||||
manufacturer: 0,
|
||||
model: 0,
|
||||
visualModel: 8,
|
||||
defaultColor: 0,
|
||||
customColor: 0,
|
||||
wheel: 0,
|
||||
wheelColor: 0,
|
||||
aero: 0,
|
||||
bonnet: 0,
|
||||
wing: 0,
|
||||
mirror: 0,
|
||||
neon: 0,
|
||||
trunk: 0,
|
||||
plate: 0,
|
||||
plateColor: 0,
|
||||
plateNumber: 0,
|
||||
tunePower: 17,
|
||||
tuneHandling: 17,
|
||||
title: "Beli Kabel LAN",
|
||||
level: 20,
|
||||
windowSticker: false,
|
||||
rivalMarker: 0,
|
||||
lastPlayedAt: 0,
|
||||
aura: 0,
|
||||
auraMotif: 0,
|
||||
ghostLevel: 1,
|
||||
country: "JPN",
|
||||
searchCode: "",
|
||||
},
|
||||
tuningPoint: 34,
|
||||
tuningPoint: 0,
|
||||
odometer: 0,
|
||||
playCount: 3,
|
||||
playCount: 10,
|
||||
earnedCustomColor: false,
|
||||
setting:
|
||||
{
|
||||
@ -199,36 +260,36 @@ export default class GameModule extends Module {
|
||||
nameplateColor: 0,
|
||||
terminalBackground: 0,
|
||||
},
|
||||
vsPlayCount: 1,
|
||||
vsBurstCount: 1,
|
||||
vsStarCount: 1,
|
||||
vsStarCountMax: 1,
|
||||
vsCoolOrWild: 1,
|
||||
vsPlayCount: 69699696,
|
||||
vsBurstCount: 69696969,
|
||||
vsStarCount: 696969,
|
||||
vsStarCountMax: 6969696,
|
||||
vsCoolOrWild: 0,
|
||||
vsSmoothOrRough: 0,
|
||||
vsTripleStarMedals: 1,
|
||||
vsTripleStarMedals: 69699696,
|
||||
vsDoubleStarMedals: 0,
|
||||
vsSingleStarMedals: 0,
|
||||
vsPlainMedals: 0,
|
||||
rgPlayCount: 1,
|
||||
rgWinCount: 1,
|
||||
rgTrophy: 1,
|
||||
rgPreviousVersionPlayCount: 0,
|
||||
rgScore: 0,
|
||||
rgStamp: 1,
|
||||
rgPlayCount: 6000,
|
||||
rgWinCount: 6000,
|
||||
rgTrophy: 6000,
|
||||
rgPreviousVersionPlayCount: 6000,
|
||||
rgScore: 1,
|
||||
rgStamp: 100,
|
||||
rgAcquireAllCrowns: true,
|
||||
dressupLevel: 63,
|
||||
dressupPoint: 0,
|
||||
stPlayCount: 1,
|
||||
stPlayCount: 0,
|
||||
stClearBits: 0,
|
||||
stClearDivCount: 0,
|
||||
stClearCount: 1,
|
||||
stClearCount: 0,
|
||||
stLoseBits: 0,
|
||||
stConsecutiveWins: 69,
|
||||
stConsecutiveWinsMax: 69,
|
||||
stConsecutiveWins: 699999,
|
||||
stConsecutiveWinsMax: 420,
|
||||
stCompleted_100Episodes: false,
|
||||
auraMotifAutoChange: false,
|
||||
screenshotCount: 0,
|
||||
transferred: false,
|
||||
transferred: true,
|
||||
}
|
||||
let resp = wm.wm.protobuf.LoadCarResponse.encode(msg);
|
||||
let end = resp.finish();
|
||||
@ -274,7 +335,7 @@ export default class GameModule extends Module {
|
||||
let msg = {
|
||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
userId: 69,
|
||||
carId: 1,
|
||||
carId: 8,
|
||||
}
|
||||
let resp = wm.wm.protobuf.CreateCarResponse.encode(msg);
|
||||
let end = resp.finish();
|
||||
@ -290,8 +351,8 @@ export default class GameModule extends Module {
|
||||
let msg = {
|
||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
taRankingUpdatedAt: 0,
|
||||
ghostBattleCount: 69696969,
|
||||
ghostBattleWinCount: 420691337,
|
||||
ghostBattleCount: 9999,
|
||||
ghostBattleWinCount: 9999,
|
||||
stampSheetCount: 100,
|
||||
}
|
||||
let resp = wm.wm.protobuf.LoadGameHistoryResponse.encode(msg);
|
||||
@ -357,7 +418,7 @@ export default class GameModule extends Module {
|
||||
app.post('/method/load_ghost_battle_info', (req, res) => {
|
||||
let msg = {
|
||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
stampSheetCount: 6969,
|
||||
stampSheetCount: 100,
|
||||
}
|
||||
let resp = wm.wm.protobuf.LoadGhostBattleInfoResponse.encode(msg);
|
||||
let end = resp.finish();
|
||||
|
Loading…
Reference in New Issue
Block a user