RoRBook/Sections
From Rigs of Rods Wiki
- Introduction
- Working Environment
- Land-based Vehicles and Basics
- Objects and Texturing
- Aircraft and Winged Vehicles
- Nautical Vehicles and Boats
- Packaging
Hey everyone!
This is a tutorial I put together for the sections area for the .truck files, found here: http://wiki.rigsofrods.com/page/Truck_Description_File#Sections But there isn't really any documentation on it other than just the code box and thought it might be useful to explain a little more on it. I'm still learning how to use it to it's full potential so this may grow over time.
If I have any incorrect information or you would like to add something, please do let me know If you have anything to add, please do :)
The sections can be used for a variety of things in the .truck file.
The easiest things I've found to use it for is:
engine globals~ also to define a different skin/texture description brakes torquecurve managedmaterials...
And I'm sure more, but these are sections I've tested out and they have worked. Lifter has used it for flexbodies, too ( http://forum.rigsofrods.com/index.php?topic=21420.msg190885#msg190885 ). You can also group beams in a "section". For example: You want a vehicle to have different versions, like a flatbed, a wrecker, and a stock version. You make the node and beam structure's base that all the trucks will share. Then in the "sections" part of the truck file, you can define all newer beams ( and nodes too, I think).
Here is the Sections strait from the wiki.
Sections
sectionconfig 0 lowspeed sectionconfig 0 highspeed section 0 lowspeed engine 1000.0, 1500.00, 5000.00, 2.00, 10.850, 9.520, 6.560, 5.480, 4.580, 3.830, 3.02, 2.530, 2.080, 1.740, 1.430000, 1.20, 1.0, -1.0 end_section
section 0 highspeed engine 1000.0, 15000.00, 5000.00, 2.00, 10.850, 9.520, 6.560, 5.480, 4.580, 3.830, 3.020, 2.530, 2.080, 1.740, 1.430000, 1.20, 1.0, -1.0 end_section
Notice the first line: sectionconfig 0 lowspeed.
sectionconfig ~ This tells the game there is a "sections" in the .truck file and will provide a drop down menu in the vehicle selection screen 0~ I'm not sure what this value is for, but I know it has to be " 0 " at all timesThis is something that Thomas said:section 0! it must be 0 at all times!
lowspeed~ This is the name that will appear in the drop down menu like so:
The "lowspeed" can be named anything you want it to, like so:
sectionconfig 0 Stock sectionconfig 0 Blue_Fire sectionconfig 0 LBlue_Fire sectionconfig 0 GreenFire sectionconfig 0 BlueBlack sectionconfig 0 YellowBlack sectionconfig 0 RedBlack sectionconfig 0 GreenBlack sectionconfig 0 BlackWhite sectionconfig 0 BlackOrange sectionconfig 0 BlackNFire
Now after you have your sectionconfig line or lines you can start on the actual section and what you want that version to have that the others don't. Like so:
This is a example using Kitteh's wonderful S10 :D
section 0 Stock managedmaterials ;new_material effect paramete4 6810cUID-S1024 flexmesh_standard 6810cUID-S1024.dds 6810cUID-S1024_dmg.dds 6810cUID-S1024_spec.dds 6810cUID-windows flexmesh_transparent 6810cUID-windows.dds 6810cUID-windows_dmg.dds 6810cUID-windows.dds 6810cUID-S10wheelpimp mesh_standard 6810cUID-S10wheelpimp.dds 6810cUID-S10wheelpimp.dds end_section
Notice the second line: section 0 Stock
The Stock, as defined in the sectionconfig, is what the game will read and will load what is in the section to your .truck .
Now with the sectionconfig and the sections:
sectionconfig 0 Stock sectionconfig 0 Blue_Fire sectionconfig 0 LBlue_Fire sectionconfig 0 GreenFire
section 0 Stock managedmaterials ;new_material effect paramete4 6810cUID-S1024 flexmesh_standard 6810cUID-S1024.dds 6810cUID-S1024_dmg.dds 6810cUID-S1024_spec.dds 6810cUID-windows flexmesh_transparent 6810cUID-windows.dds 6810cUID-windows_dmg.dds 6810cUID-windows.dds 6810cUID-S10wheelpimp mesh_standard 6810cUID-S10wheelpimp.dds 6810cUID-S10wheelpimp.dds end_section
section 0 Blue_Fire managedmaterials ;new_material effect paramete4 6810cUID-S1024 flexmesh_standard 6810cUID-S1025.dds 6810cUID-S1024_dmg.dds 6810cUID-S1024_spec.dds 6810cUID-windows flexmesh_transparent 6810cUID-windows.dds 6810cUID-windows_dmg.dds 6810cUID-windows.dds 6810cUID-S10wheelpimp mesh_standard 6810cUID-S10wheelpimp.dds 6810cUID-S10wheelpimp.dds end_section section 0 LBlue_Fire managedmaterials ;new_material effect paramete4 6810cUID-S1024 flexmesh_standard 6810cUID-S1026.dds 6810cUID-S1024_dmg.dds 6810cUID-S1024_spec.dds 6810cUID-windows flexmesh_transparent 6810cUID-windows.dds 6810cUID-windows_dmg.dds 6810cUID-windows.dds 6810cUID-S10wheelpimp mesh_standard 6810cUID-S10wheelpimp.dds 6810cUID-S10wheelpimp.dds end_section
section 0 Green_Fire managedmaterials ;new_material effect paramete4 6810cUID-S1024 flexmesh_standard 6810cUID-S1027.dds 6810cUID-S1024_dmg.dds 6810cUID-S1024_spec.dds 6810cUID-windows flexmesh_transparent 6810cUID-windows.dds 6810cUID-windows_dmg.dds 6810cUID-windows.dds 6810cUID-S10wheelpimp mesh_standard 6810cUID-S10wheelpimp.dds 6810cUID-S10wheelpimp.dds end_section
Or something a little easier on the eyes:
This is a example of using sections for different skins for non-managedmaterials or a submeshed vehicle
sectionconfig 0 Green sectionconfig 0 Camo section 0 Green globals 1000, 0.0, tracks/aboxcrawler end_section
section 0 Camo globals 1000, 0.0, tracks/aboxcrawler2 end_section
Good luck and have fun! :D
Here are some threads you might find useful as well when using sections: Sections Truck Description File page: http://wiki.rigsofrods.com/pages/Truck_Description_File#sections
Lifter's thread on sections: http://forum.rigsofrods.com/index.php?topic=21420.msg190885#msg190885
This one is a "Sections need help" thread, but there are some good examples: http://forum.rigsofrods.com/index.php?topic=24756.msg224424#msg224424
[[Image:File:Example.jpg]]


Gold
Silver
Bronze