tn4799 / DynamicMissionVehicles

3 stars 1 forks source link

missionVehicles.xml path names syntax inconsistent to vanilla behaviour #6

Closed Gordon-Dry closed 7 months ago

Gordon-Dry commented 11 months ago

The path syntax is incompatible to vanilla entries.

Examples

A map ships the missionVehicles.xml with a syntax like this for vehicles which are inside the map folder structure: <vehicle filename="maps/vehicles/rexor6300_onion.xml" /> which works when FS22_DynamicMissionVehicles is not used. But it has to be changed to <vehicle filename="FS22_NF_Marsch_4fach/maps/vehicles/rexor6300_onion.xml" /> to make it work with FS22_DynamicMissionVehicles.

Also the Precision Farming DLC ships a missionVehicles.xml which contains <vehicle filename="johnDeere/r700i/r700i.xml"> which works when FS22_DynamicMissionVehicles is not used and needs to be changed to <vehicle filename="FS22_precisionFarming/vehicles/johnDeere/r700i/r700i.xml"> to make it work with FS22_DynamicMissionVehicles.

tn4799 commented 11 months ago

Thanks for the feedback. The inconsistency is currently needed because of the posibility to use vehicles of the mod folder as mission vehicles. But i have an idea in mind how i can improve this and make the mission vehicles syntax consistent between base game and my mod.

Gordon-Dry commented 9 months ago

Testing repo, just downloaded. I did not see that there were already some commits two weeks ago.

Gordon-Dry commented 9 months ago

Hmm, now I get a log spam of this:

2023-12-07 18:47 Error: Running LUA method 'update'.
scripts/missions/MissionManagerExtension.lua(180) : bad argument #1 to 'ipairs' (table expected, got nil)

with the need of force killing the process.

tn4799 commented 9 months ago

Thanks for trying, but im still in development. I will submit an update to the modhub (and add a release here on github) with the working Version.

tn4799 commented 8 months ago

Hmm, now I get a log spam of this:

2023-12-07 18:47 Error: Running LUA method 'update'.
scripts/missions/MissionManagerExtension.lua(180) : bad argument #1 to 'ipairs' (table expected, got nil)

with the need of force killing the process.

Which DLCs and mods did you use when this error occured. because in my mod there is no such file as a MissionManagerExtension

Gordon-Dry commented 8 months ago

A lot - this is my latest session's log without that mod: log.zip