Add ability to automatically detect selected DLL (#17)

This commit is contained in:
Isaac Drew 2018-06-23 11:59:16 +08:00 committed by Will
parent fbf138e13e
commit 5e920f031e
5 changed files with 591 additions and 438 deletions

View File

@ -31,14 +31,14 @@ StandardPatch.prototype.createUI = function(parent) {
};
StandardPatch.prototype.updateUI = function(file) {
this.checkbox.checked = this.checkPatchBytes(file) == "on";
this.checkbox.checked = this.checkPatchBytes(file) === "on";
};
StandardPatch.prototype.validatePatch = function(file) {
var status = this.checkPatchBytes(file);
if(status == "on") {
if(status === "on") {
console.log('"' + this.name + '"', "is enabled!");
} else if(status == "off") {
} else if(status === "off") {
console.log('"' + this.name + '"', "is disabled!");
} else {
return '"' + this.name + '" is neither on nor off! Have you got the right dll?';
@ -61,13 +61,13 @@ StandardPatch.prototype.checkPatchBytes = function(file) {
for(var i = 0; i < this.patches.length; i++) {
var patch = this.patches[i];
if(bytesMatch(file, patch.offset, patch.off)) {
if(patchStatus == "") {
if(patchStatus === "") {
patchStatus = "off";
} else if(patchStatus != "off"){
return "on/off mismatch within patch";
}
} else if(bytesMatch(file, patch.offset, patch.on)) {
if(patchStatus == "") {
if(patchStatus === "") {
patchStatus = "on";
} else if(patchStatus != "on"){
return "on/off mismatch within patch";
@ -92,7 +92,7 @@ var UnionPatch = function(options) {
UnionPatch.prototype.createUI = function(parent) {
this.radios = [];
var radio_id = createID();
var container = $("<div>", {"class": "patch-union"});
container.append('<span class="patch-union-title">' + this.name + ':</span>');
for(var i = 0; i < this.patches.length; i++) {
@ -102,7 +102,7 @@ UnionPatch.prototype.createUI = function(parent) {
var patchDiv = $('<div>', {'class' : 'patch'});
var radio = $('<input type="radio" id="' + id + '" name="' + radio_id + '">')[0];
this.radios.push(radio);
patchDiv.append(radio);
patchDiv.append('<label for="' + id + '">' + label + '</label>');
if(patch.tooltip) {
@ -148,62 +148,162 @@ UnionPatch.prototype.getSelected = function() {
return null;
}
var DllPatcherContainer = function (patchers) {
this.patchers = patchers;
this.createUI();
};
DllPatcherContainer.prototype.getSupportedDLLs = function () {
var dlls = [];
for (var i = 0; i < this.patchers.length; i++) {
var name = this.patchers[i].filename + ".dll";
if (dlls.indexOf(name) === -1) {
dlls.push(name);
}
}
return dlls;
};
DllPatcherContainer.prototype.getSupportedVersions = function () {
var descriptions = [];
for (var i = 0; i < this.patchers.length; i++) {
if ($.type(this.patchers[i].description) === "string") {
descriptions.push(this.patchers[i].description);
}
}
return descriptions;
};
DllPatcherContainer.prototype.createUI = function () {
var self = this;
var container = $("<div>", {"class": "patchContainer"});
var header = this.getSupportedDLLs().join(", ");
container.html("<h3>" + header + "</h3>");
var supportedDlls = $("<ul>");
var versions = this.getSupportedVersions();
for (var i = 0; i < versions.length; i++) {
$("<li>").text(versions[i]).appendTo(supportedDlls);
}
$("html").on("dragover dragenter", function () {
container.addClass("dragover");
return true;
})
.on("dragleave dragend drop", function () {
container.removeClass("dragover");
return true;
})
.on("dragover dragenter dragleave dragend drop", function (e) {
e.preventDefault();
});
container.on("drop", function (e) {
var files = e.originalEvent.dataTransfer.files;
if (files && files.length > 0)
self.loadFile(files[0]);
});
this.fileInput = $("<input>",
{
"class": "fileInput",
"id": "any-file",
"type": "file",
});
var label = $("<label>", {"class": "fileLabel", "for": "any-file"});
label.html("<strong>Choose a file</strong> or drag and drop.");
this.fileInput.on("change", function (e) {
if (this.files && this.files.length > 0)
self.loadFile(this.files[0]);
});
this.successDiv = $("<div>", {"class": "success"});
this.errorDiv = $("<div>", {"class": "error"});
container.append(this.fileInput);
container.append(label);
if (versions.length > 0) {
$("<h4>Supported Versions</h4>").appendTo(container);
}
container.append(supportedDlls);
container.append(this.successDiv);
container.append(this.errorDiv);
$("body").append(container);
};
DllPatcherContainer.prototype.loadFile = function (file) {
var reader = new FileReader();
var self = this;
reader.onload = function (e) {
var found = false;
// clear logs
self.errorDiv.empty();
self.successDiv.empty();
for (var i = 0; i < self.patchers.length; i++) {
var patcher = self.patchers[i];
// remove the previous UI to clear the page
patcher.destroyUI();
// patcher UI elements have to exist to load the file
patcher.createUI();
patcher.container.hide();
patcher.loadBuffer(e.target.result);
if (patcher.validatePatches()) {
found = true;
patcher.loadPatchUI();
patcher.updatePatchUI();
patcher.container.show();
var successStr = patcher.filename + ".dll"
if ($.type(this.description) === "string") {
successStr += "(" + patcher.description + ")";
}
self.successDiv.html(successStr + " loaded successfully!");
}
}
if (!found) {
self.errorDiv.html("No patches found matching the given DLL.");
}
};
reader.readAsArrayBuffer(file);
};
var DllPatcher = function(fname, args, description) {
this.mods = [];
for(var i = 0; i < args.length; i++) {
var mod = args[i];
if(mod.type) {
if(mod.type == "union") {
if(mod.type === "union") {
this.mods.push(new UnionPatch(mod));
}
} else { // standard patch
this.mods.push(new StandardPatch(mod));
}
}
this.filename = fname;
this.description = description;
this.createUI();
this.loadPatchUI();
this.multiPatcher = true;
if (!this.description) {
// old style patcher, use the old method to generate the UI
this.multiPatcher = false;
this.createUI();
this.loadPatchUI();
}
};
DllPatcher.prototype.createUI = function() {
var self = this;
var container = $("<div>", {"class": "patchContainer"});
this.container = $("<div>", {"class": "patchContainer"});
var header = this.filename + '.dll';
if(this.description) {
if($.type(this.description) === "string") {
header += ' (' + this.description + ')';
}
container.html('<h3>' + header + '</h3>');
$('html').on('dragover dragenter', function() {
container.addClass('dragover');
return true;
})
.on('dragleave dragend drop', function() {
container.removeClass('dragover');
return true;
})
.on('dragover dragenter dragleave dragend drop', function(e) {
e.preventDefault();
});
container.on('drop', function(e) {
var files = e.originalEvent.dataTransfer.files;
if(files && files.length > 0)
self.loadFile(files[0]);
})
this.fileInput = $("<input>",
{"class": "fileInput",
"id" : this.filename + '-file',
"type" : 'file'});
var label = $("<label>", {"class": "fileLabel", "for": this.filename + '-file'});
label.html('<strong>Choose a file</strong> or drag and drop.');
this.fileInput.on('change', function(e) {
if(this.files && this.files.length > 0)
self.loadFile(this.files[0]);
});
this.container.html('<h3>' + header + '</h3>');
this.successDiv = $("<div>", {"class": "success"});
this.errorDiv = $("<div>", {"class": "error"});
@ -214,13 +314,65 @@ DllPatcher.prototype.createUI = function() {
saveButton.on('click', this.saveDll.bind(this));
this.saveButton = saveButton;
container.append(this.fileInput);
container.append(label);
container.append(this.successDiv);
container.append(this.errorDiv);
container.append(this.patchDiv);
container.append(saveButton);
$('body').append(container);
if (!this.multiPatcher) {
$('html').on('dragover dragenter', function() {
self.container.addClass('dragover');
return true;
})
.on('dragleave dragend drop', function() {
self.container.removeClass('dragover');
return true;
})
.on('dragover dragenter dragleave dragend drop', function(e) {
e.preventDefault();
});
this.container.on('drop', function(e) {
var files = e.originalEvent.dataTransfer.files;
if(files && files.length > 0)
self.loadFile(files[0]);
})
this.fileInput = $("<input>",
{"class": "fileInput",
"id" : this.filename + '-file',
"type" : 'file'});
var label = $("<label>", {"class": "fileLabel", "for": this.filename + '-file'});
label.html('<strong>Choose a file</strong> or drag and drop.');
this.fileInput.on('change', function(e) {
if(this.files && this.files.length > 0)
self.loadFile(this.files[0]);
});
this.container.append(this.fileInput);
this.container.append(label);
}
this.container.append(this.successDiv);
this.container.append(this.errorDiv);
this.container.append(this.patchDiv);
this.container.append(saveButton);
$("body").append(this.container);
}
DllPatcher.prototype.destroyUI = function () {
if (this.hasOwnProperty("container"))
this.container.remove();
};
DllPatcher.prototype.loadBuffer = function(buffer) {
this.dllFile = new Uint8Array(buffer);
if(this.validatePatches()) {
this.successDiv.removeClass("hidden");
this.successDiv.html("DLL loaded successfully!");
} else {
this.successDiv.addClass("hidden");
}
// Update save button regardless
this.saveButton.prop('disabled', false);
this.saveButton.text('Save DLL');
this.errorDiv.html(this.errorLog);
}
DllPatcher.prototype.loadFile = function(file) {
@ -228,18 +380,8 @@ DllPatcher.prototype.loadFile = function(file) {
var self = this;
reader.onload = function(e) {
self.dllFile = new Uint8Array(e.target.result);
if(self.validatePatches()) {
self.successDiv.removeClass("hidden");
self.successDiv.html("DLL loaded successfully!");
} else {
self.successDiv.addClass("hidden");
}
// Update save button regardless
self.saveButton.prop('disabled', false);
self.saveButton.text('Save DLL');
self.errorDiv.html(self.errorLog);
self.updatePatchUI();
self.loadBuffer(e.target.result);
this.updatePatchUI();
};
reader.readAsArrayBuffer(file);
@ -307,5 +449,6 @@ var whichBytesMatch = function(buffer, offset, bytesArray) {
}
window.DllPatcher = DllPatcher;
window.DllPatcherContainer = DllPatcherContainer;
})(window, document);

View File

@ -10,21 +10,24 @@
<script type="text/javascript" src="js/dllpatcher.js"></script>
<script type="text/javascript">
window.addEventListener("load", function() {
new DllPatcher("jubeat", [
{
name : "Disable tutorial",
patches : [{offset : 0x81F79, off: [0x0F, 0x85, 0xC7], on : [0xE9, 0xC6, 0x01]}]
},
{
name : "SELECT MUSIC timer lock",
patches : [{offset : 0x16E64D, off : [0x75], on : [0xEB]}]
},
]);
new DllPatcher("music_db", [
{
name : "Unlock all songs",
patches : [{offset : 0x266D, off: [0x02], on : [0x1f]}]
},
new DllPatcherContainer([
new DllPatcher("jubeat", [
{
name : "Disable tutorial",
patches : [{offset : 0x81F79, off: [0x0F, 0x85, 0xC7], on : [0xE9, 0xC6, 0x01]}]
},
{
name : "SELECT MUSIC timer lock",
patches : [{offset : 0x16E64D, off : [0x75], on : [0xEB]}]
},
], true),
new DllPatcher("music_db", [
{
name : "Unlock all songs",
patches : [{offset : 0x266D, off: [0x02], on : [0x1f]}]
},
], true)
]);
});
</script>

View File

@ -10,21 +10,24 @@
<script type="text/javascript" src="js/dllpatcher.js"></script>
<script type="text/javascript">
window.addEventListener("load", function() {
new DllPatcher("jubeat", [
{
name : "Disable tutorial",
patches : [{offset : 0xAAC32, off: [0x75, 0x4A, 0x53, 0x68, 0x00], on : [0xE9, 0x90, 0x00, 0x00, 0x00]}]
},
{
name : "SELECT MUSIC timer lock",
patches : [{offset : 0x80576, off : [0x75], on : [0xEB]}]
},
]);
new DllPatcher("music_db", [
{
name : "Unlock all songs",
patches : [{offset : 0x17DF, off: [0x74, 0x09], on : [0x90, 0x90]}]
},
new DllPatcherContainer([
new DllPatcher("jubeat", [
{
name : "Disable tutorial",
patches : [{offset : 0xAAC32, off: [0x75, 0x4A, 0x53, 0x68, 0x00], on : [0xE9, 0x90, 0x00, 0x00, 0x00]}]
},
{
name : "SELECT MUSIC timer lock",
patches : [{offset : 0x80576, off : [0x75], on : [0xEB]}]
},
], true),
new DllPatcher("music_db", [
{
name : "Unlock all songs",
patches : [{offset : 0x17DF, off: [0x74, 0x09], on : [0x90, 0x90]}]
},
], true)
]);
});
</script>

View File

@ -10,193 +10,194 @@
<script type='text/javascript' src='js/dllpatcher.js'></script>
<script type='text/javascript'>
window.addEventListener('load', function () {
new DllPatcher('soundvoltex', [
{
name: 'All songs/difficulties unlocked',
patches: [{offset: 0x1531F2, off: [0xE8, 0x09, 0x43, 0x02], on: [0xB8, 0x0D, 0x00, 0x00]},
{
offset: 0x1B5F39,
off: [0x8B, 0x44, 0x24, 0x20, 0xE8, 0x3E, 0xEB, 0xFF, 0xFF],
on: [0xB8, 0x03, 0x00, 0x00, 0x00, 0x90, 0x90, 0x90, 0x90]
}]
},
{
name: 'All songs "Safe"',
tooltip: 'Failing early won\'t drop you out of your session',
patches: [{offset: 0x172CDB, off: [0x32, 0xC0], on: [0xB0, 0x01]}]
},
{
// Created by mon
name: 'No "Safe" banner on jackets',
tooltip: 'Remove visual clutter',
patches: [{offset: 0x2EB3EC, off: [0x73], on: [0x00]}]
},
{
name: 'Boot into Event Mode',
patches: [{offset: 0x1977D3, off: [0x00], on: [0x01]}]
},
{
name: 'PFree (Unlimited plays)',
tooltip: 'Song clears/scores only, mission progress and custom settings do not save',
patches: [{offset: 0x1CC10F, off: [0x00], on: [0x02]},
{
offset: 0x1CC2D6,
off: [0x8B, 0x83, 0x64, 0x10, 0x00, 0x00, 0x8D, 0x48, 0x01, 0x83, 0xF9, 0x04, 0x56, 0x57, 0x7F, 0x52],
on: [0xB8, 0x01, 0x00, 0x00, 0x00, 0x89, 0x83, 0x64, 0x10, 0x00, 0x00, 0x90, 0x56, 0x57, 0x90, 0x90]
}]
},
], "2018-01-16");
new DllPatcherContainer([
new DllPatcher('soundvoltex', [
{
name: 'All songs/difficulties unlocked',
patches: [{offset: 0x1531F2, off: [0xE8, 0x09, 0x43, 0x02], on: [0xB8, 0x0D, 0x00, 0x00]},
{
offset: 0x1B5F39,
off: [0x8B, 0x44, 0x24, 0x20, 0xE8, 0x3E, 0xEB, 0xFF, 0xFF],
on: [0xB8, 0x03, 0x00, 0x00, 0x00, 0x90, 0x90, 0x90, 0x90]
}]
},
{
name: 'All songs "Safe"',
tooltip: 'Failing early won\'t drop you out of your session',
patches: [{offset: 0x172CDB, off: [0x32, 0xC0], on: [0xB0, 0x01]}]
},
{
// Created by mon
name: 'No "Safe" banner on jackets',
tooltip: 'Remove visual clutter',
patches: [{offset: 0x2EB3EC, off: [0x73], on: [0x00]}]
},
{
name: 'Boot into Event Mode',
patches: [{offset: 0x1977D3, off: [0x00], on: [0x01]}]
},
{
name: 'PFree (Unlimited plays)',
tooltip: 'Song clears/scores only, mission progress and custom settings do not save',
patches: [{offset: 0x1CC10F, off: [0x00], on: [0x02]},
{
offset: 0x1CC2D6,
off: [0x8B, 0x83, 0x64, 0x10, 0x00, 0x00, 0x8D, 0x48, 0x01, 0x83, 0xF9, 0x04, 0x56, 0x57, 0x7F, 0x52],
on: [0xB8, 0x01, 0x00, 0x00, 0x00, 0x89, 0x83, 0x64, 0x10, 0x00, 0x00, 0x90, 0x56, 0x57, 0x90, 0x90]
}]
},
], "2018-01-16"),
new DllPatcher('soundvoltex', [
{
// Credit to kacklappen23
name: 'All songs/difficulties unlocked',
patches: [{offset: 0x154C72, off: [0xE8, 0xA9, 0x44, 0x02], on: [0xB8, 0x0D, 0x00, 0x00]},
{
offset: 0x1B7A79,
off: [0x8B, 0x44, 0x24, 0x20, 0xE8, 0x3E, 0xEB, 0xFF, 0xFF],
on: [0xB8, 0x03, 0x00, 0x00, 0x00, 0x90, 0x90, 0x90, 0x90]
}]
},
{
name: 'All songs "Safe"',
tooltip: 'Failing early won\'t drop you out of your session',
patches: [{offset: 0x1748EB, off: [0x32, 0xC0], on: [0xB0, 0x01]}]
},
{
// Created by mon
name: 'No "Safe" banner on jackets',
tooltip: 'Remove visual clutter',
patches: [{offset: 0x2EE860, off: [0x73], on: [0x00]}]
},
{
name: 'Boot into Event Mode',
patches: [{offset: 0x1992B2, off: [0x00], on: [0x01]}]
},
{
// created by zini
// ported by kacklappen23
name: 'Disable EVENT MODE/FREE PLAY text',
patches: [{offset: 0xBEEF0, off: [0xE8, 0x2B], on: [0xEB, 0x03]}]
},
{
name: 'PFree (Unlimited plays)',
tooltip: 'Song clears/scores only, mission progress and custom settings do not save',
patches: [{offset: 0x1CEE4F, off: [0x00], on: [0x02]},
{
offset: 0x1CF016,
off: [0x8B, 0x83, 0x64, 0x10, 0x00, 0x00, 0x8D, 0x48, 0x01, 0x83, 0xF9, 0x04, 0x56, 0x57, 0x7F, 0x52],
on: [0xB8, 0x01, 0x00, 0x00, 0x00, 0x89, 0x83, 0x64, 0x10, 0x00, 0x00, 0x90, 0x56, 0x57, 0x90, 0x90]
}]
},
{
// thanks Element4521
name: 'Allow ARS (Alternative Rate System) Option',
tooltip: 'At gauge select, go to excessive and press BT-D to enable',
patches: [{offset: 0x174004, off: [0x74], on: [0xEB]}]
},
{
// Created by runner38
name: 'Freeze timer in all modes',
tooltip: 'Useful to play with Omega Dimension Ex-Track',
patches: [{offset: 0x7749B, off: [0x8B, 0x43, 0x60, 0x85, 0xC0, 0x74, 0x04], on: [0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90]}]
}
], "2018-01-16 with Enhanced Continue"),
new DllPatcher('soundvoltex', [
{
// Credit to kacklappen23
name: 'All songs/difficulties unlocked',
patches: [{offset: 0x154C72, off: [0xE8, 0xA9, 0x44, 0x02], on: [0xB8, 0x0D, 0x00, 0x00]},
{
offset: 0x1B7A79,
off: [0x8B, 0x44, 0x24, 0x20, 0xE8, 0x3E, 0xEB, 0xFF, 0xFF],
on: [0xB8, 0x03, 0x00, 0x00, 0x00, 0x90, 0x90, 0x90, 0x90]
}]
},
{
name: 'All songs "Safe"',
tooltip: 'Failing early won\'t drop you out of your session',
patches: [{offset: 0x1748EB, off: [0x32, 0xC0], on: [0xB0, 0x01]}]
},
{
// Created by mon
name: 'No "Safe" banner on jackets',
tooltip: 'Remove visual clutter',
patches: [{offset: 0x2EE860, off: [0x73], on: [0x00]}]
},
{
name: 'Boot into Event Mode',
patches: [{offset: 0x1992B2, off: [0x00], on: [0x01]}]
},
{
// created by zini
// ported by kacklappen23
name: 'Disable EVENT MODE/FREE PLAY text',
patches: [{offset: 0xBEEF0, off: [0xE8, 0x2B], on: [0xEB, 0x03]}]
},
{
name: 'PFree (Unlimited plays)',
tooltip: 'Song clears/scores only, mission progress and custom settings do not save',
patches: [{offset: 0x1CEE4F, off: [0x00], on: [0x02]},
{
offset: 0x1CF016,
off: [0x8B, 0x83, 0x64, 0x10, 0x00, 0x00, 0x8D, 0x48, 0x01, 0x83, 0xF9, 0x04, 0x56, 0x57, 0x7F, 0x52],
on: [0xB8, 0x01, 0x00, 0x00, 0x00, 0x89, 0x83, 0x64, 0x10, 0x00, 0x00, 0x90, 0x56, 0x57, 0x90, 0x90]
}]
},
{
// thanks Element4521
name: 'Allow ARS (Alternative Rate System) Option',
tooltip: 'At gauge select, go to excessive and press BT-D to enable',
patches: [{offset: 0x174004, off: [0x74], on: [0xEB]}]
},
{
// Created by runner38
name: 'Freeze timer in all modes',
tooltip: 'Useful to play with Omega Dimension Ex-Track',
patches: [{offset: 0x7749B, off: [0x8B, 0x43, 0x60, 0x85, 0xC0, 0x74, 0x04], on: [0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90]}]
}
], "2018-01-16 with Enhanced Continue");
// all patches ported to IV by Zelminar unless specified otherwise
// all original patches created by DJH unless specified otherwise
new DllPatcher('soundvoltex', [
{
name: 'All songs/difficulties unlocked',
patches: [{offset: 0x152142, off: [0xE8, 0xF9, 0x41, 0x02], on: [0xB8, 0x0D, 0x00, 0x00]},
{
offset: 0x1B4A31,
off: [0x8B, 0x44, 0x24, 0x20, 0xE8, 0xA6, 0xEC, 0xFF, 0xFF],
on: [0xB8, 0x03, 0x00, 0x00, 0x00, 0x90, 0x90, 0x90, 0x90]
}]
},
{
name: 'All songs "Safe"',
tooltip: 'Failing early won\'t drop you out of your session',
patches: [{offset: 0x171B07, off: [0x32, 0xC0], on: [0xB0, 0x01]}]
},
{
// Created by mon
name: 'No "Safe" banner on jackets',
tooltip: 'Remove visual clutter',
patches: [{offset: 0x2E9C44, off: [0x73], on: [0x00]}]
},
{
name: 'Prevent Windows volume change on boot',
tooltip: 'If your volume gets forced to max, turn this on',
patches: [{offset: 0x2451EA, off: [0xE8, 0x21, 0x03, 0x00, 0x00], on: [0x90, 0x90, 0x90, 0x90, 0x90]}]
},
{
name: 'Boot into Event Mode',
patches: [{offset: 0x196562, off: [0x00], on: [0x01]}]
},
{
// created by zini
name: 'Disable EVENT MODE/FREE PLAY text',
patches: [{offset: 0xBC920, off: [0xE8, 0x6B], on: [0xEB, 0x03]}]
},
{
name: 'PFree (Unlimited plays)',
tooltip: 'Song clears/scores only, mission progress and custom settings do not save',
patches: [{offset: 0x1CAAFF, off: [0x00], on: [0x02]},
{
offset: 0x1CACC6,
off: [0x8B, 0x83, 0x64, 0x10, 0x00, 0x00, 0x8D, 0x48, 0x01, 0x83, 0xF9, 0x04, 0x56, 0x57, 0x7F, 0x52],
on: [0xB8, 0x01, 0x00, 0x00, 0x00, 0x89, 0x83, 0x64, 0x10, 0x00, 0x00, 0x90, 0x56, 0x57, 0x90, 0x90]
}]
},
{
// Created by mon
name: 'Hispeed values from 0.1 to 20.0',
patches: [
{offset: 0x12198B, off: [0xDD, 0x05, 0xF8, 0x87, 0x2D, 0x10], on: [0xD9, 0x05, 0xA0, 0x89, 0x2D, 0x10]},
{offset: 0x1219A0, off: [0xDD, 0x05, 0x00, 0x88, 0x2D, 0x10], on: [0xD9, 0x05, 0xE4, 0x86, 0x2D, 0x10]},
{offset: 0x1211C1, off: [0xDD, 0x05, 0xF8, 0x87, 0x2D, 0x10], on: [0xD9, 0x05, 0xA0, 0x89, 0x2D, 0x10]},
{offset: 0x1211BB, off: [0xDD, 0x05, 0x00, 0x88, 0x2D, 0x10], on: [0xD9, 0x05, 0xE4, 0x86, 0x2D, 0x10]}
]
},
{
// thanks Element4521
name: 'Allow ARS (Alternative Rate System) Option',
tooltip: 'At gauge select, go to excessive and press BT-D to enable',
patches: [{offset: 0x171274, off: [0x74], on: [0xEB]}]
},
{
// Created by runner38
name: 'Non-Effective Rate gauges start at 0%',
tooltip: 'This affects all "Hard" Gauge types',
patches: [{offset: 0x11ACD0, off: [0x10, 0x27], on: [0x01, 0x00]}]
},
{
// Created by runner38
name: 'Non-Effective Rate gauges do not recover',
tooltip: 'This affects all "Hard" Gauge types',
patches: [{offset: 0x11B14A, off: [0x01, 0x50, 0x48], on: [0x90, 0x90, 0x90]}]
},
{
// Created by runner38
name: 'Remove Combo/Chain Display',
patches: [{offset: 0x1220B1, off: [0x8B, 0x45, 0x08], on: [0x90, 0x90, 0x90]}]
},
{
// Created by Zelminar
name: 'Omega Dimension Matching scene as default',
tooltip: 'Replaces stock matching scene with Omega Dimension matching',
patches: [{offset: 0x358B40, off: [0xDC, 0x5F, 0x30, 0x10], on: [0x38, 0x54, 0x30, 0x10]}]
},
{
// Created by runner38
name: 'Freeze timer in all modes',
tooltip: 'Useful to play with Omega Dimension Ex-Track',
patches: [{offset: 0x75C1B, off: [0x8B, 0x43, 0x60, 0x85, 0xC0, 0x74, 0x04], on: [0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90]}]
},
], "2017-11-28");
})
// all patches ported to IV by Zelminar unless specified otherwise
// all original patches created by DJH unless specified otherwise
new DllPatcher('soundvoltex', [
{
name: 'All songs/difficulties unlocked',
patches: [{offset: 0x152142, off: [0xE8, 0xF9, 0x41, 0x02], on: [0xB8, 0x0D, 0x00, 0x00]},
{
offset: 0x1B4A31,
off: [0x8B, 0x44, 0x24, 0x20, 0xE8, 0xA6, 0xEC, 0xFF, 0xFF],
on: [0xB8, 0x03, 0x00, 0x00, 0x00, 0x90, 0x90, 0x90, 0x90]
}]
},
{
name: 'All songs "Safe"',
tooltip: 'Failing early won\'t drop you out of your session',
patches: [{offset: 0x171B07, off: [0x32, 0xC0], on: [0xB0, 0x01]}]
},
{
// Created by mon
name: 'No "Safe" banner on jackets',
tooltip: 'Remove visual clutter',
patches: [{offset: 0x2E9C44, off: [0x73], on: [0x00]}]
},
{
name: 'Prevent Windows volume change on boot',
tooltip: 'If your volume gets forced to max, turn this on',
patches: [{offset: 0x2451EA, off: [0xE8, 0x21, 0x03, 0x00, 0x00], on: [0x90, 0x90, 0x90, 0x90, 0x90]}]
},
{
name: 'Boot into Event Mode',
patches: [{offset: 0x196562, off: [0x00], on: [0x01]}]
},
{
// created by zini
name: 'Disable EVENT MODE/FREE PLAY text',
patches: [{offset: 0xBC920, off: [0xE8, 0x6B], on: [0xEB, 0x03]}]
},
{
name: 'PFree (Unlimited plays)',
tooltip: 'Song clears/scores only, mission progress and custom settings do not save',
patches: [{offset: 0x1CAAFF, off: [0x00], on: [0x02]},
{
offset: 0x1CACC6,
off: [0x8B, 0x83, 0x64, 0x10, 0x00, 0x00, 0x8D, 0x48, 0x01, 0x83, 0xF9, 0x04, 0x56, 0x57, 0x7F, 0x52],
on: [0xB8, 0x01, 0x00, 0x00, 0x00, 0x89, 0x83, 0x64, 0x10, 0x00, 0x00, 0x90, 0x56, 0x57, 0x90, 0x90]
}]
},
{
// Created by mon
name: 'Hispeed values from 0.1 to 20.0',
patches: [
{offset: 0x12198B, off: [0xDD, 0x05, 0xF8, 0x87, 0x2D, 0x10], on: [0xD9, 0x05, 0xA0, 0x89, 0x2D, 0x10]},
{offset: 0x1219A0, off: [0xDD, 0x05, 0x00, 0x88, 0x2D, 0x10], on: [0xD9, 0x05, 0xE4, 0x86, 0x2D, 0x10]},
{offset: 0x1211C1, off: [0xDD, 0x05, 0xF8, 0x87, 0x2D, 0x10], on: [0xD9, 0x05, 0xA0, 0x89, 0x2D, 0x10]},
{offset: 0x1211BB, off: [0xDD, 0x05, 0x00, 0x88, 0x2D, 0x10], on: [0xD9, 0x05, 0xE4, 0x86, 0x2D, 0x10]}
]
},
{
// thanks Element4521
name: 'Allow ARS (Alternative Rate System) Option',
tooltip: 'At gauge select, go to excessive and press BT-D to enable',
patches: [{offset: 0x171274, off: [0x74], on: [0xEB]}]
},
{
// Created by runner38
name: 'Non-Effective Rate gauges start at 0%',
tooltip: 'This affects all "Hard" Gauge types',
patches: [{offset: 0x11ACD0, off: [0x10, 0x27], on: [0x01, 0x00]}]
},
{
// Created by runner38
name: 'Non-Effective Rate gauges do not recover',
tooltip: 'This affects all "Hard" Gauge types',
patches: [{offset: 0x11B14A, off: [0x01, 0x50, 0x48], on: [0x90, 0x90, 0x90]}]
},
{
// Created by runner38
name: 'Remove Combo/Chain Display',
patches: [{offset: 0x1220B1, off: [0x8B, 0x45, 0x08], on: [0x90, 0x90, 0x90]}]
},
{
// Created by Zelminar
name: 'Omega Dimension Matching scene as default',
tooltip: 'Replaces stock matching scene with Omega Dimension matching',
patches: [{offset: 0x358B40, off: [0xDC, 0x5F, 0x30, 0x10], on: [0x38, 0x54, 0x30, 0x10]}]
},
{
// Created by runner38
name: 'Freeze timer in all modes',
tooltip: 'Useful to play with Omega Dimension Ex-Track',
patches: [{offset: 0x75C1B, off: [0x8B, 0x43, 0x60, 0x85, 0xC0, 0x74, 0x04], on: [0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90]}]
},
], "2017-11-28")
]);
});
</script>
</head>
<body>

View File

@ -10,166 +10,169 @@
<script type="text/javascript" src="js/dllpatcher.js"></script>
<script type="text/javascript">
window.addEventListener("load", function() {
new DllPatcher("bm2dx", [
{
name : "Timer Freeze",
patches : [{offset : 0x9BAEE, off: [0x74], on : [0xEB]}]
},
{
name : "Premium Free",
patches : [{offset : 0x60A1B, off: [0x75], on : [0xEB]}]
},
{
name : "Premium Free (2 player mode)",
patches : [{offset : 0x60B94, off: [0x74, 0x2f], on : [0x90, 0x90]},
{offset : 0x60BA5, off: [0x0f, 0x85, 0x3b], on : [0xe9, 0x3c, 0xff]},
{offset : 0x60BAA, off: [0xff], on : [0x90]}]
},
{
name : "Premium Free Timer Freeze",
patches : [{offset : 0x5DEAD, off: [0x48], on : [0x90]}]
},
{
name : "Level 12 Unlocked",
patches : [{offset : 0x5BB35, off: [0x83, 0xFF, 0x02, 0x74, 0x0B, 0x83, 0xFF, 0x05, 0x74, 0x06, 0xB0, 0x01],
on : [0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90]}]
},
{
name : "Unlock All Songs",
patches : [{offset : 0x5C005, off: [0x74, 0x15], on : [0x90, 0x90]}]
},
{
name : "Unlock All Daily Bonuses",
patches : [{offset : 0x5E180, off: [0x56, 0x8B, 0xF1, 0xE8, 0x58, 0x57, 0xFD, 0xFF],
on : [0xB8, 0x01, 0x00, 0x00, 0x00, 0xC2, 0x04, 0x00]}]
},
{
name : "Cursor lock",
tooltip : "After song finishes, song select remains on previous song",
patches : [{offset : 0x6C8E5, off: [0x74, 0x23], on : [0x90, 0x90]}]
},
{
name : "CS-Style Song Start Delay",
tooltip : "Holding Start will pause the song at the beginning until you release it",
patches : [{offset : 0x78D52, off: [0x7C], on : [0xEB]}]
},
{
name : "Dark Mode",
patches : [{offset : 0x71cb7, off: [0x74, 0x3b], on : [0x90, 0x90]}]
},
{
name : "Disable Bar Lines",
patches : [{offset : 0x3d540, off: [0x75], on : [0xEB]}]
},
{
name : "Remove Rainbow Banners",
patches : [{offset : 0x12C34D, off: [0x5F], on : [0x00]}]
},
{
name : "Volume Bug Fix",
tooltip : "If your volume gets forced to max, turn this on",
patches : [{offset : 0xda249, off: [0x00], on : [0x01]}]
},
{
name : "Free play text to LED ticker",
patches : [{offset : 0x150EA, off: [0xE0, 0x8F, 0x12, 0x10], on : [0x64, 0x99, 0x6A, 0x11]}]
},
{
name : "Free play text to LED ticker (Upper left)",
patches : [{offset : 0xA4615, off: [0x74, 0x32], on : [0x90, 0x90]},
{offset : 0xA4630, off: [0x54, 0x1D, 0x16, 0x10], on : [0x64, 0x99, 0x6A, 0x11]}]
},
{
name : "Debug mode (disables score saving!)",
tooltip : "Press F1 in-game to open menu",
patches : [{offset : 0x579B0, off: [0x32, 0xC0], on : [0x0C, 0x01]}]
},
{
name : "Skip Card Entry",
tooltip : "Useful for those without service or to prevent login",
patches : [{offset : 0x63E34, off: [0x32], on : [0x20]}]
},
{
name : "Quick Retry",
tooltip : "Hold VEFX and Effect during a song to restart",
patches : [{offset : 0x4e284, off: [0x8A, 0xC3], on : [0xB0, 0x01]}]
},
], "stock");
new DllPatcher("bm2dx_omni", [
{
name : "Timer Freeze",
patches : [{offset : 0x9BCFE, off: [0x74], on : [0xEB]}]
},
{
name : "Premium Free",
patches : [{offset : 0x60B9B, off: [0x75], on : [0xEB]}]
},
{
name : "Premium Free (2 player mode)",
patches : [{offset : 0x60D14, off: [0x74, 0x2f], on : [0x90, 0x90]},
{offset : 0x60D25, off: [0x0f, 0x85, 0x3b], on : [0xe9, 0x3c, 0xff]},
{offset : 0x60D2A, off: [0xff], on : [0x90]}]
},
{
name : "Premium Free Timer Freeze",
patches : [{offset : 0x5DFFD, off: [0x48], on : [0x90]}]
},
{
name : "Unlock All Songs",
patches : [{offset : 0x5C125, off: [0x74, 0x15], on : [0x90, 0x90]}]
},
{
name : "Cursor lock",
tooltip : "After song finishes, song select remains on previous song",
patches : [{offset : 0x6CAE5, off: [0x74, 0x23], on : [0x90, 0x90]}]
},
{
name : "CS-Style Song Start Delay",
tooltip : "Holding Start will pause the song at the beginning until you release it",
patches : [{offset : 0x78EE2, off: [0x7C], on : [0xEB]}]
},
{
name : "Dark Mode",
patches : [{offset : 0x71E57, off: [0x74, 0x3b], on : [0x90, 0x90]}]
},
{
name : "Disable Bar Lines",
patches : [{offset : 0x3d450, off: [0x75], on : [0xEB]}]
},
{
name : "Remove Rainbow Banners",
patches : [{offset : 0x12C355, off: [0x5F], on : [0x00]}]
},
{
name : "Volume Bug Fix",
tooltip : "If your volume gets forced to max, turn this on",
patches : [{offset : 0xDA219, off: [0x00], on : [0x01]}]
},
{
name : "Free play text to LED ticker",
patches : [{offset : 0x150EA, off: [0xE0, 0x8F, 0x12, 0x10], on : [0x64, 0x99, 0x6A, 0x11]}]
},
{
name : "Free play text to LED ticker (Upper left)",
patches : [{offset : 0xA4865, off: [0x74, 0x32], on : [0x90, 0x90]},
{offset : 0xA4880, off: [0x8c, 0x1D, 0x16, 0x10], on : [0x64, 0x99, 0x6A, 0x11]}]
},
{
name : "Debug mode (disables score saving!)",
tooltip : "Press F1 in-game to open menu",
patches : [{offset : 0xa2ef0, off: [0x32, 0xC0], on : [0x0C, 0x01]}]
},
{
name : "Skip Card Entry",
tooltip : "Useful for those without service or to prevent login",
patches : [{offset : 0x64014, off: [0x32], on : [0x20]}]
},
{
name : "Quick Retry",
tooltip : "Hold VEFX and Effect during a song to restart",
patches : [{offset : 0x4e154, off: [0x8A, 0xC3], on : [0xB0, 0x01]}]
},
], "omnimix");
new DllPatcherContainer([
new DllPatcher("bm2dx", [
{
name : "Timer Freeze",
patches : [{offset : 0x9BAEE, off: [0x74], on : [0xEB]}]
},
{
name : "Premium Free",
patches : [{offset : 0x60A1B, off: [0x75], on : [0xEB]}]
},
{
name : "Premium Free (2 player mode)",
patches : [{offset : 0x60B94, off: [0x74, 0x2f], on : [0x90, 0x90]},
{offset : 0x60BA5, off: [0x0f, 0x85, 0x3b], on : [0xe9, 0x3c, 0xff]},
{offset : 0x60BAA, off: [0xff], on : [0x90]}]
},
{
name : "Premium Free Timer Freeze",
patches : [{offset : 0x5DEAD, off: [0x48], on : [0x90]}]
},
{
name : "Level 12 Unlocked",
patches : [{offset : 0x5BB35, off: [0x83, 0xFF, 0x02, 0x74, 0x0B, 0x83, 0xFF, 0x05, 0x74, 0x06, 0xB0, 0x01],
on : [0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90]}]
},
{
name : "Unlock All Songs",
patches : [{offset : 0x5C005, off: [0x74, 0x15], on : [0x90, 0x90]}]
},
{
name : "Unlock All Daily Bonuses",
patches : [{offset : 0x5E180, off: [0x56, 0x8B, 0xF1, 0xE8, 0x58, 0x57, 0xFD, 0xFF],
on : [0xB8, 0x01, 0x00, 0x00, 0x00, 0xC2, 0x04, 0x00]}]
},
{
name : "Cursor lock",
tooltip : "After song finishes, song select remains on previous song",
patches : [{offset : 0x6C8E5, off: [0x74, 0x23], on : [0x90, 0x90]}]
},
{
name : "CS-Style Song Start Delay",
tooltip : "Holding Start will pause the song at the beginning until you release it",
patches : [{offset : 0x78D52, off: [0x7C], on : [0xEB]}]
},
{
name : "Dark Mode",
patches : [{offset : 0x71cb7, off: [0x74, 0x3b], on : [0x90, 0x90]}]
},
{
name : "Disable Bar Lines",
patches : [{offset : 0x3d540, off: [0x75], on : [0xEB]}]
},
{
name : "Remove Rainbow Banners",
patches : [{offset : 0x12C34D, off: [0x5F], on : [0x00]}]
},
{
name : "Volume Bug Fix",
tooltip : "If your volume gets forced to max, turn this on",
patches : [{offset : 0xda249, off: [0x00], on : [0x01]}]
},
{
name : "Free play text to LED ticker",
patches : [{offset : 0x150EA, off: [0xE0, 0x8F, 0x12, 0x10], on : [0x64, 0x99, 0x6A, 0x11]}]
},
{
name : "Free play text to LED ticker (Upper left)",
patches : [{offset : 0xA4615, off: [0x74, 0x32], on : [0x90, 0x90]},
{offset : 0xA4630, off: [0x54, 0x1D, 0x16, 0x10], on : [0x64, 0x99, 0x6A, 0x11]}]
},
{
name : "Debug mode (disables score saving!)",
tooltip : "Press F1 in-game to open menu",
patches : [{offset : 0x579B0, off: [0x32, 0xC0], on : [0x0C, 0x01]}]
},
{
name : "Skip Card Entry",
tooltip : "Useful for those without service or to prevent login",
patches : [{offset : 0x63E34, off: [0x32], on : [0x20]}]
},
{
name : "Quick Retry",
tooltip : "Hold VEFX and Effect during a song to restart",
patches : [{offset : 0x4e284, off: [0x8A, 0xC3], on : [0xB0, 0x01]}]
},
], "stock"),
new DllPatcher("bm2dx_omni", [
{
name : "Timer Freeze",
patches : [{offset : 0x9BCFE, off: [0x74], on : [0xEB]}]
},
{
name : "Premium Free",
patches : [{offset : 0x60B9B, off: [0x75], on : [0xEB]}]
},
{
name : "Premium Free (2 player mode)",
patches : [{offset : 0x60D14, off: [0x74, 0x2f], on : [0x90, 0x90]},
{offset : 0x60D25, off: [0x0f, 0x85, 0x3b], on : [0xe9, 0x3c, 0xff]},
{offset : 0x60D2A, off: [0xff], on : [0x90]}]
},
{
name : "Premium Free Timer Freeze",
patches : [{offset : 0x5DFFD, off: [0x48], on : [0x90]}]
},
{
name : "Unlock All Songs",
patches : [{offset : 0x5C125, off: [0x74, 0x15], on : [0x90, 0x90]}]
},
{
name : "Cursor lock",
tooltip : "After song finishes, song select remains on previous song",
patches : [{offset : 0x6CAE5, off: [0x74, 0x23], on : [0x90, 0x90]}]
},
{
name : "CS-Style Song Start Delay",
tooltip : "Holding Start will pause the song at the beginning until you release it",
patches : [{offset : 0x78EE2, off: [0x7C], on : [0xEB]}]
},
{
name : "Dark Mode",
patches : [{offset : 0x71E57, off: [0x74, 0x3b], on : [0x90, 0x90]}]
},
{
name : "Disable Bar Lines",
patches : [{offset : 0x3d450, off: [0x75], on : [0xEB]}]
},
{
name : "Remove Rainbow Banners",
patches : [{offset : 0x12C355, off: [0x5F], on : [0x00]}]
},
{
name : "Volume Bug Fix",
tooltip : "If your volume gets forced to max, turn this on",
patches : [{offset : 0xDA219, off: [0x00], on : [0x01]}]
},
{
name : "Free play text to LED ticker",
patches : [{offset : 0x150EA, off: [0xE0, 0x8F, 0x12, 0x10], on : [0x64, 0x99, 0x6A, 0x11]}]
},
{
name : "Free play text to LED ticker (Upper left)",
patches : [{offset : 0xA4865, off: [0x74, 0x32], on : [0x90, 0x90]},
{offset : 0xA4880, off: [0x8c, 0x1D, 0x16, 0x10], on : [0x64, 0x99, 0x6A, 0x11]}]
},
{
name : "Debug mode (disables score saving!)",
tooltip : "Press F1 in-game to open menu",
patches : [{offset : 0xa2ef0, off: [0x32, 0xC0], on : [0x0C, 0x01]}]
},
{
name : "Skip Card Entry",
tooltip : "Useful for those without service or to prevent login",
patches : [{offset : 0x64014, off: [0x32], on : [0x20]}]
},
{
name : "Quick Retry",
tooltip : "Hold VEFX and Effect during a song to restart",
patches : [{offset : 0x4e154, off: [0x8A, 0xC3], on : [0xB0, 0x01]}]
},
], "omnimix")
]);
});
</script>
</head>