Page 1 of 1
					
				progress preloader
				Posted: Wed Oct 23, 2013 6:48 am
				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
 
			
					
				Re: progress preloader
				Posted: Wed Oct 23, 2013 6:55 am
				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 

 
			
					
				Re: progress preloader
				Posted: Wed Oct 23, 2013 6:58 am
				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.
			 
			
					
				Re: progress preloader
				Posted: Wed Oct 23, 2013 7:19 am
				by stokaboka
				ok, 
i now read about deploy
			 
			
					
				Re: progress preloader
				Posted: Wed Oct 23, 2013 9:00 am
				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 ?
 
			
					
				Re: progress preloader
				Posted: Wed Oct 23, 2013 6:31 pm
				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.
			 
			
					
				Re: progress preloader
				Posted: Thu Oct 24, 2013 11:36 am
				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
			 
			
					
				Re: progress preloader
				Posted: Fri Nov 15, 2013 9:38 am
				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...