Jump to content

Possible bug in export with this scenario


Ninjadoodle
 Share

Recommended Posts

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 :)

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...