pilotso11 / fc-macros

Elite Dangerous Fleet Carrier Macros
MIT License
16 stars 1 forks source link

Everlasting "Scheduling next jump" #1

Closed MrWho666 closed 2 years ago

MrWho666 commented 2 years ago

Yesterday all worked successfully. I wathced, how my carrier complite 2 jumps with marco. But after that, unfortunately, there was a bug, because of which selection of carrier services option dissapired (u need press 2 or 3 to fix that). And macro just stopped. After that, i tried to add option, which llbe press "2" before "schedule_jump". Well, that was terrible, so i had to reinstall fcmacros. So, after that, after i deleted all files, related with fcmacros (all fcmacros regedit files too), and installed it again, script just stuck at "Scheduling next jump". I know, fcmacro creates folders at %localappdata%, but, maybe, is there something else? Yeap, and one more problem: carrier_management original .jpg didnt work in odyssey for me. Macro just doesn't see it. So i just took a screenshot with carrier management and replace it. Worked for me.
Sorry for my englins mistakes.

pilotso11 commented 2 years ago

Thank you for the feedback. It's cool that you're trying it out.

As you've spotted - its REALLY sensitive to the size of the HUD. It already tries several, but it looks to be almost ship specific. If you can send me your screenshot I'll add it to the collection of images it is checking.

On the other one, to work around the not-selectable bug after a jump it is already trying to move the the left or right window and back. If that didn't work i wonder if the timing was just too fast on your setup. At line 143 of fcmacros.py there is a "sleep(5)" - which waits 5 seconds after the jump. And then it calls "press(ED_RIGHT_WINDOW)" which should be selecting the right pane. You could try increasing that sleep from 5 to 10 seconds (or longer) and see if that helps? Alternatively, you might add a second "sleep(5) and a second call to "press(ED_RIGHT_WINDOW)". If either of those work I think we could make the macro loop and retry the select right window a few times before looking to return to the main HUD and proceeding.

Thanks

MrWho666 commented 2 years ago

carrier_management - here it is

About non-selectable - ill try run it in horizons later too.

4 here another promlem, which i somehow decided yesterday. Its create at full reinstall of fcmarcro (including regedit). I choosed an option 1 (of install).

And the main problem (at least for me) - endless "Scheduling next jump". Dont know anything about it (how i can fix it).

Thanks for YOU, thats definitely cool thing, man

pilotso11 commented 2 years ago

Oh. You're on the exercise version. (First time bundling python as an exe). I'll need to update the delay in there or expose it as a setting. Will get back to you with that.

MrWho666 commented 2 years ago

5 Soo... Do you know what the problem is?

pilotso11 commented 2 years ago

This looks to be a bug if the current system isn't in the route file. It fails silently. I've uploaded a new version 0.1.2. It fixes that issue issue and a few others: 0.1.2 also adds an option to turn on a debug log which will show details of every step its taking. This is a checkbox on the bottom. It will now be a bit more aggressive after a jump trying to kick start the HUD menu. Trying up to 10 times to open the right HUD screen. It's also added a sanity check that E:D has the focus before it runs a macro.

The other error you got was a problem parsing the E:D Log file. These exceptions will now be caught, but I can't reproduce it myself so I'm not sure if just catching it will help or if it will get stuck if it sees a bad log file. But it will be reported in the fcmacros.log.

🤞 These work for you.