Compatibility issue with Hof Bergmann map (setMotorProperties error)
まだ誰も着手していません。
評価
調査の方向性
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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·
-
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 件 ·
-
multiplayer unconfirmed bug
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
id577/FS25_AdvancedDamageSystem#236 · コメント 3 件 ·
id577/FS25_AdvancedDamageSystem の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
orbitalquark/scintillua#223 ·
-
bug code-annotation
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
quarto-dev/quarto-cli#15215 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
RLS-Modding/rls_career_overhaul#511 · リアクション 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
P-47D: GEAR_LVR always reads 1対応中かも @cbass2404 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
DCS-Skunkworks/dcs-bios#1932 ·