Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set player position to negative coordinates #2

Open
torzod opened this issue Mar 16, 2022 · 3 comments
Open

Unable to set player position to negative coordinates #2

torzod opened this issue Mar 16, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@torzod
Copy link

torzod commented Mar 16, 2022

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

@unascribed
Copy link
Owner

unascribed commented Mar 16, 2022 via email

@torzod
Copy link
Author

torzod commented Mar 16, 2022

that works, thank you

@unascribed unascribed added the enhancement New feature or request label Mar 18, 2022
@unascribed
Copy link
Owner

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants