#(nimsy) how to put pipe in sidebar?
138 messages · Page 1 of 1 (latest)
(nimsy) how to put pipe in sidebar?
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>
<&chr[007C]>
ty
Thread closed as resolved.
wait
Thread was manually reopened by @indigo saffron.
player
sidebar (add/remove/{set}/set_line) (title:<title>) (scores:<#>|...) (values:<line>|...) (start:<#>/{num_of_lines}) (increment:<#>/{-1}) (players:<player>|...) (per_player)
Controls clientside-only sidebars.
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 ...
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.
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
i guess as a workaround you could use the &chr / <&pipe> and suffer with the warning
until that's fixed that is
that doesn't work either
im running on latest dev version btw
@indigo saffron |
just use that until we can fix the bug
verified it works in latest dev
Thread is now a Help/Support thread. A helper will check your thread when available.
behr how drunk were you at the time of this thread
!tag list_single
Returns a ListTag object with exactly 1 entry: whatever the input value is (even if that input is a list).
This is primarily useful for creating lists-within-lists.
ListTag
| is list separator, it's being read as list, you gotta make it not a list
^ arent those things made for cases like this?
for example <>> and <<> as well?
no
not applicable
you'd know this if you tested before saying that, which:
!badanswers
Wrong answers are worse than no answers!
AKA: Know what you know! Short version: Don't answer questions from users if you don't absolutely know the answer for sure. It's much worse than simply waiting for somebody else to answer.
Please read the full writeup on the forum explaining this idea: https://forum.denizenscript.com/threads/public-information-writeup-wrong-answers-are-worse-than-no-answers.264/
ive been using it in multiple places, thought it would work there as well so yeh my bad
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
wh
im confused why this worked when sticking the pipe in an elementtag didn't
cause that's not a thing
at all
@indigo saffron the values argument takes a listtag;
list_single resolves this issue as mcmonkey mentioned
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
im confused
so how would i use it?
because if i used pipes... it'd still count as another entry in the list?
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
values:<list_single[hi|ho]>
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!
or if you tried it after being shown this time:
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
gui is fucked when i do this
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)
which means doing this would be wrong
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
hence, it doesn't work
Wut
wh
all of what you wrote makes sense except for this one
that one was just object hacking and... weird output, i agree but
definitely shouldnt be used that way
what do you want
…
i'll write it for you right now
Don’t worry my friend, I’ve already written in.
yay
+> YAY!!!
It’s my first message in the thread.
- sidebar set title:title values:<list_single[<[health]>|<[max_health]>]>
…..
did it work
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
.include and/or include_single to add more entries to a list
if you have pipes in the entries, you do want the include_single
just because it's list syntax
What if I want to include it only in a specific part of a much bigger list?
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
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>|...]>, ...
!tag insert_single
Returns a new ListTag with the single item specified inserted to the specified location.
Note the index input options described at !objecttype listtag
ListTag
# Narrates a list with 3 values: "one", "two|alsotwo", "three"
- narrate <list[one|three].insert_single[two|alsotwo].at[2]>
but lists in these scenarios require very careful handling
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