Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.35

4,308 bytes added, 15:26, 10 July 2019
Curve items
== Curve items ==
TBA=== Curve model definition === Every single definition in the '''curve_model.sii''' file must be in the following format: <pre> ---------- Internal Data Type | | ------ Data Type Identification | | | | ----- User Name | | | v v vcurve_model : curve.2 { category: "Walls" # Category name: "Warehouse wall" # Curve model name model_desc: "/model/warehouse/tiled_wall.pmd" # Model Path dynamic_lod_desc[]: "/model/warehouse/tiled_wall_lod1.pmd" # LOD1 Model Path dynamic_lod_dist[]: 50 # LOD1 switch distance in meters dynamic_lod_desc[]: "/model/warehouse/tiled_wall_lod2.pmd" # LOD2 Model Path dynamic_lod_dist[]: 100 # LOD2 switch distance in meters  variation[]: "var_name1 | center1:2 | center2:5" # Part variation definition variation[]: "var_name2 | center1, mapcenter2:5" start_part[]: "strt1|strt1a" # Start parts list per variation start_part[]: "strt2|strt2b" end_part[]: "end1" # End parts list per variation end_part[]: "end2|end3|end4" smooth_surface: false # Smooth surface color_variant[]: "red: 255, 0, 0" # Color variants color_variant[]: "blue: 0, 0, 255" vegetation[]: "tree_a : vegetmodel.cityalley.smalltree02a | 5:8 | -2:2 | 0.5:1.5 | 0:360" vegetation[]: "tree_b : vegetmodel.cityalley.smalltree02b | 5:8 | -2:2 | 0.5:1.5 | 0:360"  fixed_step: 20 # Use given fixed step between parts fixed_inner_start[]: strt1 # Use given start part for "inner" curve (definition per variation) fixed_inner_start[]: strt2  fixed_inner_end[]: end1 # Use given end part for "inner" curve (definition per variation) fixed_inner_end[]: end2}</pre> * '''Internal Data Type, Data Type Identification''' - must stay intact and are obligatory.* '''User Name''' - must be UNIQUE for every single railing in the game (even across all dlcs, mods etc.). This name is token and can have up to 12 characters from the following set:_0123456789abcdefghijklmnopqrstuvwxyz. The best practice is to add some suffix to the name identifying the dlc or mod to avoid name conflicts.* '''Category''' - Category name used for navigation simplification in building item properties dialog. String value.* '''Name''' - Building scheme name. String value.* '''Model Path''' - Path to the model file (*.pmd).* Maximum Dynamic LOD count is 3* '''LOD Model Path''' - Path to the model file used for the low poly LOD (*.pmd).* '''Variation''' - Center part variation definition** <pre>Variation name (token) | part_name [,part_name ...] : weight [ | part_name [,part_name ...] : weight]</pre>* '''Start part''' - Array of all valid parts which can be used as the start* '''End part''' - Array of all valid parts which can be used as the end* '''Smooth surface''' - Perform smooth interpolation of the geometry normals. Default value: false* '''Color variants''' - User defined vertex color multiplication factor used during buildings item geometry generation (optional)* '''Vegetation''' - Instanced vegetation definition has following format:** <pre>Instance name (token) : vegetation model unit name | min_width : max_width | min_offset : max_offset | min_scale : max_scale | min_rot : max_rot</pre> === Automatic wire generation === The curve model can contain locators for automatic wire generation. These locators have the following naming convention: Locator name: '''w_X_Y_Z''' where: * '''w_''' - prefix* '''X''' - wire type** '''f''' - flat wire without any drop distance** '''t''' - LOW wire drop, with flat wire thickness (thin wire)** '''l''' - LOW wire drop** '''m''' - MEDIUM wire drop** '''h''' - HIGH wire drop* '''Y''' - wire line index 0 based* '''Z''' - unique suffix suffix can be any character Examples: <pre>w_h_0_a, w_h_0_b, w_f_1_0</pre>
== Mover/walker unification and improvement ==
7
edits

Navigation menu