progress preloader

All things HTML5 or text based engines, or really any web based engines.
Post Reply
User avatar
stokaboka
Posts: 8
Joined: Fri Oct 18, 2013 5:51 am

progress preloader

Post by stokaboka »

Hi !

Startup ige engine is loaded more than 100 files
I thought it would be nice if the download progress bar displayed

my solution:

html (inside <div class="igeLoading loadingFloat"> ):

Code: Select all

<div class="loadingText" id="loadingText">
    Loading ... 
</div>
<div id="loadingProgress" class="loadingProgress" style="left: 50%; margin-left: -80px; height: 3px; width: 160px; background-color: #990000;">                
   <div id="loadingProgressBar" style="left: 0px; width: 0px; height: 3px; background-color: #FFFFFF;"></div>
</div> 
modified loader.js in the Attachments
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: progress preloader

Post by coolbloke1324 »

If the files are all javascript files you could use ige.requireScript()... I think that Will add them to the loading count but dont have computer access at the moment so cannot check that for sure :)
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: progress preloader

Post by coolbloke1324 »

Oh I see you are talking about the engine filed themselves. .. there will only be 1 file once you deploy your game. The deploy system packs all the features you are using and your game script into 1 file called game.js. you can read about deploy in the docs section of the main site.
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
User avatar
stokaboka
Posts: 8
Joined: Fri Oct 18, 2013 5:51 am

Re: progress preloader

Post by stokaboka »

ok,
i now read about deploy
User avatar
stokaboka
Posts: 8
Joined: Fri Oct 18, 2013 5:51 am

Re: progress preloader

Post by stokaboka »

tried to do deploy:

Code: Select all

D:\server\MvideoGameDep\ige>node ./server/ige -deploy ../app -index true
Executing IGE Under Node.js Version v0.10.21

module.js:340
    throw err;
          ^
Error: Cannot find module 'node-arguments'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (D:\server\MvideoGameDep\ige\server\ige.js:17:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
what I did wrong ?
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: progress preloader

Post by coolbloke1324 »

Hey ya!

You have to install the engine's required modules first. If you look at the readme.md or the repo's front page on GitHub it explains how to install the engine via NPM.
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
User avatar
stokaboka
Posts: 8
Joined: Fri Oct 18, 2013 5:51 am

Re: progress preloader

Post by stokaboka »

Rob thanks !

i install engine modules and make deploy

but there is a question:
how to make the obfuscation engine and only certain files (game classes)?

a large number of application files loaded as needed: for example json data... or others
User avatar
stokaboka
Posts: 8
Joined: Fri Oct 18, 2013 5:51 am

Re: progress preloader

Post by stokaboka »

the answer is very simple:

all the files listed in the ClientConfig.js; ServerConfig.js; CoreConfig.js

If I am wrong, please correct...
Post Reply

Return to “HTML5/Web Engines”