Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Compatibility issue with Hof Bergmann map (setMotorProperties error)

オープン
#241 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

id577/FS25_AdvancedDamageSystem のほかの issue

id577/FS25_AdvancedDamageSystem の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。