Can you change web storage directory in NW.js?

Discussion and feedback on Construct 2

Post » Tue Feb 02, 2016 8:57 am

Been having some problems getting my old saves to work with the new NW.js without messing with the save files themselves.

C:\Users\Sapphire Dragon\AppData\Local\EternalStep

was the old save space.

C:\Users\Sapphire Dragon\AppData\Local\EternalStep\User Data

is the new save space.

If I drag all the files into a user data folder the save files work but I need the saves to work without having to mess with them for people on steam who have bought my game.

Anyone who can code know of anywhere in the nw.js code I can remove the, \User Data, to make it use the old directory?
B
12
S
4
G
1
Posts: 137
Reputation: 1,519

Post » Tue Feb 02, 2016 11:17 am

You cannot. The new NWjs and Chromium build changed the way they handle save data, including the folder structure. [Why they did that, is beyond stupid TBH!]

It also ignores the set-path arg that works on prior NWjs.

NWJs file read/write works and it's what i did to make a custom save-system that is based on arrays and JSON text files instead.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Tue Feb 02, 2016 10:11 pm

That's a shame. I'll look into different ways of saving for any new game but I guess i'm stuck with going to the old versions of c2 for my current game, if I can get one.
B
12
S
4
G
1
Posts: 137
Reputation: 1,519

Post » Wed Feb 03, 2016 12:53 am

Yup, me too, I am not upgrading from R218 and NWjs 0.13 alpha 7 because it just works. Older versions are crap with memory leaks. Newer versions crash.

Upgrading C2 makes it crash with the NWjs alpha.. it's a messed up situation again.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Wed Feb 03, 2016 1:18 am

@Silverforce can you just make a new version that blows away old saves so that it works going forward? are you just saying there's a problem with saving the "old way"? what is actually crashing on newer versions?
B
97
S
32
G
15
Posts: 1,183
Reputation: 16,148

Post » Wed Feb 03, 2016 1:54 am

jobel wrote:@Silverforce can you just make a new version that blows away old saves so that it works going forward? are you just saying there's a problem with saving the "old way"? what is actually crashing on newer versions?


experimental-greenworks-plugin_t117833?start=360

Newer C2 than R218 does not work with NWjs 0.13 alphas (Chromium 47). The alphas are the only NWjs that actually works with no issues. The new 0.13.0 betas are based on Chromium 48 which has introduced some bugs.

Newer C2 is designed for Chromium 48 based NWjs, ie the 0.13.0 betas, which is pointless because it's broken**.

** nwjs-not-completely-closing-when-exiting-app_t166669?start=60
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Fri Feb 05, 2016 3:01 am

@Silverforce wow.. what a mess.. too many dependencies: C2, Chrome and NWjs
B
97
S
32
G
15
Posts: 1,183
Reputation: 16,148

Post » Fri Feb 05, 2016 7:40 am

jobel wrote:@Silverforce wow.. what a mess.. too many dependencies: C2, Chrome and NWjs


Add GreenWorks into the mix for folks who want Steam features.

Rather than Game Engine < - > Steam SDK... it's: Engine < - > NWjs/Chromium < -> Greenworks < - > Steam SDK...
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Fri Feb 05, 2016 10:13 am

@Silverforce have you tried the suggested solution for the lingering dead nw.js apps? (rename the project and/or get rid of old data folders)
Because I don't seem to get them anymore when making a completely new project.
B
74
S
28
G
32
Posts: 480
Reputation: 19,686


Return to Construct 2 General

Who is online

Users browsing this forum: Lof and 7 guests