Community Forum

LUA errors causing game to crash

Forum Overview >> Farming Simulator 17

CategoryFarming Simulator 17
Created30.05.2017 13:39


Frazer Lusty (flusty94) 30.05.2017 13:39
Hi guys, im making a new map mod but everytime i go to load it in game to test, it freezes on the map loading screen, i go into dev mode and can see it's full of LUA errors.

here's a link to the map:

https://www.mediafire.com/?a2da86l53abdd2o

here's the log:

GIANTS Engine Runtime 7.0.0 (14222) 64bit (Build Date: Feb 17 2017)
Copyright (c) 2008-2016, GIANTS Software GmbH (giants-software.com), All Rights Reserved.
Copyright (c) 2003-2016, Christian Ammann and Stefan Geiger, All Rights Reserved.
Application: FarmingSimulator2017
Main System
CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
Memory: 4094 MB
OS: Windows NT 10.0 64-bit
Physics System
Version: 5.9.5
Thread(s): 1
Input System
Keyboard enabled
Mouse enabled
Gamepad/Joystick enabled
Force Feedback disabled
Audio System
Driver: OpenAL
Version: 1.1
Device: Generic Software
Render System
Driver: Direct 3D 11
Card Vendor: NVIDIA Corporation
Renderer: NVIDIA GeForce GT 730
Version: 21.21.13.7653 (29.12.2016)
Revision: 161
Feature level: DirectX 11 ON
Info: Effective window resolution 1280 x 720
Started 1 threads for threadpool 'Render threadpool'
Hardware Profile
Level: Custom Medium
View Distance Factor: 1.500000
Shadow Quality: 2.000000 Size: 4096 Filter-Size: 4
Shader Quality: 1
Skip Mipmaps: 0
LOD Distance Factor: 1.500000
Terrain LOD Distance Factor: 1.500000
Terrain Normal Mapping: Yes
Foliage View Distance Factor: 1.000000
Foliage Density: 0.500000
Volume Mesh Tessellation Factor: 1.500000
Tyre Tracks Segments Factor: 1.000000
Max. Number of Shadow Lights: 1
Max. Number of Lights: 512
Max. Number of Lights Per Cluster: 32
MSAA: 0
Farming Simulator 17 (Steam)
Version: 1.4.4.0 1.4.4RC8
Available Languages: en de jp pl cz fr es ru it pt hu nl cs ct br tr ro kr
Language: en
Time: 2017-05-30 12:29:40
Register configuration 'inputAttacherJoint'
Register configuration 'attacherJoint'
Register configuration 'frontloader'
Register configuration 'motor'
Register configuration 'baseColor'
Register configuration 'wheel'
Register configuration 'rimColor'
Register configuration 'design'
Register configuration 'designColor'
Register configuration 'vehicleType'
Game vehicle types loaded
Load mod: FS17_LechladeFarm (Version: 1.0.0.0)
dataS/cameraPath01.i3d (0.18) ms
dataS/cameraPath02.i3d (0.15) ms
dataS/cameraPath03.i3d (0.16) ms
Error: Failed to open xml file ''.
LUA call stack:
dataS/scripts/utils/Utils.lua (1702) : printCallstack
dataS/scripts/missions/mission00.lua (222) : getFilename
dataS/scripts/missions/mission00.lua (111) : loadEnvironment
dataS/scripts/FSBaseMission.lua (1038) : load
dataS/scripts/gui/MPLoadingScreen.lua (196) : onConnectionRequestAcceptedLoad
dataS/scripts/gui/elements/Gui.lua (306) : update
dataS/scripts/main.lua (1872) : update
Warning (LUA): 'loadXMLFile': Argument 2 has wrong type. Expected: String. Actual: Nil
..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (640): expectedType == Value::VoidType
LUA call stack:
dataS/scripts/environment/Environment.lua (46) : loadXMLFile
dataS/scripts/missions/mission00.lua (223) : new
dataS/scripts/missions/mission00.lua (111) : loadEnvironment
dataS/scripts/FSBaseMission.lua (1038) : load
dataS/scripts/gui/MPLoadingScreen.lua (196) : onConnectionRequestAcceptedLoad
dataS/scripts/gui/elements/Gui.lua (306) : update
dataS/scripts/main.lua (1872) : update
LUA call stack:
dataS/scripts/utils/Utils.lua (764) : printCallstack
dataS/scripts/utils/Utils.lua (795) : removeModDirectory
dataS/scripts/environment/Environment.lua (54) : getModNameAndBaseDirectory
dataS/scripts/missions/mission00.lua (223) : new
dataS/scripts/missions/mission00.lua (111) : loadEnvironment
dataS/scripts/FSBaseMission.lua (1038) : load
dataS/scripts/gui/MPLoadingScreen.lua (196) : onConnectionRequestAcceptedLoad
dataS/scripts/gui/elements/Gui.lua (306) : update
dataS/scripts/main.lua (1872) : update
Error: Running LUA method 'update'.
dataS/scripts/utils/Utils.lua(767) : attempt to index local 'filename' (a nil value)

Frazer Lusty (flusty94) 30.05.2017 15:59
i noticed a mistake in the modDesc.xml it was missing the extra files for the .lua's. i have since included these and i still get the same error?

I can't test my map at all because it will not load?
All ive done is export animated sheds and items from another map but have included the xmls and the inputs for the mod desc too

Emil Drefers (Unknown) 31.05.2017 06:35
Hi,

it seems that there's a problem with the environment.
Please check the following attribute in your map.xml
<map>
<environment filename="..." />
</map>
Does the file exist?

Cheers,
Emil

Frazer Lusty (flusty94) 31.05.2017 11:04
Hi Emil,

I've checked the map01.xml and ive changed the dirrectory from $data/maps/map01_enviroment.xml to just maps/map01_environment.xml but i still get the same error?

here's an updated link for the map so you can take a look yourself at the xmls and mod desc etc

mediafire link:

https://www.mediafire.com/?a2da86l53abdd2o

Frazer Lusty (flusty94) 01.06.2017 01:28
Hi Emil,

Just an update to say that I have ironed out all the LUA errors, and the map not loading, and have done loads to it since!

However i still get just 1 error now but im not sure what it means?

this is the log:



GIANTS Engine Runtime 7.0.0 (14222) 64bit (Build Date: Feb 17 2017)
Copyright (c) 2008-2016, GIANTS Software GmbH (giants-software.com), All Rights Reserved.
Copyright (c) 2003-2016, Christian Ammann and Stefan Geiger, All Rights Reserved.
Application: FarmingSimulator2017
Main System
CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
Memory: 4094 MB
OS: Windows NT 10.0 64-bit
Physics System
Version: 5.9.5
Thread(s): 1
Input System
Keyboard enabled
Mouse enabled
Gamepad/Joystick enabled
Force Feedback disabled
Audio System
Driver: OpenAL
Version: 1.1
Device: Generic Software
Render System
Driver: Direct 3D 11
Card Vendor: NVIDIA Corporation
Renderer: NVIDIA GeForce GT 730
Version: 21.21.13.7653 (29.12.2016)
Revision: 161
Feature level: DirectX 11 ON
Info: Effective window resolution 1280 x 720
Started 1 threads for threadpool 'Render threadpool'
Hardware Profile
Level: Custom Medium
View Distance Factor: 1.500000
Shadow Quality: 2.000000 Size: 4096 Filter-Size: 4
Shader Quality: 1
Skip Mipmaps: 0
LOD Distance Factor: 1.500000
Terrain LOD Distance Factor: 1.500000
Terrain Normal Mapping: Yes
Foliage View Distance Factor: 1.000000
Foliage Density: 0.500000
Volume Mesh Tessellation Factor: 1.500000
Tyre Tracks Segments Factor: 1.000000
Max. Number of Shadow Lights: 1
Max. Number of Lights: 512
Max. Number of Lights Per Cluster: 32
MSAA: 0
Farming Simulator 17 (Steam)
Version: 1.4.4.0 1.4.4RC8
Available Languages: en de jp pl cz fr es ru it pt hu nl cs ct br tr ro kr
Language: en
Time: 2017-06-01 00:01:06
Register configuration 'inputAttacherJoint'
Register configuration 'attacherJoint'
Register configuration 'frontloader'
Register configuration 'motor'
Register configuration 'baseColor'
Register configuration 'wheel'
Register configuration 'rimColor'
Register configuration 'design'
Register configuration 'designColor'
Register configuration 'vehicleType'
Game vehicle types loaded
Load mod: FS17_Lechlade_Manor_Farm (Version: 1.0.0.0)
dataS/cameraPath01.i3d (0.17) ms
dataS/cameraPath02.i3d (0.14) ms
dataS/cameraPath03.i3d (0.16) ms
data/sky/skyUS_day_night.i3d (16.73) ms
data/sky/rain.i3d (1.84) ms
data/sky/hail.i3d (0.97) ms
data/sky/dust.i3d (0.64) ms
C:/Users/Frazer/Documents/My Games/FarmingSimulator2017/mods/FS17_Lechlade_Manor_Farm/maps/map01.i3d (2558.48) ms
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (122) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 1
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (170) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 0
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (122) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 1
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (170) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 0
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (122) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 1
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (170) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 0
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (122) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 1
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (170) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 0
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (122) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 1
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (170) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 0
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (122) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 1
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (170) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 0
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (122) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 1
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (170) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 0
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (122) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 1
Error: index out of range
LUA call stack:
dataS/scripts/utils/Utils.lua (11) : printCallstack
dataS/scripts/utils/Utils.lua (65) : checkChildIndex
dataS/scripts/objects/AnimatedObject.lua (170) : indexToObject
dataS/scripts/objects/AnimatedObject.lua (20) : load
Index: 0
Disabled withering
data/vehicles/steerable/lizard/lizardPickupRodeo.i3d (73.29) ms
dataS2/character/player/player01.i3d (799.10) ms
data/vehicles/steerable/masseyFerguson/MF8700.i3d (630.09) ms
data/vehicles/steerable/newHolland/newHollandT7.i3d (1145.85) ms
data/vehicles/steerable/valtra/valtraNSeries.i3d (923.50) ms
data/vehicles/tools/stoll/stollFrontLoaderFZ60.i3d (103.33) ms
data/vehicles/tools/stoll/stollToolShovel.i3d (208.81) ms
data/vehicles/trailers/kroeger/kroegerTKD302.i3d (412.88) ms
data/vehicles/steerable/newHolland/newHollandCR1090.i3d (572.81) ms
data/vehicles/cutters/caseIH/caseIH3162Cutter.i3d (420.51) ms
data/vehicles/tools/horsch/horschTerrano4FX.i3d (282.90) ms
data/vehicles/tools/greatPlains/gp3P1006NT.i3d (307.44) ms
data/vehicles/steerable/manitou/manitouMLT840.i3d (492.63) ms
data/vehicles/tools/magsi/telehandlerBaleFork.i3d (120.89) ms
data/vehicles/tools/amazone/amazoneCayron200.i3d (260.38) ms


Emil Drefers (Unknown) 01.06.2017 06:49
Hi,

it looks like you have a bad setup for several "animatedObjects".

The shown error says that an index path is wrong.
You probably have something like:
<part node="0">
or
<part node="0|0">
<part node="0>0">

Check theses paths.
Maybe remove all entries in the animatedObject.xml file and start with a single one.
Make this work and then insert the next object.

Cheers,
Emil


Frazer Lusty (flusty94) 01.06.2017 15:07
Hi emil, I have tried everything possible to get rid of the index error, I've triple checked every single animated item i have and NONE of them are identical so it's not a case of them being duplicated

everything else works except for this LUA error, but without it being fixed i can't upload it to the in game modhub because you lot will fail it becasue of the errors?

what am i supposed to do just quit it?

thanks

Emil Drefers (Unknown) 01.06.2017 16:14
Hi,

well it is not about any duplicate entries.
Maybe I did explain not in an optimal way.

So, trying to locate the errors I would suggest the following ...

Open the xml file which holds all the animations for the animated objects.
Now disable all of them ...
you can use <!-- to start a comment and --> to a comment, which will disable evrything in between.

Next, enable the very first animated object.
Load the map and see if you get an error.
If so, let's try to track it down.

You could show us a screenshot of your object in the map (with user attributes) and the enabled object in the xml file.
This way we might be able to find the mistake.

If there's no error, just continue to enable one object after another to finally get an error.
Understanding how that error is caused will help you to eiminate all the others.
And starting with only one error makes it easier :)

Cheers,
Emil



Note: Log in to post. Create a new account here.