[UPDATED: 05.09.2017] The Big NW.js Roundup - Tips & Tricks

Discussion and feedback on Construct 2

Post » Wed Dec 07, 2016 5:37 pm

@TheRealDannyyy I understand. It was just a general statement. Hope Nw or C2 team can resolve this later with new topic.
B
22
S
9
G
9
Posts: 38
Reputation: 6,128

Post » Sun Dec 11, 2016 10:41 pm

Updated the Roundup with the following change(s):
  • How To: Speed Up The Startup Time Of Your Game By Up To 20%
  • How To: Secure Your Game Assets The Right Way

Thanks for your suggestions, keep'em coming!
ImageImageImage
B
63
S
23
G
78
Posts: 661
Reputation: 44,935

Post » Mon Dec 12, 2016 5:50 pm

Thanks for this wonderful and useful resource.
Would love to see some detailed information and examples about using NPM modules in games
B
28
S
8
G
2
Posts: 58
Reputation: 2,586

Post » Tue Dec 13, 2016 1:54 am

ethanpil wrote:Thanks for this wonderful and useful resource.
Would love to see some detailed information and examples about using NPM modules in games

Thanks for your feedback!
What exactly would you like to know about NPM modules?

I don't think that I could sum the use of NPM modules better up than the NW.js team already did HERE.
If there's something specific that you would like to know about, I could try and see if I can make it easier to read and a little more understandable.
ImageImageImage
B
63
S
23
G
78
Posts: 661
Reputation: 44,935

Post » Tue Dec 13, 2016 12:37 pm

What I mean is how I can integrate it into a C2 game...

1) How can I include NPM module in a C2 export?
2) How can I access methods in NPM module with C2 interface?
B
28
S
8
G
2
Posts: 58
Reputation: 2,586

Post » Wed Dec 14, 2016 4:39 pm

ethanpil wrote:What I mean is how I can integrate it into a C2 game...

1) How can I include NPM module in a C2 export?
2) How can I access methods in NPM module with C2 interface?

Sorry to say the following but I think that I will not include this in the roundup.
(It's too much information that I cannot sum up in a short paragraph.)

However Armaldio, a guy that knows a lot about the java's and the scripts might be able to help you out.
He's already made and updated a tutorial about it HERE, if you still got questions left feel free to join our discord server and have chat with him about it. ;)
ImageImageImage
B
63
S
23
G
78
Posts: 661
Reputation: 44,935

Post » Sun Dec 18, 2016 5:00 pm

Short update:
  • Due to various reasons I decided to switch to Google Drive as my file hoster. (Images should load again now.)

The following is a message to the guy/girl that decided to maliciously report my helpful tool called "NW.js Secure Assets" and got it blocked:
Feel free to PM me here or in our C2 Discord server (in which you also participate), so we can talk and get the obvious problems that you have with me cleared up.
I would also like to ask you not to maliciously report any of my projects in the future, without providing any kind of proof or trying to get in contact with me first.

For everyone that wants proof that I'm not giving you some sort of "virus" that could harm your computer, HERE is the source code which you can easily convert to a batch file.
(I've basically done that and compiled it to an executable file to make it more visually appealing.)


P.s. Thanks to the community member that informed me about the file being blocked, as it seems like the Dropbox team doesn't care enough to at least notify me about it.
ImageImageImage
B
63
S
23
G
78
Posts: 661
Reputation: 44,935

Post » Wed Dec 21, 2016 3:08 pm

Awesome thanks!
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 164
Reputation: 3,031

Post » Thu Dec 22, 2016 5:06 pm

Short update:
  • Removed the "How To: Export To Windows 32bit only" tutorial (+ reason below)

Why would you remove it, is there something wrong with it?
No, it worked and still works fine, I just felt like it was a little bit too "hacky" and unreliable.
I've included a new version (which is not causing any error messages) in THIS old topic of mine.


Happy holidays everyone!
ImageImageImage
B
63
S
23
G
78
Posts: 661
Reputation: 44,935

Post » Tue Dec 27, 2016 8:59 am

@TheRealDannyyy Amazing post. Thank you.

I have Steam overlay problem for my game exported in NWjs. Maybe you could help me.

C2 and game configuration:
- NWjs v0.19.2 (Chromium 55) released 14th December 2016
- Construct 2 Release r239 (last stable)
- Game "Fullscreen in browser" property set to "Letterbox Integer scale"
- Game resolution is 1366x768

Steps to reproduce:
1. Launch a game on a Steam (on screen bigger than 1366x768)
2. Press shift+tab to show overlay
3. Press shift+tab to hide overlay

Effect / issue:
there is still an overlay in the background:
Image

Game normally has black background like this:
Image

If I switch to other application (alt+tab) and return to game - the background is black again.

How to fix this issue with overlay staying in the background of my game?
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 20 guests