Misc Bugfixes

cvolton

Misc Bugfixes

This mod several bugs in Geometry Dash. Bugfixes that affect gameplay are out of scope, as these could be considered cheating.

For a brief overview of fixed issues, see about.md, this document serves as a detailed description of every issue fixed.

Patched bugs

Main

Incorrect Total Orbs Collected (Demon Key Fix)

The "Total Orbs Collected" (GS_22) stat can desync if you Save & Load between devices without constantly syncing your progress due to the way the save file merging works, resulting in a lower overall number. This counter is also used for awarding Demon Keys, which means that they won't get awarded properly either. However, when you launch the game, the correct "Total Orbs Collected" (GSM::getTotalCollectedCurrency) value is calculated and used to award the proper amount of Demon Keys.

The end result is that if you hit the bug, you get the correct amount of Keys on restart, but you won't get any new ones until you restart the game again. The fix sets the Total Orbs Collected (GS_22) stat to the amount calculated on game launch (GSM::getTotalCollectedCurrency).

Note that it seems that Rob is already somewhat doing this as part of the game's anticheat - the vanilla game resets the "Total Orbs Collected" (GS_22) stat to the real value (GSM::getTotalCollectedCurrency), but only if GS_22 > GSM::getTotalCollectedCurrency.

Also the fixed value persists even after uninstalling the mod, however the differences are saved in the mod's saved.json (if any are applied), so you can loop through the array there and substract all of the numbers from GS_22 to restore the original value.

Saved Songs page switching lag

Whenever you switch pages in Saved Songs, the game checks if all songs in your save file are downloaded. If you have a lot of downloaded songs or a lot of saved levels, this can take quite a while, as it can result in thousands of disk accesses on every page load.

The fix caches the "is song downloaded" value the first time this access happens on every game launch and returns the cached value instead. This cached value is reset/updated whenever a song actually gets downloaded.

Profiles showing old/broken usernames

Profiles always display cached usernames (often loaded from your save file), even though they actually receive correct ones when the profile is loaded.

The fix updates the displayed username when the profile is loaded.

A crash caused by refreshing and liking comments at the same time

If a like dialog is spawned for a comment and the comment cell is destroyed in the meantime, the game has a chance to crash, as the GJComment object may be replaced.

The fix adds retain() and release() calls accordingly.

"12 days left" timer bug

Timestamps used for timers in Geometry Dash only use the bottom 20 bits from the Unix Timestamp integer. This restricts them to a time period of 1048576 seconds or roughly 12.1 days. This is done through a binary AND operation (timestamp & 0xFFFFF).

If you look into it, the reason why Rob initially added this makes sense:

The timer was presumably stored in a 32-bit float, which would cause a precision of 256 seconds with a full timestamp. With the AND, the timer would have a precision of 1/16th of a second, which is more than enough.

However, the timer is now stored in a 64-bit double, which has a much higher precision than the 32-bit float, so the AND is no longer necessary.

This is proven by Android behavior, where this trim does not happen.

The issue however still affects Windows, macOS and iOS. The fix simply removes the AND operation.

"My Lists" Search showing incorrect usernames

When loading "My Lists", the account ID is treated as a user ID while displaying the header text. Since there is usually no user cached for these IDs, this usually results in the header simply saying the default "Online Lists". However, occassionally, you can find a match and this results in the header saying a completely incorrect username. The mod BetterInfo significantly accelerates this bug, as it has its own additional logic for resolving usernames from user IDs.

The fix properly implements logic to resolve account IDs to usernames for list search. It also fixes the missing apostrophe in "x's Levels" and "x's Lists"

Basement monster softlock

If you unlock the 3 keys in the basement and then save and close the game during the dialog with the monster, the result is that you've unlocked all 3 keys but the monster is still unfreed.

The fix checks for this specific condition and offers you to free the monster.

Show Hitboxes not working with mirror portals

While most of the framework for rendering mirrored hitboxes is in place, RobTop also accidentally mirrors the line width, which as a result becomes negative. This means that the line is drawn with 0px size, so it is not drawn at all in the end. The fix makes the line width use its absolute value, so negative line width still gets drawn.

This is not the only issue preventing hitboxes from getting drawn though. The game restricts drawn circular hitboxes to the game area. This is meant to be a performance improvement, however it is another reason why these don't work in mirrored mode - the game area is incorrectly calculated, causing only offscreen hitboxes to get drawn. Because the performance difference was within the margin of error in our testing (49 vs 50 FPS in a stress test with 11k saws) and it was a much easier solution, the fix here disables this restriction.

Special thanks to Prevter for this fix.

Show Hitboxes changing physics during mirror portal transitions

GameObject::determineSlopeDirection is used, as you can guess from the name, to determine the slope orientation and flipped state. It hovewer does not return the value, but instead stores the states as GameObject members. The issue now comes from the GJBaseGameLayer::updateDebugDraw, which calls this function if the object it wants to draw hitbox for is a slope. This changes the hitbox of the slope to it's horizontally flipped state very early and as a result makes the player die as if they hit the solid side of the slope. Note that this bug only occurs when hitboxes are visible.

The fix simply disables that GameObject::determineSlopeDirection call, which fixes the issue.

Special thanks to Prevter for this fix and for the bug description (PR #10).

Lists containing deleted levels not being playable

When a list contains a deleted level, an empty record is sent in its place. This would be handled fine by the client if it wasn't for the hash validation in getGJLevels, where the hash calculated by the server doesn't account for this empty record and therefore the hash doesn't match.

A proper fix for this issue would be to resolve the issue server-side. The workaround in this mod is that when loading list levels fails, it tries to load them with the method used for loading levels in a created list instead.

Completed Quests getting stuck as unclaimable

When you Load a save file with a quest that's already in your local save and the cloud save has it completed but not claimed, the progress will transfer to your client but the "can claim" status only unfreezes after you collect an additional item required for the quest. The bugfix makes the status refresh instantly.

Mirror Mode not working in Start Positions

The option just doesn't do anything in vanilla I think

Mini Swing getting visually changed to Cube if Default Mini Icon is on

The code forcing the default mini icon on doesn't check if you're a swing - the fix here sets it back to the correct swing after vanilla changes it to the cube, but a more proper solution for a vanilla fix would be checking directly when the cube is forced to begin with.

Bugs not listed in about.md

These bugs are not listed in about.md, as their relevance to the end user is minimal, or they can be considered part of another bugfix. Despite that, this mod still patches them.

User IDs not saved for saved levels

This is not a bug in itself rather than a RobTop decision. However it has the side effect of possibly showing "-" as the username for the profile if you open it from a saved level cell.

The fix simply reverts this change and makes the user ID be saved for all saved levels.

Geode Updater Stuck

The current Geode auto updater remember when it last checked for updates and only asks the server if any updates have come out since that time. It, however, does not verify whether the update check was succesful. This can, in some rare circumstances, cause people to skip a release.

The fix forces Geode to check once again if the installed version is older than what was latest as of the last Geode update.

Formerly patched bugs

CCMenuItem::activate crash

When you click a button, the game attempts to run code after its callback has been called. If the button callback removes the button (for example while closing a dialog), this can result in a crash, since it would already be removed and deallocated from memory when the post-callback code is called. This post-callback code is related to CCScriptManager, which can be used to attach scripts to buttons. Vanilla Geometry Dash never does this.

There are 2 possible fixes for this issue:

  • Remove the CCScriptManager call, only making the button directly run the code it's meant to.
  • Retain the button and release it after all calls have been made

Misc Bugfixes opts to choose the second option in case a mod desires to utilize the script feature of cocos for anything.

See also HJfod's Twitter for an alternative explanation: https://twitter.com/HJfod/status/1760076909663158588

This bugfix is still relevant, however it has been moved to Geode itself due to how easy the bug might be to trigger by mod devs.

"4 GB Patch"

32-bit Windows applications require the "Large Address Aware" flag to be enabled to be able to be able to use more than 2 GB RAM. This is disabled by default in most compilers, including MSVC, which RobTop is using. Enabling this flag is a single-byte patch of the exe and doing this raises the limit to 4 GB, which is the absolute technical maximum 32-bit applications can use in general.

The fix edits GeometryDash.exe to enable this flag. This edit persists even after the mod is uninstalled but a backup is available in the GD path, should the user wish to restore the original executable.

The fix has been made irrelevant by the 2.206 update, which made the game 64-bit on Windows. Since 64-bit applications have the Large Address Aware flag enabled by default, Geometry Dash can now use all memory available on a particular system.

Save and Play out of memory crash

Since Geometry Dash forces CCLocalLevels.dat to save before the editor is closed on Save and Play and Save and Exit, this can cause the game to run out of memory. For me personally, saving CCLocalLevels.dat allocated an additional 200 MB, which can be enough to push the game over the memory limit on Windows (2/4 GB depending on whether you have the patch installed) when object heavy levels are loaded.

The fix in this mod switches the game to a "Saving..." screen before saving the CCLocalLevels.dat file, which forces the editor to unload and therefore reduces the overall memory usage.

This fix has been disabled due to it being difficult to maintain across versions and the crash being much harder to trigger with the introduction of the 64-bit Windows version. It is also a potential point of conflict with EditorCollab and BetterEdit mods.

Ignore Damage breaking slope physics

To avoid illegitimate noclip hacks, the game has an anticheat measure, where after you spawn, you have to get killed by an invisible noclip spike. This is completely transparent to the user and doesn't trigger an actual death, instead it sets an "anticheat passed" flag internally. If this flag is not set, slope physics are different to mess with the user. Unfortunately RobTop didn't realize, that his noclip implementation would also trigger this anticheat, so the user is stuck with its consequences.

The fix forces a death by the anticheat spike when you spawn into a level with ignore damage enabled to make sure the anticheat passed flag is set correctly.

This bug was fixed by RobTop in update 2.207.

Copy to Clipboard not working (Android only)

This is simply an unimplemented feature on Android. The fix adds it to the game.

This bug was fixed by RobTop in update 2.208.

Changelog

v1.12.0 (2026-11-28)

  • Added GD 2.2091 support
  • Removed bugs fixed by RobTop
    • "12 days left" timer bug
    • Wave trail teleporting when player 2 enters a single portal
    • Mirror Mode not working in Start Positions
    • Show Hitboxes not working with mirror portals
  • Optimized various parts of the mod

v1.11.1 (2026-09-18)

  • Minor fixes to Automatic File Cleanup

v1.11.0 (2026-08-06)

  • Fixed Invalid Editor Guidelines Crash
  • Re-enabled Practice Music Fix (it's still needed for main level songs)
  • Optimized various parts of the mod

v1.10.1 (2026-03-18)

  • Fixed Show Hitboxes Mirror Portal fix not working correctly
  • Fixed User ID fix not working on Android64

v1.10.0 (2026-02-19)

  • Added GD 2.2081 support
  • Removed bugs fixed by RobTop
    • Music Pulse not working in Practice Mode with Music Unlocker
    • Copy to Clipboard not working (mobile only)
    • Lists containing deleted levels not being playable
    • Glow Color not working in Leaderboards

v1.9.1 (2025-12-14)

  • Fixed an oversight causing Glow Color to be displayed incorrectly for pre-2.2 accounts

v1.9.0 (2025-11-29)

  • Added Glow Color not working in Leaderboards fix

v1.8.0 (2025-08-27)

  • Added fixes for the following bugs
    • Dash Orb Particles being incorrectly offset (thanks ConfiG)
    • Spider and Robot Heads sometimes being incorrectly offset (thanks ConfiG)
    • Music Pulse not working in Practice Mode with Music Unlocker (thanks ConfiG)
    • Show Trigger incorrectly showing Wave Particles (thanks ConfiG)
    • Font Selection Highlight disappearing after changing fonts (thanks Hbg1010)
      • Note: This fix doesn't work with BetterEdit enabled (the bug remains, as BE reimplements the behavior)
  • Added iOS Jitless support

v1.7.0 (2025-06-19)

  • Added Mirror Mode not working in Start Positions fix
  • Added Mini Swing getting visually changed to Cube if Default Mini Icon is on fix

v1.6.4 (2025-05-27)

  • Improved support for Amazon versions of the game

v1.6.2 & v1.6.3 (2025-05-21)

  • Fixed a bug where refreshing level lists with no working levels blanked the page

v1.6.0 & v1.6.1 (2025-04-30)

  • Added Completed Quests getting stuck as unclaimable fix

v1.5.3 (2025-04-18)

  • Enabled Copy to Clipboard fix on iOS

v1.5.1 & v1.5.2 (2025-04-11)

  • Added iOS support

v1.5.0 (2025-03-28)

  • Fixed a bug that caused the first MenuLayer to be incorrectly retained
  • Removed known broken mod versions check
    • It has served its purpose

v1.4.0 (2025-01-14)

  • Added automatic file cleanup
    • This deletes files that were created by older versions of Geode but are not used for anything anymore
    • This also deletes old temporary files for uninstalled mods - this does NOT touch your save data
  • Added known broken mod versions check
  • Optimized MenuLayer hooks

v1.3.1 (2024-12-02)

  • Rebuilt against newer Geode bindings in hopes to fix some more obscure issues

v1.3.0 (2024-11-15)

  • Added GD 2.207 support
  • Removed Ignore Damage physics fix
    • Bug fixed by RobTop now

v1.2.1 (2024-08-30)

  • Fixed an Android-only crash related to the lists fix

v1.2.0 (2024-08-29)

  • Added Show Hitboxes Mirror Portal fix
    • Both the visual bug and the physics change bug
  • Added Ignore Damage physics fix
  • Added Wave Trail teleporting when P2 enters a single portal fix
  • Added Settings to disable some bugfixes
  • Added Lists not loading levels fix
  • Removed Save and Play OOM fix
    • Caused maintainability issues and potential mod conflicts
    • Also it is much less necessary in 2.206
  • Removed 4GB Patch (no longer necessary)

v1.1.3 (2024-04-20)

  • Improved Geode Auto Updater fix

v1.1.2 (2024-03-28)

  • Made restarting after applying 4GB Patch safer
  • Fixed a possible startup crash
  • Enabled early-load for the mod

v1.1.1 (2024-03-15)

  • Improved CCMenuItem::activate crash fix

v1.1.0 (2024-03-11)

  • Added CCMenuItem::activate crash fix
  • Fixed Save and Play crashing for some Mac users with the mod installed

v1.0.1 (2024-03-08)

  • Initial release, labeled 1.0.1 because too many people downloaded actions builds that were labeled 1.0.0 and I want to be able to distinguish these

Original Site made by HJfod. Geode 2 parody-ish by MeFinity.

Geode-SDK is the property of the Geode Team.


This website (Geode 2, Codename Malachite) is not affiliated with the Geode Team in any way shape or form.