Is something wrong with the server? I’m getting an error 500 on the site (not just individual games, and the header and footer are missing too).
That’s weird. I am able to get to it from three different browsers on my laptop, and can get to it from Brave on my phone.
I’ll check the server for any errors.
Edit:
One issue I see is that there are quite a few games with missing assets (image files and sound files). And the assets are causing the laravel logs to go berserk, because it logs every single time an asset is hit. Today’s log is already over 1GB (which is insane).
Checked the code and it doesn’t really handle missing files well. I can’t do it right now, but I’m going to change the code to only log missing assets and return a message to the player to tell them the filename that’s missing so they can report the exact file to the author.
I was having trouble loading it earlier too, but I tried later, and it was working again,
Yeah, it’s working now for me, too. I went to sleep after leaving that message, so I don’t know when it got back up, but apparently by the time you checked.
It was weird. I was mid-playthrough on a game that had beed acting fine (sans some game-breaking bugs) and then just stopped loading.
I’m getting an eternal loading screen and I’ve seen a few others on Tumblr report the same starting about 40 minutes ago. Is something broken?
I apologize for the inconvenience. Namecheap (the company that hosts the servers) is down:
For what it’s worth, I’m moving the server off of NameCheap. They suck and I 'm tired of them going down all the time. I have the server instance for cogdemos reserved, I just need time to set it up. I’m hoping to start that process this weekend. It should be fully moved over in a couple of weeks.
Edit:
Since I’m at work right now and not paying much attention, if someone is keeping an eye on the Namecheap update page and notices them saying the power is back on at the site, please ping me here or in a PM so I can check the server comes back up all right. Everything should automatically come back up, but I’d like to check it.
Thanks for the info! It’s not your fault!
just checking in and letting yall know the cogdemos site is still down, do you know if they’re working on getting it back up?
Apparently the people that host the servers (not EvilChani) had a failure of their cooling systems. They’re estimating customer services to be back online in about an hour, but I’m not sure if that includes the server coming back online. That could take another few hours maybe
Semi-related, but thanks so much for doing what you do with the site!!
It’s up. Please let me know if anyone runs into any issues. I may need to kill Laravel’s cache, but didn’t want to futz with it unless necessary.
After I finished work today, I started setting up a new server at linode. It seems a LOT better. A bit more expensive, but if it’s more dependable, it’s worth it. I’ll try to finish the setup this weekend, and let everyone know when I’m doing the cutover, since it’ll take a couple of hours.
Not sure what’s going on, but after Cogdemos came back up I’ve been having issues with it on Firefox mobile (on my iPad, to be precise). The issue is as follows: whenever I make a choice in any game (tested on 3), the choice will proceed as normal but then the browser will show a popup saying “Script error”.
There is no issue on Firefox desktop or Safari as far as I know. I’ve tried clearing my data, but the issue persists.
Are you using adblocker or a cookie-blocking VPN? One of those, I’m not sure which, does at times throw me script errors on CoG games (also on official releases; I assume something there is playing havoc with the games’ JS).
My best guess is it has something to do with how Firefox handles ChoiceScript (or more realistically JavaScript) on Firefox mobile. I’m getting the “Script error” both on COGdemos and on Choice of Games using Firefox for iOS. Games do seem to work on Chrome and Safari.
Looking at it with the web inspector it seems like the problem might be a TypeError. I’m seeing TyperError: undefined is not an object (evaluating ‘e.elements’) with _getPasswordFields in user-script:4 in the console.
_getPasswordFields: function(e, t) {
for (var n = [], a = 0; a < e.elements.length; a++) {
I set a breakpoint here, and in stepping through, it definitely appears to be what’s prompting the dual “Script error” message dialogs. Looking under Extra Scripts on Firefox mobile it seems only a handful of user-scripts end up loading in comparison to Chrome. Safari seems to only have the one. Couldn’t tell you why unfortunately. Can’t seem to see these on desktop browsers, which I imagine might make debugging this harder.
I even played around with the different tracking protections, but it didn’t appear to change anything.
It’s a known issue on CoGDemos and Moody, and it only affects Firefox Mobile, as far as I know (because Firefox mobile is a little bitch about javascript).
There is a fix being worked on right now, but it’s not ready yet. Code being worked on:
- Firefox mobile fix
- Dark mode, including dark mode “everywhere” (choose it once and you’ll have it all over the site and for all demos)
- Handling of new variables when authors update their game (saves and live play)
Not sure when all of those will be ready, but #3 is apparently ready for me to test. The other two are still being worked on.
For everyone here, including authors, what is the best day/time for me to cut over to the new server when it’s done? It will require backing up and restoring the database, as well as zipping up all games and moving them to the new server, so it will probably be down for around 3 hours (copying all those game directories will take most of that time). I’ll also need to point cogdemos.ink to the new server, but I got another hostname that can be used, since DNS takes a while to propagate, so it will be up and ready to go once everything is in place–I’ll just need to give you all the alternate hostname.
Makes sense. I didn’t run into it until recently, but then again, I also didn’t have reason to play on mobile for like a month or so.
Thanks so much for looking into it!
