Compatibility issue with Hof Bergmann map (setMotorProperties error)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 56/100
Hướng nghiên cứu
Start with ADS_VehiclePerformance.lua and trace refreshMotorPerformance through reconcileEffectLifecycle to the call that updates motor properties. Reproduce the load on Hof Bergmann and inspect the Relaxing Station and Silo Conveyor XML files named in the report. Done when loading those objects no longer raises the nil motorizedNode error while other ADS systems remain available.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello,
While testing the latest ADS version 0.10.0.7 with Farming Simulator 25 v1.25.0.0, I encountered two Lua errors when loading the Hof Bergmann map (v1.4.5.0).
I performed several tests to isolate the problem:
ADS on a base-game map: No setMotorProperties errors.
ADS on Hof Bergmann with its required mods: Two setMotorProperties errors during loading.
ADS on Hof Bergmann without optional LSFM mods: The errors still occur.
After adding temporary diagnostic logging to ADS_VehiclePerformance.lua, we identified the two objects responsible.
- Relaxing Station
vehicles/mapVehicles/relaxingStation/relaxingStation.xml
type=FS25_HofBergmann.mapVehicleRelaxingStation
motorizedNode=nil
motor=true
- Silo Conveyor
vehicles/mapVehicles/siloConveyor/siloConveyor.xml
type=FS25_HofBergmann.siloConveyor
motorizedNode=nil
motor=true
Both objects have a motor object, but no valid motorizedNode.
The errors occur when ADS attempts to recalculate motor performance through the following call chain:
ADS_Specialization.onPostLoad
→ ADS_VehiclePerformance.reconcileEffectLifecycle
→ ADS_VehiclePerformance.refreshMotorPerformance
→ Motorized.updateMotorProperties
→ setMotorProperties
The game reports:
Script error: 'setMotorProperties':
Argument 1 has wrong type.
Expected: Int. Actual: Nil
Possible cause
Hof Bergmann contains specialized map equipment that uses the Motorized specialization without a conventional physics motor node.
ADS appears to detect these objects as motorized vehicles and attempts to modify their motor properties, even though motorizedNode is nil.
Suggested solution
It may be worth adding a validation check before updating physical motor properties.
If a vehicle has no valid motorizedNode, ADS could skip only the physical motor-performance recalculation while preserving its other systems.
This would potentially improve compatibility with specialized equipment on other mod maps as well.
I am attaching the diagnostic game log containing both identified objects and the corresponding errors.
Additional observation
The log also contains this separate registry error:
[ADS_VEHICLE_PERFORMANCE] Registry error:
condition 'CAB_CLIMATE_UNDERVOLTAGE'
effect 'ELECTRICAL_CONSUMER_LOAD_MODIFIER'
targets unknown electrical consumer 'CAB'
This error appears during ADS initialization, before the map itself is loaded, and may be unrelated to Hof Bergmann.
I hope these findings are useful. Thank you for your continued work on ADS and all the new improvements!
Best regards,
dj-ocas
Czechoslovak 1989's Farming
- Ngôn ngữ chính
- Lua
- Star
- 282
- Fork
- 17
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của id577/FS25_AdvancedDamageSystem
-
question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
id577/FS25_AdvancedDamageSystem#238 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
id577/FS25_AdvancedDamageSystem#197 · 1 reaction ·
-
Advanced damage modĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
id577/FS25_AdvancedDamageSystem#250 · 4 bình luận ·
-
Shop no longer opens with ADS version 9.2.8 with Powertrain Upgrade mod and Capacity Upgrade modĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
id577/FS25_AdvancedDamageSystem#243 · 3 bình luận ·
-
question
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
id577/FS25_AdvancedDamageSystem#237 · 1 bình luận ·
Tất cả issue của id577/FS25_AdvancedDamageSystem
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
danreeves/darktide-mods#321 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
caelestia-dots/caelestia#534 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sfeSantos/cell-block-zero#48 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
FAForever/fa#7355 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày