Emulator for Bangle.js2 is loading Bangle.js1 file

Posted on
  • When opening blackjack in the emulator and selecting "Bangle.js 2" as emulation target the script for Bangle.js1 is loaded. Obvious by the some visible parts missing (smaller resolution of the 2) and the error message:

    Uncaught ReferenceError: "BTN4" is not defined
    at line 1 col 17
    setWatch(hitMe, BTN4, {repeat:true, edge:"falling"});

    Uncaught ReferenceError: "BTN5" is not defined
    at line 1 col 17
    setWatch(stand, BTN5, {repeat:true, edge:"falling"});

  • Interesting, thanks! That's a tricky one - once we get to the IDE the app loader has already had to choose a version to upload - so I guess about the only thing we could do is to remove the option in the IDE to choose which device to emulate for if the app loader has decided on what it's uploading

  • ok, can we maybe have the app loader choose the hardware? e.g. if the selected device in the app loader is the bjs2 pass it to the IDE as e.g. URL parameter?

  • Yes, I think that's probably going to be the best bet

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Emulator for Bangle.js2 is loading Bangle.js1 file

Posted by Avatar for user140377 @user140377

Actions