unbted icon indicating copy to clipboard operation
unbted copied to clipboard

Unable to set player position to negative coordinates

Open torzod opened this issue 3 years ago • 3 comments

Like the title says, I was trying to modify my player's position, but I seem to be unable to set the x, y, or z values to negatives.

*[/Data/Player/Pos]> ls
double 0 = 8713.701122062399
double 1 = 83.62000000476837
double 2 = 3737.35901907849
*[/Data/Player/Pos]> cd 0
unbted: cd: double is not valid here
*[/Data/Player/Pos]> set 0 -3500.0
unbted: set: 3 is not a recognized option
*[/Data/Player/Pos]> set 0 "-3500.0"
unbted: set: 3 is not a recognized option
*[/Data/Player/Pos]> set "0" -3500.0
unbted: set: 3 is not a recognized option
*[/Data/Player/Pos]> set "0" "-3500.0"
unbted: set: 3 is not a recognized option
*[/Data/Player/Pos]> 

I have also tried using backslashes to no avail

torzod avatar Mar 16 '22 00:03 torzod

Try set 0 -- -3500

unascribed avatar Mar 16 '22 00:03 unascribed

that works, thank you

torzod avatar Mar 16 '22 21:03 torzod

Cool. This is an unfortunate quirk of traditional UNIX-style command parsing, which is used by unbted's internal commands.

I wonder if there's something I can enable in joptsimple to make it recognize negative numbers correctly...

unascribed avatar Mar 18 '22 03:03 unascribed