Menu

scalefactor is not being applied if it is passed through input value.

2015-02-27
2015-02-27
  • Vladimir Sukhov

    Vladimir Sukhov - 2015-02-27

    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
  • Kevin O'Dwyer

    Kevin O'Dwyer - 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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.