[SUGGESTION] External folders for Node-webkit

Discussion and feedback on Construct 2

Post » Sun Aug 03, 2014 8:30 am

Let's being realistic...


It's not professional to have more than 80 mb in .exe to run, it could take a lot of time to start up, possibly, it won't run on some computers.

Stand alone executable is stupid idea to deploy videogames with big resources inside of .exe.

Image, Media and custom folders should be separated from .exe, I'm not sure it can load external like sprite images, audios, etc. very similiar to HTML structure, Im not talking about AJAX or Node-webkit filesystem, it's C2 engine that we cannot set path to load sprite sheets.

Isn't possible to separate folders from nw.exe?
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Sun Aug 03, 2014 8:49 am

There a real example, Game Dev Tycoon takes faster startup because resources folders are separated from .exe, if you have this game check this directory out.


Proof:

Image
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Sun Aug 03, 2014 1:31 pm

Oh man, didn't know about it. That would be great to have that feature.

[email protected] You can extract package.nw, but you can't place files in different folders. Atm the only solution I can see is to create shortcut and place it in folder higher in hierarchy.

But you're saying the .exe is 80mb. I didn't know it's growing the more stuff you add.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
93
S
30
G
22
Posts: 1,987
Reputation: 20,203

Post » Sun Aug 03, 2014 1:55 pm

nw,exe (and then yourproject.exe) is alway 39,4 MB (bytes: 41 346 048) and I have never seen nw.exe exported from C2 greater then that.
Everything you add to C2 project (graphics, sounds, text files and even c2runtime.js) goes to package.nw and is loaded from there when you run nw.exe.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 36,003

Post » Sun Aug 03, 2014 2:05 pm

Yeah, it's pretty common practice to have all assets in a compressed data file, like a cab, dat or pk3 file. No problem with the way NW does it.
B
57
S
15
G
11
Posts: 912
Reputation: 12,626

Post » Sun Aug 03, 2014 3:08 pm

@shinkan Oh really? I didn't know, it seems I'm using old version of node-webkit... ugh! Thanks for this note!

Besides, the startup time is bothering me a lot
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Sun Aug 03, 2014 3:20 pm

Joannesalfa wrote:@shinkan Oh really? I didn't know, it seems I'm using old version of node-webkit... ugh! Thanks for this note!

Besides, the startup time is bothering me a lot


Have you got load per layout set up? Maybe that's why. Hard for me to say thought, I haven't really do anything big in c2 yet.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
93
S
30
G
22
Posts: 1,987
Reputation: 20,203

Post » Sun Aug 03, 2014 3:54 pm

@megatronx It's not related to C2 editor, it happens when you double click node-webkit.exe it takes like 15 seconds to run the game.

Game Dev Tycoon was like damn 5 seconds.
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Sun Aug 03, 2014 5:28 pm

Joannesalfa wrote:@megatronx It's not related to C2 editor, it happens when you double click node-webkit.exe it takes like 15 seconds to run the game.

Game Dev Tycoon was like damn 5 seconds.


I remember having this happen to me to some time ago, with one of my prototypes. Out of curiosity what size is your game?

Also, going to pm you in a mo about something.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
93
S
30
G
22
Posts: 1,987
Reputation: 20,203


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests