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

mode 9/10 fixes and very basic seed calculator #6700

Merged
merged 2 commits into from
Jan 21, 2021
Merged

mode 9/10 fixes and very basic seed calculator #6700

merged 2 commits into from
Jan 21, 2021

Conversation

schwiti6190
Copy link
Contributor

@schwiti6190 schwiti6190 commented Jan 21, 2021

- improves mode 10 fillup and compacting
- fixes a lua errors mode 10
- fixes mode 9 unloading at trailer bugs
- added a very basic seed calculator with field size
- small adjustment to mode 4 loading at waitpoint
@schwiti6190 schwiti6190 requested a review from pvaiko January 21, 2021 07:28
base.lua Outdated
@@ -831,7 +844,10 @@ end;

function courseplay:onUpdateTick(dt)
--print("base:courseplay:updateTick(dt)")

--if the vehicle is attached to another vehicle, disable cp
if self.spec_attachable and self.spec_attachable.attacherVehicle then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in a function since we used it now three times.

-- draw all the sprayTypes and fruitType
for _,sprayType in pairs(g_sprayTypeManager:getSprayTypes()) do
local litersPerSecond = sprayType.litersPerSecond
local totalLiters = litersPerSecond*fieldAreaHa*36000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not saying this is wrong, just wondering how is this calculated, where the 36000 is coming from (a comment would have been nice)

input.lua Outdated
if not vehicle or not vehicle.hasCourseplaySpec then return end
courseEditor:updateMouseState(vehicle, posX, posY, isDown, isUp, mouseButton)

--if the vehicle is attached to another vehicle, disable mouse input
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here, a fourth time. We may already have something for this, and probably name it more generic, like isCourseplayEnabled?

@pvaiko pvaiko merged commit 8266b52 into master Jan 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants