How do I export a C2 game to an autonomous application ?

Get help using Construct 2

Post » Fri Nov 06, 2015 9:25 pm

Hello everyone,

I intend to create a big real-time RPG (work in progress), and then market it (on Steam, on a self-made website, etc...)

That's why I would like to know if there is a way to convert a construct 2 game to an autonomous application, with the 5 following features :
- the game must run in an independant window (not in a browser)
- there is an installer for the game (or the game can be installed via Steam)
- the savegames musn't be associated with a specific browser, but stored on disk in a specific place (for example C:Games\TheGameName\)
- the savegames musn't be erased when a program such as CCleaner is used (for the moment when I test a game in Firefox for example, if I use CCleaner, all my savegames are erased)
- there is an uninstaller for the game, wich can erase savegames when the game is uninstalled

I hope I have made myself clear, English is not my mother tongue.

Thank you in advance for your help
Last edited by Ratmaster on Sat Nov 07, 2015 11:27 am, edited 2 times in total.
Hello !



I'm Steven, a 24 years old French graphic designer and programmer, and it's been 4 years since I started using Construct 2.
B
15
S
6
G
3
Posts: 70
Reputation: 2,573

Post » Fri Nov 06, 2015 9:36 pm

You can export to .exe with nwjs..

Tutorial
Last edited by LittleStain on Fri Nov 06, 2015 10:01 pm, edited 1 time in total.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Nov 06, 2015 10:01 pm

and use node object to save and read data on local drive
Image Image
B
26
S
15
G
142
Posts: 881
Reputation: 74,060

Post » Sat Nov 07, 2015 8:58 am

Thanks LittleStain and MadSpy, it seems that I missed this tutorial. This will help me a lot !
Hello !



I'm Steven, a 24 years old French graphic designer and programmer, and it's been 4 years since I started using Construct 2.
B
15
S
6
G
3
Posts: 70
Reputation: 2,573

Post » Sat Nov 07, 2015 11:49 am

:? Hum... now I have some issues with savegames using node object :

I manage to write "Test" in a file using the following action :
-> Write "Test" to file NWjs.UserFolder & "Slot1.save"

but i can't save in a subfolder

I tried
-> Write "Test" to file NWjs.UserFolder & "\MyGame\Slot1.save"
and
-> Write "Test" to file NWjs.UserFolder & "MyGame\Slot1.save"
but it doesn't work...

Also, how should I proceed to save the state of the game to a save slot (just like the "save" system action) in the file I choosed ?

I'm new to this and it's a bit confusing, but I would like to do it in the cleanest possible way ;)
Hello !



I'm Steven, a 24 years old French graphic designer and programmer, and it's been 4 years since I started using Construct 2.
B
15
S
6
G
3
Posts: 70
Reputation: 2,573

Post » Sat Nov 07, 2015 7:07 pm

Well, I figured it out by myself after numerous fruitless attempts.

I am writing a tutorial about it, I'll post the link here when it is approved. ;)
Hello !



I'm Steven, a 24 years old French graphic designer and programmer, and it's been 4 years since I started using Construct 2.
B
15
S
6
G
3
Posts: 70
Reputation: 2,573

Post » Sat Nov 07, 2015 8:46 pm

I'm not sure about how the approval system works, but it seems you can already access my tutorial, I hope it will help you !

https://www.scirra.com/tutorials/4870/save-and-load-game-in-a-specific-folder-using-nwjs-node-webkit
Hello !



I'm Steven, a 24 years old French graphic designer and programmer, and it's been 4 years since I started using Construct 2.
B
15
S
6
G
3
Posts: 70
Reputation: 2,573


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests