Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

maximum allowed workers? #7335

Closed
Martin-L45 opened this issue Jul 6, 2021 · 17 comments
Closed

maximum allowed workers? #7335

Martin-L45 opened this issue Jul 6, 2021 · 17 comments
Assignees

Comments

@Martin-L45
Copy link

when using more than 10 workers i get the following lua error
2021-07-06 16:52 Error: Running LUA method 'update'.
2021-07-06 16:52 dataS/scripts/vehicles/Vehicle.lua(2920) : attempt to index a nil value

In #7255 i thought this was caused by autodrive. but a test on ravenport with only Courseplay in the modfolder i get the error.
The error reappears every time i tap into the tractor with the 11th Courseplay driver.

log.txt

@Tensuko
Copy link
Contributor

Tensuko commented Jul 6, 2021

We don't have created a limit actually...
I don't know if there is a limit by GIANTS.
Will have to test that.

@Tensuko
Copy link
Contributor

Tensuko commented Jul 6, 2021

I found this interesting topic to that Error (german Forum).
http://www.blackpanthergroup.de/forum/viewtopic.php?t=993&start=100

@Martin-L45
Copy link
Author

I´ll take a look. but my German is very bad. (google translate)
Don´t know if it is useful. But i tried running 11 tractors with autodrive and i did not get the error. Maybe the fix Stephan used in Autodrive can be used?

@Tensuko
Copy link
Contributor

Tensuko commented Jul 6, 2021

We will have a look, weird that it comes up suddenly...

@Martin-L45
Copy link
Author

Maybe there is not many people that use more than 10 drivers?
I just tried with V6.02.00079 and did not get any error
But with V6.03.00058 the error is there. You want me to try to pin down the version where it started?

@Tensuko
Copy link
Contributor

Tensuko commented Jul 6, 2021

No, since those Versions are way to old...

@Martin-L45
Copy link
Author

Ok. Let me know if you need me to try anything

@Tensuko Tensuko changed the title maximum alloved workers? maximum allowed workers? Jul 6, 2021
@jala15
Copy link
Contributor

jala15 commented Jul 6, 2021

FS19 has an implicit limit of 10 (Letters A-J) helpers, counting vanilla AI drivers, CP drivers, AD drivers, AIVE drivers...
It runs out of helper names. More about this here: https://github.com/Stephan-S/FS19_AutoDrive/issues/1910
Maybe having 11 CP helpers does not cause an issue but 11 CP helpers + pressing 'H' does.
AD fix: Stephan-S/FS19_AutoDrive@f472f5d

@Tensuko
Copy link
Contributor

Tensuko commented Jul 7, 2021

I might guess this is becouse we changed all our Drivers to GIANTS AI Drivers.

@Martin-L45
Copy link
Author

i tried jala15´s fix and added the "maps_helpers.xml" with 20 helpers to my modmap this solved the issue for me.
But changing basegame files usually breaks multiplayer. So this fix is only for modmaps... Right?

@jala15
Copy link
Contributor

jala15 commented Jul 7, 2021

i tried jala15´s fix and added the "maps_helpers.xml" with 20 helpers to my modmap this solved the issue for me.
But changing basegame files usually breaks multiplayer. So this fix is only for modmaps... Right?

Yes, changing files breaks multiplayer. I'd recommend to not change anything and wait for a fix, but if you managed to change it in your mod map and it works fine that's ok 👌
That modified mod map will not be MP ready anymore, but you can always redownload it

@Martin-L45
Copy link
Author

Just did a test with your fix. 12 tractors running and no error. This is pretty awesome...

Thanks for your hard work

@Bobster82
Copy link

Great, thanks!
I thought it was my own mod generating this lua error. lol
Its just too many workers hehe.

Thanks for the fix cp team!

schwiti6190 added a commit that referenced this issue Jul 18, 2021
- Small global company fix, where the production overlay automatically opens while loading. #7313
- Added DriverModeSetting
- Adds more available helpers than 10 #7335
- Drive unload now improvements.
schwiti6190 added a commit that referenced this issue Jul 18, 2021
- Small global company fix, where the production overlay automatically opens while loading. #7313
- Added DriverModeSetting
- Adds more available helpers than 10 #7335
- Drive unload now improvements.
schwiti6190 added a commit that referenced this issue Jul 18, 2021
- Small global company fix, where the production overlay automatically opens while loading. #7313
- Added DriverModeSetting
- Adds more available helpers than 10 #7335
- Drive unload now improvements.
schwiti6190 added a commit that referenced this issue Jul 24, 2021
- Small global company fix, where the production overlay automatically opens while loading. #7313
- Added DriverModeSetting
- Adds more available helpers than 10 #7335
- Drive unload now improvements.
@schwiti6190
Copy link
Contributor

Should be fixes with the newest version :)

@dete96
Copy link

dete96 commented Sep 9, 2021

I still have the problem, that I can´t have more than 10 helpers. When I try to employ the 11th, I get this error:

2021-09-09 14:29 Error: Running LUA method 'mouseEvent'.
2021-09-09 14:29 C:/Users/Nutzer/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/base.lua:1247: attempt to index local 'currentHelper' (a nil value)

I use version 6.4.0.6.

Edit: I only use CP helpers.

@Tensuko
Copy link
Contributor

Tensuko commented Sep 10, 2021

Next Version will have this fixed.

@dete96
Copy link

dete96 commented Sep 10, 2021

Ah! Sorry mate. I thought it should already be in the actual version and for some reason doesn't work for me. Thank you for your work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants