Minenash / CustomHUD

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

realtime not workin #58

Closed zokachu closed 2 years ago

zokachu commented 2 years ago

{real_time:time_format} Crashing game if i do my time - crash

Minenash commented 2 years ago

Can you provide both the profile and the full log of when it crashed

zokachu commented 2 years ago

i can do it with u, u will see how it crashes

zokachu commented 2 years ago

zoka#5707 my discord

zokachu commented 2 years ago

Can you provide both the profile and the full log of when it crashed

If i just write {real_time:the_format} it crashes Code of crash: -1 I use multimc

Minenash commented 2 years ago

Sorry for the late reply. That doesn't work because the_format isn't a valid datetime format. The wiki is missing the link to the page that explains the format (whoops) I've also just fixed the crash and put the error into the log, which will be in the next release

iambeingtracked commented 1 year ago

There still aren't docs on how to properly write that, how to do it?

iambeingtracked commented 1 year ago

I tried to guess myself, but this doesn't make any sense https://github.com/Minenash/CustomHUD/blob/95cb76d9a880372f1f5a68780eac4df39da27e82/src/main/java/com/minenash/customhud/HudElements/RealTimeElement.java

Minenash commented 1 year ago

Yeah the new page was written after this issue, forgot to drop the link here: https://minenash.com/docs/customhud/3.0.0/references/real_time.html#

The rest of the new docs are still a work in progress (and for the new version, so features but released yet are included)

Minenash commented 1 year ago

Also sorry for missing the msg you sent earlier today, I didn't get an email for it

iambeingtracked commented 1 year ago

Thanks!

iambeingtracked commented 1 year ago

Oh by the way, is it possible so that the time isn't 12:0:0, but 12:00:00, so it's 12:03:05, and not 12:3:5

Minenash commented 1 year ago

Didn't realize that could happen. What happens if you do mm or ss instead of m or s?

iambeingtracked commented 1 year ago

Oh yeah, that worked just as I wanted, thank you! Although you should also add it to the docs

Minenash commented 1 year ago

It definitely should, I didn't realize they affected it since I don't remember seeing it in other docs