Compatibility issue with Hof Bergmann map (setMotorProperties error)
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Lua
- 星标
- 282
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
id577/FS25_AdvancedDamageSystem 的其他 Issue
-
question
难度 2/5 1-3 小时 新手友好度 62/100
id577/FS25_AdvancedDamageSystem#238 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 73/100
id577/FS25_AdvancedDamageSystem#197 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 42/100
id577/FS25_AdvancedDamageSystem#250 · 4 条评论 ·
-
Shop no longer opens with ADS version 9.2.8 with Powertrain Upgrade mod and Capacity Upgrade mod未关闭
难度 3/5 1-2 天 新手友好度 48/100
id577/FS25_AdvancedDamageSystem#243 · 3 条评论 ·
-
question
难度 3/5 1-2 天 新手友好度 48/100
id577/FS25_AdvancedDamageSystem#237 · 1 条评论 ·
查看 id577/FS25_AdvancedDamageSystem 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 1/5 1-3 小时 新手友好度 82/100
danreeves/darktide-mods#321 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 91/100
caelestia-dots/caelestia#534 · 1 条评论 ·
维护者通常 1 天内回复
-
bug P2
难度 2/5 1-3 小时 新手友好度 78/100
sfeSantos/cell-block-zero#48 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100