LiquidBounce icon indicating copy to clipboard operation
LiquidBounce copied to clipboard

[BUG] The issue caused by the .script reload command

Open mumy-255 opened this issue 1 year ago • 1 comments

LiquidBounce Branch

Nextgen

LiquidBounce Build/Version

0.3.1 git-1d572d7

Operating System

Windows 10

Minecraft Version

1.20.4

Describe the bug

After using .script reload to reload the script, the script's state and settings are all lost.

Steps to reproduce

  1. Install a script and start it, then set some values.
  2. Use .script reload.
  3. After the reload is complete, all script state values will be lost.

Client Log

[00:03:55] [Render thread/INFO]: Launching LiquidBounce v0.3.1 by CCBlueX
[00:03:55] [Render thread/INFO]: Probing environment... (official: evi, intermediary: net.minecraft.class_310)
[00:03:55] [Render thread/INFO]: Intermediary environment detected.
[00:03:55] [Render thread/INFO]: Loaded language en_us
[00:03:55] [Render thread/INFO]: Loaded language de_de
[00:03:55] [Render thread/INFO]: Loaded language ja_jp
[00:03:55] [Render thread/INFO]: Loaded language zh_cn
[00:03:55] [Render thread/INFO]: Loaded language ru_ru
[00:03:55] [Render thread/INFO]: Loaded language en_pt
[00:03:55] [Render thread/INFO]: Loaded language pt_br
[00:03:57] [Via Async Scheduler 0/INFO]: Finished mapping loading, shutting down loader executor!
[00:03:59] [Render thread/INFO]: [ScriptAPI] Successfully loaded script 'BlocksMCCriticals.js'.
[00:03:59] [Render thread/WARN]: Unable to find main.js or main.mjs inside the directory lib.
[00:03:59] [Render thread/INFO]: [ScriptAPI] Successfully loaded script 'mumyExtraCore 0.1.js'.
[00:03:59] [Render thread/INFO]: [ScriptAPI] Successfully loaded script 'mumyLogFilter 0.2.js'.
[00:03:59] [Render thread/INFO]: [ScriptAPI] Successfully loaded script 'mumyPacketDebugger 0.3.js'.
[00:03:59] [Worker-Main-1/INFO]: Update available for '[email protected]', (-> 23.0.8)
[00:03:59] [Worker-Main-1/INFO]: Update available for '[email protected]+mc1.20.4', (-> 5.16.1+mc1.20.4)
[00:03:59] [Worker-Main-1/INFO]: Update available for '[email protected]+1.20.4', (-> 0.97.0+1.20.4)
[00:03:59] [Worker-Main-1/INFO]: Update available for '[email protected]', (-> 9.1.0-beta.1)
[00:03:59] [Worker-Main-1/INFO]: Update available for '[email protected]+fabric-1.20.4', (-> 3.9.7+fabric-1.20.4)
[00:03:59] [Worker-Main-1/INFO]: Update available for '[email protected]', (-> 24.1.1_Fabric_1.20.4)
[00:03:59] [Render thread/INFO]: [ScriptAPI] Successfully loaded script 'mumyStrongholdFinder 0.1.js'.
[00:03:59] [Render thread/WARN]: BlocksMCCriticals is missing fallback description key liquidbounce.module.blocksMCCriticals.description
[00:03:59] [Render thread/WARN]: mumyAntiBlind is missing fallback description key liquidbounce.module.mumyAntiBlind.description
[00:03:59] [Render thread/WARN]: mumyFreePlace is missing fallback description key liquidbounce.module.mumyFreePlace.description
[00:03:59] [Render thread/WARN]: mumyTest is missing fallback description key liquidbounce.module.mumyTest.description
[00:03:59] [Render thread/WARN]: mumyNoSelectedSlotSet is missing fallback description key liquidbounce.module.mumyNoSelectedSlotSet.description
[00:03:59] [Render thread/WARN]: mumyPacketAdjuster is missing fallback description key liquidbounce.module.mumyPacketAdjuster.description
[00:03:59] [Render thread/WARN]: mumyLogFilter is missing fallback description key liquidbounce.module.mumyLogFilter.description
[00:03:59] [Render thread/WARN]: mumyPacketDebugger is missing fallback description key liquidbounce.module.mumyPacketDebugger.description
[00:04:00] [Render thread/WARN]: mumyStrongholdFinder is missing fallback description key liquidbounce.module.mumyStrongholdFinder.description
[00:04:01] [Render thread/INFO]: Successfully extracted default theme
[00:04:01] [Render thread/INFO]: Inserted 9 components
[00:04:01] [Render thread/INFO]: Successfully loaded config 'enemies'.
[00:04:01] [Render thread/INFO]: Successfully saved config 'enemies'.
[00:04:01] [Render thread/INFO]: (Chat) 
[00:04:01] [Render thread/INFO]: (Chat) §f§lLiquid§9§lBounce §8▸ §7Auto ConfigAuto Config
[00:04:01] [Render thread/INFO]: Successfully loaded config 'modules'.
[00:04:01] [Render thread/INFO]: Successfully saved config 'modules'.
[00:04:01] [Render thread/INFO]: Successfully loaded config 'commands'.
[00:04:01] [Render thread/INFO]: Successfully saved config 'commands'.
[00:04:01] [Render thread/INFO]: Successfully loaded config 'friends'.
[00:04:01] [Render thread/INFO]: Successfully saved config 'friends'.
[00:04:01] [Render thread/INFO]: Successfully loaded config 'proxy'.
[00:04:01] [Render thread/INFO]: Successfully saved config 'proxy'.
[00:04:01] [Render thread/INFO]: Successfully loaded config 'accounts'.
[00:04:01] [Render thread/INFO]: Successfully saved config 'accounts'.
[00:04:01] [Render thread/INFO]: Successfully loaded config 'tabs'.
[00:04:01] [Render thread/INFO]: Successfully saved config 'tabs'.
[00:04:01] [Render thread/INFO]: Successfully loaded config 'lang'.
[00:04:01] [Render thread/INFO]: Successfully saved config 'lang'.
[00:04:01] [Render thread/INFO]: Successfully loaded config 'storage'.
[00:04:01] [Render thread/INFO]: Successfully saved config 'storage'.
[00:04:01] [Render thread/INFO]: Successfully loaded config 'theme'.
[00:04:01] [Render thread/INFO]: Successfully saved config 'theme'.
[00:04:01] [netty-websocket/INFO]: Starting Netty server...
[00:04:01] [nioEventLoopGroup-3-1/INFO]: [id: 0x95163929] REGISTERED
[00:04:01] [nioEventLoopGroup-3-1/INFO]: [id: 0x95163929] BIND: 0.0.0.0/0.0.0.0:16855
[00:04:01] [nioEventLoopGroup-3-1/INFO]: [id: 0x95163929, L:/[0:0:0:0:0:0:0:0]:16855] ACTIVE
[00:04:01] [netty-websocket/INFO]: Netty server started on port 16855.
[00:04:02] [Render thread/INFO]: Refresh Rate: 75 Hz
[00:04:02] [Render thread/INFO]: JCEF Commit: 0e837c94ea090b6eb4b9bc65428ec28fd75d1d72
[00:04:02] [Render thread/INFO]: [Downloading Checksum] Started task
[00:04:04] [Render thread/INFO]: [Downloading Checksum] Progress 100%
[00:04:04] [Render thread/INFO]: Checksum matches: true
[00:04:04] [Render thread/INFO]: Platform directory exists: true
[00:04:04] [Render thread/INFO]: Initializing CEF on windows_amd64...
[00:04:05] [Render thread/INFO]: [STDOUT]: initialize on Thread[#1,Render thread,5,main] with library path H:\Games\Play2\.minecraft\versions\1.20.4-Fabric 0.15.7\LiquidBounce\mcef\libraries\0e837c94ea090b6eb4b9bc65428ec28fd75d1d72\windows_amd64
[00:04:05] [Render thread/INFO]: Chromium Embedded Framework initialized
[00:04:05] [Render thread/INFO]: Browser is ready.
[00:04:05] [Render thread/INFO]: Successfully loaded client!
[00:04:05] [Render thread/INFO]: Loaded background image for theme default
[00:04:05] [Render thread/INFO]: Invalidating pack caches

...

[00:04:37] [Server thread/INFO]: Saving and pausing game...
[00:04:37] [Server thread/INFO]: Saving chunks for level 'ServerLevel[新的世界]'/minecraft:overworld
[00:04:37] [Server thread/INFO]: Saving chunks for level 'ServerLevel[新的世界]'/minecraft:the_end
[00:04:37] [Server thread/INFO]: Saving chunks for level 'ServerLevel[新的世界]'/minecraft:the_nether
[00:05:22] [Server thread/INFO]: Saving and pausing game...
[00:05:22] [Server thread/INFO]: Saving chunks for level 'ServerLevel[新的世界]'/minecraft:overworld
[00:05:22] [Server thread/INFO]: Saving chunks for level 'ServerLevel[新的世界]'/minecraft:the_end
[00:05:23] [Server thread/INFO]: Saving chunks for level 'ServerLevel[新的世界]'/minecraft:the_nether
[00:05:27] [nioEventLoopGroup-4-6/INFO]: Successfully saved config 'modules'.
[00:05:27] [nioEventLoopGroup-4-6/INFO]: Successfully saved config 'modules'.
[00:05:27] [nioEventLoopGroup-4-6/INFO]: Successfully saved config 'modules'.
[00:05:27] [nioEventLoopGroup-4-3/INFO]: Successfully saved config 'modules'.
[00:05:47] [nioEventLoopGroup-4-6/INFO]: Successfully saved config 'modules'.
[00:05:47] [nioEventLoopGroup-4-1/INFO]: Successfully saved config 'modules'.
[00:05:49] [nioEventLoopGroup-4-1/INFO]: Successfully saved config 'modules'.
[00:06:06] [nioEventLoopGroup-4-1/INFO]: Successfully saved config 'modules'.
[00:06:08] [nioEventLoopGroup-4-1/INFO]: Successfully saved config 'modules'.
[00:06:23] [nioEventLoopGroup-4-3/INFO]: Successfully saved config 'modules'.
[00:06:24] [nioEventLoopGroup-4-3/INFO]: Successfully saved config 'modules'.
[00:06:28] [Render thread/INFO]: [ScriptAPI] Successfully loaded script 'BlocksMCCriticals.js'.
[00:06:28] [Render thread/WARN]: Unable to find main.js or main.mjs inside the directory lib.
[00:06:28] [Render thread/INFO]: [ScriptAPI] Successfully loaded script 'mumyExtraCore 0.1.js'.
[00:06:29] [Render thread/INFO]: [ScriptAPI] Successfully loaded script 'mumyLogFilter 0.2.js'.
[00:06:29] [Render thread/INFO]: [ScriptAPI] Successfully loaded script 'mumyPacketDebugger 0.3.js'.
[00:06:29] [Render thread/INFO]: [ScriptAPI] Successfully loaded script 'mumyStrongholdFinder 0.1.js'.
[00:06:29] [Render thread/WARN]: BlocksMCCriticals is missing fallback description key liquidbounce.module.blocksMCCriticals.description
[00:06:29] [Render thread/WARN]: mumyAntiBlind is missing fallback description key liquidbounce.module.mumyAntiBlind.description
[00:06:29] [Render thread/WARN]: mumyFreePlace is missing fallback description key liquidbounce.module.mumyFreePlace.description
[00:06:29] [Render thread/WARN]: mumyTest is missing fallback description key liquidbounce.module.mumyTest.description
[00:06:29] [Render thread/WARN]: mumyNoSelectedSlotSet is missing fallback description key liquidbounce.module.mumyNoSelectedSlotSet.description
[00:06:29] [Render thread/WARN]: mumyPacketAdjuster is missing fallback description key liquidbounce.module.mumyPacketAdjuster.description
[00:06:29] [Render thread/WARN]: mumyLogFilter is missing fallback description key liquidbounce.module.mumyLogFilter.description
[00:06:29] [Render thread/WARN]: mumyPacketDebugger is missing fallback description key liquidbounce.module.mumyPacketDebugger.description
[00:06:29] [Render thread/WARN]: mumyStrongholdFinder is missing fallback description key liquidbounce.module.mumyStrongholdFinder.description
[00:06:29] [Render thread/INFO]: Successfully reloaded scripts.
[00:06:29] [Render thread/INFO]: [CHAT] §f§lLiquid§9§lBounce §8▸ §7已重新加载所有脚本。
[00:06:42] [Render thread/INFO]: Successfully saved config 'modules'.
[00:06:43] [Server thread/INFO]: Saving and pausing game...

Screenshots

https://github.com/CCBlueX/LiquidBounce/assets/161578211/b04c0f29-36a7-4363-ad18-588ee59cda59

mumy-255 avatar Apr 16 '24 16:04 mumy-255

So you’re setting default values, configging the script and not saving it, unloading the script and reloading it and complaining that it didn’t save?

liquidsquid1 avatar Apr 17 '24 20:04 liquidsquid1