From 08a64d498799c0065b7ce156a2ca070065fdc2de Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Mon, 19 Jan 2026 11:14:22 -0800 Subject: [PATCH] Remove glitch from items resolved by the new renderer fix I'll revert this commit in a sec, these are just temporary files I used to audit our assets with the `DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN` glitch, and remove it from the ones I've decided seem functional now. This commit is intended as a historical record of what we changed in the database and how and why. ``` ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | A Grey Day Background | Item 39708 | Asset 39694 | http://impress.openneo.net/swf-assets/39694?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | A Haunting Path Background | Item 78585 | Asset 468669 | http://impress.openneo.net/swf-assets/468669?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Autumnal Scenescape | Item 80632 | Asset 497773 | http://impress.openneo.net/swf-assets/497773?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Beautiful Butterfly Foreground | Item 83714 | Asset 558774 | http://impress.openneo.net/swf-assets/558774?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Food Fight Shower | Item 57781 | Asset 139542 | http://impress.openneo.net/swf-assets/139542?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Glowing Light Sky Background | Item 54176 | Asset 112686 | http://impress.openneo.net/swf-assets/112686?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | MiniMME11-S1: Approaching Eventide Skirt | Item 65801 | Asset 225267 | http://impress.openneo.net/swf-assets/225267?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | MiniMME11-S1: Approaching Eventide Skirt | Item 65801 | Asset 225277 | http://impress.openneo.net/swf-assets/225277?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | MiniMME11-S1: Approaching Eventide Skirt | Item 65801 | Asset 225805 | http://impress.openneo.net/swf-assets/225805?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Mutant Containment Suit | Item 81643 | Asset 520525 | http://impress.openneo.net/swf-assets/520525?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Negg Fountain Background | Item 82391 | Asset 537342 | http://impress.openneo.net/swf-assets/537342?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Rainbow Fountain Background | Item 36747 | Asset 27886 | http://impress.openneo.net/swf-assets/27886?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Written Word Shower | Item 51134 | Asset 94213 | http://impress.openneo.net/swf-assets/94213?playing=true ["DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN"] -> [] | Starry Glowstone Path Background | Item 74542 | Asset 390340 | http://impress.openneo.net/swf-assets/390340?playing=true ``` --- public/glitch_audit.html | 1438 ++++++++++++++++++++++++++++++ scripts/remove_unknown_glitch.rb | 53 ++ 2 files changed, 1491 insertions(+) create mode 100644 public/glitch_audit.html create mode 100644 scripts/remove_unknown_glitch.rb diff --git a/public/glitch_audit.html b/public/glitch_audit.html new file mode 100644 index 00000000..ca28fd5c --- /dev/null +++ b/public/glitch_audit.html @@ -0,0 +1,1438 @@ + + + + + Glitch Audit Comparison + + + +

Glitch Audit Comparison

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Item IDItem NameAsset IDEmbed (150×150)PNG (150×150)
39708A Grey Day Background39694 + + + +
78585A Haunting Path Background468669 + + + +
80632Autumnal Scenescape497773 + + + +
83714Beautiful Butterfly Foreground558774 + + + +
75081Cannibal Bonfire398831 + + + +
74325Casual Shirt and Trousers386647 + + + +
57781Food Fight Shower139542 + + + +
54176Glowing Light Sky Background112686 + + + +
65801MiniMME11-S1: Approaching Eventide Skirt225267 + + + +
65801MiniMME11-S1: Approaching Eventide Skirt225277 + + + +
65801MiniMME11-S1: Approaching Eventide Skirt225805 + + + +
81643Mutant Containment Suit520525 + + + +
82391Negg Fountain Background537342 + + + +
56591Perfect Hair Wig136085 + + + +
82518Premium Collectible: Slorg on a Raincoat537124 + + + +
36747Rainbow Fountain Background27886 + + + +
74542Starry Glowstone Path Background390340 + + + +
51134Written Word Shower94213 + + + +
1635 + + + +
1952 + + + +
3091 + + + +
3177 + + + +
3220 + + + +
4215 + + + +
5955 + + + +
6162 + + + +
7244 + + + +
12781 + + + +
13977 + + + +
18992 + + + +
19624 + + + +
19625 + + + +
19626 + + + +
19627 + + + +
19628 + + + +
19629 + + + +
19634 + + + +
19813 + + + +
20069 + + + +
20326 + + + +
20327 + + + +
20739 + + + +
23440 + + + +
23688 + + + +
24188 + + + +
24526 + + + +
24527 + + + +
24647 + + + +
24649 + + + +
163786 + + + +
165047 + + + +
172836 + + + +
172913 + + + +
190334 + + + +
250672 + + + +
256724 + + + +
256725 + + + +
256728 + + + +
277291 + + + +
277651 + + + +
292557 + + + +
306981 + + + +
312070 + + + +
321397 + + + +
323494 + + + +
324522 + + + +
324523 + + + +
324585 + + + +
326278 + + + +
326283 + + + +
326339 + + + +
326903 + + + +
328309 + + + +
328532 + + + +
328537 + + + +
329962 + + + +
330569 + + + +
333679 + + + +
338044 + + + +
338049 + + + +
338050 + + + +
338051 + + + +
340982 + + + +
341381 + + + +
341401 + + + +
341403 + + + +
341408 + + + +
341887 + + + +
342551 + + + +
342882 + + + +
344408 + + + +
344414 + + + +
345918 + + + +
345919 + + + +
345923 + + + +
349137 + + + +
349781 + + + +
349783 + + + +
349940 + + + +
349945 + + + +
350211 + + + +
351652 + + + +
351655 + + + +
353938 + + + +
353939 + + + +
353943 + + + +
356504 + + + +
356890 + + + +
370208 + + + +
370210 + + + +
370215 + + + +
394518 + + + +
411936 + + + +
427093 + + + +
447740 + + + +
471310 + + + +
482344 + + + +
522443 + + + +
536342 + + + +
+ + + + diff --git a/scripts/remove_unknown_glitch.rb b/scripts/remove_unknown_glitch.rb new file mode 100644 index 00000000..939ea29d --- /dev/null +++ b/scripts/remove_unknown_glitch.rb @@ -0,0 +1,53 @@ +# Run with: rails runner scripts/remove_unknown_glitch.rb + +ASSET_IDS = [ + 39694, + 468669, + 497773, + 558774, + 139542, + 112686, + 225267, + 225277, + 225805, + 520525, + 537342, + 27886, + 94213, + 390340, +] + +GLITCH_TO_REMOVE = "DISPLAYS_INCORRECTLY_BUT_CAUSE_UNKNOWN" + +ASSET_IDS.each do |asset_id| + asset = SwfAsset.find_by(id: asset_id) + + if asset.nil? + puts "Asset #{asset_id}: NOT FOUND" + next + end + + before_glitches = asset.known_glitches + + unless before_glitches.include?(GLITCH_TO_REMOVE) + puts "Asset #{asset_id}: Does not have #{GLITCH_TO_REMOVE}" + next + end + + after_glitches = before_glitches - [GLITCH_TO_REMOVE] + asset.known_glitches = after_glitches + asset.save! + + # Get the item via the relationship + item_rel = asset.parent_swf_asset_relationships.find_by(parent_type: "Item") + item = item_rel&.parent + + item_name = item&.name || "(no item)" + item_id = item&.id || "(no item)" + + url = "http://impress.openneo.net/swf-assets/#{asset_id}?playing=true" + + puts "#{before_glitches.inspect} -> #{after_glitches.inspect} | #{item_name} | Item #{item_id} | Asset #{asset_id} | #{url}" +end + +puts "\nDone!"