Error: Running LUA method 'draw'. und Neue Marken?

Eure Foren für alle Diskussionen rund ums Thema Modding.
User avatar
TheCoCe
Posts: 222
Joined: Fri Mar 22, 2013 4:54 pm
Location: Fischen i. Allgäu
Contact:

Error: Running LUA method 'draw'. und Neue Marken?

Post by TheCoCe »

Hey Com! :hi:
Bin gerade dabei meine Mods auf den LS17 umzustellen. Habe die log so weit sauber, wenn ich meinen Ballenboy allerdings anhänge, verschwinden Großteile der UI und die log spammt:

Code: Select all

Error: Running LUA method 'draw'.
dataS/scripts/vehicles/Vehicle.lua:0: attempt to compare number with nil
Ich habe leider nicht die leiseste Ahnung, wo das Problem liegt. Wahrscheinlich habe ich irgend einen Punkt beim konvertieren übersehen. Wäre super, wenn mir jemand helfen könnte.
Zudem bin ich mir im Moment nicht im Klaren, wie ich eine neue Marke ins Spiel bringen kann. Auch hier wäre ich um Hilfe sehr dankbar.

Hier die gesamte log:

Code: Select all

GIANTS Engine Runtime 7.0.0 (13569) 64bit (Build Date: Oct 18 2016)
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) i7-4770 CPU @ 3.40GHz
  Memory: 16323 MB
  OS: Windows NT 10.0 64-bit
Physics System
  Version: 5.9.5
  Thread(s): 2
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 GTX 970
  Revision: 161
  Feature level: DirectX 11 ON
Info: Effective window resolution 1920 x 1080
Started 4 threads for threadpool 'Render threadpool'
Hardware Profile
  Level: Custom Very High
  View Distance Factor: 2.000000
  Shadow Quality: 2.000000 Size: 4096 Filter-Size: 16
  Shader Quality: 3
  Skip Mipmaps: 0
  LOD Distance Factor: 2.000000
  Terrain LOD Distance Factor: 2.000000
  Terrain Normal Mapping: Yes
  Foliage View Distance Factor: 2.000000
  Foliage Density: 1.000000
  Volume Mesh Tessellation Factor: 2.000000
  Tyre Tracks Segments Factor: 4.000000
  Max. Number of Shadow Lights: 10
  Max. Number of Lights: 512
  Max. Number of Lights Per Cluster: 32
  MSAA: 8
Farming Simulator 17
  Version: 1.2.0.0 1.2RC6
  Available Languages: de
  Language: de
  Time: 2016-10-25 17:37:52
  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: Ballenboy
Warning: Only zip mods are supported in multiplayer. You need to zip the mod Ballenboy to use it in multiplayer.
Load mod: FS17_challengerMT775EStealth
  Register vehicle type: Ballenboy.Ballenboy
Warning: 'BALLENBOY' is an unknown brand! Using Lizard instead! (C:/Users/seraj/Documents/my games/FarmingSimulator2017/mods/Ballenboy/Ballenboy.xml)
dataS/cameraPath01.i3d (0.08) ms
dataS/cameraPath02.i3d (0.08) ms
dataS/cameraPath03.i3d (0.08) ms
data/sky/skyUS_day_night.i3d (11.69) ms
data/sky/rain.i3d (1.55) ms
data/sky/hail.i3d (1.24) ms
data/sky/dust.i3d (0.82) ms
data/maps/map01.i3d (1695.54) ms
data/objects/basketball/basketball.i3d (2.61) ms
Disabled withering
data/vehicles/steerable/caseIH/caseIH1660.i3d (59.54) ms
data/vehicles/cutters/caseIH/caseIH1030Cutter.i3d (37.00) ms
data/vehicles/steerable/newHolland/newHolland8340.i3d (39.49) ms
data/vehicles/tools/kuhn/kuhnCultimerL300.i3d (20.52) ms
data/vehicles/steerable/caseIH/caseIH1455.i3d (55.26) ms
data/vehicles/tools/greatPlains/gp3P1006NT.i3d (24.04) ms
data/vehicles/trailers/metaltech/db8000.i3d (33.45) ms
data/vehicles/steerable/lizard/lizardPickupRodeo.i3d (31.79) ms
data/vehicles/steerable/steyr/steyrMulti.i3d (49.48) ms
data/placeables/shelters/vehicleShelter.i3d (1.89) ms
data/placeables/shelters/storageShelter01.i3d (6.57) ms
data/objects/bigBagContainer/bigBagContainerFertilizer.i3d (5.53) ms
data/objects/pallets/fertilizerTank.i3d (3.26) ms
data/objects/bigBagContainer/bigBagContainerSeeds.i3d (2.37) ms
data/placeables/shelters/storageShelter02.i3d (2.67) ms
data/vehicles/train/locomotive.i3d (23.41) ms
data/vehicles/train/wagonTimber.i3d (11.48) ms
data/vehicles/train/wagonWoodChips.i3d (13.07) ms
data/vehicles/train/wagonGrain.i3d (12.56) ms
data/vehicles/train/wagonSugarbeets.i3d (12.66) ms
dataS2/character/player/player02.i3d (252.07) ms
C:/Users/seraj/Documents/my games/FarmingSimulator2017/mods/Ballenboy/Ballenboy_new.i3d (40.94) ms
Error: Running LUA method 'draw'.
dataS/scripts/vehicles/Vehicle.lua:0: attempt to compare number with nil
Error: Running LUA method 'draw'.
dataS/scripts/vehicles/Vehicle.lua:0: attempt to compare number with nil
Error: Running LUA method 'draw'.
dataS/scripts/vehicles/Vehicle.lua:0: attempt to compare number with nil
Error: Running LUA method 'draw'.
dataS/scripts/vehicles/Vehicle.lua:0: attempt to compare number with nil
.
.
.
Dieser Fehler geht munter weiter....
Es gibt immer Leute die meinen, sie seien schlauer als ich. Das Schlimmste ist, sie sind es auch.
User avatar
modelleicher
Posts: 1575
Joined: Fri Jul 09, 2010 11:10 pm
Location: Hessen
Contact:

Re: Error: Running LUA method 'draw'. und Neue Marken?

Post by modelleicher »

Was neue Marken angeht:

Code: Select all

 <brands>
        <brand name="DEINE_MARKE" title="Marke" image="texturen/brand_DEINE_MARKE.dds"/>
 </brands>
    
In die modDesc.. Müsste ausreichen für ne neue Marke mir ist noch nix sonst aufgefallen :D


LG
Eine Stunde oder Minute ist nur ein winziger Teil unseres gesamten Lebens. Und dennoch sind es die einzelnen Momente, die das Leben lebenswert machen.
User avatar
TheCoCe
Posts: 222
Joined: Fri Mar 22, 2013 4:54 pm
Location: Fischen i. Allgäu
Contact:

Re: Error: Running LUA method 'draw'. und Neue Marken?

Post by TheCoCe »

Ok Klasse, das mit der Marke hat schon mal hin gehauen, jetzt nur noch der LUA Fehler. Ich gehe davon aus, dass es was mit UI zu tun hat, da der Fehler aufhört, wenn man aussteigt sowie den Anhänger abhängt.
Es gibt immer Leute die meinen, sie seien schlauer als ich. Das Schlimmste ist, sie sind es auch.
agp8x
Posts: 589
Joined: Mon Sep 01, 2008 2:25 pm

Re: Error: Running LUA method 'draw'. und Neue Marken?

Post by agp8x »

Dann wirst du etwas mehr Infos liefern müssen... Wie hast du konvertiert, was verwendest du, usw
User avatar
TheCoCe
Posts: 222
Joined: Fri Mar 22, 2013 4:54 pm
Location: Fischen i. Allgäu
Contact:

Re: Error: Running LUA method 'draw'. und Neue Marken?

Post by TheCoCe »

Hier einfach mal die Moddesc:

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="30">
    <author>LsPrO/TheCoCe</author>
	<version>1.0</version>
    <title>
        <en>Ballenboy</en>
        <de>Ballenboy</de>
    </title>
    <description>
        <en><![CDATA[Ballenboy DESCRIPTION]]></en>
        <de><![CDATA[Ballenboy BESCHREIBUNG]]></de>
    </description>
	<iconFilename>store.dds</iconFilename>
    <multiplayer supported="true"/>
	
	<vehicleTypes>
        <type name="Ballenboy" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
			<specialization name="attacherJoints" />
			<specialization name="lights" />
			<specialization name="attachable" />
			<specialization name="animatedVehicle" />
			<specialization name="cylindered" />
			<specialization name="foldable" />
			<specialization name="mountable" />
			<specialization name="washable" />
        </type>
    </vehicleTypes>
	
	<brands>
        <brand name="BALLENBOY" title="Ballenboy" image="brand.dds"/>
	</brands>
	
	<storeItems>
		<storeItem xmlFilename="Ballenboy.xml"/>
	</storeItems>
</modDesc>
und die xml:

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer">
    <annotation>Copyright (C) TheCoCe/LsPrO</annotation>
	
	<storeData>
		<name>Ballenboy</name>
		<functions>
			<function>
				<de>Mit diesem Anhänger können sie schnell und einfach Rundballen einsammeln.</de> 
				<en>With this trailer you can effectively collect roundbales.</en> 
			</function>
		</functions>
		<image>store.dds</image>
		<price>13635</price>
		<dailyUpkeep>22</dailyUpkeep>
		<lifetime>256</lifetime>
		<rotation>0</rotation>
		<brand>BALLENBOY</brand>
		<category>baling</category>
		<vertexBufferMemoryUsage>1728608</vertexBufferMemoryUsage>
        	<indexBufferMemoryUsage>295512</indexBufferMemoryUsage>
        	<textureMemoryUsage>4700088</textureMemoryUsage>
		<instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        	<instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
	</storeData>
	
    <typeDesc>Ballenboy</typeDesc>
    <filename>Ballenboy_new.i3d</filename>

    <size width="3" length="8" />

	<!--TODO: add wheel configuration-->
	<wheelConfigurations>
		<wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
			<wheels autoRotateBackSpeed="1.0">
				<wheel driveMode="0" restLoad="2.1" repr="0>0|10|0" driveNode="0>0|0|0|0|0|1" radius="0.417" width="0.56" filename="$data/vehicles/wheels/trelleborg/AW305_380_55R17.xml" isLeft="true" initialCompression="70" suspTravel="0.15" spring="20" damper="25" hasTireTracks="true" hasParticles="true" frictionScale="1.5" mass="0.3" />
				<wheel driveMode="0" restLoad="2.1" repr="0>0|11|0" driveNode="0>0|1|0|0|0|1" radius="0.417" width="0.56" filename="$data/vehicles/wheels/trelleborg/AW305_380_55R17.xml" isLeft="false" initialCompression="70" suspTravel="0.15" spring="20" damper="25" frictionScale="1.5" mass="0.3" />
			</wheels>
		</wheelConfiguration>
	</wheelConfigurations>
	
    <!--<dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0|0" linkNode="0>0|0|0|0|0|1" filename="$data/vehicles/wheels/trelleborg/trelleborgAW305_380_55_17.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>0|1|0|0|0|1" filename="$data/vehicles/wheels/trelleborg/trelleborgAW305_380_55_17.i3d" />
    </dynamicallyLoadedParts>-->
	
    <brakeForce>1</brakeForce>
	
	<!--TODO: check
    <lights>
		<low>
			<light decoration="0>0|7|4|3|0" lightTypes="0 3"/>
		</low>
	</lights>
	 -->

    <brakeLights>
        <brakeLight realLight="0>0|7|4|2|2" decoration="0>0|7|4|2|0" />
		<brakeLight realLight="0>0|7|4|2|2|0" decoration="0>0|7|4|2|1" />
    </brakeLights>

    <turnLights>
        <turnLightLeft realLight="0>0|7|4|1|0|1" decoration="0>0|7|4|1|0|0" />
        <turnLightRight realLight="0>0|7|4|1|1|1" decoration="0>0|7|4|1|1|0" />
    </turnLights>
	
    <reverseLights>
        <reverseLight realLight="0>0|7|4|0|1" decoration="0>0|7|4|0|0" />
    </reverseLights>
	
	<cylinderedHydraulicSound file="$data/sounds/hydraulicUp.wav"  pitchOffset="0.8" volume="0.6" indoorVolumeFactor="0.75" />
	
	<foldingParts startMoveDirection="1" >
        <foldingPart animationName="rightFold" speedScale="1" />
    </foldingParts>
	
	<animations>
		<animation name="rightFold">
            <part node="0>0|6" startTime="0" endTime="6" startRot="0 35 0" endRot="0 -29.3 0" />
        </animation>
		
		<animation name="lowerAnimation">
            <part node="0>0|10" startTime="0" endTime="2" startRot="-10 0 0" endRot="18 0 0" />
			<part node="0>0|11" startTime="0" endTime="2" startRot="-10 0 0" endRot="18 0 0" />
			<!-- Collis -->
			<part node="0>0|2|7" startTime="0" endTime="2" startTrans="0 0 0" endTrans="-0.125 0 0" />
			<part node="0>0|2|6" startTime="0" endTime="2" startTrans="0 0 0" endTrans="0.125 0 0" />
		</animation>
    </animations>
	
	<!--
	<mouseControls>
		<mouseControl iconFilename="textures/Ballenboy1.dds" mouseButton="LEFT" mouseAxis="X" axis="AXIS_FRONTLOADER_TOOL" />
		<mouseControl iconFilename="textures/Ballenboy2.dds" mouseButton="LEFT" mouseAxis="Y" axis="AXIS_FRONTLOADER_ARM" />
	</mouseControls>
	-->
	
    <movingTools>
		<!-- folding -->
		<movingTool index="0>0|6">
			<componentJoint index="0"/>
			<dependentPart index="0>0|6|1" />
			<inputAttacherJoint value="true" />
        </movingTool>
		<!-- lowering -->
		<movingTool index="0>0|10" wheelIndices="1 2">
        </movingTool>
		<movingTool index="0>0|11" wheelIndices="1 2">
		</movingTool>
		<!-- Klappe 
		<movingTool index="0>0|7" anchorActor="0" rotSpeed="50" rotAcceleration="50" rotMax="80" rotMin="0" rotationAxis="1" axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_TOOL" invertMouseAxis="false" speedFactor="0.3">
			<dependentPart index="0>0|7|1" />
			<dependentPart index="0>0|7|2" />
		</movingTool>-->
		
		<movingTool index="0>0|7" playSound="true">
			<controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.5" iconFilename="textures/Ballenboy2.dds"/>
			<rotation rotSpeed="50" rotAcceleration="50" rotMax="80" rotMin="0"/>
			<dependentPart index="0>0|7|1" />
			<dependentPart index="0>0|7|2" />
		</movingTool>
		
		<!-- Deichsel 
		<movingTool index="0>0|6|6" componentJointIndex="0" anchorActor="0" rotSpeed="30" rotAcceleration="50" rotMax="10" rotMin="-10" rotationAxis="1" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="false" speedFactor="0.3">
		</movingTool>
		<movingTool index="0>0|6|6|0" componentJointIndex="0" anchorActor="0" rotSpeed="30" rotAcceleration="50" rotMax="10" rotMin="-10" rotationAxis="1" axis="AXIS_FRONTLOADER_ARM" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="true" speedFactor="0.3">
			<dependentPart index="0>0|6|2" />
			<dependentPart index="0>0|6|0" />
		</movingTool>
		-->
		<movingTool index="0>0|6|6" playSound="true">
			<controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="0.5" iconFilename="textures/Ballenboy1.dds"/>
			<rotation rotSpeed="30" rotAcceleration="50" rotMax="10" rotMin="-10"/>
			<componentJoint index="0"/>
		</movingTool>
		
		<movingTool index="0>0|6|6|0" playSound="false">
			<controls axis="AXIS_FRONTLOADER_ARM" invertAxis="false" mouseSpeedFactor="0.5" iconFilename="textures/Ballenboy1.dds"/>
			<rotation rotSpeed="30" rotAcceleration="50" rotMax="10" rotMin="-10"/>
			<componentJoint index="0"/>
			<dependentPart index="0>0|6|2" />
			<dependentPart index="0>0|6|0" />
		</movingTool>
    </movingTools>

    <movingParts>
		<!-- Axle -->
		<movingPart index="0>0|0|0" referencePoint="0>0|10|0" referenceFrame="0>0|0" isActiveDirty="true" limitedAxis="1">
            <dependentPart index="0>0|0|0|0|0" />
        </movingPart>
		<movingPart index="0>0|1|0" referencePoint="0>0|11|0" referenceFrame="0>0|1" isActiveDirty="true" limitedAxis="1">
            <dependentPart index="0>0|1|0|0|0" />
        </movingPart>
		
		<movingPart index="0>0|0|0|0|0|0" referencePoint="0>0|3" referenceFrame="0>0|0" isActiveDirty="true">
            <translatingPart index="0>0|0|0|0|0|0|0" />
        </movingPart>
		<movingPart index="0>0|1|0|0|0|0" referencePoint="0>0|4" referenceFrame="0>0|1" isActiveDirty="true">
            <translatingPart index="0>0|1|0|0|0|0|0" />
        </movingPart>
		<!-- Hydraaulics Main2 -->
		<movingPart index="0>0|6|1" referencePoint="0>0|5" referenceFrame="0>0|6">
            <translatingPart index="0>0|6|1|0" />
        </movingPart>
		<!-- Hydraulics Klappe -->
		<movingPart index="0>0|7|1" referencePoint="0>0|8" referenceFrame="0>0|7">
            <translatingPart index="0>0|7|1|0" />
        </movingPart>
		<movingPart index="0>0|7|2" referencePoint="0>0|9" referenceFrame="0>0|7">
            <translatingPart index="0>0|7|2|0" />
        </movingPart>
		<!-- Deichsel -->
		<movingPart index="0>0|6|2" referencePoint="0>0|6|6|0|1" referenceFrame="0>0|6" limitedAxis="1" >
        </movingPart>
		<movingPart index="0>0|6|0" referencePoint="0>0|6|6|0|0" referenceFrame="0>0|6" limitedAxis="1" >
			<translatingPart index="0>0|6|0|0" />
		</movingPart>
    </movingParts>
	
	<lowerAnimation name="lowerAnimation" />
	
	<inputAttacherJoints>
        <inputAttacherJoint index="1>0" rootNode="1>" jointType="implement" topReferenceNode="1>1" upperRotationOffset="0" rotLimitScale="0.05 0.05 0.05" lowerDistanceToGround="0.52" upperDistanceToGround="0.92" />
    </inputAttacherJoints>
	
    <washable dirtDuration="50" washDuration="1" workMultiplier="4" />
	
	<!--<colorNodes> 
		<colorNode index="0>0|0|0|0|0|1" />
		<colorNode index="0>0|1|0|0|0|1" />
	</colorNodes>-->

    <components count="2">
        <component1 centerOfMass="0 0 0" solverIterationCount="10" />
		<component2 centerOfMass="0 0 0" solverIterationCount="10" />
		<joint component1="0" component2="1" index="0>0|6|6|0|2" rotLimit="0 90 15" transLimit="0 0 0" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>
Die Indizes sind so weit ich alle überprüft habe alle richtig. Unsicher bin ich mir bei allem was mit MemoryUsage zu tun hat. Habe hierfür einfach mal Werte aus dem sampleMod übernommen, da ich nicht sicher war, wo ich Werte für mein Modell herbekomme. Also was hab ich gemacht: Lichter angepasst, Wheels angepasst, movingTools angepasst die alten mouseAxis entfernt, modDesc angepasst, storeData in der xml angepasst, specializations vervollständigt, pfade angepasst, cube map und dirt normal sowie vehicle und emissive shader durch die neuen ersetzt und moddesc version auf 30 angepasst.
Hoffe das war alles. Der Fehler besteht, seit ich den Mod zum ersten mal kaufen und anhängen konnte (also mit alten mouseAxis, movingTools usw.). Jetzt sind keine Fehler in der log übrig bis auf den LUA Fehler.
Es gibt immer Leute die meinen, sie seien schlauer als ich. Das Schlimmste ist, sie sind es auch.
agp8x
Posts: 589
Joined: Mon Sep 01, 2008 2:25 pm

Re: Error: Running LUA method 'draw'. und Neue Marken?

Post by agp8x »

In der XML steht <vehicle type="trailer">
Die Memory-Einträge sollte der neue GE selbst bauen können
User avatar
TheCoCe
Posts: 222
Joined: Fri Mar 22, 2013 4:54 pm
Location: Fischen i. Allgäu
Contact:

Re: Error: Running LUA method 'draw'. und Neue Marken?

Post by TheCoCe »

:blushnew: Oh gott. Manchmal sind es echt die einfachsten Fehler... Naja habs geändert und jetzt hats auch geklappt. Danke für die Hilfe.
Nach einem Jahr ohne Modding muss man da wirklich erst wieder rein kommen ^^ Also nochmal vielen Dank!
Es gibt immer Leute die meinen, sie seien schlauer als ich. Das Schlimmste ist, sie sind es auch.
Post Reply