Minenash / CustomHUD

A highly customizable variable-based text HUD for Minecraft
MIT License
82 stars 23 forks source link

variable flags #79

Closed devvahh closed 1 year ago

devvahh commented 1 year ago

Whenever I try to do a variable then something like -uc my game crashes

Minenash commented 1 year ago

Can you provided the log?

devvahh commented 1 year ago

---- Minecraft Crash Report ---- // This doesn't make any sense!

Time: 2023-01-21 21:29:47 Description: Unexpected error

java.lang.IllegalArgumentException: Illegal pattern character 'c' at java.base/java.text.SimpleDateFormat.compile(SimpleDateFormat.java:849) at java.base/java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:657) at java.base/java.text.SimpleDateFormat.(SimpleDateFormat.java:628) at java.base/java.text.SimpleDateFormat.(SimpleDateFormat.java:603) at com.minenash.customhud.VariableParser.parseElement(VariableParser.java:64) at com.minenash.customhud.VariableParser.parseElements(VariableParser.java:48) at com.minenash.customhud.Profile.parseProfile(Profile.java:127) at com.minenash.customhud.CustomHud.updateProfiles(CustomHud.java:207) at com.minenash.customhud.CustomHud.onTick(CustomHud.java:89) at net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents.lambda$static$2(ClientTickEvents.java:65) at net.minecraft.class_310.handler$baa000$onEndTick(class_310.java:7473) at net.minecraft.class_310.method_1574(class_310.java:1907) at net.minecraft.class_310.method_1523(class_310.java:1135) at net.minecraft.class_310.method_1514(class_310.java:768) at net.minecraft.client.main.Main.method_44604(Main.java:244) at net.minecraft.client.main.Main.main(Main.java:51) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head -- Thread: Render thread Stacktrace: at java.base/java.text.SimpleDateFormat.compile(SimpleDateFormat.java:849) at java.base/java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:657) at java.base/java.text.SimpleDateFormat.(SimpleDateFormat.java:628) at java.base/java.text.SimpleDateFormat.(SimpleDateFormat.java:603) at com.minenash.customhud.VariableParser.parseElement(VariableParser.java:64) at com.minenash.customhud.VariableParser.parseElements(VariableParser.java:48) at com.minenash.customhud.Profile.parseProfile(Profile.java:127) at com.minenash.customhud.CustomHud.updateProfiles(CustomHud.java:207) at com.minenash.customhud.CustomHud.onTick(CustomHud.java:89) at net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents.lambda$static$2(ClientTickEvents.java:65) at net.minecraft.class_310.handler$baa000$onEndTick(class_310.java:7473)

-- Affected level -- Details: All players: 5 total; [class_746['d3vv'/352008, l='ClientLevel', x=198.50, y=222.00, z=202.13], class_745['tellytubbygamer'/347083, l='ClientLevel', x=198.50, y=222.00, z=201.46], class_745['Convx'/212866, l='ClientLevel', x=203.78, y=222.00, z=207.61], class_745['fwpy'/352064, l='ClientLevel', x=194.01, y=222.00, z=205.70], class_745['Mr_MeatballXXX'/344766, l='ClientLevel', x=194.29, y=222.00, z=207.22]] Chunk stats: 1024, 157 Level dimension: minecraft:overworld Level spawn location: World: (198,222,202), Section: (at 6,14,10 in 12,13,12; chunk contains blocks 192,-64,192 to 207,319,207), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511) Level time: 19985 game time, 6000 day time Server brand: Paper (Velocity) Server type: Non-integrated multiplayer server Stacktrace: at net.minecraft.class_638.method_8538(class_638.java:453) at net.minecraft.class_310.method_1587(class_310.java:2341) at net.minecraft.class_310.method_1514(class_310.java:792) at net.minecraft.client.main.Main.method_44604(Main.java:244) at net.minecraft.client.main.Main.main(Main.java:51) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Last reload -- Details: Reload number: 1 Reload reason: initial Finished: Yes Packs: Default, Fabric Mods, ! §c§l§oDevvahh §e§l§oDefault v1

-- System Details -- Details: Minecraft Version: 1.19.2 Minecraft Version ID: 1.19.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 17.0.3, Microsoft Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft Memory: 368557576 bytes (351 MiB) / 1140850688 bytes (1088 MiB) up to 2147483648 bytes (2048 MiB) CPUs: 16 Processor Vendor: AuthenticAMD Processor Name: AMD Ryzen 7 3700X 8-Core Processor
Identifier: AuthenticAMD Family 23 Model 113 Stepping 0 Microarchitecture: Zen 2 Frequency (GHz): 3.60 Number of physical packages: 1 Number of physical CPUs: 8 Number of logical CPUs: 16 Graphics card #0 name: NVIDIA GeForce RTX 2070 Graphics card #0 vendor: NVIDIA (0x10de) Graphics card #0 VRAM (MB): 4095.00 Graphics card #0 deviceId: 0x1f07 Graphics card #0 versionInfo: DriverVersion=31.0.15.2802 Memory slot #0 capacity (MB): 8192.00 Memory slot #0 clockSpeed (GHz): 2.40 Memory slot #0 type: DDR4 Memory slot #1 capacity (MB): 8192.00 Memory slot #1 clockSpeed (GHz): 2.40 Memory slot #1 type: DDR4 Virtual memory max (MB): 32611.41 Virtual memory used (MB): 26430.53 Swap memory total (MB): 16305.70 Swap memory used (MB): 1374.11 JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M Fabric Mods: appleskin: AppleSkin 2.4.1+mc1.19 boostedbrightness: Boosted Brightness 2.1.2 c2me: Concurrent Chunk Management Engine 0.2.0+alpha.9.0 c2me-base: Concurrent Chunk Management Engine (Base) 0.2.0+alpha.9.0 c2me-client-uncapvd: Concurrent Chunk Management Engine (Client/Uncap View Distance) 0.2.0+alpha.9.0 c2me-fixes-chunkio-threading-issues: Concurrent Chunk Management Engine (Fixes/Chunk IO/Threading Issues) 0.2.0+alpha.9.0 c2me-fixes-general-threading-issues: Concurrent Chunk Management Engine (Fixes/General/Threading Issues) 0.2.0+alpha.9.0 c2me-fixes-worldgen-threading-issues: Concurrent Chunk Management Engine (Fixes/WorldGen/Threading Issues) 0.2.0+alpha.9.0 c2me-fixes-worldgen-vanilla-bugs: Concurrent Chunk Management Engine (Fixes/WorldGen/Vanilla Bugs) 0.2.0+alpha.9.0 c2me-notickvd: Concurrent Chunk Management Engine (No Tick View Distance) 0.2.0+alpha.9.0 c2me-opts-allocs: Concurrent Chunk Management Engine (Optimizations/Memory Allocations) 0.2.0+alpha.9.0 c2me-opts-chunk-access: Concurrent Chunk Management Engine (Optimizations/Chunk Access) 0.2.0+alpha.9.0 c2me-opts-chunkio: Concurrent Chunk Management Engine (Optimizations/Chunk IO) 0.2.0+alpha.9.0 c2me-opts-math: Concurrent Chunk Management Engine (Optimizations/Math) 0.2.0+alpha.9.0 c2me-opts-scheduling: Concurrent Chunk Management Engine (Optimizations/Scheduling) 0.2.0+alpha.9.0 c2me-opts-worldgen-general: Concurrent Chunk Management Engine (Optimizations/General WorldGen) 0.2.0+alpha.9.0 c2me-opts-worldgen-vanilla: Concurrent Chunk Management Engine (Optimizations/Vanilla WorldGen) 0.2.0+alpha.9.0 c2me-rewrites-chunkio: Concurrent Chunk Management Engine (Rewrites/Chunk IO) 0.2.0+alpha.9.0 c2me-server-utils: Concurrent Chunk Management Engine (Server Utils) 0.2.0+alpha.9.0 c2me-threading-chunkio: Concurrent Chunk Management Engine (Threading/WorldGen) 0.2.0+alpha.9.0 c2me-threading-lighting: Concurrent Chunk Management Engine (Threading/Lighting) 0.2.0+alpha.9.0 c2me-threading-scheduling: Concurrent Chunk Management Engine (Threading/Scheduling) 0.2.0+alpha.9.0 c2me-threading-worldgen: Concurrent Chunk Management Engine (Threading/WorldGen) 0.2.0+alpha.9.0 com_electronwill_night-config_core: core 3.6.5 com_electronwill_night-config_toml: toml 3.6.5 com_ibm_async_asyncutil: asyncutil 0.1.0 net_objecthunter_exp4j: exp4j 0.4.8 org_threadly_threadly: threadly 7.0 capes: Capes 1.4.5+1.19 omega-config: OmegaConfig 1.2.3-1.18.1 completeconfig: CompleteConfig 2.1.0 coat: Coat 1.0.0-beta.19+mc22w17a completeconfig-base: completeconfig-base 2.1.0 completeconfig-gui-cloth: completeconfig-gui-cloth 2.1.0 completeconfig-gui-coat: completeconfig-gui-coat 2.1.0 completeconfig-gui-yacl: completeconfig-gui-yacl 2.1.0 cull-less-leaves: Cull Less Leaves 1.0.6 conditional-mixin: conditional mixin 0.3.0 custom_hud: CustomHud 2.1.0+1.19 dashloader: DashLoader 4.1.3+1.19 com_github_luben_zstd-jni: zstd-jni 1.5.2-2 dev_quantumfusion_hyphen: Hyphen 0.2.2 dev_quantumfusion_taski: Taski 1.1.0 debugify: Debugify 2.8.0 com_github_llamalad7_mixinextras: mixinextras 0.1.0 enhancedblockentities: Enhanced Block Entities 0.7.2+1.19.2 advanced_runtime_resource_pack: Runtime Resource Pack 0.6.2 spruceui: SpruceUI 4.0.0+1.19 entityculling: EntityCulling-Fabric 1.5.2-mc1.19 com_logisticscraft_occlusionculling: occlusionculling 0.0.6-SNAPSHOT exordium: Exordium 1.0.2-mc1.19.2 fabric-api: Fabric API 0.67.1+1.19.2 fabric-api-base: Fabric API Base 0.4.13+0d0f210290 fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.12+93d8cb8290 fabric-biome-api-v1: Fabric Biome API (v1) 9.0.20+0d0f210290 fabric-block-api-v1: Fabric Block API (v1) 1.0.1+12bfe4ea90 fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.22+c6af733c90 fabric-client-tags-api-v1: Fabric Client Tags 1.0.3+b35fea8390 fabric-command-api-v1: Fabric Command API (v1) 1.2.13+f71b366f90 fabric-command-api-v2: Fabric Command API (v2) 2.1.9+93d8cb8290 fabric-commands-v0: Fabric Commands (v0) 0.2.30+df3654b390 fabric-containers-v0: Fabric Containers (v0) 0.1.37+df3654b390 fabric-content-registries-v0: Fabric Content Registries (v0) 3.4.3+6064db2a90 fabric-convention-tags-v1: Fabric Convention Tags 1.1.3+93d8cb8290 fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.7+aeb40ebe90 fabric-data-generation-api-v1: Fabric Data Generation API (v1) 5.3.1+ad31814d90 fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.33+0d0f210290 fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.2+9244241690 fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.30+c6af733c90 fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.31+df3654b390 fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.23+c6af733c90 fabric-item-api-v1: Fabric Item API (v1) 1.6.1+fa140d5990 fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.35+9244241690 fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.23+aaaf9d3390 fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.21+df3654b390 fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.2+9244241690 fabric-loot-api-v2: Fabric Loot API (v2) 1.1.9+83a8659290 fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.12+9e7660c690 fabric-message-api-v1: Fabric Message API (v1) 5.0.5+93d8cb8290 fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.20+33fbc73890 fabric-models-v0: Fabric Models (v0) 0.3.19+c6af733c90 fabric-networking-api-v1: Fabric Networking API (v1) 1.2.7+9244241690 fabric-networking-v0: Fabric Networking (v0) 0.3.24+df3654b390 fabric-object-builder-api-v1: Fabric Object Builder API (v1) 4.1.2+06e0e25190 fabric-particles-v1: Fabric Particles (v1) 1.0.12+79adfe0a90 fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.9.28+9244241690 fabric-renderer-api-v1: Fabric Renderer API (v1) 1.0.14+12bfe4ea90 fabric-renderer-indigo: Fabric Renderer - Indigo 0.6.16+aeb40ebe90 fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.22+df3654b390 fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.17+0d0f210290 fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.9+c6af733c90 fabric-rendering-v0: Fabric Rendering (v0) 1.1.25+df3654b390 fabric-rendering-v1: Fabric Rendering (v1) 1.11.1+73145abb90 fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.1.1+aae9039d90 fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.8.1+0d0f210290 fabric-screen-api-v1: Fabric Screen API (v1) 1.0.29+0d0f210290 fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.3+1cc24b1b90 fabric-sound-api-v1: Fabric Sound API (v1) 1.0.1+c4f28df590 fabric-textures-v0: Fabric Textures (v0) 1.0.22+aeb40ebe90 fabric-transfer-api-v1: Fabric Transfer API (v1) 2.1.3+9d081d6490 fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 1.3.2+42d99c3290 fabric-language-kotlin: Fabric Language Kotlin 1.8.6+kotlin.1.7.21 org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.7.21 org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.7.21 org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.7.21 org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.7.21 org_jetbrains_kotlinx_atomicfu-jvm: atomicfu-jvm 0.18.5 org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.6.4 org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.6.4 org_jetbrains_kotlinx_kotlinx-datetime-jvm: kotlinx-datetime-jvm 0.4.0 org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.4.1 org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.4.1 org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.4.1 fabricloader: Fabric Loader 0.14.12 ferritecore: FerriteCore 4.2.1 forcecloseloadingscreen: kennytv's epic force close loading screen mod for Fabric 1.1.1 ias: In-Game Account Switcher 8.0.1 indium: Indium 1.0.9+mc1.19.2 inventoryhud: Inventory HUD + 3.4.2 iris: Iris 1.4.2 io_github_douira_glsl-transformer: glsl-transformer 1.0.0-pre21.2 org_anarres_jcpp: jcpp 1.4.14 org_antlr_antlr4-runtime: antlr4-runtime 4.10.1 itemmodelfix: Item Model Fix 1.0.3+1.19 itemscroller: Item Scroller 0.17.1 java: OpenJDK 64-Bit Server VM 17 krypton: Krypton 0.2.1 com_velocitypowered_velocity-native: velocity-native 3.1.2-SNAPSHOT lazydfu: LazyDFU 0.1.3 lithium: Lithium 0.10.2 lowfire: Low Fire 1.19-3.0.0 malilib: MaLiLib 0.13.0 memoryleakfix: memory Leak Fix 1.19.1-0.7.0 midnightlib: MidnightLib 0.5.2 minecraft: Minecraft 1.19.2 mixin-conflict-helper: Mixin Conflict Helper 1.2.0 modmenu: Mod Menu 4.1.1 morechathistory: MoreChatHistory 1.1.1 moreculling: More Culling 1.19.1-0.10.0 nohurtcam: NoHurtCam 1 reeses-sodium-options: Reese's Sodium Options 1.4.7+mc1.19.2-build.59 shulkerboxtooltip: Shulker Box Tooltip 3.2.2+1.19.2 cloth-config: Cloth Config v8 8.2.88 cloth-basic-math: cloth-basic-math 0.6.1 smoothboot: Smooth Boot 1.19-1.7.1 sodium: Sodium 0.4.4+build.18 org_joml_joml: joml 1.10.4 sodium-extra: Sodium Extra 0.4.13+mc1.19.2-build.76 caffeineconfig: CaffeineConfig 1.0.0+1.17 starlight: Starlight 1.1.1+fabric.ae22326 timechanger: Time Changer 1.2.0 totemcounter: TotemCounter 1.0.0+mc1.19.2 totemfake: Totemfake 1.0-SNAPSHOT uglyscoreboardfix: Ugly Scoreboard Fix 2.7.0 ukulib: ukulib 0.3.1+1.19.2 com_moandjiezana_toml_toml4j: toml4j 0.7.2 gs_mclo_java_mclogs-java: mclogs-java 2.1.1 worldedit: WorldEdit 7.2.12+6240-87f4ae1 yet-another-config-lib: YetAnotherConfigLib 1.7.1 zoomify: Zoomify 2.8.0 dev_isxander_settxi_settxi-core: settxi-core 2.10.3 dev_isxander_settxi_settxi-gui: settxi-gui 2.10.3 dev_isxander_settxi_settxi-kotlinx-serialization: settxi-kotlinx-serialization 2.10.3 settxi-gui-yacl: Settxi Gui (YetAnotherConfigLib) 2.10.3 Loaded Shaderpack: Sildur's+Basic+Shaders+v2.1+Fancy.zip Profile: Custom (+7 options changed by user) Launched Version: fabric-loader-0.14.12-1.19.2 Backend library: LWJGL version 3.3.1 SNAPSHOT Backend API: NVIDIA GeForce RTX 2070/PCIe/SSE2 GL version 3.2.0 NVIDIA 528.02, NVIDIA Corporation Window size: 1920x1080 GL Caps: Using framebuffer using OpenGL 3.2 GL debug messages: Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'fabric' Type: Client (map_client.txt) Graphics mode: fast Resource Packs: vanilla, Fabric Mods, file/! §c§l§oDevvahh §e§l§oDefault v1 Current Language: English (US) CPU: 16x AMD Ryzen 7 3700X 8-Core Processor

Minenash commented 1 year ago

Do you have a {realtime:} variable?

devvahh commented 1 year ago

what i typed is {real_time:hh:mm a } which works then i add the -uc {real_time:hh:mm a -uc} save as and it crashes

Minenash commented 1 year ago

Ah. Realtime has no way to know that -uc is a variable flag or just a part of the time format, so unfortunately it doesn't support variable flags.

You could probably get around this by using conditionals, but I'd have to look at what realtime gives as a number to see if that's possible

devvahh commented 1 year ago

Ah okay thank you though

Minenash commented 1 year ago

No problem, I should probably look on a way to get it to work.

Though it is a bug that it full on crashes. That bug has been fixed, and will be in the next update

devvahh commented 1 year ago

Sounds good 👍