About Monkey 2 › Forums › Monkey 2 Programming Help › Emscripten default page
Tagged: emscripten, html
This topic contains 8 replies, has 4 voices, and was last updated by
Mark Sibly
2 years, 3 months ago.
-
AuthorPosts
-
January 1, 2017 at 4:57 am #6123
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!
January 2, 2017 at 3:58 am #6129If you’ll modify page from monkey2/products/emscripten you’ll get permanently change for all further compile.
January 2, 2017 at 8:09 pm #6143That’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.
January 3, 2017 at 2:28 pm #6167Did you remove *build* folder of your project after you changed page inside of monkey2/products/emscripten?
January 4, 2017 at 5:07 am #6191Yup, 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.
January 4, 2017 at 12:20 pm #6201Ethernaut,
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
Attachments:
January 6, 2017 at 6:23 pm #6263Ethernault,
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.
January 7, 2017 at 4:28 am #6271Weird, 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.
January 9, 2017 at 1:32 am #6314Working 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.
-
AuthorPosts
You must be logged in to reply to this topic.



