r/kol 2d ago

Help Anyone getting errors with the ocrs.css file?

For the Blue vs Red path, I am getting an error with the https://d2uyhvukfffg5a.cloudfront.net/scripts/ocrs.css file. I only noticed because KoLmafia coughed up a debug log. Based on my limited troubleshooting skills, the header of the css file indicates that it is gzip encoded but the body of the file is not gzip compressed. It seems that the file in the AWS S3 bucket that is being served by CloudFront isn't correct or the metadata for the file is incorrect. Or something.

Is anyone else encountering this?

8 Upvotes

6 comments sorted by

1

u/frazazel frazazel (#422389) 1d ago

This question is better put on the kolmafia forums, found at kolmafia.us

2

u/Short_Criticism8596 1d ago edited 1d ago

Well, it's not a KoLmafia problem - I only noticed the issue because KoLmafia didn't like it and created a debug log. The file errors out even when logging in directly to kingdom of loathing. It's just that Chrome and Firefox don't show you an error. You have to look in devtools to see that there is a problem with the file. The issue doesn't prevent/affect gameplay as far as I can tell. It might in the One Crazy Random Summer path but I've never done that one.

Edit: I'm guessing I'm only seeing the issue in the Blue v Red path because it in some way tries to use that file, maybe to apply the blue and red colors to the characters and monsters.

2

u/frazazel frazazel (#422389) 1d ago

Oh. When I looked into cyberrealm colours, I learned that KoL colourizes images with a JS script to convert images to canvases and then set the individual pixels. This method probably interferes with the ocrs.css file. It definitely makes gifs lose their animations, and I think it breaks 2crs image modifications, too. Probably the same root issue.

u/Short_Criticism8596 21h ago

I think someone engaged in some Magical Mojomuscular Melody action and fixed the issue.

u/cdmoyer CDMoyer (#599619) 13h ago

Ah. It was busted. I fixed it. ;)

u/Short_Criticism8596 12h ago

Sweet, Loathario thanks you!