Funny story, I’ve actually been working on import/export for CSGT (I say having not touched it in a couple months ), I’d be happy to help out with that!
I merged your change @alecto . We need to add cogdemos.ink to the sites that CSGT will work on. Or, if you think it’s possible, we could set it up to run directly on the server. I’d like to have two options for people, though–one for users who aren’t logged in and one for users who are, so the latter can save to the database and don’t have to worry about losing the data if they restart their browser/delete their local data.
Also pushed up the changes I had made for named saves for logged in users. It can’t be merged yet, as it doesn’t work. Here’s the PR if someone wants to take a look and see where I went wrong:
I tried to make notes in the code to explain what I’m trying to do. Hopefully, it’s not too messy to follow.
Can you send me the website link or does the link remain the same?
Is the demo fixed if so how do I play it
Finally
Edit: This is working for me again.
Hey there - thank you for keeping this site running and all your hard work!
Something I found: the overwrite and delete features when uploading game files doesn’t seem to be working for me.
Here are my steps to replicate:
Case 1: standard overwrite
- Upload game files
- Upload one file with the same name as an existing file (e.g. “ch9.txt”).
Observations: expectation = file overwritten with new version & any changes it contains. Actual case = file remains unchanged. Went into the actual directory files to confirm it wasn’t just me missing something.
Case 2: Double-checking myself. Deleting a file, then re-uploading it.
- Game files already uploaded
- Delete a file like “ch9.txt”
- Re-upload a new version of that file with the same name.
Observations: when I delete the file, the directory reflects that, but the file remains accessible in the demo (so like, the directory no longer shows the file but the game plays as if the file was never deleted). When I re-upload the new version of the file (same name, different file contents), it shows up in the directory again, but it’s the old version, not the new one.
Quick note: throughout all of these tests I regularly cleared my cookies and did hard refreshes to make sure it wasn’t just a cache problem on my end.
I hope that makes sense Thanks again for everything you’re doing, and if I can do anything to help better explain my issue, just ask.
COGdemons don´t work for me either is the site down?
I’m having a problem with Moody: Translating the page prevents me from saving the progress, and even undoing the translation it’s still impossible to save. (it only goes back to normal when I refresh the page)
It’s not down. I have a site monitor on it that alerts me if the website goes down for longer than 5 minutes and never received a message from them. Checked uptime on the server and it’s been up for 19 days.
Are you still having issues?
Are you logged in when you’re saving? I’m not sure about how the page translations work, but I think it reloads the page, which may be causing the issue.
Yes, I’m still logged in. The problem only happens if I move to the next page while the translation is active, returning the text to the original and moving forward does not result in the problem when saving.
There’s 3 bugs i have run into while using moody.ink. I dont have screenshots or video of them, so it may be hard to understand.
The first one was this one time i signed in, and for some reason when i reloaded the page it wouldn’t log me out, which is what i wanted to do. Normally, when you do reload it kicks you out, but for some reason that time it didn’t.
The second one is when i tried to save, and it automatically just failed, and sometimes reloading doesn’t fix it. Even with dashingdon, it’s like certain slots are bugged. Usually, the first one.
The third one i just experienced recently while trying to play the updated “laws of passion.” I know for a fact where i had saved during the story slots 1, 2, and 5.
5 was so i could come back to customization and it failed and i picked 1 so i could go back and change my answer to see a different route and it legit took me back to almost the beginning of the story.
When saving a game on Moody, it gives me a “Save successful” notification, but when I try to load that save slot, I get “Load failed”. I’ve tried different browsers but loading saves doesn’t work. Is this just me? How can I fix this issue?
Ya same issue happened for me, don’t know what the issue is since it was working for the demos I played on moody earlier.
I’m not sure what’s going on with the saves on Moody, because I haven’t been able to duplicate the issue. That said…
The code for cogdemos/moody is being rewritten in Laravel to make it easier to manage and update, and to add some functionality. JavaScript just isn’t my thing and I don’t have time to learn it–I’m more comfortable with PHP.
It’s going to take about 90ish days to get it done, but once it’s done, it will have named saves, have some added security, and allow authors to add art to the WIP page.
Until then, please be patient. I will let everyone know when the rewrite is done.
After the base code has been rebuilt, my plan is to add Patreon connectivity to help authors out, then (attempt to) add a plugin that will allow authors to add a back button to their games to help with alpha/beta testing.
I know some people are interested in the ability to upload saves… to do that, someone would have to find a way to download game save states at the end of a published game. If someone manages that, I’m happy to work on finding a way to upload those save states into cogdemos.
I’m assuming it might be possible to use the Steam autosaves, but that would obviously work only with Steam games.
(And no, forum, I see absolutely no reason to send this as a PM.)
Basically, all that’s needed is to pull the game state. On cogdemos, it saves as a string like below (under the cut because it’s long):
Game state example
{“version”:“UNKNOWN”,“stats”:{“sceneName”:“creation”,“choice_title”:“Wayhaven Chronicles: Book Three: REVAMPED (M only)”,“charming”:“50”,“impulsive”:“50”,“sarcastic”:“50”,“friendly”:“50”,“easygoing”:“50”,“heart”:“50”,“optimist”:“50”,“teamplayer”:“50”,“teamunity”:“0”,“people”:“0”,“combat”:“0”,“science”:“0”,“deduction”:“0”,“bybook”:“50”,“motherr”:“0”,“mothermet”:“true”,“mayor”:“0”,“captainr”:“0”,“mothernewr”:“0”,“bobbynewr”:“0”,“romance”:“”,“bff”:“”,“masonr”:“0”,“adamf”:“0”,“natef”:“0”,“felixf”:“0”,“masonf”:“0”,“gender”:“female”,“name”:“Lauren”,“surname”:“Langford”,“mc_him”:“her”,“mc_his”:“her”,“mc_she”:“she”,“mc_man”:“woman”,“mc_son”:“daughter”,“mc_hair”:“”,“mc_haircut”:“”,“mc_eyes”:“”,“clothes”:“unknown”,“trousers”:“”,“shirt”:“”,“apartment”:“”,“backstory”:“unknown”,“adam”:“Adam”,“a_him”:“him”,“a_his”:“his”,“a_she”:“he”,“a_man”:“man”,“nate”:“Nate”,“nathaniel”:“Nathaniel”,“n_him”:“him”,“n_his”:“his”,“n_she”:“he”,“n_man”:“man”,“felix”:“Felix”,“f_him”:“him”,“f_his”:“his”,“f_she”:“he”,“f_man”:“man”,“mason”:“Mason”,“m_him”:“him”,“m_his”:“his”,“m_she”:“he”,“m_man”:“man”,“bob_him”:“”,“bob_his”:“”,“bob_she”:“”,“bob_man”:“”,“bob_mr”:“”,“bob_petname”:“”,“bobex”:“unknown”,“bobrp”:“0”,“bobmet”:“true”,“teaminfo”:“true”,“attraction”:“straight”,“ablood”:“notcollected”,“abloodtest”:“false”,“bloodtestresult”:“notknown”,“bloodtransfusion”:“known”,“anchorpin”:“notfound”,“chanting”:“notknown”,“nateverdamet”:“false”,“aashot”:“false”,“patrol”:“”,“title”:“detective”,“murphyfate”:“”,“bite”:“none”,“murphyfight”:“”,“teammet”:“true”,“showbar”:“”,“officeinjured”:“none”,“reveal”:“”,“tests”:“”,“bobbybug”:“false”,“sun”:“false”,“garlic”:“false”,“crosses”:“false”,“stake”:“false”,“senses”:“false”,“phero”:“false”,“mirrors”:“false”,“sparkle”:“false”,“bloodask”:“false”,“murphytrauma”:“”,“mc_height”:“”,“bold”:“50”,“supernatural”:“0”,“areaseen”:“”,“languages”:“”,“maccent”:“yes”,“masonquit”:“0”,“bobbysuspect”:“0”,“elidorr”:“”,“callme”:“”,“fatherr”:“”,“backstorylearned”:“no”,“nickname”:“”,“carousel”:“”,“sideshow”:“”,“teller”:“”,“sideshowwin”:“”,“sanja”:“0”,“carouselkissm”:“”,“mapeace”:“0”,“mahostile”:“0”,“matreaty”:“0”,“falk”:“0”,“scombat”:“0”,“sresearch”:“0”,“comorres”:“true”,“booktwodefense”:“”,“bobin”:“”,“dougharden”:“0”,“dougin”:“”,“bobkiss”:“”,“bobfirstintro”:“”,“dougfix”:“”,“masonsextwoten”:“”,“masonfirstkiss”:“”,“humanchoice”:“”,“masonmemory”:“”,“falkattracted”:“”,“superbooktwo”:“”,“tapeesa”:“0”,“vieno”:“0”,“alpha”:“0”,“aname”:“”,“booktworescue”:“”,“sanjafate”:“”,“rookdeath”:“”,“maaalused”:“”,“masonx”:“”,“clothingchange”:“no”,“jobtitle”:“Wayhaven PD Detective and Agency Human Liaison”,“booktwosuper”:“”,“highfriend”:“”,“natey”:“Natey”,“mname”:“”,“hairchangebookthree”:“”,“blooddrive”:“”,“mumcloser”:“”,“photoframe”:“”,“dougbangs”:“”,“bookthreecrime”:“”,“chapthree”:“”,“sin”:“0”,“mname2”:“”,“mbakery”:“”,“chap4backstorypeek”:“”,“auc”:“”,“auc_him”:“”,“auc_his”:“”,“auc_she”:“”,“auc_man”:“”,“natebackstory”:“”,“cooking”:“”,“friendfivethree”:“”,“bobexknow”:“”,“bobkissknown”:“”,“humanecho”:“”,“skillthreesix”:“”,“nfather”:“”,“bkissunwanted”:“”,“dougworship”:“”,“sinfirstgreet”:“”,“sindeal”:“”,“fempathic”:“”,“sinregret”:“”,“unitvictor”:“0”,“supernaturalreputation”:“”,“mcrystal”:“”,“bookthreedefense”:“”,“kidnapthree”:“”,“mcpn”:“”,“blooddriveblood”:“”,“chaptensplit”:“”,“chaptensplitsuggest”:“”,“threeelevencalled”:“”,“mintimate”:“”,“chamber”:“0”,“sanah”:“0”,“zak”:“0”,“rogan”:“0”,“arane”:“0”,“sinhintfalsebond”:“”,“tandp”:“0”,“verdabranch”:“50”,“outbursta”:“”,“stranger”:“”,“adr_him”:“”,“adr_his”:“”,“adr_she”:“”,“adr_man”:“”,“msexthreeeleven”:“”,“mloverealisation”:“”,“bookthreebloodtaken”:“”,“threeeighteenally”:“”,“rebgo”:“”,“aoutfit”:“”,“sinally”:“”,“sintoldfalsebond”:“”,“auctioneerescape”:“”,“msexthreetwenty”:“”,“bobbymemory”:“”,“dougagency”:“”,“fphoto”:“”,“adrencourage”:“50”,“persuasion”:“50”,“leadership”:“50”,“instinct”:“50”,“unquestioning”:“50”,“rebboss”:“”,“nightoutdrink”:“”,“mtalkedthreeeleven”:“”,“aucescape”:“0”},“temps”:{“choice_reuse”:“allow”,“choice_user_restored”:true,“_choiceEnds”:{“861”:907,“864”:907,“867”:907,“870”:907,“873”:907,“876”:907,“879”:907,“882”:907,“885”:907,“888”:907,“891”:907,“894”:907,“897”:907,“900”:907,“903”:907},“param”:,“choice_crc”:-862893215},“lineNum”:1248,“indent”:2}
You can view this info in the dev console of a browser when you’re playing a choice game, though not in a string like this. It’s just a matter of getting the data at the very end of the game and saving it as a string that can be inserted into the database when a player starts their game on cogdemos.
Right, but that info’s not available when playing on mobile app. I was thinking that asking the user to upload the autosave file and then picking it apart on the server side for the game state might be an option (or letting the user input the save data string or whatever form it would be able to get it) manually, but that’s obviously limited by the user’s ability to dig that data out themselves.
I’m not convinced the actual official save states would be that useful, anyway. They’d not be available for the most of the WIP’s life, even if you managed to somehow get the data from them.
Hope I’m posting in the right place but I’m not sure where else to turn. I made an account when the site first came out (I mean… who doesn’t want a save feature? Aside from good writing, this is literally the second most important thing). Unfortunately, I took several months off and now I can’t log in again. The problem is, I don’t have an option to create a new account, send me a password or even reach out for help. I’m only given the option to enter my account and password, nothing else. Clearly I’m old with faulty memory, but every combo of username/password I try that should work, well it doesn’t.
Long story short, I click to a Wip on Moodys and I can’t save, I can’t even log in. There is no option to re-register or password recover so I am 100% locked out of saves.