#(drjoenh) parse_color

49 messages · Page 1 of 1 (latest)

loud atlas
#

Parsing just &# throws a java exception

glacial streamBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

earnest axleBOT
#

Tag parse results for <element[&#].parse_color>: https://paste.denizenscript.com/View/126922

element[&#].parse_color
Had error: Tag <element[&#].parse_color> is invalid!
Had error: Unfilled or unrecognized sub-tag(s) 'element[&#].parse_color' for tag <element[&#].parse_color>!
Had error: The returned value from initial tag fragment '' was: '&#'.
stuck moon
#

What the hell is that.

#

!t &#

rich briarBOT
#
Possible Confusion

Did you mean to search for &?

stuck moon
#

Oh element

#

I've... Never seen this before, what are you trying to do?

loud atlas
#

parse color

#

forgot to put hex value

#

boom stacktrace

#

&#ffffff parses to a color

#

&# throws an error

stuck moon
#

That tracks, I just wonder why you're trying to make a color that way.

loud atlas
#

we allow vip members to type in chat with colors

stuck moon
#

Ahh.

#

This makes sense.

loud atlas
#

im using element.parse_color to turn it into colored messages

stuck moon
#

I suppose a workaround for invalid colors is just a null check and returning white?

loud atlas
#

yeees but it still throws an error into the console

#

cause its trying to statically preparse it

#

oh i didnt mark it as bugthread

muted dirgeBOT
#
Changed to Bug

Thread is now a Bug thread. This indicates a core code bug that a developer must resolved, not an error message or other support topic. Please do not misuse the Bug label. Use </helpthread:1028674284870180883> to switch the thread back to a normal help thread if you are not 100% confident it is a code bug.

stuck moon
#

Curious

earnest axleBOT
#

Tag parse results for <&color[#]>: https://paste.denizenscript.com/View/126924

&color[#]
Had error: Color '#' doesn't exist (for tag &color[...]).
Had error: Color '#' doesn't exist (for tag &color[...]).
Had error: Tag-base '&color' returned null.
Had error: Tag <&color[#]> is invalid!
Had error: Unfilled or unrecognized sub-tag(s) '&color[#]' for tag <&color[#]>!
stuck moon
#

Yeahhhh

abstract gorge
#

Can someone provide a debug record of it erroring?

#

Or is this specific to dTagParser?

#

I can not replicate this issue by just running /ex narrate <element[&#].parse_color>

#

Odd enough that it works in this channel, when a debug is recorded, but not in bot-spam.

rich briarBOT
# abstract gorge !checklog https://paste.denizenscript.com/View/126922
Server Version

Paper version 1.21.1-40-2fdb2e9 (MC: 1.21.1)

Plugin Version(s)

Citizens: 2.0.35-SNAPSHOT (build 3519) -- (:warning:Outdated build, behind by 59)
Denizen: 1.3.1-SNAPSHOT (build 7065-DEV) -- (Outdated build, behind by 2)
Sentinel: 2.9.1-SNAPSHOT (build 523) -- (Outdated build, behind by 1)
dDiscordBot: 0.7 (build 303) -- (Current build :white_check_mark:)

Checked For

@abstract gorge

UUID Version

4 (:white_check_mark: Online)

Java Version

21.0.4 :white_check_mark:

abstract gorge
#

75 paper builds behind

#

@loud atlas

loud atlas
rich briarBOT
# loud atlas !checklog https://paste.denizenscript.com/View/126948
Server Version

Paper version 1.20.6-150-e61b73f (MC: 1.20.6)

Plugin Version(s)

Citizens: 2.0.35-SNAPSHOT (build 3452) -- (:warning:Outdated build, behind by 126)
Denizen: 1.3.1-SNAPSHOT (build 7067-DEV) -- (Current build :white_check_mark:)
Depenizen: 2.1.0 (build 860) -- (Outdated build, behind by 4)

Checked For

@loud atlas

UUID Version

4 (:white_check_mark: Online)

Java Version

21.0.2 :white_check_mark:

Other Noteworthy Plugin(s)

WorldGuard: 7.0.10+d9424b1, MythicMobs: 5.7.1-7b44def4, ProtocolLib: 5.3.0-SNAPSHOT-732

Possibly Relevant Plugin(s)

ViaVersion: 5.0.3 - Mixed client vs server versions can sometimes cause packet-related issues.

loud atlas
#

hmmm so is this only 1 20 6 problem ? O.o

loud atlas
# rich briar

either way, should this ever fail? it should parse colors only if there are colors

dawn tangle
#

fixed

muted dirgeBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@loud atlas