Guys, trying to change the canvas size using scalefactor, through the hidden input variable, like this: <input id="scalefactor" type="hidden" value="2">
I'm using autorun feature with .zip file.
Resulting canvas size is not being changing, like the scalefactor does not work.
Google Chrome shows the following error in console "jsdosbox.nocache.js:5790 Uncaught TypeError: Cannot read property '_b' of undefined"
However, if I do not use autorun, the dialog with the settings appears (like in the DEMO's Jsdosbox.html) and scalefactor works well there.
Last edit: Vladimir Sukhov 2015-02-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem maybe in the command used for the autorun parameter.
If you can get it to autorun with the zip file, you can add
<input id="override" type="hidden" value="false">
And then start appending params to the request to test configuration
Jsdosbox.html?verbose=true&scalefactor=2
see console output for what configuration was interpreted.
The software does not do any validation on the auto run command. Make sure the command is of the format
<input id="autorun" type="hidden" value="doom.zip -t zip !c:!cd doom!doom.exe">
It is common to leave off the .exe extension. It is also necessary to clear browser and web server cache when making changes. It can be easier to debug in firefox as you do not need to host the files in a web server, but rather just open the file locally as it does not have the same cross origin request policy as chrome.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Guys, trying to change the canvas size using scalefactor, through the hidden input variable, like this: <input id="scalefactor" type="hidden" value="2">
I'm using autorun feature with .zip file.
Resulting canvas size is not being changing, like the scalefactor does not work.
Google Chrome shows the following error in console "jsdosbox.nocache.js:5790 Uncaught TypeError: Cannot read property '_b' of undefined"
However, if I do not use autorun, the dialog with the settings appears (like in the DEMO's Jsdosbox.html) and scalefactor works well there.
Last edit: Vladimir Sukhov 2015-02-27
The problem maybe in the command used for the autorun parameter.
If you can get it to autorun with the zip file, you can add
<input id="override" type="hidden" value="false">
And then start appending params to the request to test configuration
Jsdosbox.html?verbose=true&scalefactor=2
see console output for what configuration was interpreted.
The software does not do any validation on the auto run command. Make sure the command is of the format
<input id="autorun" type="hidden" value="doom.zip -t zip !c:!cd doom!doom.exe">
It is common to leave off the .exe extension. It is also necessary to clear browser and web server cache when making changes. It can be easier to debug in firefox as you do not need to host the files in a web server, but rather just open the file locally as it does not have the same cross origin request policy as chrome.