Skip to content

Code Notes: parseEnumerations recursion error #15

@wormi-ra

Description

@wormi-ra

My code notes fails to load, most likely due to a recursion error on the regex matching in parseEnumerations

Game: https://authorblues.github.io/retroachievements/AutoCR/#!/game/21184/notes

Error fetching data: InternalError: too much recursion
    parseEnumerations https://authorblues.github.io/retroachievements/AutoCR/js/achievements.js:851
    CodeNote https://authorblues.github.io/retroachievements/AutoCR/js/achievements.js:640
    main https://authorblues.github.io/retroachievements/AutoCR/#!/game/21184/notes line 3 > injectedScript:3303
overview.js:2575:15
    main overview.js:2575

Every code note past 0x18005b0 fails to load

here's the faulty code note

[16-bytes BE ASCII] (EU) Ingame | Current LUA Script Name
The first 5 bytes are always overwritten with 0xdd upon exiting a level
0x00000000 = Uninitialized
0xdddddddd = Uninitialized
0x7475746f7269616c3100 = "tutorial1" | Atlantis Training Facility
0x7475746f7269616c3200 = "tutorial2" | Down in the Dumps
0x5475746f7269616c3300 = "Tutorial3" | Return to Chateau Assassin
0x5475746f7269616c3400 = "Tutorial4" | The Mighty Kong
0x7475746f7269616c3500 = "tutorial5" | Test Tubes
0x64726976696e6700 = "driving" | The Driving Range
0x6464617900 = "dday" | D-Day
0x43726174654272697461696e00 = "CrateBritain" | Crate Britain
0x67726176657961726400 = "graveyard" | Grave Danger
0x6c65656b00 = "leek" | A Leek in a Vegetable Patch
0x49434500 = "ICE" | Ice, Ice, Maybe
0x436f6c6c69646500 = "Collide" | When Annelids Collide
0x72756d00 = "rum" | Rum Deal
0x637275737400 = "crust" | Earn Your Crust
0x6170706c65636f726500 = "applecore" | Apple Core Island
0x68656c746572736b656c74657200 = "helterskelter" | Helter Skelter
0x63686572727900 = "cherry" | Take My Cherry
0x636c65616e00 = "clean" | In Space, No-One Can Hear You Clean
0x74696d6265727300 = "timbers" | Shiver Me Timbers
0x46414c4c494e4700 = "FALLING" | Falling For You
0x63726f70636972636c6500 = "cropcircle" | Crop Circle
0x7472656576696c6c61676500 = "treevillage" | Tree Village Trouble
0x6c616e64696e6700 = "landing" | Movie Mayhem
0x6265616e7374616c6b00 = "beanstalk" | Worm and the Beanstalk
0x5343484f4f4c5300 = "SCHOOLS" | School's in for Summer
0x686967687374616b657300 = "highstakes" | High Stakes
0x6e6f74706300 = "notpc" | A Quick Fix
0x636f6f70656400 = "cooped" | All Cooped Up
0x545249414c00 = "TRIAL" | Trial of the Damned
0x53484f57444f574e00 = "SHOWDOWN" | Showdown at the OK Corale Reef
0x706c6169636500 = "plaice" | Plaice Holder
0x686f6f6b6c696e6500 = "hookline" | Hook, Line, and Skimmer
0x66756e6661697200 = "funfair" | Nobody Rides For Free
0x5065676173757300 = "Pegasus" | Hold Until Relieved
0x626f6c646c7900 = "boldly" | To Boldly Go
0x62616c6c6f6f6e00 = "balloon" | Beautiful Balloon
0x636f756e74696e67736865657000 = "countingsheep" | A Good Nights Sleep
0x425245414b4641535400 = "BREAKFAST" | Beefcake Breakfast Brawl
0x686f6c6964617900 = "holiday" | Costa Del Danger
0x7061636b00 = "pack" | Ragnarok and Roll
0x414c49454e00 = "ALIEN" | Alien Juice Suckers
0x54617267657448756e7400 = "TargetHunt" | Shotgun Challenge 1
0x54617267657448756e743200 = "TargetHunt2" | Shotgun Challenge 2
0x484f4d494e4700 = "HOMING" | Shotgun Challenge 3
0x53686565703100 = "Sheep1" | Super Sheep Challenge 1
0x53686565703200 = "Sheep2" | Super Sheep Challenge 2
0x54617267657448756e743400 = "TargetHunt4" | Super Sheep Challenge 3
0x637261746566756e00 = "cratefun" | Jet Pack Challenge 1
0x6a65747061636b6368616c6c3200 = "jetpackchall2" | Jet Pack Challenge 2
0x6a65747061636b6368616c6c3300 = "jetpackchall3" | Jet Pack Challenge 3
0x43687574653100 = "Chute1" | Parachute Challenge 1
0x63687574653200 = "chute2" | Parachute Challenge 2
0x63687574653300 = "chute3" | Parachute Challenge 3
0x44656174686d617463683100 = "Deathmatch1" | Deathmatch Challenge 1
0x44656174686d617463683200 = "Deathmatch2" | Deathmatch Challenge 2
0x44656174686d617463683300 = "Deathmatch3" | Deathmatch Challenge 3
0x44656174686d617463683400 = "Deathmatch4" | Deathmatch Challenge 4
0x44656174686d617463683500 = "Deathmatch5" | Deathmatch Challenge 5
0x44656174686d617463683600 = "Deathmatch6" | Deathmatch Challenge 6
0x44656174686d617463683700 = "Deathmatch7" | Deathmatch Challenge 7
0x44656174686d617463683800 = "Deathmatch8" | Deathmatch Challenge 8
0x44656174686d617463683900 = "Deathmatch9" | Deathmatch Challenge 9
0x44656174686d61746368313000 = "Deathmatch10" | Deathmatch Challenge 10
0x737464767300 = "stdvs" | Multiplayer Game
0x6174747261637400 = "attract" | Attract Mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions