Ninjadoodle Posted July 22, 2018 Share Posted July 22, 2018 Hi @enpu I've followed your tips to setup my multi-part project like you suggested in this topic and everything works very well. Then only issue comes when I'm exporting the game. The exporter is always exporting the second episode of the game, even tho I am trying to export episode 1. I suspect that this is to do with having multiple projects in the same folder. Any idea on how this could be fixed? Thanks heaps Quote Link to comment Share on other sites More sharing options...
enpu Posted July 22, 2018 Share Posted July 22, 2018 Into what platform are you exporting to? What are the index files for episodes? Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 22, 2018 Author Share Posted July 22, 2018 Hi @enpu I'm currently exporting for web and in my game folder I have ... *** library media src game.html game1.html game2.html game3.html *** game.html loads main.js (which includes all the levels - this is the compilation game for devices) game1.html loads mainR1.js (which includes levels 1-20) game2.html loads mainR2.js (which includes levels 21-40) Everything works fine in the editor and while testing, but when trying to export - It always exports the version with levels 21-40 Quote Link to comment Share on other sites More sharing options...
enpu Posted July 22, 2018 Share Posted July 22, 2018 Unfortunately this seems to be a limitation in the exporting, sorry about that. I will take a look and see how easy it would be to fix. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 22, 2018 Author Share Posted July 22, 2018 @enpu oh man, that’s a shame. I really like the way the system works. if it can’t be fixed, what would be the steps to export / minimize manually? thanks Quote Link to comment Share on other sites More sharing options...
enpu Posted July 22, 2018 Share Posted July 22, 2018 It sure can be fixed, just trying to figure out how much work it requires. Will let you know asap. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 28, 2018 Author Share Posted July 28, 2018 Hi @enpu Just wondering if you might have had a chance to look at this, and whether it’s fixable. I’d be happy to use an alternate export method in the meantime if you have some guidelines Thanks heaps in advance! Quote Link to comment Share on other sites More sharing options...
enpu Posted July 30, 2018 Share Posted July 30, 2018 @Ninjadoodle I'm working on this, should have beta version for you to test this week. If you are in a hurry to get your games exported, then you would have to split your games into own folders. That would probably mean that you would end up having duplicate files. Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 30, 2018 Author Share Posted July 30, 2018 Hi @enpu No problem at all, I will wait for you to make the changes Thank you very much for looking into this! Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 6, 2018 Author Share Posted August 6, 2018 Hi @enpu Just wanted to check how it's going with this issue If it's turning out to be problematic, I can reorganize my game and use a different strategy. Thank you heaps for all your hard work! Quote Link to comment Share on other sites More sharing options...
enpu Posted August 7, 2018 Share Posted August 7, 2018 @Ninjadoodle Sorry for the delay. I'm still working on this, trying to get this done asap! Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 7, 2018 Author Share Posted August 7, 2018 @enpu No worries Thank you for the update! Quote Link to comment Share on other sites More sharing options...
enpu Posted August 9, 2018 Share Posted August 9, 2018 @Ninjadoodle You can now test the exporting with new beta version: Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 9, 2018 Author Share Posted August 9, 2018 Hi @enpu Awesome! Thanks heaps for this I'm however getting an Error: Project build failed Not really sure why it's happening as I don't see any other info. Quote Link to comment Share on other sites More sharing options...
enpu Posted August 9, 2018 Share Posted August 9, 2018 Can you take a look at the end of your log file if you see any errors ~/Library/Logs/Panda 2/log.log Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 9, 2018 Author Share Posted August 9, 2018 Hi @enpu I can't seem to find that file (I'm on Windows 10). I searched for it but nothing comes up. Can't actually find the Panda 2 installation folder either lol. Quote Link to comment Share on other sites More sharing options...
enpu Posted August 9, 2018 Share Posted August 9, 2018 Ah for Windows the location is %USERPROFILE%\AppData\Roaming\Panda 2\log.log Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 9, 2018 Author Share Posted August 9, 2018 Thank you This is what is at then end of that file ... TypeError: [2018-08-09 22:30:21.178] [error] panda-toolkit error: Cannot read property 'indexOf' of undefined at Object.require (C:\Users\tom\AppData\Local\Programs\Panda2\resources\ [2018-08-09 22:30:21.178] [error] panda-toolkit error: app.asar\node_modules\panda-toolkit\build.js:43:46) at Object.<anonymous> (C:\Users\tom\Desk [2018-08-09 22:30:21.178] [error] panda-toolkit error: top\Games\shurizzle\src\game\mainR1.js:4:2) at Object.<anonymous> (C:\Users\tom\Desktop\Games\shurizzle\src\game\mainR1.j [2018-08-09 22:30:21.178] [error] panda-toolkit error: s:53:3) at Module._compile (module.js:571:32) at Object.Module._extensions [2018-08-09 22:30:21.178] [error] panda-toolkit error: ..js (module.js:580:10) at Module.load (module.js:488:32) at tryMod [2018-08-09 22:30:21.178] [error] panda-toolkit error: uleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.r [2018-08-09 22:30:21.178] [error] panda-toolkit error: equire (module.js:498:17) at require (internal/module.js:20:19) [2018-08-09 22:30:21.187] [error] panda-toolkit exit: 1 Quote Link to comment Share on other sites More sharing options...
enpu Posted August 9, 2018 Share Posted August 9, 2018 Thanks, that helps a lot! Can you also send the html file of the project that you tried to export? Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 9, 2018 Author Share Posted August 9, 2018 Hi @enpu The html file is called - 'shurizzleR1.html' and this is what it contains ... <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Shurizzle</title> <script type="text/javascript" src="src/engine/core.js"></script> <script type="text/javascript" src="src/game/config.js"></script> <script type="text/javascript" src="src/game/mainR1.js"></script> </head> <body> </body> </html> If you need the whole project I can send that too Quote Link to comment Share on other sites More sharing options...
enpu Posted August 9, 2018 Share Posted August 9, 2018 Thanks I just uploaded new beta-2 version: https://www.panda2.io/beta Can you test if it works now Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 9, 2018 Author Share Posted August 9, 2018 Hi @enpu This time it exported, but these are the errors I get in the console ... Failed to load resource: the server responded with a status of 404 (Not Found) game.min.js:2 Uncaught Error loading module engine.geometry at src/engine/geometry.js required from engine.renderer.container :8080/export/src/engine/loader.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) game.min.js:2 Uncaught Error loading module engine.loader at src/engine/loader.js required from plugin.instantgames :8080/export/src/engine/scene.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) game.min.js:2 Uncaught Error loading module engine.scene at src/engine/scene.js required from engine.core Quote Link to comment Share on other sites More sharing options...
enpu Posted August 9, 2018 Share Posted August 9, 2018 Hmmmm weird. Could you email me the whole project, i think that would make the debugging lot faster, thanks Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 9, 2018 Author Share Posted August 9, 2018 Hi @enpu I've just sent it through. Also, I noticed that clicking the modules button doesn't display anything. Thank you for looking into this! Quote Link to comment Share on other sites More sharing options...
enpu Posted August 9, 2018 Share Posted August 9, 2018 2 minutes ago, Ninjadoodle said: clicking the modules button doesn't display anything Can you show screenshot of this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.