Compatibility issue with Hof Bergmann map (setMotorProperties error)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 56/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Lua
- Estrellas
- 282
- Forks
- 17
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de id577/FS25_AdvancedDamageSystem
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
id577/FS25_AdvancedDamageSystem#238 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
id577/FS25_AdvancedDamageSystem#197 · 1 reacción ·
-
Issue or not?Abiertoquestion
Dificultad 3/5 1-2 días Aptitud para principiantes 54/100
id577/FS25_AdvancedDamageSystem#240 · 5 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
id577/FS25_AdvancedDamageSystem#239 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
id577/FS25_AdvancedDamageSystem#237 · 1 comentario ·
Todos los issues de id577/FS25_AdvancedDamageSystem
Issues similares
-
test-net.lua fails on linuxPosiblemente ocupada @PatrickDahlin la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
agent-review-finding
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
codymikol/multiverse.nvim#393 ·
Los mantenedores suelen responder en 1 día
-
[alt:V] discontinuedAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
pterodactyl/game-eggs#665 ·
Los mantenedores suelen responder en 1 día
-
`head_templates` missing for `{{aii-intj}}` and `{{aii-propn}}` (not matched by `HEAD_TAG_RE`)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
tatuylonen/wiktextract#1731 · 1 comentario ·