Spring naar inhoud
NLD Community

Join the NLD Discord channel! discord.png https://discord.gg/0WsKGiYeGHJEAI5q
Breaking News: NLD Community maakt een doorstart!

Verlichting error in mod


nbomers

Aanbevolen Bericht

Hallo,

 

Ik krijg wanneer ik mijn verlichting toevoeg in Giants deze error te zien in mijn log ingame:

 

C:/Users/nbomers/Documents/My Games/FarmingSimulator2017/mods/Scania_S580_6x2/Scania_S580_6x2.i3d (1019.14) ms
Warning (Script): Entity 'Real' has invalid type in method 'getLightColor'.
LUA call stack:
  dataS/scripts/vehicles/specializations/Lights.lua (64) : getLightColor
  dataS/scripts/vehicles/specializations/Lights.lua (88) : loadLights
  dataS/scripts/vehicles/specializations/Lights.lua (161) : loadLightSetup
  dataS/scripts/vehicles/Vehicle.lua (631)
  dataS/scripts/utils/Utils.lua (1138) : asyncCallbackFunction

 

Het gaat om richting aanwijzers die strobe gestuurd zijn dit om het effect te krijgen van actieve richtingaanwijzers op mijn nieuwe truck.

 

Ik hoop dat iemand mij de oplossing kan geven om deze error te verwijderen en mijn actieve richting aanwijzers weer werkend te krijgen.

Link naar opmerking
Deel via andere websites

Spoiler

   <lights>
        <low>
            <light                       decoration="0>10|4|0"    lightTypes="0 1" />
            <light realLight="0>10|4|2"                           lightTypes="0 1" excludedLightTypes="3" /> <!--FrontLights-->
            <light                        decoration="0>10|0|0"   lightTypes="0 1"/> <!--BackLights-->
            <light                        decoration="0>13|2|13|0" lightTypes="2"/> <!--WorklightFront-->
            <light realLight="0>10|5|1"   decoration="0>10|5|0"   lightTypes="1"/> <!--HighBeam -->           
        </low>
        <high>
            <light                        decoration="0>10|4|0"   lightTypes="0 1" />
            <light realLight="0>10|4|2"                           lightTypes="0 1" excludedLightTypes="2 3" /> <!--FrontLights-->
            <light realLight="0>10|0|1"   decoration="0>10|0|0"   lightTypes="0 1" /> <!--BackLights-->
            <light realLight="0>13|2|13|1" decoration="0>13|2|13|0" lightTypes="2"  /> <!--WorklightFront -->
            <light realLight="0>10|5|1"    decoration="0>10|5|0" lightTypes="1" excludedLightTypes="2" /> <!--HighBeam-->           
        </high>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
            <state lightTypes="0 1 2" />
        </states>
    </lights>

    
    <brakeLights>
        <brakeLight realLight="0>10|2|1" decoration="0>10|2|0" />
    </brakeLights>
    
    <reverseLights>
        <reverseLight realLight="0>10|3|1" decoration="0>10|3|0" />
    </reverseLights>
    
    <LightAddon drlAllwaysOn="true">
        <strobe decoration="0>13|2|14|2|0|0" realLight="0>13|2|14|2|0|1"   isBeacon="true"  name="flash" sequence="120"     invert="true" />
        <strobe decoration="0>13|2|14|2|1|0" realLight="0>13|2|14|2|1|1"   isBeacon="true"  name="flash" sequence="60"     invert="true" />
        <strobe decoration="0>14|28" realLight="0>14|28" isBeacon="true"  name="flash" sequence="100"     invert="true" />
        <strobe decoration="0>14|29" realLight="0>14|29" isBeacon="true"  name="flash" sequence="50"     invert="true" />
        <strobe decoration="0>10|1|2|0|0" realLight="0>10|1|2|0|1" isBeacon="false" name="BlinkerL" sequence="390" invert="true" />
        <strobe decoration="0>10|1|2|1|0" realLight="0>10|1|2|1|1" isBeacon="false" name="BlinkerR" sequence="390" invert="true" />
        <strobe decoration="0>10|1|2|2|0" realLight="0>10|1|2|2|1" isBeacon="false" name="Warn" sequence="390" invert="true" />
        <strobe decoration="0>10|1|2|3|0" realLight="0>10|1|2|3|1" isBeacon="false" name="Warn" sequence="390" invert="true" />
    </LightAddon>

 

 

Zo ziet het gedeelte van de verlichting er uit in de xml. Eigenlijk precies het zelfde als in de xml van de truck waar ik het afgehaald heb.

Link naar opmerking
Deel via andere websites

  • Master Moderator

heel simpele error, je hebt een object als lamp aangeduid dat geen lamp is ....

 

Warning (Script): Entity 'Real' has invalid type in method 'getLightColor'.

 

vergelijk al je reallight indexen met de lampen @nbomers

 

en moest ik gokken =

 

<light                        decoration="0>13|2|13|0" lightTypes="2"/> <!--WorklightFront-->

 

 

  <light realLight="0>13|2|13|1" decoration="0>13|2|13|0" lightTypes="2"  /> <!--WorklightFront -->

 

 

ik vermoed dat je alles manueel typt in xml  en enkele nummers hebt gemisd ;)

Link naar opmerking
Deel via andere websites

  • Master Moderator

<turnLights>
        <turnLightLeft realLight="0>2|2|0|1" decoration="0>2|2|0|0"/>
        <turnLightLeft realLight="0>2|2|0|2"/>
        <turnLightRight realLight="0>2|2|1|1" decoration="0>2|2|1|0"/>
        <turnLightRight realLight="0>2|2|1|2"/>
    </turnLights>

 

@nbomers

 

wel even de nummers vervangen ;)

Link naar opmerking
Deel via andere websites

Ja klopt, ze staan er nu in alle nummers goed verwezen. Nu testen maar.

10 minuten later toegevoegd
17 minuten geleden zei fa285634:

<turnLights>
        <turnLightLeft realLight="0>2|2|0|1" decoration="0>2|2|0|0"/>
        <turnLightLeft realLight="0>2|2|0|2"/>
        <turnLightRight realLight="0>2|2|1|1" decoration="0>2|2|1|0"/>
        <turnLightRight realLight="0>2|2|1|2"/>
    </turnLights>

 

@nbomers

 

wel even de nummers vervangen ;)

 Enige probleempje is dat ze niet knipperen zoals normaal. Weet jij misschien waar dat aan kan liggen? @fa285634

Link naar opmerking
Deel via andere websites

Gearchiveerd

Dit topic is nu gearchiveerd en gesloten voor verdere reacties.

×
×
  • Maak Nieuw...

Belangrijke Informatie

By using this site, you agree to our Gebruiksvoorwaarden.