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

Manual fleet reset & more #16

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

Swift42
Copy link

@Swift42 Swift42 commented Dec 8, 2024

When a fleet is in an error state ("ERROR: [...]"), you can now click on the error message to reset the fleet. The fleet then tries to pick up the loop again.

Removed a debug variable
Transports: If you entered the same sector for the starbase and the target, the fleet looped infinitely.
Fixed: SLYA checks for identical sectors now and outputs an error message.
@Swift42 Swift42 changed the title Manual fleet reset Manual fleet reset & more Dec 9, 2024
@Swift42
Copy link
Author

Swift42 commented Dec 9, 2024

Transports: If you entered the same sector for the starbase and the target, the fleet looped infinitely.
I fixed it: SLYA checks for identical sectors now and outputs an error message.

Sometimes 3s wait time isn't enough after completing a craft - the RPC still thinks the crew isn't available.
Increased the wait time to 4s, so it has more time to catch up.
Just to be sure, poll a transaction for 130s instead 100s
- fleets can now recover from "ERROR: No Fuel ⌛".
- manually click on "ERROR: [...]": Messages with an hourglass are excluded, because SLYA tries to recover from them
Fixed it also for food ("ERROR: No food ⌛")
Reduced the wait time when waiting for food/fuel to 5 minutes (instead 10m).
Fleet table is more compact now.
If you tried to craft ICs, there are no crafting costs and the variable that contains the fee was NULL, therefore "toFixed(2)" failed in alterStats().
Fixed.
A line change was forgotten when my old PR was transferred :-)
- tweaked the fees
- quick fix for a race condition when checking for the signature confirmation
- send the tx only once
- adaptive signature polling (the longer the confirmation takes, the longer the wait time between the poll attempts)
- fleet config clean function (removes inactive fleets)
- fleet config cannot be used before initialization is done
- new setting: starbase keep 1 (less CreatePDA txs, also prevents a race condition)
Crafting jobs now show the target coordinates
When saving the settings, restrict the priorityFee and autoFeeMax to 50k lamports to prevent bad mistakes
Updated the core tx function again:
While polling for the signature, send the tx again after every 3rd poll, so the tx gets queued again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant