From 0d49dbeb3d6670648cde466503a8675b1f93ff8e Mon Sep 17 00:00:00 2001 From: FireMario211 <17692105+FireMario211@users.noreply.github.com> Date: Wed, 18 Sep 2024 19:05:43 -0400 Subject: [PATCH] some bug fix and maybe add more hacks --- changelog.md | 7 +++++++ mod.json | 4 ++-- resources/hacks/global.json | 6 ++---- resources/hacks/player.json | 3 +-- src/Hacks/Quartz.hpp | 11 ++--------- src/UI/CreditsMenu.cpp | 2 +- src/main.cpp | 12 +++++------- 7 files changed, 20 insertions(+), 25 deletions(-) diff --git a/changelog.md b/changelog.md index 4e048e0..ef88087 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,10 @@ +# v1.9.1 + - Fixed bug with Noclip Accuracy continuing even after the level is completed + - Added more mac hacks + - Updated Russian Translations + - Updated Romanian Translations + - Updated Turkish Translations + - Updated French Translations # v1.9.0 - Added Auto Clicker - Added Low FPS Pause diff --git a/mod.json b/mod.json index 780adc1..096a46d 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,6 @@ { - "geode": "3.4.0", - "version": "v1.9.0", + "geode": "3.7.1", + "version": "v1.9.1", "gd": { "win": "2.206", "mac": "2.206", diff --git a/resources/hacks/global.json b/resources/hacks/global.json index ea39425..5559a5a 100644 --- a/resources/hacks/global.json +++ b/resources/hacks/global.json @@ -57,8 +57,7 @@ { "name": "Accurate Percentage", "desc": "Allows for decimals in the level percentage.", - "type": "bool", - "platforms": ["win", "android32", "android64"] + "type": "bool" }, { "name": "Extra Percent Digits", @@ -67,8 +66,7 @@ "min": 1, "max": 15, "step": 1, - "default": 4, - "platforms": ["win", "android32", "android64"] + "default": 4 }, { "name": "Uncomplete Level", diff --git a/resources/hacks/player.json b/resources/hacks/player.json index 7f3648d..4d98484 100644 --- a/resources/hacks/player.json +++ b/resources/hacks/player.json @@ -56,8 +56,7 @@ { "name": "Force Platformer Mode", "desc": "Forces you to be in platformer mode when playing a level.", - "type": "bool", - "platforms": ["win", "android32", "android64"] + "type": "bool" }, { "name": "Hide Player", diff --git a/src/Hacks/Quartz.hpp b/src/Hacks/Quartz.hpp index 13a07fd..282fd9c 100644 --- a/src/Hacks/Quartz.hpp +++ b/src/Hacks/Quartz.hpp @@ -172,15 +172,8 @@ class MacroManager { macro.framerate = intFPS; macro.levelInfo.name = ""; macro.levelInfo.id = 0; - #ifdef GEODE_IS_WINDOWS - macro.gameVersion = 2.204; - #endif - #if defined(GEODE_IS_ANDROID) || defined(GEODE_IS_IOS) - macro.gameVersion = 2.205; - #endif - #ifdef GEODE_IS_MACOS - macro.gameVersion = 2.200; - #endif + + macro.gameVersion = 2.206; std::ofstream f(savePath, std::ios::binary); auto data = macro.exportData(isJSON); diff --git a/src/UI/CreditsMenu.cpp b/src/UI/CreditsMenu.cpp index fb9e735..a056b68 100644 --- a/src/UI/CreditsMenu.cpp +++ b/src/UI/CreditsMenu.cpp @@ -318,7 +318,7 @@ std::vector users = { { "Rexosouli", 35, - "Proofreader (FR)", + "Translator (FR)", { 0,200,255 }, { 0,255,255 }, { 0,255,255 }, diff --git a/src/main.cpp b/src/main.cpp index 7d155f8..21c13a1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -275,6 +275,8 @@ class $modify(PrismPlayLayer, PlayLayer) { CCLabelBMFont* accuracyLabel; float flashOpacity = 0.0F; CCSprite* flashNode; + + bool hasCompletedLevel = false; }; // Anticheat Bypass, Noclip, No Spikes, No Solids @@ -374,9 +376,7 @@ class $modify(PrismPlayLayer, PlayLayer) { break; }*\/ }*/ - #if !defined(GEODE_IS_MACOS) && !defined(GEODE_IS_IOS) m_fields->previousTestMode = m_isTestMode; - #endif if (Hacks::isHackEnabled("Level Edit")) { //m_fields->m_gameLevel->m_levelType = static_cast(2); } @@ -430,12 +430,13 @@ class $modify(PrismPlayLayer, PlayLayer) { } void resetLevel() { m_fields->death = 0; + m_fields->hasCompletedLevel = false; PlayLayer::resetLevel(); } void postUpdate(float p0) { PlayLayer::postUpdate(p0); if (m_player1 != nullptr && Hacks::isHackEnabled("Suicide")) return PlayLayer::destroyPlayer(m_player1, nullptr); - if (m_fields->accuracyLabel != nullptr) { + if (m_fields->accuracyLabel != nullptr && !m_fields->hasCompletedLevel) { float accuracy = ((static_cast(m_gameState.m_currentProgress - m_fields->death)) / static_cast(m_gameState.m_currentProgress)) * 100; // for some reason this doesnt work on android, like it goes in the negatives m_fields->accuracyLabel->setString(fmt::format("{}%", Utils::setPrecision(accuracy, 2)).c_str()); m_fields->accuracyLabel->setVisible(Hacks::isHackEnabled("Noclip Accuracy") && (Hacks::isHackEnabled("Noclip") || Hacks::isHackEnabled("No Solids") || Hacks::isHackEnabled("No Spikes"))); @@ -448,7 +449,6 @@ class $modify(PrismPlayLayer, PlayLayer) { m_fields->flashNode->setOpacity(m_fields->flashOpacity); } } -#if !defined(GEODE_IS_MACOS) && !defined(GEODE_IS_IOS) if (!m_fields->hasSetTestMode) { m_fields->hasSetTestMode = true; m_fields->previousTestMode = m_isTestMode; @@ -460,7 +460,6 @@ class $modify(PrismPlayLayer, PlayLayer) { m_isTestMode = m_fields->previousTestMode; } } -#endif // whats the difference between m_fields and not using? i have no idea! if (Hacks::isCheating()) { // cheating if (!m_fields->isCheating) { @@ -547,7 +546,6 @@ class $modify(PrismPlayLayer, PlayLayer) { } // Accurate Percentage -#if !defined(GEODE_IS_MACOS) && !defined(GEODE_IS_IOS) void updateProgressbar() { PlayLayer::updateProgressbar(); if (Hacks::isHackEnabled("Accurate Percentage")) { @@ -559,8 +557,8 @@ class $modify(PrismPlayLayer, PlayLayer) { m_fields->percentLabel->setString(percentStr.c_str()); } } -#endif void levelComplete() { + m_fields->hasCompletedLevel = true; if (!(Hacks::isHackEnabled("Safe Mode") || Hacks::isAutoSafeModeActive())) return PlayLayer::levelComplete(); PlayLayer::resetLevel(); // haha }