stijnwop / manualAttach

Manual Attach modification for Farming Simulator 2022
GNU General Public License v3.0
108 stars 29 forks source link

cant exclude attacer types #49

Closed knuuud closed 5 years ago

knuuud commented 5 years ago

Hi, in the new version of manualAttach I can't add attachers to ignore. Is there something I've missed? I used to add them in the manualattach.lua together with the lines like this ManualAttach.AUTO_ATTACH_JOINTYPES = { [mapJointTypeNameToInt("skidSteer")] = true, [mapJointTypeNameToInt("cutter")] = true, [mapJointTypeNameToInt("cutterHarvester")] = true, [mapJointTypeNameToInt("wheelLoader")] = true, [mapJointTypeNameToInt("frontloader")] = true, [mapJointTypeNameToInt("telehandler")] = true, [mapJointTypeNameToInt("loaderFork")] = true, [mapJointTypeNameToInt("hookLift")] = true, [mapJointTypeNameToInt("semitrailer")] = true, [mapJointTypeNameToInt("semitrailerHook")] = true, [mapJointTypeNameToInt("fastCoupler")] = true [mapJointTypeNameToInt("trailerLow")] = true } the last one is the one I wanted to add as most tractors I use would in real life attach the low trailer attacher with a leaver dropping a hook from inside the tractor.

adding it was ok in the earlier versions, but now it throws this in log when starting the game:

2019-07-12 20:24 Error: Running LUA method 'update'. 2019-07-12 20:24 H:/Dropbox/FarmingSimulator/Dedi19/FS19_manualAttach/src/loader.lua:50: attempt to index global 'ManualAttach' (a nil value) any way I can do that and not get the error?

stijnwop commented 5 years ago

You forgot a comma most likely.

knuuud commented 5 years ago

sigh... problem solved.. sorry for the bother.... a facepalm is in its place I think.... :P Thanks