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

[BUG_SP] Multiple Instances of Active Worker created when switching to and from Autodrive work #2895

Closed
BippyMiester opened this issue Oct 24, 2023 · 19 comments
Labels
bug Something isn't working

Comments

@BippyMiester
Copy link

BippyMiester commented Oct 24, 2023

Steps to reproduce
Create a job with Courseplay on a field. For this instance I did a Liming job. Set Autodrive to Load mode. Select your field. Select the area where you store your Lime as the load point. Select Lime. Click on the Courseplay Icon in the Autodrive HUD. Click the Enable/Start button on Autodrive.

Actual behavior
Whenever the work switches from Courseplay back to Autodrive to refill the spreader, Courseplay doesn't get rid of the active worker in the ESC menu under the AI Workers tab. This causes the worker wage to increase by 100% for every worker, draining your funds.

Even when I manually get rid of the worker by clicking the play button on Courseplay it doesn't get rid of all the workers. Just 1 of them. The only way to get rid of all the workers is to exit the game and reload the save.

Expected behavior
When the Courseplay job is put on pause to refill the spreader, it should get rid of the active worker, switch to Autodrive, and then resume the work once the Autodrive has driven back to the field.

Screenshots
image
image
image

Courseplay version
Version used: 7.3.1.3

Log
log.txt

Map
No Man's Land

Vehicles/ implements involved
Xerion 5500 - Alex Blue Mod Shop
Wagnon CFS 530 D0 with the Lizard T100 Windrow by Hispano
K165 Spreader
Hirschfeld Scorpio 9500XL By Cassy Blair
Speed-Tiller 475 by Adub Modding

Relevant script mods
Autodrive - Latest Version

Other Information
This issue could possibly be related to running multiple Courseplay workers at the same time. Logs have all vehicles running Courseplay with debug mode enabled. Excuse the messy logs file.

I also noticed that sometimes whenever the switch between Courseplay and Autodrive happened, both of them were being enabled at the same time. Meaning the "switch" didn't really happen as Courseplay wasn't actually turning off. This happened, for example, would happen when a Stone Picker or Forage Wagon was full, and needed to be dumped. It could have been related to this as well? Maybe.

The issue first appeared on the tractor named 5500-4. This tractor was one of the tractors spreading lime. I renamed the tractor using the Advanced Farm Manager mod.

@BippyMiester BippyMiester added the bug Something isn't working label Oct 24, 2023
@BippyMiester
Copy link
Author

Also, just a side note that this could be an issue with Autodrive, and has nothing to do with Courseplay. If thats the case, i'll go ahead and post over there on their Github.

@BippyMiester
Copy link
Author

image

This is what happens after about an hour of playing. Multiple tractors, all having the same issues.

@Tensuko
Copy link
Contributor

Tensuko commented Oct 24, 2023

It seems to appear randomly since a long time.
Not sure when and why this happens.
It is not always the case.

@BippyMiester
Copy link
Author

I've been watching this intensely since I first posted about this... I've noticed that it happens when it switches over to autodrive, but its switching over to the "pickup target" (The top selection) and not the "load target" (The middle selection). Like for example... the spreader runs out of lime... needs to be refilled. When it switches over, it goes to the field waiting point, which then triggers Courseplay, instead of going to the silo thats holding the lime.

So my question is, is this intended? Meaning, should a tractor when it needs to be refilled, go to the field waiting point first, and then go to the silo? Can't Courseplay just switch over to Autodrive, and instruct autodrive to just go to the silo first?

@BippyMiester
Copy link
Author

Also, another note. This issue doesn't happen with items that don't need to be unloaded or loaded. So think rollers, mowers, etc.

The refuel and repair functionality works as intended and isn't affected by this issue.

@schwiti6190
Copy link
Contributor

This might be a bug with the latest released version and could be fixed with next version

@BippyMiester
Copy link
Author

This might be a bug with the latest released version and could be fixed with next version

I did notice that this was happening more with the latest version... I don't think I was really having this issue before hand. At least that I noticed. But with this new version, I thought I might have been crazy and I couldn't actually "prove it", so I didn't want to really hypothesize this and just blame the update... But it does make sense.

@BippyMiester
Copy link
Author

I reverted back to the previous version, and I haven't experienced the issue yet. But I'll still do more testing and report back.

@BippyMiester
Copy link
Author

Alright so after a day of testing, it still is happening. I thought at first that it wasn't happening anymore even with the previous 7.3.1.2 version, but after letting the game run and do its thing, it still is occurring. So, even with the previous version it still happens. Hopefully a fix comes out soon.

@regs1980
Copy link

Does this happen only with this mod or also with others?
I have now watched two hours on my server the workers that are regularly passed to AD and the active list was always deleted.
Hence the question if it is also the case with others.

@BippyMiester
Copy link
Author

BippyMiester commented Oct 27, 2023

Does this happen only with this mod or also with others? I have now watched two hours on my server the workers that are regularly passed to AD and the active list was always deleted. Hence the question if it is also the case with others.

I don't know what you mean by does it happen only with this mod? Like how could another mod have this issue? This is a courseplay issue... Could be an Autodrive issue, but that has yet to be determined by the devs.

Now if you're asking if I'm having any issues with other mods such as modded tractors or modded implements and their compatibility, then I get the question. I have about 500 other mods enabled. I have done the testing however with only autodrive and courseplay enabled to rule out any false positives. I've also tried multiple tractors and implements. I've also done extensive testing with modded implements as well. It happens with both modded and unmodded vanilla implements and tractors.

This has been a multi-day testing session, and usually doesn't start occurring until about hour 4 or 5. So, 2 hours of testing really isn't a big enough data metric to just say "it doesn't happen to me". Also, this bug is specifically for singleplayer as noted in the title of this issue. I have not done any testing in mutliplayer as I don't use a server for any of my games. Nor do I use a LAN server either. This is only singleplayer testing in this issue. So, if you're not having it happen, its probably due to you being in multiplayer.

@Tensuko
Copy link
Contributor

Tensuko commented Oct 27, 2023

What he mean is if this does happen only in combination with other mods.
Thats is indeed a good question as it could be a mod conflict.

@BippyMiester
Copy link
Author

What he mean is if this does happen only in combination with other mods. Thats is indeed a good question as it could be a mod conflict.

Can confirm that it does happen with only AutoDrive, Courseplay, and Official DLC's enabled only.

@Tensuko
Copy link
Contributor

Tensuko commented Oct 27, 2023

Since you are testing so much, did you update to the latest version 7.3.1.5?

@BippyMiester
Copy link
Author

I have not. I did not see that it was updated. Will test more after work today.

@Friendlyx
Copy link

Friendlyx commented Nov 3, 2023

hi, I noticed strange behaviour of autodrive today too. I reverted CP back to a backup version I had from Sep. 7.3.0.2 and have no such problem with that version.

edit: Der Mähdrescher hat grad so eine Abladebucht gemacht und Autodrive hat sein Ziel geändert. Passiert aber mit der Version wohl sehr selten

@schwiti6190
Copy link
Contributor

@BippyMiester Please let us now if this problem reappears. Until then this issue will be closed.
@Friendlyx Seems to me you've got a complettly different Issue, which should be an auto drive bug.

@BippyMiester
Copy link
Author

@schwiti6190

I've started a new playthrough on a different map with the latest version of CP. Haven't had the issue come up just yet. Maybe its fixed? Idk. I feel as though i'm too new in the playthrough for serious testing. But I'll continue to test and report if it happens again. Thx

@italomacedo
Copy link

It may be related to when you have to repair or put some gas in your vehicle, and autodrive is not able to figure out a route to either fix or put some gas in your vehicle. So, it creates multiple instances of workers because of that. I don't know if this piece of information helps, but there you go anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants