COGdemo update not working

I’m having trouble with my first update to my COGdemo WIP. CoGDemos

The error I’m getting is: It is working just fine in CSIDE. But when I made my first monthly update to COGdemo, adding in my new files and uploading the modified ones, I get:
choicescript_stats line 1: Non-existent variable ‘energy’

Energy is created at in my Startup file. And it is the first variable looked at in the choicescript_stats.txt.

So whenever I load the game, and click on Show Stats, it breaks. It ALSO broke in the same way for me when I went from the first to the second chapter - but my friend did not have that problem. ???

Anything non-obvious here? I also tried deleting those two files and uploading them from scratch. No dice.

If you already have opened the link to the game before, most probably the browser holds a copy of the files locally, so when you update new files on the site, sometimes the browser doesn’t update the files of the playtest and then you get problems.

Most times you can solve those issues with a hard refresh (usually control + F5, it depends on the browser I guess, I don’t know them all) You can also check the scenes to see if what you’re looking at is the last ones you uploaded.

1 Like

I think that did it. Thank you!

@Loudbeat And now half the images are not resolving. Any thoughts on how to debug that one?

Go to the uploaded files and check they are okay and that the server has the ones that you meant to upload. If the command is there and the image is uploaded, then it should work.
Otherwise, I don’t know. I’ve had a few problems with that site also, but my problem was with achievements, and usually it fixes by doing the hard refresh.

@Loudbeat Ah! I see now I can download to view - that is what I missed, but now I can debug. Thank you!

So consistently the image is fine before I upload it but once I upload it, then view it, it has Zero bytes. Any thoughts on what might be messing up the upload?

Well. format, server, naming restrictions, bandwidth, browser. Try changing some and see what happens.

Thanks. Know if there is a bandwidth limit or what the naming restrictions are?

Not a limit, but if something goes too slow or there is some disturbance in between it can triggrt a timed out or something. I don’t know, I’m just guessing, but many things can happen. About naming I don’t know, that’s server dependent, but maybe some symbols or weird thing might cause problems (though I doubt it is that).

Try changing the browser or converting the image or open it and save it with another program, those things can make weird sh#t with files.

1 Like

It looks like it’s the file size - I am making it smaller and so far so good. Thank you!

Yeah, no problem, file size is limited to 2MB per image I think, that’s stated on the page if I remember correctly.

Keep in mind that’s only a limit for the COGdemos site and dashingdon. Images submitted to HG or COG don’t have that limit.

1 Like

Good to know! My entire story is about a character TAKING photos - so if they don’t show up it will be less than ideal. :slight_smile:

1 Like

I believe there’s some limitations on how big the total size of files in the game can be for published games (because the download can’t get too big), but don’t quote me on that.

Well, Adding up all the assets without counting the splashscreen and promo art, in full resolution I’m shy above 120MB :smiling_face_with_tear: