Giants Editor Tutorials, Mods & Social Network

Lights – XML Guide

Learning about FS17 Lights and How they work

So lights is  vary Big Topic, It needs its own room . Ill do my best —- LAMBO

First Lets tell the game Engine that you have lights. We do this in the ModDesc.xml

lights2

Hit save and close it down!

 

 

Located In Vehicle’s XML file 

Vocabulary Time!

  • <lights></lights>
    •  This section controls how the lights on your vehicle respond to the area.
    • <low>
    • The <high> and <low> are to be Identical.
    • You don’t have to have a realLight, u can just use Decorations or vice versa
    • <low>
      <light decoration="0>14|7|0" lightTypes="0"/>    
      <light realLight="0>14|0|0|7|0|0|0|0" decoration="0>14|0|0|7|0|0|0|1" lightTypes="1"/>
      <light realLight="0>14|20|0|0|0|0" decoration="0>14|20|0|0|0|1" lightTypes="1"/>
      </low>
    •  <high>
       <light decoration="0>14|7|0" lightTypes="0"/>
       <light realLight="0>14|0|0|7|0|0|0|0" decoration="0>14|0|0|7|0|0|0|1" lightTypes="1"/>
       <light realLight="0>14|20|0|0|0|0" decoration="0>14|20|0|0|0|1" lightTypes="1"/>
       </high>
  • Decoration
    •  The decoration attribute is the index path to the corona object for your light
    • lights3
  • 0>? —Index/ID TAG
    • This a index to where in the i3d file the desired selection can be found. ID Tag
  • <brakeLights>
    •  <brakeLights>
       <brakeLight decoration="0>14|7|1"/>
       </brakeLights>
  • <turnLights>
    • Sometimes you see the realLight= code is in there. 
    •  <turnLightLeft realLight="1>7|0|1" decoration="1>7|0|0"/>
    •  <turnLights>
       <turnLightLeft decoration="0>14|7|2"/>
       <turnLightRight decoration="0>14|7|3"/>
       </turnLights>
  • <reverseLights>
    • Pretty self-explainable , go in reverse and these lights come on. Usually White
    •  <reverseLights>
       <reverseLight realLight="1>6|1" decoration="1>6|0"/>
       </reverseLights>
  • <beaconLights>
    • speed= how fast they Spin
    • filename= Fs17 offers an assortment of generic beacons that this Links to, you could use your own custom Beacons and set this to the location of that i3d. 
    • When you use giants beacons, ($data) you use a transform group and place it where you want the beacon to show up.
    •  <beaconLights>
       <beaconLight index="1>9" speed="0.015" filename="$data/shared/beaconLights/beaconLight02.i3d"/>
       <beaconLight index="0>7|0" speed="0.015" filename="$data/shared/beaconLights/beaconLight02.i3d"/>
       <beaconLight index="0>7|1" speed="0.015" filename="$data/shared/beaconLights/beaconLight02.i3d"/>
       </beaconLights>
  •  fakeLight
    • A fake light offers no real illumination to the scene
  •  lightType
    • integer value that lets the game engine know which light on the vehicle this one is. 
    • • 0: Front light • 1: Back work light • 2: Front work light • 3: Headlight
  • <states>0 1 2</states>
    • Have seen two ways its been wrote, each offers different configurations of lights being on.
    •  <states>
       <state lightTypes="0"/>            Just 0 will be on      click
       <state lightTypes="0 1"/>     Light types 0 & 1 will be on   click
       <state lightTypes="0 1 2"/>     All Lights will be on   click
       </states>
    • Just this Light decor would be on after the first click
    • <low><light decoration="0>14|7|0" lightTypes="0"/> </low>
  •  realLight
    • This attribute is the index path to an actual light object in the I3D file.lights

EXAMPLE:

Now Lets see it all together now with no color code.
 <lights>
<!--to be adjusted manually-->
 <low>
 <light decoration="0>14|7|0" lightTypes="0"/>
 <light realLight="0>14|0|0|7|0|0|0|0" decoration="0>14|0|0|7|0|0|0|1" lightTypes="1"/>
 <light realLight="0>14|20|0|0|0|0" decoration="0>14|20|0|0|0|1" lightTypes="1"/>
 </low>
 <!--to be adjusted manually-->
 <high>
 <light decoration="0>14|7|0" lightTypes="0"/>
 <light realLight="0>14|0|0|7|0|0|0|0" decoration="0>14|0|0|7|0|0|0|1" lightTypes="1"/>
 <light realLight="0>14|20|0|0|0|0" decoration="0>14|20|0|0|0|1" lightTypes="1"/>
 </high>
 <!--to be adjusted manually-->
 <states>0 1 2</states>
 </lights>
 
 <brakeLights>
 <brakeLight decoration="0>14|7|1"/>
 </brakeLights>
 
 <turnLights>
 <turnLightLeft decoration="0>14|7|2"/>
 <turnLightRight decoration="0>14|7|3"/>
 </turnLights>

Do you Know How to See your Lights?

lights

Right-click and navigate to Show/click lights | Do the same for Selectable

 

Select A Category

Most Mods | ATV’s | Buildings | Cars | Combines | Forestry |HEAVY EQUIPMENT | CONSTRUCTION | LOADERS & EXCAVATORS | Maps | MILITARY | Mining | MONSTER TRUCKS | Motocross | Motorcycles | Off-roading |Placeables |Scripts | Skidsteers | Snow | Tools | Tractors | Trailers | Useful Mods | Vans | Volvo | UNCATEGORIZED | Trucks | XML | WIP

Some Modding Links

Error Trouble-Shooting: | Modding 101 | Modding Basic | How To | Blender 3D | Convert Mods | Courseplay | Gameplay | Errors | GE Tutorials | Tutorials

 

 

Advertisements
Advertisements
%d bloggers like this: