First of all, I want you to tell me if this would be a good idea for a mod, or if I should let Greenheartgames do this if they want:
Basically, a UI where you press a button to download a specific mod (with perms from author of mod), and then have the mod do the unpacking and moving of the files to the correct directories.
(Tell me if good idea or bad idea)
Questions:
Is it possible, or even legal to modify the main menu of the game? I didn’t see anything about it not being legal in the mod agreement, but just want to make sure. (Some games your only allowed to mod the gameplay.)
Would have to make different versions of the mod, depending on operating system and version of game. (Win7/Steam, Win8/Store, Mac/Steam, etc.), or can I detect the OS and version?
What I need help with:
Ive got this very basic code for downloading to the default download folder specified by the user (works in web browser):
var downloadURL = function downloadURL(url) {
var hiddenIFrameID = 'hiddenDownloader',
iframe = document.getElementById(hiddenIFrameID);
if (iframe === null) {
iframe = document.createElement('iframe');
iframe.id = hiddenIFrameID;
iframe.style.display = 'none';
document.body.appendChild(iframe);
}
iframe.src = url;
};
(I would tweak it to work with GDT. But, TBH, I don’t know if iFrame works with GDT. Just assuming it does)
Ive been trying to find a way to download a file to a specific location using JS or HTML. All i’ve basically seen was “NO. IMPOSSIBLE DUE TO SECURITY ISSUES”. I would like to know if it is actually possible. And if not, how can I prompt a Save-as Dialog?
Again, tell me if this could be good, or if it is literally impossible or near impossible.
BTW: Got the idea from this topic. Didn’t realize what they were actually talking about until I got the idea of this kind of mod.