Commands for the bailiff #3921
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: your-land/bugtracker#3921
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Let's make a single command for the bailiff and also let the users ask the bailiff what he is doing
/bailiff
-come
--here : Teleports the bailiff near you
--to player A: Teleports the bailiff to player A
--to A: Teleports the bailiff to location A
--to xyz abc: Teleports the bailiff to coordinates abc
--help: Tells the user what he can do with this command.
-look :
--here : Looks at the position where you are
--at me : Looks and keeps looking at you
--at a : Looks and keeps looking player a
--at xyz abc: Looks at the position abc
--help : Tells the user what he can do with this command.
-report
--me : Tells you what the bailiff is doing
--to a : Tells a player what the bailiff is doing
-patrol: Bailiff resumes his patrol
-next: Bailiff goes to the next station
Findings so far:
/stream come 500000
does teleport the bailiff to this very location:commands need logging added to them
I managed to hang the server like in an infinite loop, but cannot reproduce it for now. I was testing /stream come here combinations. This is purely informational until we can reproduce somehow or whiteboxing yields a clue.
Nice:
/stream come to p Bailiff
:Teleport Bailiff to Bailiff? Huh?
/stream come to pos 1 2 3 4
leads to pos x=1,y=2,z=3/stream come to pos 1 2 3 4
leads to pos x=1,y=2,z=99999999999999 actually sends the bailiff to this position. Boom! That causes the server hang like in 3.Should a
/stream look here
keep looking at the position even after a/stream come here
or similar? Or does the latter overwrite the former?Should
/stream look at p AliasAlreadyTaken
resume after logout of AliasAlreadyTaken ?Should
/stream look at p AliasAlreadyTaken toggle
toggle watching the person?For sanity reasons we should have
/stream look at pos 1 -999900000000000000000000000000000000000000000000000000000000000 3
return an error and only allow positions within the map.Love the morph command! Is there an unmorph?
/stream morph to p AliasAlreadyTaken
While the stream is morphed into me, should
/stream report patrol
send the bailiff back to patrol? Seems like this command toggles the patrol instead of report the next patrol station?Likewise,
/stream report next
sends the bailiff to the next station, instead of reporting their next station. If that is intended, maybe not use "report", but "patrol" instead?Would be good to have commands that do not immediately result in an action like
/stream set interval teleport 9
return some comment to the issuerWould be good if the "set" commands revealed the current setting when sent without parameter, like so
/stream set interval reload
I don't see where the problem is... Is there one?
I'll add that
Thanks :D I added that to prevent an infinite loop like "/stream come to p Bailiff 2 toggle". Is that what you meant with 3?
5./6. Where is the difference? I don't understand.
"/stream look here" only sets the camera/player rotation once, it doesn't effect Bailiff's position at all.
No, Bailiff's state will be reset after log out, see l.221ff. (register_globalstep)
Yes, I don't have a better name for that :P
I'll add that as well
There is no real unmorph command, but "/stream come here" does the same thing
Oh my bad, I read your message wrong, thought it would be "/stream report patrol" instead of "stream patrol"
Same as 12
Eh... I don't understand...
"/stream report me" outputs all settings, but I can add that as well.
check the screenshot, thats way way way outside world boundaries
i'm surprised the bailiff's client didn't crash out there, that used to be a thing
That did crash us the testserver, see 3.
Yes, the server crashes when the bailiff is teleported far outside the map. Is there a way to allow only positions inside the map?
We made a similar function here:
https://gitea.your-land.de/your-land/yl_commons/src/branch/yl_stable/util/pos.lua#L27
👍
No actionable item, just a "well done" 👍
This means that when by accident an additional number is given, the command still works. Not sure but it's "more clean" if in this case we tell the sender of the command he made some mistake, instead of silently executing a semi-wrong command.
This means that the bailiff could be teleported outside the map, this crashes the server like in 3. Same solution like for 1: check the target position whether it is legal and inside the map
👍
👍
👍
👍 You could use the same function as in 1.
Would be less guessing if there was an unmorph command, it certainly can do the same as /stream come here
👍
👍
If a command immediately results in an action, the person who sends the command can observe the action. If a command does not result in an observable action, it might be a good idea to tell the user what the bailiff did. Liek in the Example, the bailiff could say "I set this key to that value"
👍
QA
happy QA noises
i didn't test all the features, but this is live.