In the html-file there is a function throwing this error message :
Code:
function loadCryptoJS(urlIndex) {
if (urlIndex >= cdnUrls.length) {
// All attempts failed
console.error("Failed to load CryptoJS from all sources");
// Show alert to user if SugarCube UI is available
if (window.SugarCube && window.SugarCube.UI && window.SugarCube.UI.alert) {
SugarCube.UI.alert("This game requires internet access to load necessary components. Please connect to the internet and refresh the page.", "Internet Connection Required");
} else {
// Fallback to regular alert if SugarCube UI is not available
alert("This game requires internet access to load necessary components. Please connect to the internet and refresh the page.");
}
return;
}
loadAttempts++;
var currentUrl = cdnUrls[urlIndex];
var cryptoJsScript = document.createElement('script');
cryptoJsScript.src = currentUrl;
cryptoJsScript.onload = function() {
console.log("CryptoJS library loaded successfully from " + currentUrl);
cryptoJsLoaded = true;
// Run any initialization code here
};
The function is called only once :
Code:
// Start loading process with the first CDN
loadCryptoJS(0);
The list of tried urls is rather short :
Code:
// List of CDN URLs to try in order
var cdnUrls = [
'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js',
'https://cdn.jsdelivr.net/npm/crypto-js@4.1.1/crypto-js.min.js',
'https://unpkg.com/crypto-js@4.1.1/crypto-js.js'
];
CDN = Content Delivery Network
cdnjs is a free and open source CDN service. homepage :
You must be registered to see the links
Is there a reason why the ALL-version requires CDN service? Shouldn't the archive contain all the images, etc?