Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Compatibility issue with Hof Bergmann map (setMotorProperties error)

未关闭
#241 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
56/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
lua
领域
game-dev

调研方向

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 内容生成。

描述

bug

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.

  1. Relaxing Station

vehicles/mapVehicles/relaxingStation/relaxingStation.xml
type=FS25_HofBergmann.mapVehicleRelaxingStation
motorizedNode=nil
motor=true

  1. 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

log.txt

主要语言
Lua
星标
282
派生
17
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

id577/FS25_AdvancedDamageSystem 的其他 Issue

查看 id577/FS25_AdvancedDamageSystem 的全部 Issue

相似的 Issue

更多 Lua Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。