sv6_save_e experimentations
This commit is contained in:
+950
-944
File diff suppressed because it is too large
Load Diff
+134
-133
@@ -1,133 +1,134 @@
|
||||
import {common,log,unhandledt} from './handlers/common';
|
||||
import {hiscore, rival, saveMix, loadMix, globalMatch} from './handlers/features';
|
||||
import {
|
||||
updateProfile,
|
||||
updateMix,
|
||||
importMix,
|
||||
deleteMix,
|
||||
copyResourcesFromGame,
|
||||
preGeneRoll,
|
||||
manageEvents
|
||||
} from './handlers/webui';
|
||||
import {
|
||||
load,
|
||||
create,
|
||||
loadScore,
|
||||
save,
|
||||
saveScore,
|
||||
saveCourse,
|
||||
buy,
|
||||
print,
|
||||
saveValgene,
|
||||
} from './handlers/profiles';
|
||||
import {
|
||||
ARENA
|
||||
} from './data/exg';
|
||||
|
||||
export function register() {
|
||||
|
||||
R.Contributor("LatoWolf#1170");
|
||||
R.Contributor("ovv (this fork)");
|
||||
R.GameCode('KFC');
|
||||
|
||||
R.Config('sdvx_eg_root_dir', { type: 'string', needRestart: true, default: '', name: 'Exceed Gear Data Directory', desc: 'The root directory of your SDVX Exceed Gear game files (for asset copying)'});
|
||||
R.Config('unlock_all_valk_items', { type: 'boolean', default: false, name:'Unlock All Valkyrie and Premium Items', desc: 'Unlock Nemsys, BGM, Submonitor BG and Stamp Items (Valk crews not included; check \'unlock all navigators\' option)'});
|
||||
R.Config('enable_valk_songs' ,{ type: 'boolean', default: false, name:'Enable Valkyrie Model Songs', desc:'Unlock the valkyrie model songs on non-valkyrie mode.'});
|
||||
R.Config('arena_szn',{ type: 'string', options: Object.keys(ARENA), default: 'Set 1 (04/25/22)', name: 'Arena Station Item Set', desc: 'Choose which season set of items in the arena station you want to show up in arena station'});
|
||||
R.Config('x_record', {type: 'boolean', default: false, name: 'X-Record', desc: 'Activates X-record. 10 VM and 1 LM points per play.'})
|
||||
R.Config('unlock_all_songs', { type: 'boolean', default: false, name:'Unlock All Songs'});
|
||||
R.Config('unlock_all_navigators', { type: 'boolean', default: false, name:'Unlock All Navigators'} );
|
||||
R.Config('unlock_all_appeal_cards', { type: 'boolean', default: false, name:'Unlock All Appeal Cards'});
|
||||
R.Config('use_blasterpass',{ type: 'boolean', default: true, name:'Use Blaster Pass', desc:'Enable Blaster Pass for VW and EG'});
|
||||
R.Config('new_year_special',{ type: 'boolean', default: false, name:'Use New Year Special', desc:'Enable New Year Special BGM for login (doesn\'t work right now)'});
|
||||
R.Config('april_fools',{ type: 'boolean', default: false, name:'April Fools', desc:'Enable April Fools Event (doesn\'t work properly right now)'});
|
||||
R.Config('use_information' ,{ type: 'boolean', default: true, name:'Use Information', desc:'Enable the information section after entry.'});
|
||||
R.Config('use_asphyxia_gameover',{ type: 'boolean', default: true, name:'Use Asphyxia Gameover', desc:'Enable the Asphyxia gameover message after ending the game.'})
|
||||
|
||||
R.WebUIEvent('copyResourcesFromGame', copyResourcesFromGame);
|
||||
R.WebUIEvent('preGeneRoll', preGeneRoll);
|
||||
R.WebUIEvent('manageEvents', manageEvents);
|
||||
R.WebUIEvent('updateProfile', updateProfile);
|
||||
R.WebUIEvent('updateMix', updateMix);
|
||||
R.WebUIEvent('importMix', importMix);
|
||||
R.WebUIEvent('deleteMix', deleteMix);
|
||||
|
||||
const MultiRoute = (method: string, handler: EPR | boolean) => {
|
||||
// Helper for register multiple versions.
|
||||
R.Route(`game.${method}`, handler);
|
||||
R.Route(`game_2.${method}`, handler);
|
||||
//R.Route(`game_3.${method}`, handler);
|
||||
R.Route(`game.sv4_${method}`, handler);
|
||||
R.Route(`game.sv5_${method}`, handler);
|
||||
R.Route(`game.sv6_${method}`, handler);
|
||||
};
|
||||
|
||||
// Common
|
||||
MultiRoute('common', common);
|
||||
|
||||
// Profile
|
||||
MultiRoute('new', create);
|
||||
MultiRoute('load', load);
|
||||
MultiRoute('load_m', loadScore);
|
||||
MultiRoute('save', save);
|
||||
MultiRoute('save_m', saveScore);
|
||||
MultiRoute('save_c', saveCourse);
|
||||
MultiRoute('save_valgene', saveValgene);
|
||||
MultiRoute('frozen', true);
|
||||
MultiRoute('buy', buy);
|
||||
MultiRoute('print',print);
|
||||
|
||||
// Features
|
||||
MultiRoute('hiscore', hiscore);
|
||||
MultiRoute('load_r', rival);
|
||||
MultiRoute('save_ap', saveMix);
|
||||
MultiRoute('load_ap', loadMix);
|
||||
|
||||
// Lazy
|
||||
MultiRoute('lounge', (_, __, send) => send.object({
|
||||
interval: K.ITEM('u32', 30)
|
||||
}));
|
||||
MultiRoute('shop', (_, __, send) => send.object({
|
||||
nxt_time: K.ITEM('u32', 1000 * 5 * 60)
|
||||
}));
|
||||
MultiRoute('save_e', true);
|
||||
MultiRoute('save_mega',true);
|
||||
MultiRoute('play_e', true);
|
||||
MultiRoute('play_s', true);
|
||||
MultiRoute('entry_s', globalMatch);
|
||||
MultiRoute('entry_e', true);
|
||||
MultiRoute('exception', true);
|
||||
MultiRoute('log',log);
|
||||
|
||||
/*
|
||||
print_h
|
||||
sample
|
||||
save_campaign
|
||||
save_fi
|
||||
save_pb
|
||||
save_valgene - DONE
|
||||
serial
|
||||
*/
|
||||
|
||||
R.Route('eventlog.write', (_, __, send) => send.object({
|
||||
gamesession: K.ITEM('s64', BigInt(1)),
|
||||
logsendflg: K.ITEM('s32', 0),
|
||||
logerrlevel: K.ITEM('s32', 0),
|
||||
evtidnosendflg: K.ITEM('s32', 0)
|
||||
}));
|
||||
|
||||
R.Route('package.list',(_,__,send)=>send.object({
|
||||
package:K.ATTR({expire:"1200"},{status:"1"})
|
||||
}));
|
||||
|
||||
R.Route('ins.netlog', (_, __, send) => send.object({
|
||||
//gamesession: K.ITEM('s64', BigInt(1)),
|
||||
//logsendflg: K.ITEM('s32', 0),
|
||||
//logerrlevel: K.ITEM('s32', 0),
|
||||
//evtidnosendflg: K.ITEM('s32', 0)
|
||||
}));
|
||||
|
||||
|
||||
// R.Unhandled();
|
||||
R.Unhandled(unhandledt);
|
||||
}
|
||||
import {common,log,unhandledt} from './handlers/common';
|
||||
import {hiscore, rival, saveMix, loadMix, globalMatch} from './handlers/features';
|
||||
import {
|
||||
updateProfile,
|
||||
updateMix,
|
||||
importMix,
|
||||
deleteMix,
|
||||
copyResourcesFromGame,
|
||||
preGeneRoll,
|
||||
manageEvents
|
||||
} from './handlers/webui';
|
||||
import {
|
||||
load,
|
||||
create,
|
||||
loadScore,
|
||||
save,
|
||||
saveScore,
|
||||
saveCourse,
|
||||
buy,
|
||||
print,
|
||||
saveValgene,
|
||||
saveE
|
||||
} from './handlers/profiles';
|
||||
import {
|
||||
ARENA
|
||||
} from './data/exg';
|
||||
|
||||
export function register() {
|
||||
|
||||
R.Contributor("LatoWolf#1170");
|
||||
R.Contributor("ovv (this fork)");
|
||||
R.GameCode('KFC');
|
||||
|
||||
R.Config('sdvx_eg_root_dir', { type: 'string', needRestart: true, default: '', name: 'Exceed Gear Data Directory', desc: 'The root directory of your SDVX Exceed Gear game files (for asset copying)'});
|
||||
R.Config('unlock_all_valk_items', { type: 'boolean', default: false, name:'Unlock All Valkyrie and Premium Items', desc: 'Unlock Nemsys, BGM, Submonitor BG and Stamp Items (Valk crews not included; check \'unlock all navigators\' option)'});
|
||||
R.Config('enable_valk_songs' ,{ type: 'boolean', default: false, name:'Enable Valkyrie Model Songs', desc:'Unlock the valkyrie model songs on non-valkyrie mode.'});
|
||||
R.Config('arena_szn',{ type: 'string', options: Object.keys(ARENA), default: 'Set 1 (04/25/22)', name: 'Arena Station Item Set', desc: 'Choose which season set of items in the arena station you want to show up in arena station'});
|
||||
R.Config('x_record', {type: 'boolean', default: false, name: 'X-Record', desc: 'Activates X-record. 10 VM and 1 LM points per play.'})
|
||||
R.Config('unlock_all_songs', { type: 'boolean', default: false, name:'Unlock All Songs'});
|
||||
R.Config('unlock_all_navigators', { type: 'boolean', default: false, name:'Unlock All Navigators'} );
|
||||
R.Config('unlock_all_appeal_cards', { type: 'boolean', default: false, name:'Unlock All Appeal Cards'});
|
||||
R.Config('use_blasterpass',{ type: 'boolean', default: true, name:'Use Blaster Pass', desc:'Enable Blaster Pass for VW and EG'});
|
||||
R.Config('new_year_special',{ type: 'boolean', default: false, name:'Use New Year Special', desc:'Enable New Year Special BGM for login (doesn\'t work right now)'});
|
||||
R.Config('april_fools',{ type: 'boolean', default: false, name:'April Fools', desc:'Enable April Fools Event (doesn\'t work properly right now)'});
|
||||
R.Config('use_information' ,{ type: 'boolean', default: true, name:'Use Information', desc:'Enable the information section after entry.'});
|
||||
R.Config('use_asphyxia_gameover',{ type: 'boolean', default: true, name:'Use Asphyxia Gameover', desc:'Enable the Asphyxia gameover message after ending the game.'})
|
||||
|
||||
R.WebUIEvent('copyResourcesFromGame', copyResourcesFromGame);
|
||||
R.WebUIEvent('preGeneRoll', preGeneRoll);
|
||||
R.WebUIEvent('manageEvents', manageEvents);
|
||||
R.WebUIEvent('updateProfile', updateProfile);
|
||||
R.WebUIEvent('updateMix', updateMix);
|
||||
R.WebUIEvent('importMix', importMix);
|
||||
R.WebUIEvent('deleteMix', deleteMix);
|
||||
|
||||
const MultiRoute = (method: string, handler: EPR | boolean) => {
|
||||
// Helper for register multiple versions.
|
||||
R.Route(`game.${method}`, handler);
|
||||
R.Route(`game_2.${method}`, handler);
|
||||
//R.Route(`game_3.${method}`, handler);
|
||||
R.Route(`game.sv4_${method}`, handler);
|
||||
R.Route(`game.sv5_${method}`, handler);
|
||||
R.Route(`game.sv6_${method}`, handler);
|
||||
};
|
||||
|
||||
// Common
|
||||
MultiRoute('common', common);
|
||||
|
||||
// Profile
|
||||
MultiRoute('new', create);
|
||||
MultiRoute('load', load);
|
||||
MultiRoute('load_m', loadScore);
|
||||
MultiRoute('save', save);
|
||||
MultiRoute('save_m', saveScore);
|
||||
MultiRoute('save_c', saveCourse);
|
||||
MultiRoute('save_valgene', saveValgene);
|
||||
MultiRoute('frozen', true);
|
||||
MultiRoute('buy', buy);
|
||||
MultiRoute('print',print);
|
||||
|
||||
// Features
|
||||
MultiRoute('hiscore', hiscore);
|
||||
MultiRoute('load_r', rival);
|
||||
MultiRoute('save_ap', saveMix);
|
||||
MultiRoute('load_ap', loadMix);
|
||||
|
||||
// Lazy
|
||||
MultiRoute('lounge', (_, __, send) => send.object({
|
||||
interval: K.ITEM('u32', 30)
|
||||
}));
|
||||
MultiRoute('shop', (_, __, send) => send.object({
|
||||
nxt_time: K.ITEM('u32', 1000 * 5 * 60)
|
||||
}));
|
||||
MultiRoute('save_e', saveE);
|
||||
MultiRoute('save_mega',true);
|
||||
MultiRoute('play_e', true);
|
||||
MultiRoute('play_s', true);
|
||||
MultiRoute('entry_s', globalMatch);
|
||||
MultiRoute('entry_e', true);
|
||||
MultiRoute('exception', true);
|
||||
MultiRoute('log',log);
|
||||
|
||||
/*
|
||||
print_h
|
||||
sample
|
||||
save_campaign
|
||||
save_fi
|
||||
save_pb
|
||||
save_valgene - DONE
|
||||
serial
|
||||
*/
|
||||
|
||||
R.Route('eventlog.write', (_, __, send) => send.object({
|
||||
gamesession: K.ITEM('s64', BigInt(1)),
|
||||
logsendflg: K.ITEM('s32', 0),
|
||||
logerrlevel: K.ITEM('s32', 0),
|
||||
evtidnosendflg: K.ITEM('s32', 0)
|
||||
}));
|
||||
|
||||
R.Route('package.list',(_,__,send)=>send.object({
|
||||
package:K.ATTR({expire:"1200"},{status:"1"})
|
||||
}));
|
||||
|
||||
R.Route('ins.netlog', (_, __, send) => send.object({
|
||||
//gamesession: K.ITEM('s64', BigInt(1)),
|
||||
//logsendflg: K.ITEM('s32', 0),
|
||||
//logerrlevel: K.ITEM('s32', 0),
|
||||
//evtidnosendflg: K.ITEM('s32', 0)
|
||||
}));
|
||||
|
||||
|
||||
// R.Unhandled();
|
||||
R.Unhandled(unhandledt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user