COGDemos bugs/requests

i keep getting a 500 server well before it was a 503 server error when i try to click my favourites on cog demos i use mac os (iPhone, MacBook and iPad) that are all updated and ive tried on google chrome, safari and firefox and i get the same error i can send a video of what happens when i try to get into favourites too if that helps

The number of games isn’t an issue. The field where favorites are stored in the users table is a text field (it saves the game ID there). A text field in MySQL is can be 64KB or 65,535 characters. You’d have to save a lot of games to hit that.

I’m beginning to think it’s a malformed link issue, but have yet to replicate it.


For those getting this error, can you send me your username? I’d like to check the IDs in the user table (it’s easier than asking you which games you have) and query to make sure they all have links that work.

Reasoning: In browsing the users table, I found several games that were created by users that either use non alpha-numeric characters, have garbage in the titles, etc., and the links were either not created or contain things the server can’t interpret. If any of those are saved in your favorites, they may be the problem. I think the code needs to limit what’s allowed in a title, just for my own sanity, and to make sure things work as expected.

Is this a server save or local save?

1 Like

Not going to speak for someone else, but it may be the local saves. I’ve tried to delete things from there myself, even multiple on a single WIP, and been told that there was still no spare storage because it was full.

I should also note that I’m on Firefox, with an android, if that may matter.

1 Like

I think its a local save?
I usually just take the default that the gane suggestes. Which used to work fine for me.
I went ahead and deleted cache and data related to all my CoG applications but that didnt help either.^^’

1 Like

Yeah same here.

1 Like

I’m testing out a demo of my game but am having difficulty saving to the local storage on mobile.

I’m able to save on desktop, however, on mobile I get an error saying that the storage is full despite having 0 saves. Sometimes it just says “failed to save” too.

This is a new game that I am creating btw and I’m not yet familiar with coding with CS so I’m unsure if I have to add anything?

2 Likes

Less so about bugs, more-so about trying to find someone to contact in regards to a very concerning game i’ve found on the site (involving minor characters and very unsavory writing onsite and offsite by the creator). The report system is a little buggy, where Its near impossible to write a report on the PC as typing will cause the report pop up to sometimes click off- and i fear that the report itself hadn’t been properly sent through (so I suppose it is also a site bug concern too). If this place is not the appropriate place to ask this, I fully understand- I simply wish to contact someone working on CoGDemos as I have no other place to report it.

Yes, exact same issues here.^^’

1 Like

I’m also getting that error. If I go to page 2 and onward it loads fine, but the first page of favorites is just the 500 | Server Error

1 Like

I’m not sure why the saves are buggy on android, but I’m betting it’s a device setting of some sort, which I can’t really do anything about. Further up in this thread, @LiliArch mentioned that a recent iOS update caused some issues with saves. It might be the same with android.

On mobile devices, when using local saves, I would suggest exporting your saves often and saving them to “files” so you can import them when you want to use them. You may want to try a different browser, too. Firefox can take up a lot of space on its own. I’d check the storage on your phone and see if there’s anything hogging space. The saves on CoGDemos are small, so they shouldn’t be a problem. For some reason they are unable to write to your device, though.

Shoot me a DM, please.

My guess is that one of the games you favorited has a bad/changed/malformed link. I have asked the dev to take a look at this–I’m not sure about the best way to handle this, but I’m hoping we can find a way to remove games with bad links to stop this error.

As for the mobile local save issue, since it was mentioned several times… the dev is going to take a look at a different way to handle local saves (maybe using IndexedDB instead). Since we haven’t quite finished with the Patreon plugin, it will be a couple more weeks before he gets to it.

I’m hoping we can finally wrap up the Patreon stuff soon and get it into production. Work has just been utter hell lately, so I haven’t had much time to do anything else, and when I’ve gotten a bit of time, I’m too braindead to think. This weekend, I have some time to look at things, though.

3 Likes

Hello @EvilChani
The achievment problem is more strange then I thoth. When a achievment reached I’am notified how ever games lacks a achievment menu or lists.

I don’t have achievements button either on my phone in portrait mode, but I do get it in landscape mode.

1 Like

Hello @LiliArch
I’am confused and thats interesting. I’am blind so because of that I don’t understand the mods much.

The browser window changes modes based on the phone’s rotation (unless youve set it to not do that). Portrait mode is short side up, landscape mode is long side up.

1 Like

Hello @LiliArch
Ahh understand now. I lock it no rotation. I use Iphone.

It seems I cannot export local storage saves exceeding certain amount.
I tried to export 16 saves and it failed. I tried to export 12 saves on another game and it failed again.
I tried to export 1 save on a random new game and it succeeded.

RangeError: Maximum call stack size exceeded
    at F.exportSaves (savePlugin-Cy3E3jIA.js:1:5900)

When it failed to export, the above message popped up on the browser console. Maybe it has something to do with String.fromCharCode()?
Is there any way that I can export all of my local saves?

1 Like