1
0
Fork 0
forked from OpenNeo/impress
impress/src/server
Matchu 5212375c34 Handle very large asset manifests
Huh, so apparently the "MiniMME11-S1: Approaching Eventide Skirt" on the Acara has 1000 layer images lol.

This caused the manifest string to overflow the MySQL `TEXT` field, and fail to parse as valid JSON when loading it back for the client.

I've updated the database to use `MEDIUMTEXT` instead, and added a warning message & skip behavior when the manifest size would exceed the database limit, and added graceful error handling for the invalid JSON scenario. Now, we don't crash, and the data self-repairs, and keeps in a better state in the first place!

But I'm also worried about this asset, it doesn't play correctly anyway, and I'm not sure if that's an overload on our end, or just a flat problem in the JS. (There's no error message on the client, it just… loads all the layers, then shows no play button, seemingly self-satisfied.)
2021-04-12 18:58:28 -07:00
..
__image_snapshots__ outfit-images: render actual PNG and SVG layers! 2021-01-04 05:58:19 +00:00
__snapshots__ simplify validPetPoses out of the server directory 2020-09-06 00:40:00 -07:00
lib Use ES module syntax in backend instead of require 2021-02-02 22:26:55 -08:00
types Handle very large asset manifests 2021-04-12 18:58:28 -07:00
auth.js Use ES module syntax in backend instead of require 2021-02-02 22:26:55 -08:00
db.js Use ES module syntax in backend instead of require 2021-02-02 22:26:55 -08:00
index.js Use ES module syntax in backend instead of require 2021-02-02 22:26:55 -08:00
loaders.js Use VERCEL_URL for waka loader if given 2021-04-07 22:02:10 -07:00
modeling.js disable new modeling code, until some future day 2020-10-07 07:49:27 -07:00
neopets-assets.js Add Support view for all appearances of an item 2021-03-14 07:16:01 -07:00
outfit-images.js Use ES module syntax in backend instead of require 2021-02-02 22:26:55 -08:00
outfit-images.test.js Use ES module syntax in backend instead of require 2021-02-02 22:26:55 -08:00
util.js Use ES module syntax in backend instead of require 2021-02-02 22:26:55 -08:00
util.test.js Use ES module syntax in backend instead of require 2021-02-02 22:26:55 -08:00