-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
FTL coordinate disk command for admins: ftldisk #28075
FTL coordinate disk command for admins: ftldisk #28075
Conversation
Okay i cooked my master branch a bit apparently, but its fiiiiine, it'll squash. |
|
I thought this was backtracked? |
Not serverside. Use toolshed for this. |
Is this still being worked on? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Needs updating to code standards for commands.
- Needs a completion helper.
I swapped from "Map Id" -> "Map netId" since we have two schemas |
For new commands the standard is to use toolshed, unless there's a specific reason you need to use the old command system. Do you need any help with porting this to toolshed? |
If you want to be my guest. I looked into it a bit, and it seems it will need engine stuff I do not want to do, and every time I ask about it I get conflicting direction. |
To my knowledge, we aren't requiring new commands to be toolshed commands, even if they're entirely serverside |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I jumped between the "since my last review" and "all changes" views and github seemed to not like that, so apologies if anything ended up a bit messy
There are 3 issues you may encounter with the command, but they aren't issues with the command so much as they are issues with maps which haven't mattered until now.
But don't worry! This just works tm for new maps you create and initialize or for your admin test area. So you could for example use this to have two stations on different maps and let the players ferry themselves between them via FTL. |
outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've looked through this PR now and it seems to work as intended. Sometimes it seems like I need to add FTLdestination component to the target map or make edits to the beacons, but I feel that's something which could end up in some documentation rather than the command itself.
Don't worry about FTLing to the FTL map, as that should probably be off-limits. The parallax scrolling is caused by ships moving through it anyways, so you can't have a constant scroll just by being on the map.
Let me know once you've addressed the requested changes!
public override CompletionResult GetCompletion(IConsoleShell shell, string[] args) | ||
{ | ||
if (args.Length >= 1) | ||
return CompletionResult.FromHintOptions(CompletionHelper.MapUids(_entManager), "Map netId"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double-check that this completion works with the current master; it seemed to me like it stopped working after merging master into my test PR branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The completion works, someone just messed up the helper in engine so it returns null
space-wizards/RobustToolbox@26b0928#diff-fcc1817dc485c3ac2fc001b91638163a3c8e4b37a75ce4a474840e83028ac44eL147
Can't fix it here. Has to be fixed in engine. Doesn't stop the command from working though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made an engine PR to fix it, but I wouldn't hold this up on account of that. Its just a help text.
space-wizards/RobustToolbox#5495
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slart pointed out that the command should have localization to the error messages, so that has to be fixed first. Testing works well though 👍
Localized |
* Add robo control comp, also de-reinforce a lot of walls. * Revert "Add robo control comp, also de-reinforce a lot of walls." This reverts commit b6be6b6. * FTLdiskburner command to make FTL disks. * Elegant failure on mistyped ID. * even more more eleganter failures. * foo * bar * I have reached completion * prevent id confusion * I'm givin' her all she's got captain! * a bit more hug boxing for safe destinations. * comments for foo * extra thoughts. * cleanup * continuen't * Improve feedback strings * reviewer QOL * Reviewer QOL 2 * handle easy reviews * Add comments to clarify reviews * howdoicode to the rescue. * ftldisk in hand * ftl.ftl * funny disk case * loc * unusing
About the PR
Expand NanoTrasen's dominion over all
time andspace once more.Why / Balance
Let the admins play with shuttles across multiple maps with less micromanagement.
Technical details
Takes a list of EntIDs, checks if theyre a map, if they aren't, finds the map they are on, then makes sure the map is setup as a destination, and finally spawns a disk setup for the map.
Media
Breaking changes
Changelog
:ADMIN: