Skip to content

Commit 7d1de44

Browse files
committed
📚 Asset packs
1 parent 22de73b commit 7d1de44

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed

‎source/terrain-creation/terrn2-subsystem.md‎

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,15 @@ TractionMap = YourMap-landuse.cfg
4747
terrain = YourName
4848
trees&grass = OtherName
4949
objects = YetAnotherName
50+
51+
[AssetPacks]
52+
industrial-objects.assetpack=
53+
fancy-trees.assetpack=
5054
5155
[Objects]
5256
YourMapobj.tobj=
5357
YourMapMoreobj.tobj=
54-
58+
5559
[Scripts]
5660
MyRaceScript.as=
5761
@@ -171,17 +175,30 @@ You can change the gravity in-game using the console command `gravity`.
171175

172176
<span style="color:#BD0058">("String = String" pairs)</span> Sets the names of the users who created the terrain, appears in the terrain selector. You can add multiple lines.
173177

178+
### AssetPacks section
179+
180+
Sets the names of asset packs, ending with `=`.
181+
182+
Asset packs are separately distributed zip files that can include meshes/textures/object files/etc to be used by terrains or vehicles.
183+
184+
An asset pack zip file **MUST** include a text file with `.assetpack` extension containing file info:
185+
186+
```
187+
assetpack_name "Industrial objects"
188+
assetpack_description "Example asset pack"
189+
```
190+
174191
### Objects section
175192

176-
Sets the names of teach terrain object (tobj) file, ending with "=". You can have multiple object files (eg. separate file for trees/grass and another for buildings).
193+
Sets the names of teach terrain object (tobj) file, ending with `=`. You can have multiple object files (eg. separate file for trees/grass and another for buildings).
177194

178195
### Scripts section
179196

180-
Sets the names of AngelScript files associated with the map,, ending with "=". Mostly used for races, see the [Race script generator](race-generator.md) page for more info.
197+
Sets the names of AngelScript files associated with the map,, ending with `=`. Mostly used for races, see the [Race script generator](race-generator.md) page for more info.
181198

182199
### AI Presets section
183200

184-
Sets the name of JSON files containing waypoints for use with the [vehicle AI](../gameplay/vehicle-ai.md), ending with "=".
201+
Sets the name of JSON files containing waypoints for use with the [vehicle AI](../gameplay/vehicle-ai.md), ending with `=`.
185202

186203
## Ogre Terrain Config (.otc)
187204

@@ -677,7 +694,7 @@ Example usage from the [Stunt Rally track pack](https://forum.rigsofrods.org/thr
677694

678695
![road_rot_yxz_example](../images/road_rot_yxz_example.jpg)
679696

680-
#### set_default_rendering_distance
697+
### set_default_rendering_distance
681698

682699
This directive sets the rendering distance of all objects that are defined after it, useful for optimization.
683700

‎source/vehicle-creation/fileformat-truck.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2304,6 +2304,24 @@ Parameters:
23042304
set_managedmaterials_options 1
23052305
```
23062306

2307+
### Assetpacks
2308+
2309+
Asset packs are separately distributed zip files that can include meshes/textures/materials/etc to be used by vehicles or terrains.
2310+
2311+
Asset packs are defined in the truck file using:
2312+
2313+
```
2314+
assetpacks
2315+
myTruckParts.assetpack
2316+
```
2317+
2318+
An asset pack zip file **MUST** include a text file with `.assetpack` extension containing file info:
2319+
2320+
```
2321+
assetpack_name "Extra Parts for my Awesome Truck"
2322+
assetpack_description "Example asset pack"
2323+
```
2324+
23072325
### Flares
23082326

23092327
Flares allow you to add lights to your truck. They work as light sources in OGRE and will illuminate other objects (if enabled in settings).

0 commit comments

Comments
 (0)