LUA call stack ...

Eure Foren für alle Diskussionen rund ums Thema Modding.
User avatar
Kevin_J_Barton
Posts: 94
Joined: Sun Mar 29, 2015 2:38 pm
Location: Wiesbaden
Contact:

LUA call stack ...

Post by Kevin_J_Barton »

Zunächst mal die log:

Code: Select all

2022-05-21 15:14 LUA call stack:
  dataS/scripts/vehicles/specializations/WorkParticles.lua (592) : printCallstack
  dataS/scripts/vehicles/specializations/GroundReference.lua (149) : updateGroundReferenceNode
  dataS/scripts/specialization/SpecializationUtil.lua (19)
  dataS/scripts/vehicles/Vehicle.lua (1976) : raiseEvent
  dataS/scripts/gui/ShopConfigScreen.lua (2160) : updateTick
  dataS/scripts/gui/base/Gui.lua (702) : update
  dataS/scripts/main.lua (1209) : update
2022-05-21 15:14 Validity check failed in TransformGroup_worldDirectionToLocal: 2022-05-21 15:14  
2022-05-21 15:14   2022-05-21 15:14 D:\auto_builder\cache\svn\d647782cefb4fffafeda18ce91928b95\src\engine\app\ReflectionAndScriptBinding.cpp (7641)2022-05-21 15:14 : 2022-05-21 15:14 !MathUtil::isNaN(pArgs->arg[2].f)
Der Fehler tritt auf, wenn ich meine neue Sämaschinen-Mod im Shop ansehen will. Ich bin zunächst davon ausgegangen das es ein Problem mit der 3D-Darstellung gibt, da der shop leer bleibt und aufgrund des call-stacks nahezu einfriert. Außerdem ist das ein 10 Jahre altes Modell und hatte ohnehin Fehler. Jetzt hab ich das Teil aber in wochenlanger Arbeit neu modelliert und habe jetzt den Fehler erneut.

Wie findet man heraus was genau den call-stack verursacht? Aus der Log werde ich zumindest nicht schlau.

Hier die xml:

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="sowingMachine" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
    <annotation>Kevin J Barton, All Rights Reserved.</annotation>

    <storeData>
        <name>Isaria</name>
        <specs>
            <neededPower>10</neededPower>
            <workingWidth>1</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_sowingMachine</function>
        </functions>
        <image>store.png</image>
        <price>100</price>
        <lifetime>100</lifetime>
        <rotation>0</rotation>
        <brand>KJB</brand>
        <category>seeders</category>
        <shopTranslationOffset>0 0.35 0</shopTranslationOffset>
        <shopRotationOffset>0 0.053 0</shopRotationOffset>
        <shopLoadingDelay initial="0.6"/>
        <vertexBufferMemoryUsage>2310912</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>312576</indexBufferMemoryUsage>
        <textureMemoryUsage>1310720</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_sowingMachine</typeDesc>
        <filename>Isaria.i3d</filename>
        <size width="1.5" length="2" lengthOffset="-0.2"/>
        <components>
            <component centerOfMass="0 0.4 -1.5" solverIterationCount="10" mass="100"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="DRILL" />
        <mapHotspot type="TOOL" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels>
                    <wheel>
                        <physics rotSpeed="0" restLoad="0.7" repr="l_rad" radius="0.42" width="0.2" forcePointRatio="0.4"/>
                    </wheel>
                    <wheel>
                        <physics rotSpeed="0" restLoad="0.7" repr="r_rad" radius="0.42" width="0.2" forcePointRatio="0.4"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacher" jointType="HolderATT" >
			<schema position="1 0" rotation="0" invertX="false" />
			</inputAttacherJoint>
        </inputAttacherJoints>
        <brakeForce force="0.05"/>
    </attachable>

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" forceFactor="1" threshold="0.2" depthNode="depthNode" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="sowingMachine" functionName="processSowingMachineArea">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaheight"/>
            <groundReferenceNode index="1"/>
            <onlyActiveWhenLowered value="true"/>
        </workArea>
    </workAreas>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <unloading width="7.5" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="seeds" capacity="400">
                        <exactFillRootNode node="exactFillRootNode" extraEffectDistance="0.3"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" fillUnitIndex="1" maxDelta="0.2"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
    </fillVolume>
		
	<animations>
        <animation name="toggleCover">
            <part node="cover" startTime="1"  endTime="2" startRot="0 0 0" endRot="95 0 0" />
            <sound template="clackVar4" startTime="1.99" direction="1" volumeScale="1.2" pitchScale="1.6" />
            <sound template="clackVar6" startTime="1.01" direction="1" volumeScale="0.6" pitchScale="1.5" />
            <sound template="clackVar5" startTime="1.01" direction="1" volumeScale="0.6" pitchScale="1.5" />
            <sound template="clackVar6" startTime="1.99" direction="-1" volumeScale="0.6" pitchScale="1.5" />
            <sound template="clackVar4" startTime="1.01" direction="-1" volumeScale="1.2" pitchScale="1.5" />
            <sound template="clackVar6" startTime="0.01" direction="-1" volumeScale="0.6" pitchScale="1.3" />
            <sound template="clackVar5" startTime="0.01" direction="1" volumeScale="0.6" pitchScale="1.3" />
            <sound template="hingeSmall" startTime="1.1"  direction="1"  volumeScale="0.2" pitchScale="0.7"/>
        </animation>
    </animations>
	
	<cylindered>
        <movingTools>            
            <movingTool node="cover" playSound="false">
            </movingTool>            
        </movingTools>

        <movingParts>
        </movingParts>
		
        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>"/>
        </sounds>
    </cylindered>
	
	<workParticles>
        <effect workAreaIndex="1">
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="tineEffect01LinkNode">
                <motionPathEffect textureFilename="$data/vehicles/nordsten/ns3030/tineEffect01Array.dds" numRows="30" rowLength="18" minFade="0.07" speedScale="1" density="0.5" shapeScale="0.4" maxShapeScale="0.4"/>
            </effectNode>
        </effect>
        <particle>
            <node node="dustEmitterShape" refNodeIndex="1" particleType="SOIL_SMOKE" emitCountScale="1.0" />
        </particle>
    </workParticles>
	
	<cover>
        <coverConfigurations>
            <coverConfiguration>
                <cover openAnimation="toggleCover" fillUnitIndices="1" openOnBuy="false"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>

    <sowingMachine fillUnitIndex="1">
        <seedFruitTypeCategories>sowingMachine</seedFruitTypeCategories>
        <needsActivation value="true"/>
        <fieldGroundType value="SOWN" />

        <sounds>
            <work template="DEFAULT_SOWING_WORK" linkNode="0>" />
        </sounds>
    </sowingMachine>

	<turnOnVehicle>
        <sounds>
            <start template="STRAWBLOWER_START" />
            <work template="STRAWBLOWER_WORK" />
            <stop template="STRAWBLOWER_STOP" />
        </sounds>

        <animationNodes>
        </animationNodes>
    </turnOnVehicle>

	<ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <collisionTrigger node="aiCollisionNode" width="1.5" height="2.5"/>
        <needsLowering value="false"/>
        <agentAttachment width="1.5" height="1.7" length="2.7" lengthOffset="-0.25"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-1.6" maxZ="1.1" yOffset="0.3" />
    </foliageBending>

    <i3dMappings>
        <i3dMapping id="Isaria_colli_1" node="0>" />
		<i3dMapping id="Isaria_root" node="0>0" />
		<i3dMapping id="attacher" node="0>0|0" />
		<i3dMapping id="workArea" node="0>0|1" />
		<i3dMapping id="workAreaStart" node="0>0|1|0" />
		<i3dMapping id="workAreaWidth" node="0>0|1|1" />
		<i3dMapping id="workAreaheight" node="0>0|1|2" />
		<i3dMapping id="depthNode" node="0>0|1|3" />
		<i3dMapping id="groundReferenceNode" node="0>0|1|4" />
		<i3dMapping id="effects" node="0>0|2" />
		<i3dMapping id="rotationEffect01LinkNode" node="0>0|2|0" />
		<i3dMapping id="dustEmitterShape" node="0>0|2|1" />
		<i3dMapping id="movingParts" node="0>0|3" />
		<i3dMapping id="isaria_body" node="0>0|3|0" />
		<i3dMapping id="cover" node="0>0|3|0|0" />
		<i3dMapping id="deckel" node="0>0|3|0|0|0" />
		<i3dMapping id="gangschaltung" node="0>0|3|0|1" />

		<i3dMapping id="anaus_hebel" node="0>0|3|0|2" />
		<i3dMapping id="fillUnit" node="0>0|3|0|3" />
		<i3dMapping id="exactFillRootNode" node="0>0|3|0|3|0" />
		<i3dMapping id="fillVolume" node="0>0|3|0|3|1" />
		<i3dMapping id="effects" node="0>0|3|0|4" />
		<i3dMapping id="tineEffect01LinkNode" node="0>0|3|0|4|0" />
		<i3dMapping id="l_rad" node="0>0|3|1" />
		<i3dMapping id="r_rad" node="0>0|3|2" />
		<i3dMapping id="cultivater_coli" node="0>0|4" />
		<i3dMapping id="ai" node="0>0|5" />
		<i3dMapping id="aiMarkerLeft" node="0>0|5|0" />
		<i3dMapping id="aiMarkerRight" node="0>0|5|1" />
		<i3dMapping id="aiMarkerBack" node="0>0|5|2" />
		<i3dMapping id="aiCollisionNode" node="0>0|5|3" />
		
    </i3dMappings>

</vehicle>
User avatar
Kevin_J_Barton
Posts: 94
Joined: Sun Mar 29, 2015 2:38 pm
Location: Wiesbaden
Contact:

Re: LUA call stack ...

Post by Kevin_J_Barton »

Hab es gefunden. Es lag an den wheels.
Post Reply