Emscripten default page

About Monkey 2 Forums Monkey 2 Programming Help Emscripten default page

Tagged: ,

This topic contains 8 replies, has 4 voices, and was last updated by  Mark Sibly 2 years, 3 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #6123

    Ethernaut
    Participant

    I’ve (finally) gotten Emscripten to work with Monkey2 on MacOS. I was having a lot of path related issues, so I just reinstalled at the default location M2 expects (my home folder) and now everything works.

    How do I change its default html page? I wanted a minimal replacement (no console output, no scrolling allowed, dark bg without images, etc) but I don’t know what I’m doing when I try to edit the one it generates.

    (I’m NOT getting the one from monkey2/products/emscripten, I get a different one with the emscripten logo)

    Also, how do I change the default html permanently, so the new one is always used when I compile?

    Thanks!

    #6129

    nerobot
    Participant

    If you’ll modify page from monkey2/products/emscripten you’ll get permanently change for all further compile.

    #6143

    Ethernaut
    Participant

    That’s the problem, it’s not working. I have to manually copy the page from monkey2/products/emscripten every time I compile.

    Looks at the attached files, the first one is what I get by default, the other one is after I manually copy the files from the products folder (next to the build folder). Seems like a bug.

    #6167

    nerobot
    Participant

    Did you remove *build* folder of your project after you changed page inside of  monkey2/products/emscripten?

    #6191

    Ethernaut
    Participant

    Yup, removed the build folder.

    The problem is that the html inside the “products” folder is being ignored. It uses the default emscripten page, not the one Mark created. I think this is a MacOS specific bug, I believe it works fine in Windows. If someone can confirm the problem I can file a bug in Github.

    #6201

    APC
    Participant

    Ethernaut,

    Here is the screenshot of EMSCRIPTEN running on Windows 10.

    The screen that is not in full mode there are some buttons and the DEBUG window, in Full Mode only the app screen, may be you can try that mode.

    I will try to do the modification in Windows that nerobot suggested.

    I my self still trying to make EMSCRIPTEN work on my MAC

    #6263

    APC
    Participant

    Ethernault,

     

    Just to confirm , I installed Emscripten on my MacOS and got the same screens on Windows 10 as on my previous post regarding the appearance on the Browser.

    #6271

    Ethernaut
    Participant

    Weird, my Emscripten on MacOS never uses the customized M2 page. Slightly annoying, but no huge deal since I can always copy it by hand after the build.

    #6314

    Mark Sibly
    Keymaster

    Working fine here – output file are in blah.products/Emscripten. Are you using the latest version of mx2?

    Not sure what’s up because emscripten shouldn’t be generating an html page at all – that needs to be copied in by mx2.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.