web-mari0
Closed this issue · 22 comments
i need some help with mari0, i want to make an html/js port of it and i need help!
Hey, I've already ported mari0 to web. You can see it here: http://tannerrogalsky.com/mari0/
If you're having other problems with this project, please be more specific in any issues that you open.
i know its there but i cant make it with the github clone, can you give me the files that u use for the port?
I follow exactly the instructions but it always freezes
Sure, my site is open source and hosted on github. You'll find the relevant folder here:
https://github.com/TannerRogalsky/tannerrogalsky.github.com/tree/master/mari0
cool thanks.... but why does my port crash? what i am doing wrong?
I need a lot more information from you. Where does it crash? What error messages are you getting? What's your browser and OS? Are you using the debug release of this lib?
i am using the master branch from github, i clone all files like it should and follow the instructions, in the debug it says my main.lua is not in the root, here a screenshot!
the love.js is freezing, but your version is working
i am uploading my dbg folder
You're not packaging the game correctly.
Double check that you're following these steps exactly.
python ../emscripten/tools/file_packager.py game.data --preload [path-to-game]@/ --js-output=game.js
- This should output two files: game.data and game.js into the debug folder.
- Make you include the '@/' after the path to your game source. This will tell the file packager to place your game at the root of Emscripten's file system.
- Make sure your [path-to-game] does not contain any non ascii characters
i did, (here my debug folder https://drive.google.com/open?id=0B-MZzriUapsTQkRlNnNvR2JXMGM
python2 ../emscripten/tools/file_packager.py game.data --preload /home/lugarius/Downloads/future-mari0-master/game.love@/ --js-output=game.js
python2 because python is python3
shit... have to learn markdown
Try packaging the top-level game folder rather than the .love file.
like this?
python2 ../emscripten/tools/file_packager.py game.data --preload /home/lugarius/Downloads/future-mari0-master/@/ --js-output=game.js
(ps : there is a new offical version of mari0 for love2d 0.10.1 https://github.com/Stabyourself/mari0)
python2 ../emscripten/tools/file_packager.py game.data --preload /home/lugarius/Downloads/future-mari0-master/game@/ --js-output=game.js
It's worth noting that I made some changes to mari0 to get it to work with the port (removed networking, updated some shaders to be OpenGL ES2 compliant) so your download of future-mari0 will not work out of the box with love.js.
Error: [string "boot.lua"]:432: No code to run
Your game might be packaged incorrectly
Make sure main.lua is at the top level of the zip
stack traceback:
(tail call): ?
[C]: in function 'error'
[string "boot.lua"]:432: in function <[string "boot.lua"]:274>
[C]: in function 'xpcall'
your game.data is not an zip archive....
http://imgur.com/KuXIbqC
can we work together on an mari0 made for the web? i could help with mappacks and you can help making the js and the game data?
I'm not interested in that. Sorry.
@TannerRogalsky can you give me the game.love file and the instructions to make an working game.data file?
i want to mod it with more stuff so that is better in the web. If you are not interested to work together, give me the last things that i need to do that alone please.
Sure, the changes I made for the web port are on my fork. https://github.com/TannerRogalsky/future-mari0/tree/remove_threads