#(nimsy) how to put pipe in sidebar?

138 messages · Page 1 of 1 (latest)

indigo saffron
#

to simplify things, im doing something like and i want to add a pipe for visual purposes and not actually go the next line/score. i feel like im being dumb and missing something, but ive tried messing with escaping and stuff to avail

- sidebar set title:title values:<[health]>[I WANT MY PIPE HERE]<[max_health]>
prisma ravenBOT
#

(nimsy) how to put pipe in sidebar?

prisma ravenBOT
#

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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

peak totem
#

<&chr[007C]>

indigo saffron
#

ty

gloomy hazelBOT
#
Resolved

Thread closed as resolved.

indigo saffron
#

wait

gloomy hazelBOT
#
Thread Reopened

Thread was manually reopened by @indigo saffron.

rugged brook
#

uh

#

values:<element[<[health]>|<[max_health]>]>

indigo saffron
#

doesn't work

#

tried that too

rugged brook
#

that uh, should

#

!c sidebar

bleak juniperBOT
# rugged brook !c sidebar
Group

player

Syntax

sidebar (add/remove/{set}/set_line) (title:<title>) (scores:<#>|...) (values:<line>|...) (start:<#>/{num_of_lines}) (increment:<#>/{-1}) (players:<player>|...) (per_player)

Short Description

Controls clientside-only sidebars.

Description

This command was created as a simpler replacement for using the Scoreboard command to display per-player sidebars.
By using packets and dummies, it enables you to have non-flickering, fully functional sidebars,
without wasting processing speed and memory on creating new Scoreboards for every single player.

Using this command, you can add, remove, or set lines on the scoreboard.

To set the title of the sidebar, use the 'title:' parameter in any case where the action is 'set'.

By default, the ...

rugged brook
#

oh

#

huh

gloomy hazelBOT
#
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.

rugged brook
#

to clarify the issue, you should not have to change that pipe out for an escaped value

#

but it's being read as listtag input

indigo saffron
#

yea

#

i know

rugged brook
#

i guess as a workaround you could use the &chr / <&pipe> and suffer with the warning

#

until that's fixed that is

indigo saffron
#

that doesn't work either

rugged brook
#

wat

#

ha

#

that's hella busted

#

one sec

indigo saffron
#

im running on latest dev version btw

rugged brook
#

@indigo saffron

#

just use that until we can fix the bug

#

verified it works in latest dev

gloomy hazelBOT
#
Changed to Help/Support

Thread is now a Help/Support thread. A helper will check your thread when available.

opal meteor
bleak juniperBOT
opal meteor
#

| is list separator, it's being read as list, you gotta make it not a list

peak totem
#

for example <&gt> and <&lt> as well?

opal meteor
#

no

#

not applicable

#

you'd know this if you tested before saying that, which:

#

!badanswers

bleak juniperBOT
peak totem
#

ive been using it in multiple places, thought it would work there as well so yeh my bad

opal meteor
#

That does not work anywhere (in regards to the pipe symbol)

#

if you're using it, you should probably go back to the scripts that do that and correct it

#

if that tag works somewhere, raw pipe symbol does too

rugged brook
#

wh

rugged brook
opal meteor
#

at all

rugged brook
#

@indigo saffron the values argument takes a listtag;
list_single resolves this issue as mcmonkey mentioned

gloomy hazelBOT
#
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.)

#

@indigo saffron

indigo saffron
#

so how would i use it?

#

because if i used pipes... it'd still count as another entry in the list?

woeful coral
#

values is a list

#

list_single returns a single value list

#

i.e everything within is the one value of the list

#

and one line of the scoreboard

indigo saffron
#

ok so

#

how would i use it?

woeful coral
#

values:<list_single[hi|ho]>

indigo saffron
#

tried that already

#

doesn't make a difference

woeful coral
#

debug

rugged brook
#

!debug

bleak juniperBOT
# rugged brook !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

rugged brook
#

or if you tried it after being shown this time:

gloomy hazelBOT
#
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.)

#

@indigo saffron

indigo saffron
indigo saffron
#

lemme do an mcve rq

#

(plus, it makes sense that it wouldn't work like that)

#

so

#

just to be clear

#
test:
  type: task
  debug: false
  script:
  - define my_value a|b
  - sidebar set title:my_title values:<[my_value]>
#

returns

#

(as expected)

#
test:
  type: task
  debug: false
  script:
  - define my_value a|b
  - sidebar set title:my_title values:<list_single[<[my_value]>|c|d]>

keep in mind the addition |c|d at the end

#

it returns

#

(also as expected)

indigo saffron
#

now for the third case

#
test:
  type: task
  debug: false
  script:
  - define my_value <list_single[a|b]>
  - sidebar set title:my_title values:<[my_value]>|c|d
#

the pipe is unescaped

indigo saffron
woeful coral
rugged brook
#

wh

rugged brook
#

that one was just object hacking and... weird output, i agree but

#

definitely shouldnt be used that way

indigo saffron
#

#

Okay but it’s still not doing what I want 💀

#

@rugged brook

rugged brook
#

what do you want

indigo saffron
#

rugged brook
#

i'll write it for you right now

indigo saffron
#

Don’t worry my friend, I’ve already written in.

rugged brook
#

yay

upper gustBOT
#

+> YAY!!!

indigo saffron
rugged brook
#

- sidebar set title:title values:<list_single[<[health]>|<[max_health]>]>

indigo saffron
#

…..

rugged brook
#

did it work

indigo saffron
#

Refer to the examples I sent you

#

That’ll give you the answer

rugged brook
#

i just cant replicate that it doesn't work

#

that's via /ex sidebar set title:title values:<list_single[taco party time|jajaja]>

#

which has the left text, a pipe, and the right text

opal meteor
rugged brook
#

if you have pipes in the entries, you do want the include_single

#

just because it's list syntax

indigo saffron
#

Would I do .insert and the list_single inside it?

#

This all seems so inconvenient to me

#

I think I’ll just make a custom character

rugged brook
#

we do have uh

#

!tag ins

bleak juniperBOT
# rugged brook !tag ins
Cannot Specify Searched Tag

Multiple possible tags: <server.plugins>, <AreaObject.contains[<location>]>, <ListTag.contains[<element>|...]>, <MapTag.contains[<key>|...]>, <yaml[<id>].contains[<path>]>, <ListTag.insert[...|...].at[<#>]>, <MaterialTag.instrument>, <&insertion[<message>]>, <ListTag.contains_any[<element>|...]>, <InventoryTag.contains_item[<matcher>]>, <InventoryTag.contains.lore[(strict:)<element>|...]>, <ElementTag.contains_text[<element>]>, <ElementTag.with_insertion[<message>]>, <&end_insertion>, <ListTag.contains_match[<matcher>]>, <ListTag.contains_single[<element>]>, <InventoryTag.contains.display[(strict:)<element>]>, <ListTag.insert_single[...|...].at[<#>]>, <EntityTag.is_inside_vehicle>, <ElementTag.contains_any_text[<element>|...]>, ...

rugged brook
#

!tag insert_single

bleak juniperBOT
rugged brook
#

but lists in these scenarios require very careful handling

gloomy hazelBOT
#
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.)

#

@indigo saffron