Jan 31, 2018
45
15
Perhaps I am just an idiot but this doesn't seem to work with online saves does it?
If someone still has a copy of .25 offline I think I have a way of cheesing my save with it. Thanks.
Important: Starting with Glamour v0.27 savegames don't need to be decrypted anymore and thus GlamourEdit is neither working nor needed any longer on newer versions.

How to import old save games into Glamour 0.27

* updated version *

  • Use GlamourEdit to export your savegame to a JSON file.
  • Open Glamour 0.27 and press CTRL+Shift+I
  • A new window will open, on the bottom half you should now see a console where you can enter text. (Click on the Console tab at the top if you can't see it).
  • Paste the following code in there (make sure you copy all of it):
  • JavaScript:
    const uploadElement = document.createElement("input");
    const prepareDom = () => {
    uploadElement.type = "file";
    uploadElement.addEventListener("change", () => {
    const reader = new FileReader();
    let file = uploadElement.files[0];
    reader.addEventListener("load", function () {
    importSavegame(reader.result);
    }, false);
    reader.readAsText(file);
    });
    document.body.appendChild(uploadElement);
    };
    const importSavegame = (savegame) => {
    try {
    character = JSON.parse(savegame).currentCharacterId;
    if (character === undefined) {
    showInfo("Could not detect character of the provided save game. Exiting...");
    return;
    }
    console.log(character);
    insertNewSave(character, savegame);
    } catch (error) {
    showInfo("Something went wrong. Make sure you selected an unencrpyted version of your save game");
    }
    };
    const insertNewSave = (character, savegame) => {
    let highestSlot = Object.keys(localStorage).filter(n => n.startsWith("save:" + character)).map(item => parseInt(item.split(":")[3]));
    let freeSlot = Math.max(-1, ...highestSlot);
    let currentTime = Math.round((new Date).getTime() / 1000);
    localStorage[`save:${character}:${currentTime}:${++freeSlot}`] = savegame;
    showInfo("Your savegame should be imported now.");
    document.body.removeChild(uploadElement);
    };
    const showInfo = alert;
    prepareDom();
  • Press ENTER. If everything went well you will now see a file picker at the top left of your screen labeled "Choose File". If the game is hanging or not responding, close the game and repeat the steps.
  • Click on that button and select the JSON file you exported earlier.
  • You will get a success message if your savegame was imported properly. If not, make sure you selected the right file.
  • The Choose File button will now vanish. Close the developer tools by pressing CTRL+Shift+I again (you can also just restart the game, but it's not necessary)
  • Go to the "LOAD GAME" screen. Your savegame should now appear in that list granted you have the correct character selected.



* alternative version *
  • Use GlamourEdit to export the savegame you want to play to a JSON file.
  • Open Glamour 0.27 and start a new game and choose the same character your old savegame uses.
  • Once inside the game, click the cog wheels, select SAVE GAME and save your game. You will be redirected back to the main menu.
  • Open the JSON file you exported earlier in a text editor of your choice and copy its content to your clipboard
    • Alternatively just select the save in GlamourEdit, click on the editor on the right, press CTRL+A to select all and CTRL+C to copy to clipboard.
  • Do whatever way you prefer but the result must be that your old unencrypted save game is now in your clipboard.
  • Back in the game press CTRL+Shift+I to open the Chrome Developer Tools.
  • Select the tab "Application" at the top (if you dont see it, try resizing the new window that opened and make it bigger or click on », then Application.
  • On the left side click on the arrow next to Local Storage to expand it, then click on file://.
  • In the list that showed up check the Key column and look for a string that starts with save. For example: save:kate:1593106068:0. If you selected max it will save max instead. Pick the the one with the highest number at the end after the last colon :)). (The format of this string is always save:<maincharacter>:<unixtimestamp>:<slotid>)
  • Doubleclick on the text in the "Value" column and you'll notice the whole text will be selected. Press CTRL+V to paste and overwrite this text.
  • Press CTRL+Shift+I again to close the Chrome Developer Tools. Back in the game click on Load Game.
    You should now see your old save. You should load it and save it again ingame to make sure it stored it correctly.


TL;DR: DS included the developer tools in this release for whatever reason which makes it very easy to access the browser that's powering the game. Replace a value in the local storage with your save contents and the game will recognize it.

To make it easier in the future we should probably implement a modified loading system in the game. I attached the (somewhat) unobfuscated source code of the game in case anyone feels like doing that. Relevant code starts at line 5624.

Cheers,

I try to follow your instructions but i failed somehow. After i made ctrl + shift + i - its just say i copy a screen shot

Can you please make a video with bolth ways and put it on youtube i promise that i will give to all fans.
 

Ahchi

Forum Fanatic
Jul 17, 2020
4,178
7,343
The only other thing I can think of (It,s not a quest) Is to choose your Nick route.
a : Don,t Sub to Nick, (Already in game)
b: Sub to Nick with Julia's knowledge, (Already in game) or
c: Secret Sub to Nick (Do NOT tell Julia) new for 0.28 !
You don't have permission to view the spoiler content. Log in or register now.
I think DS is trying to get Nick to pull an Eric.
 
Last edited:

GongGong

New Member
Aug 25, 2017
8
7
I have seen that a few other people in here are running Linux as well, so I hope someone might be able to help me. When i start the game, I just get a white screen. When running 0.27, it worked perfectly.

I have performed the following steps:
You don't have permission to view the spoiler content. Log in or register now.

Sometimes when i run it, i get the following errors in the terminal, but not every time.
You don't have permission to view the spoiler content. Log in or register now.

I have tried editing /resources/updater/run.js by setting setMenuBarVisibility to true and then running. The developer console only shows warnings regarding a policy set with unsafe-eval.

Does anybody have any clues for what i should try next?

Thanks in advance, and I am Running KDE Neon (basically Ubuntu 20.04 with a KDE desktop)
 
  • Like
Reactions: fsck

alyath

Member
May 31, 2020
375
350
I have seen that a few other people in here are running Linux as well, so I hope someone might be able to help me. When i start the game, I just get a white screen. When running 0.27, it worked perfectly.

I have performed the following steps:
You don't have permission to view the spoiler content. Log in or register now.

Sometimes when i run it, i get the following errors in the terminal, but not every time.
You don't have permission to view the spoiler content. Log in or register now.

I have tried editing /resources/updater/run.js by setting setMenuBarVisibility to true and then running. The developer console only shows warnings regarding a policy set with unsafe-eval.

Does anybody have any clues for what i should try next?

Thanks in advance, and I am Running KDE Neon (basically Ubuntu 20.04 with a KDE desktop)
For Linux just ask fsck he uses Linux. And maybe he can help. I am sure he can!
 
  • Like
Reactions: fsck

alyath

Member
May 31, 2020
375
350
I try to follow your instructions but i failed somehow. After i made ctrl + shift + i - its just say i copy a screen shot

Can you please make a video with bolth ways and put it on youtube i promise that i will give to all fans.
Easyest way: Take my early or Lategame Save for Kate Route. You´ll find it in FAQ too.
Or try figure it out with the Guide. I startet a new Game, cause there are new Images and Scenes in earlygame.
 
  • Like
Reactions: afterlights

fsck

Member
Aug 3, 2017
407
480
I have seen that a few other people in here are running Linux as well, so I hope someone might be able to help me. When i start the game, I just get a white screen. When running 0.27, it worked perfectly.

I have performed the following steps:
You don't have permission to view the spoiler content. Log in or register now.
For 0.28, I did the following to get it running on arch linux:
  • Don't bother doing anything with the game dir. Leave it as it is in Glamour-0.28
  • Make a new directory inside resources/. Call it anything. I just named it glamour and extract resources/app.asar into that new directory.
  • cd into the new directory you extracted the app.asar in and run electron . from there.
    • I installed electron v7 from pacman (arch's package manager), but your npm install should also work fine.
0.27 was coded to look for the game directory in the same place you started electron . from.
0.28's coded to actually look for the game directory that many levels above where you run electron . which is why you need to do this

As always, if images don't load on the first run, just close and start again :p

Not that you need it, you seem to know what you're doing, but here's a step-by-step anyway :p
Code:
# Download and extract Glamour-0.28

# Apply my bugfix from https://f95zone.to/threads/glamour-v0-28-offline-dark-silver.10579/post-3903693
# -- The bugfix is not required, but is recommended, if I do say so myself :)

cd Glamour-0.28/resources/
mkdir glamour
asar e app.asar glamour
cd glamour/
npm install electron@7 electron-is-packaged
./node_modules/electron/dist/electron .

# If images don't load, close and run previous command again :P

# Subsequently, to start the game:

cd Glamour-0.28/resources/glamour/
./node_modules/electron/dist/electron .
 
Last edited:
  • Like
Reactions: firevoodoo

GongGong

New Member
Aug 25, 2017
8
7
For 0.28, I did the following to get it running on arch linux:
  • Don't bother doing anything with the game dir. Leave it as it is in Glamour-0.28
  • Make a new directory inside resources/. Call it anything. I just named it glamour and extract resources/app.asar into that new directory.
  • cd into the new directory you extracted the app.asar in and run electron . from there.
    • I installed electron v7 from pacman (arch's package manager), but your npm install should also work fine.
0.27 was coded to look for the game directory in the same place you started electron . from.
0.28's coded to actually look for the game directory that many levels above where you run electron . which is why you need to do this

As always, if images don't load on the first run, just close and start again :p

Not that you need it, you seem to know what you're doing, but here's a step-by-step anyway :p
Code:
# Download and extract Glamour-0.28

# Apply my bugfix from https://f95zone.to/threads/glamour-v0-28-offline-dark-silver.10579/post-3903693
# -- The bugfix is not required, but is recommended, if I do say so myself :)

cd Glamour-0.28/resources/
mkdir glamour
asar e app.asar glamour
cd glamour/
npm install electron@7 electron-is-packaged
./node_modules/electron/dist/electron .

# If images don't load, close and run previous command again :P

# Subsequently, to start the game:

cd Glamour-0.28/resources/glamour/
./node_modules/electron/dist/electron .
Thank you for the help fsck. I did the install as per your guide, and at first it didn't work, but after i started using the cheat bugfix patch instead of the nocheat one, it started working. I looked into it, and it seems like the content of the files in game/app.asar in the nocheat bugfix patch is garbled - I tried unpacking it and all the files are there, but their contents (e.g. index.html) seems broken.

Thanks for the help, I am just happy that I got it working now :)
 
  • Like
Reactions: fsck

fsck

Member
Aug 3, 2017
407
480
Thank you for the help fsck. I did the install as per your guide, and at first it didn't work, but after i started using the cheat bugfix patch instead of the nocheat one, it started working. I looked into it, and it seems like the content of the files in game/app.asar in the nocheat bugfix patch is garbled - I tried unpacking it and all the files are there, but their contents (e.g. index.html) seems broken.

Thanks for the help, I am just happy that I got it working now :)
Thanks for the heads up :oops:

Just checked, the nocheats file was in fact corrupted. Updated the bugfix post with correct file HERE

If anyone else downloaded the nocheats.zip recently (in the last ~36 hours), please download again. Sorry :(
 
  • Like
Reactions: alyath

Dragon59

Conversation Conqueror
Apr 24, 2020
6,699
10,943
My "problem" is that I'm still using the online version so I'm hesitating to install anything that might break it.
 

fsck

Member
Aug 3, 2017
407
480
My "problem" is that I'm still using the online version so I'm hesitating to install anything that might break it.
If you're talking about the bugfix, that only works with the offline version. It's not compatible with the online client.
 

alyath

Member
May 31, 2020
375
350
Yes, thanks. I need to either switch or wait.
Not really. just save your Original Files somewhere save. Apply the Bugfix. Play the Game. and after done playing just go back to the Original Files. That´s what I do.
There is no Online Version anymore. It is just a Patcher. So it should be tha same as the Offline Version. Just without Autopatch.
 
Last edited:
  • Like
Reactions: Dragon59

dmitriiviktorov

Well-Known Member
Mar 4, 2018
1,344
5,785
I was poking around in the rips and the most I saw was a bath towel. There is a joint behind Max - where is the bathrobe or the silk robe?
Я ковырялся в рипах и максимум что увидел - это банное полотенце. За Максом косяк - где банный халат или шелковый халат?

You don't have permission to view the spoiler content. Log in or register now.
 
2.60 star(s) 184 Votes