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] attempt to perform arithmetic on field 'targetX' (a nil value) #3299

Closed
dakotahorstman opened this issue Jun 17, 2024 · 5 comments
Closed
Milestone

Comments

@dakotahorstman
Copy link

Related: #3265

Steps to reproduce

  1. Start any Harvester on any field (I have New Holland CH7.70) with CP: Fieldwork
  2. Configure a tractor and trailer to unload combine and deliver to any unload station using Giants Helper (I have an MF 7719 S going to Grain Mill).
  3. Enjoy the freeze and crash.

Actual behavior
Things start to break when the AI attempts to path back to the field after unloading: animations freeze, can no longer exit vehicles or move at all, camera stuck in one direction, etc.

Expected behavior
Things not to break (the AI being able to drive back to the field).

Courseplay version
Version used: 7.4.1.3

Log
log.txt

Map
Elmcreek

Vehicles/ implements involved
Which vehicle or implement? MF 7719 S, any trailer
Mod yes/no ? Just Enhanced Animals and Enhanced Loans in addition to Courseplay.

Relevant script mods
N/A. Only Courseplay.

@dakotahorstman dakotahorstman added the bug Something isn't working label Jun 17, 2024
@Tensuko
Copy link
Contributor

Tensuko commented Jun 18, 2024

All targets placed?
Field and target?
Why do you have cp unzipped?

@dakotahorstman
Copy link
Author

Setting the target fixed the issue. I missed that entirely in the docs. Regardless, a simple mistake like that should be handled better. Locking up the entire game should absolutely not happen -- a simple warning would be preferable (I don't mod, so I don't know how possible that is).

As for why unzipped: I could not get FS22 to list CP, or any mod, when loading in my save files or starting a new one. Not sure why, but it found them when I unzipped them.

@Tensuko
Copy link
Contributor

Tensuko commented Jun 19, 2024

Locking up the entire game should absolutely not happen -- a simple warning would be preferable (I don't mod, so I don't know how possible that is).

Thats totaly right. But now we know why this happens and stuff, but I wonder why the bug is still there.

As for why unzipped...

Thats strange. But if you load from modhub, everything works?

@Tensuko
Copy link
Contributor

Tensuko commented Jun 21, 2024

How do you manage to not have the target position set?
When I use the HUD and click on "no course" i get right into the AI Menu and the target is set automatically.
The same does happen when I go over the AI Menu and use "create job", select CP: Fieldwork, place only the field marker and open the generator, the target maker is also set automatically.

This situation should never happen. Even when I place the target far away.

@Tensuko Tensuko added waiting for user User answer needed can't reproduce reproduction impossible and removed bug Something isn't working labels Jun 21, 2024
@dakotahorstman
Copy link
Author

dakotahorstman commented Jun 21, 2024

Thats strange. But if you load from modhub, everything works?

I installed via downloading the zip from releases here on GitHub, not modhub.

How do you manage to not have the target position set? When I use the HUD and click on "no course" i get right into the AI Menu and the target is set automatically. The same does happen when I go over the AI Menu and use "create job", select CP: Fieldwork, place only the field marker and open the generator, the target maker is also set automatically.

This situation should never happen. Even when I place the target far away.

That is a great question. Perhaps its an issue specifically with controller as that's what I use (xbox controller) to play with, instead of keyboard and mouse.

(I don't have the game open as I write this, so please excuse any inaccuracies)

  • Switch to the tractor with the trailer.
  • Navigate to the drive wheel tab (forget what its called)
  • Switch to CP: Unload Combine and Deliver
  • Set just the field position.
  • Enable Giants helper for unloading.
  • Press X to start the job.

If I recall correctly, the target is also set when I set the field, hence why I didn't do it. I can let you know more tomorrow or later tonight.

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

No branches or pull requests

2 participants