Cogdemos.ink - New ChoiceScript Game Hosting

I replayed it a couple of times on the test platform and noice :ok_hand: :ok_hand: :ok_hand: :ok_hand:

Only glitch that happened is that, it claimed that I didn’t declare an achievement:

Then when I replayed the exact same scene it didn’t bring up an error:

I replayed it a couple of times and never got the error again. And then just to be sure, I cleared my browser cache and re-uploaded the files.
So maybe it is just a me-thing, but that’s the only thing.

1 Like

Thanks for testing. Hopefully, that was just a glitch. I haven’t seen it in my testing.

I am in the process of trying to figure out how to get users and games moved over to the new database structure (there are several more tables than was with the old code). The users table transfers fine (but may require password resets), but the game table, and game folders, aren’t quite working right (I get 500 errors when trying to start the games). I haven’t had time to troubleshoot much this past week, thanks to work, but will work on it again this weekend.

If I can’t get it working, what that means is that authors will need to upload their games again. The good news is that I can back up the folders and send them to authors if they don’t have them locally.

Another thing I don’t think will be transferrable to the new system is saved games. The new save table allows for named saves and has a couple of different columns that don’t presently exist in the code. That said, the save system is working great. You don’t have to worry about accidentally overwriting saves, either, because once you fill up 10 saves, you have to delete a save before saving another point. Checkpoints work (if authors use them in their code), so there are two ways of going back. Once people are using the new code, I may up the number of saves, provided the system isn’t getting clogged with them. After this is in production, I’ll move on to allowing local saves for anon users and those who want to have a million saves (I don’t care if you fill up your own hard drive! :stuck_out_tongue: ). I tried using the sm plugin with the new code, but it doesn’t work, so it’ll have to be done a different way.

15 Likes

Thank you for all the work you put in. :revolving_hearts:

It is so valuable to have a person such as yourself step up and do so much for so little in return.

Your effort and time is appreciated by many, even if they do not often express that appreciation.

11 Likes

Thank you for the thanks. :slight_smile:

I feel bad that the transition may not be as smooth as I hoped, but I think people will be much happier with the new code, even if I can’t get the games and game saves moved over and the games have to be uploaded again. With new code, it should be easier to add more features, too (and I’m still determined to add the ability for Patreon authors to have the ability to make readers authenticate before playing alphas/betas/extras that are behind a paywall). I have a lot of ideas, and get kind of hyper… sorry for blathering. :stuck_out_tongue:

13 Likes

Don’t apologise, the blathering is excellent! Many thanks for all this.

6 Likes

Firstly thanks for taking your time to do the platform

And regarding this, I am not sure what the drawbacks are but why not just leave a message or notification on the previous site, saying it will no longer be maintained, and attach a link to the new site because 500 errors!? I think “most” people (no survey to backup claim) wont mind creating a new account.
But unless you are also challenging yourself, or there’s a technical reason.

1 Like

Well, the only issue is that I’m not moving the site, just changing the code. When I change the code over, I’m going to have the site down for a few hours, at least, so I’ll probably put up a warning in this thread that cogdemos.ink will be down for 24 hours, just in case things go awry. They shouldn’t, because I’ve installed the new code on two different servers (one I have set up on my home network and the link I had given you all to test), but in the IT world, there are often unexpected… issues.

At this point, it’s basically a matter of me being stubborn–it would be easier on everyone if I could just switch the code, make the changes to the existing tables, migrate the data into the new database, and copy the files to the new directories. I don’t like it when things don’t work as expected, and keep hammering at it until it either works or I get fed up and accept defeat.

So yeah, I’ll probably give it another couple of days, then move on, because I want to get the new code up sooner rather than later. I’ve found a couple of little things that need to be changed first, though.

9 Likes

Thank you for taking the time to work on the platform! And more importantly, good luck, I share your pain about databases and things not working as expected.

4 Likes

So, the new code is ready to go now. The saves are working, and progress in each game is tracked whether you’re logged in or not (at least until you clear your cache/cookies in your browser). Authors can now choose to share their code or not via a checkbox on the game load screen.

Even better news… I can import users and games from the database that is there now. It takes a bit of finagling to get the users and game tables converted before I can import the data, but I tried it with a handful of games on my local machine and it worked fine. The only issue appears to be with images–for authors who use images, you’ll have to reload them, because they aren’t in the correct location when I just copy everything over. But the games themselves work fine.

I will probably upgrade the site over the weekend, so if you want to back anything up before I do that (just for your own sanity), please do so. The data and database are backed up regularly, so you don’t have to worry about losing it, but if you’re paranoid like I am, you would prefer to do it yourself for good measure. :wink:

I will post here when I am starting on the upgrade. The site will probably be down for several hours while I’m getting everything set up, but if things go awry (as they sometimes do, no matter how much you test the steps when making a server change), it may be down longer.

Edited to add:

To authors, please don’t make any changes to your games after tonight or they may be lost, as I’m going to do a final backup of the users and game tables tonight and get the new db set up ahead of time to save some time when I migrate to the new code.

17 Likes

Great news, this is really exciting!

1 Like

Yeah, I’m excited about it! Hope everyone is patient in case of bugs, though. I’ve tested as much as I can, but there are likely things I missed. We’ll get any issues fixed, though, we just need to find them!

3 Likes

Thank you for all your hard work! I’m especially excited about the option to share code and to be able to choose whether or not it’s shared. Very cool feature that I’ll definitely make use of. Wish you a smooth upgrade process :sparkles:

2 Likes

I’ll be migrating cogdemos.ink tomorrow afternoon. Had a personal issue I’ve had to deal with for the past two days, and I’m too beat to do it tonight. I will drop a message here when I start on the migration–it will likely be in the afternoon EST.

Hope everyone has had a good weekend!

11 Likes

Good luck with the update!

2 Likes

Starting on it now. I will put up a maintenance page, but will likely be rebooting a couple of times. Probably 2-3 hours to update. I’ll post here when it’s done.

1 Like

It’s up and running!

https://cogdemos.ink/

I moved all the users and games over. If you no longer have your password, you can reset it with the link. I was not able to do anything with the saves, but going forward, it should work fine and you can name them as you please.

As I said before, there will likely be bugs. If you run into any of them, let me know what happened, what you were doing when it happened, and if you were able to continue.

Hope you all like it!

Edit: Next step is to get saves working for anonymous users, and possibly some sort options in the game list (by author, date, etc.). You can search that way now, but default search is what it is. After that, it will be the ability for authors to link to patreon and require authentication to play certain links.

There are a couple of new features, such as the ability to hide your code, even for a public game. Just poke around and check things out. You’ll need to reload images from the dashboard, so they show on the public game page.

22 Likes

Thank you so much for taking this on.

5 Likes

For me, the website wasn’t working until I deleted the cookies from the browser. Just thought to say it here in case anyone comes across the same :smiley:

Really like the new look! And the update to the save files is going to be a life saver :heart:

Edit: the pictures are not showing up in the game. I deleted and uploaded them again but still no change.

3 Likes

Looking good! I’m sure the save feature will be very popular.

1 Like

I will take a look at it after work today. I got it working on my test server, but may have missed something when setting it up.

1 Like