Forum Replies Created
-
AuthorPosts
-
^I’m about to get Mint 18.3 going and run through all of this including Emscipten and Android. I’ll look over what you have done vs. what I end up doing. I’ll post a new install guide and we all can work to improve it.
Sound good?
January 2, 2018 at 9:02 pm in reply to: [Solved] 2D Lighting on Linux broken (v1.1.09 dev branch). #12576Howdy,
That seems to have fixed things here (image below).
I compile the propitiatory Nvida driver which works great! The propitiatory driver available from Ubuntu/Mint has been borked here for some time.
For what your’re doing, the latest itch.io ‘releases’ might be the way to go. Release candidates should be generally OK too.
10-4 good buddy! I’ll probably stick with the development branch (just to keep things honest. \O/ ) to dev with and use the the release version for my app releases.
Attachments:
Happy New Year!
Monkey will rule 2018!
On Ubuntu? I store mine in the ‘ home ‘ directory. In that directory I made a folder (directory) called programming/monkey2/ . Anywhere in the home directory is fine.
@DruggedBunny
Thanks!I’m going to install Linux Mint 18.3 this weekend (going with Cinnamon :D). I’ve been holding at 17.2 for kernel compatibility but I’m thinking it’s safe to go to kernel 4-10-x (I think thats whats in 18.3) as most gamers are there or beyond already. I’ll then spend the time to get Emscripten setup as you describe (sdk-incoming-64bit / 1.37.22 or later).
I’m going to try and work up a guide to installing Emscripten and post it. That way I can keep it current as time passes.
Rock on!
Yo EdzUp! Do you have a local copy of that little guide I did.
Can’t seem to find it here. I’d like to redo it as I’m about to do a fresh install of Linux Mint 18.3 as a daily driver.
Using the latest devbranch version I can not get Emscripten (1.37.1 – Should this be newer? 1.37.9?) to compile unless I remove ” EXTRA_EXPORTED_RUNTIME_METHODS=[‘Pointer_stringify’] ” from env_linux.txt. Once removed things seem to compile fine. The other issue that mserver does not launch, perhaps related to removing above?
I also can not compile for WASM. I think this is an issue in the way I have Emscripten installed. I had a similar issue with Monkey V1.06 (the last version I used) and I think this issue is related to me not adding WASM as part (enabled) of the Emscripten install (been awhile). I’ve listed the compiler output below in hopes someone can verify that I need to fix my Emscripten install.
Edit: This is what I’m running in Emscripten. Which tag/SDK/Tool should I use.
My .emscripten file shows:
LLVM_ROOT=’/home/moonbasealpha/Programming/emsdk_portable/clang/tag-e1.34.6/build_tag-e1.34.6_64/bin’
EMSCRIPTEN_ROOT=’/home/moonbasealpha/Programming/emsdk_portable/emscripten/1.37.1′emsdk list shows:
The following precompiled tool packages are available for download:
clang-nightly-e1.37.9-2017_03_30_17_42-64bit
clang-nightly-e1.37.9-2017_03_30_19_17-64bit
clang-e1.37.1-64bit
clang-e1.37.26-64bit
clang-e1.37.27-64bit
node-4.1.1-32bit INSTALLED
node-4.1.1-64bit INSTALLED
emscripten-1.30.0
emscripten-1.34.1
emscripten-1.35.0
(*) emscripten-1.37.1 INSTALLED
emscripten-1.37.26
emscripten-1.37.27
emscripten-nightly-1.37.9-2017_03_30_17_42
emscripten-nightly-1.37.9-2017_03_30_19_17The following tools can be compiled from source:
clang-tag-e1.37.26-32bit
clang-tag-e1.37.27-32bit
clang-tag-e1.37.26-64bit
clang-tag-e1.37.27-64bit
clang-incoming-32bit
clang-incoming-64bit
clang-master-32bit
clang-master-64bit INSTALLED
emscripten-tag-1.37.26-32bit
emscripten-tag-1.37.27-32bit
emscripten-tag-1.37.26-64bit
emscripten-tag-1.37.27-64bit
binaryen-tag-1.37.26-32bit
binaryen-tag-1.37.27-32bit
binaryen-tag-1.37.26-64bit
binaryen-tag-1.37.27-64bit
emscripten-incoming-32bit
emscripten-master-32bit
emscripten-incoming-64bit
emscripten-master-64bit INSTALLED
binaryen-master-32bit
binaryen-master-64bitThe following precompiled SDKs are available for download: (Run “./emsdk update” to pull in the latest list)
sdk-nightly-1.37.9-2017_03_30_17_42-64bit
sdk-nightly-1.37.9-2017_03_30_19_17-64bit
sdk-1.37.26-64bit
sdk-1.37.27-64bitThe following SDKs can be compiled from source:
sdk-incoming-32bit
sdk-incoming-64bit
sdk-master-32bit
sdk-master-64bit INSTALLED
sdk-tag-1.37.26-32bit
sdk-tag-1.37.27-32bit
sdk-tag-1.37.26-64bit
sdk-tag-1.37.27-64bitMx2cc version 1.1.09
***** Making app ‘/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.monkey2′ (emscripten release llvm gcc) *****
Parsing…
Semanting…
Translating…
Compiling…
Linking /home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.products/Emscripten/Mojotest.js…
Build error: System command failed:em++ -s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1 -s -O3 –preload-file “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/assets/@/assets” -s BINARYEN=1 -s BINARYEN_TRAP_MODE=’allow’ -o “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.products/Emscripten/Mojotest.js” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2mojo_2mojo.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2std_2std.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2stb_5vorbis_2stb_5vorbis.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2stb_5image_5write_2stb_5image_5write.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2stb_5image_2stb_5image.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2miniz_2miniz.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2sdl2_2sdl2.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2jni_2jni.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2opengl_2opengl.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2openal_2openal.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2libc_2libc.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2freetype_2freetype.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2emscripten_2emscripten.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/_1_1_1_1_1modules_2monkey_2monkey.buildv1.1.09_2emscripten_0release_2include_2_0r.cpp_r.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/mojotest_0mojotest.cpp.o” “/home/moonbasealpha/Programming/monkey2/bananas/mojotest/mojotest.buildv1.1.09/emscripten_release/build/mojotest_0monkey_0math.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/mojo.buildv1.1.09/emscripten_release/mojo.a” “/home/moonbasealpha/Programming/monkey2/modules/std/std.buildv1.1.09/emscripten_release/std.a” “/home/moonbasealpha/Programming/monkey2/modules/stb-vorbis/stb-vorbis.buildv1.1.09/emscripten_release/stb-vorbis.a” “/home/moonbasealpha/Programming/monkey2/modules/stb-image-write/stb-image-write.buildv1.1.09/emscripten_release/stb-image-write.a” “/home/moonbasealpha/Programming/monkey2/modules/stb-image/stb-image.buildv1.1.09/emscripten_release/stb-image.a” “/home/moonbasealpha/Programming/monkey2/modules/miniz/miniz.buildv1.1.09/emscripten_release/miniz.a” “/home/moonbasealpha/Programming/monkey2/modules/sdl2/sdl2.buildv1.1.09/emscripten_release/sdl2.a” “/home/moonbasealpha/Programming/monkey2/modules/jni/jni.buildv1.1.09/emscripten_release/jni.a” “/home/moonbasealpha/Programming/monkey2/modules/opengl/opengl.buildv1.1.09/emscripten_release/opengl.a” “/home/moonbasealpha/Programming/monkey2/modules/openal/openal.buildv1.1.09/emscripten_release/openal.a” “/home/moonbasealpha/Programming/monkey2/modules/libc/libc.buildv1.1.09/emscripten_release/libc.a” “/home/moonbasealpha/Programming/monkey2/modules/freetype/freetype.buildv1.1.09/emscripten_release/freetype.a” “/home/moonbasealpha/Programming/monkey2/modules/emscripten/emscripten.buildv1.1.09/emscripten_release/emscripten.a” “/home/moonbasealpha/Programming/monkey2/modules/monkey/monkey.buildv1.1.09/emscripten_release/monkey.a”
WARNING root: [33mtreating -s as linker option and not as -s OPT=VALUE for js compilation[0m
WARNING root: [33mAssigning a non-existent settings attribute “BINARYEN”[0m
WARNING root: [33m – perhaps a typo in emcc’s -s X=Y notation?[0m
WARNING root: [33m – (see src/settings.js for valid values)[0m
Traceback (most recent call last):
File “/home/moonbasealpha/Programming/emsdk_portable/emscripten/tag-1.34.6/emcc”, line 872, in <module>
exec(‘shared.Settings.’ + key + ‘ = ‘ + value)
File “<string>”, line 1, in <module>
NameError: name ‘allow’ is not defined***** Fatal mx2cc error *****
Internal mx2cc build error
Joy!
Very cool. I’ve never used Steam in development but it’s on my list for this next year.
Happy holidays!
I’ll be checking this out.
^Thanks.
Did you face any problems optimizing it to run that well?
The map (world) code was a tough one. Designing a map (world) framework that could uber efficiently and quickly manage potentially hundreds of thousands of objects. object collision, lighting and render it in layered 2D planes was a challenge. I found nothing that could do the job quickly and efficiently enough so I came up with my own design. But it’s important to note monkey is the enabler for sure.
The demo in the video is in a huge layered map with ten’s of thousands of objects. Running the demo (1080) native desktop my Phenom II X4 shows a 9-10% process usage. That is with the entire gaming framework in action including the GUI. Efficiency has been my overarching goal in designing Alien Phoenix.
^Thanks!
Checkout Phoenix USC/Alien Phoenix running (in 1080p) on the Chromium web browser! This video shows off most of the latest features, ships and lighting. It even fully supports the window based GUI. Even with video capture software overhead it all runs awesomely. Demo soon!
-
AuthorPosts




