This isn't on our side. The issue comes from the fact that the html is trying to load non-existent jQuery UI scripts and styles, namely
./ressources/jquery-ui-1.9.2.custom/js/jquery-ui-1.9.2.custom.min.js and
./ressources/jquery-ui-1.9.2.custom/css/base/jquery-ui-1.9.2.custom.min.css. Those files don't exist in your distribution of the game. In fact there is no such thing as a
./ressources/jquery-ui-1.9.2.custom/ folder.
There is however, a standard jQueryUI folder, so I tried using that instead. If anyone wants to replicate it, open the html and change lines 4308-4319 from
JavaScript:
$(document).on(':passagerender', function (ev) {
let alreadyImported = false;
let scripts = document.getElementsByTagName('script');
let scriptUrl = "./ressources/jquery-ui-1.9.2.custom/js/jquery-ui-1.9.2.custom.min.js";
for (let i = 0; i < scripts.length; i++) {
if(scripts[i].attributes.src && scripts[i].attributes.src.nodeValue == scriptUrl) alreadyImported = true;
}
if(!alreadyImported){
importStyles("./ressources/jquery-ui-1.9.2.custom/css/base/jquery-ui-1.9.2.custom.min.css");
importScripts(["./ressources/jquery-ui-1.9.2.custom/js/jquery-ui-1.9.2.custom.min.js","./ressources/jquery-ui-1.9.2.custom/js/jquery-migrate-3.4.0.min.js"]);
}
});
to
JavaScript:
$(document).on(':passagerender', function (ev) {
let alreadyImported = false;
let scripts = document.getElementsByTagName('script');
let scriptUrl = "./ressources/jquery-ui/jquery-ui.min.js";
for (let i = 0; i < scripts.length; i++) {
if(scripts[i].attributes.src && scripts[i].attributes.src.nodeValue == scriptUrl) alreadyImported = true;
}
if(!alreadyImported){
importStyles("./ressources/jquery-ui/jquery-ui.min.css");
importScripts(["./ressources/jquery-ui/jquery-ui.min.js"]);
}
});
I've just tested it on the problematic mafia overtake scene and everything seems to work.
More importantly THE GAME NOW RUNS BUTTERY SMOOTH, especially when it comes to loading saves.