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

improve: '/pos' command parsing for multiple formats #1912

Merged
merged 4 commits into from
Nov 25, 2023

Conversation

dudantas
Copy link
Member

Refactored the '/pos' command in the game's scripting to support multiple input formats more robustly. The command now accurately interprets positions from table format '{x = ..., y = ..., z = ...}', the 'Position(..., ..., ...)' format, and the standard 'x, y, z' coordinate format. The update includes improved error handling and clearer user feedback for invalid inputs.

Resolves #1846

@dudantas dudantas mentioned this pull request Nov 25, 2023
@dudantas dudantas force-pushed the dudantas/fix-nil-position branch from ef1ed79 to 3467961 Compare November 25, 2023 19:29
Refactored the '/pos' command in the game's scripting to support multiple input formats more robustly. The command now accurately interprets positions from table format '{x = ..., y = ..., z = ...}', the 'Position(..., ..., ...)' format, and the standard 'x, y, z' coordinate format. The update includes improved error handling and clearer user feedback for invalid inputs.
@dudantas dudantas force-pushed the dudantas/fix-nil-position branch from 9b84ecf to 89b6436 Compare November 25, 2023 19:32
@dudantas dudantas merged commit 3432915 into main Nov 25, 2023
18 checks passed
@dudantas dudantas deleted the dudantas/fix-nil-position branch November 25, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error [data/scripts/talkactions/gm/position.lua:8: attempt to call a nil value]
2 participants