fix: 🐛 Trying to fix ex's bg event bug after nt support
This commit is contained in:
@@ -391,20 +391,11 @@ export const getPlayer: EPR = async (info, data, send) => {
|
|||||||
player: K.ATTR({ 'no': `${no}` }, {
|
player: K.ATTR({ 'no': `${no}` }, {
|
||||||
now_date: K.ITEM('u64', time),
|
now_date: K.ITEM('u64', time),
|
||||||
secretmusic: { // TODO: FIX THIS
|
secretmusic: { // TODO: FIX THIS
|
||||||
music: _.merge(_.range(0,2800), _.range(5000, 5100)).map(mid => {
|
music: {
|
||||||
return {
|
musicid: K.ITEM('s32', 0),
|
||||||
musicid: K.ITEM('s32', mid),
|
seq: K.ITEM('u16', 255),
|
||||||
seq: K.ITEM('u16', 255),
|
kind: K.ITEM('s32', 40),
|
||||||
kind: K.ITEM('s32', 40),
|
}
|
||||||
}
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
trbitem: { // TODO: FIX THIS
|
|
||||||
item: _.range(0,750).map(id => {
|
|
||||||
return {
|
|
||||||
itemid: K.ITEM('s32', id),
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
chara_list: {},
|
chara_list: {},
|
||||||
title_parts: {},
|
title_parts: {},
|
||||||
|
|||||||
@@ -66,9 +66,12 @@ export function register() {
|
|||||||
MultiRoute('gametop.get', getPlayer);
|
MultiRoute('gametop.get', getPlayer);
|
||||||
MultiRoute('gameend.regist', savePlayer);
|
MultiRoute('gameend.regist', savePlayer);
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
R.Route('bemani_gakuen.get_music_info', true)
|
||||||
|
|
||||||
R.Unhandled(async (info, data, send) => {
|
R.Unhandled(async (info, data, send) => {
|
||||||
if (["eventlog"].includes(info.module)) return;
|
if (["eventlog"].includes(info.module)) return;
|
||||||
logger.error(`Received Unhandled Response on ${info.method} by ${info.model}/${info.module}`)
|
logger.error(`Received Unhandled Request on Method "${info.method}" by ${info.model}/${info.module}`)
|
||||||
logger.debugError(`Received Request: ${JSON.stringify(data, null, 4)}`)
|
logger.debugError(`Received Request: ${JSON.stringify(data, null, 4)}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user