Javascript to exe ,the easy way

Discussion and feedback on Construct 2

Post » Thu Oct 13, 2011 7:18 pm

Tutorial Link

This might be usefull.I managed to compile my js files to exe files through this tutorial.Kyatric2011-10-13 20:38:18
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Thu Oct 13, 2011 8:38 pm

Did you manage to compile a c2 exported "c2runtime.js" file ?

I tried a quick one (my PF's demo) and it got me a lot of errors.
I guess it requires first to turn jquery into a dll. I might look deeper in it later.

If you did successfuly transformed exported projects, could you post how you did it, a kind of step/step tutorial ?

Also I'm editing the title, since it is Javascript to .exe, and not Java.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Oct 13, 2011 9:02 pm

Thank you for correcting the topic.I have managed to create single js files to exe.But only my own jscript apllications seems to work with this method.Im also getting some errors because you would have to link the jquery dll somehow.

Some of my own html5 games do export correctly to exe files.But i did not use Construct 2 to make them.It's still pretty usefull for converting jscript to exe though.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Thu Oct 13, 2011 10:10 pm

Could this even work with C2 projects? I mean the actual game is drawn in the HTML5 canvas, so I would imagine converting purely the javascript won't be able to do the trick.

There are apps that "convert" html to EXE, which works for C2 games, but at horrible speed. The programs claim to make use of the existing IE engine, but there is no way they're actually using IE9 technology, cause the canvas is painfully slow in the exported EXE.

Here's one app I tried: HTML ExecutablePixelRebirth2011-10-13 22:35:03
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Fri Oct 14, 2011 2:21 am

THIS works. No lag time. Canvas functions properly. No issues as yet.droptank212011-10-14 04:00:27
B
22
S
9
G
3
Posts: 203
Reputation: 3,647

Post » Wed Mar 21, 2012 5:12 pm

What about this or this?

This would be great to have.
B
25
S
8
G
7
Posts: 184
Reputation: 6,040

Post » Wed Mar 21, 2012 6:14 pm

Hmmm ...
phpied, HTML Executable, JSDB, ScriptCryptor - let's see fully-tested examples of each of these compiling C2 exported JavaScript runtimes to EXE runtimes. Until then, I'm withholding judgement ...
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Wed Mar 21, 2012 7:01 pm

[QUOTE=Velojet] Hmmm ...
phpied, HTML Executable, JSDB, ScriptCryptor - let's see fully-tested examples of each of these compiling C2 exported JavaScript runtimes to EXE runtimes. Until then, I'm withholding judgement ...[/QUOTE]
Well i just tried PHPexe on a single layout test project with 4 moving sprites and 2 particle systems and it was noticeably slower than when running in my browser
B
13
S
2
G
1
Posts: 85
Reputation: 1,502

Post » Wed Mar 21, 2012 10:47 pm

None of these will work. @DravenX's link compiles a non-standard variation of Javascript called JScript.NET (basically a Javascript flavour of C#). I assume there is no browser engine so it is not possible to draw anything to the screen or play any audio without using the proprietary .NET extensions.

@droptank21's looks like yet another wrapper around the IE control, which means you need IE9+, which means no support on XP and no support for the ~85% of Windows users who don't have IE9 yet.

And so on... basically you need a full browser engine, not just a javascript engine. Even a HTML layout engine like WebKit (that Adobe Air uses) isn't enough, because it only has an incredibly slow software renderer. I've looked far and wide and the only thing which looks like it will work so far is Awesomium. They should be finally releasing the version we need in a few months, so hopefully it won't be long then we can make an Awesomium-based wrapper.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Mar 22, 2012 11:54 am

I'm drooling all over Awesomium.
B
47
S
10
G
6
Posts: 455
Reputation: 8,326

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests