descr_mount.txt
This page covers what REX/M2EX changes in descr_mount.txt. Everything not listed here works like vanilla. For model pools (models block), see Mount and animal variation.
elephants
Section titled “elephants”rider limit
Section titled “rider limit”riders for class elephant now accepts 1 to 127 (vanilla: 15). Every rider needs its own rider_offset line, so riders 20 means 20 rider_offset lines.
But do not forget: a very high rider count means fewer elephants per unit.
general_offset
Section titled “general_offset”Vanilla has no seat for a general or captain on an elephant. If the unit has one, he takes the second rider_offset slot and the crewman who would have sat there is dropped.
The optional general_offset line gives him his own seat instead:
general_offset <x>, <y>, <z>- It only works for
class elephant. - It must be placed directly before the
ridersline. Anywhere else is a parse error. The only exception is adriver_offsetline, which may sit betweengeneral_offsetandriders. - The coordinates work the same as
rider_offset: x is sideways, y is height and z is forwards/backwards. ridersstill only counts the regular crew.- If you leave the line out, nothing changes and the general takes slot 2 like in vanilla. Existing mods don’t need to touch anything.
example
Section titled “example”type war elephant class elephant model elephant radius 2.5 ... tusk_z 2.5 tusk_radius 0.75 general_offset 0.0, 1.335, 2.25 riders 3 rider_offset 0.0, 1.635, 1.45 rider_offset 0.0, 1.45, 0.5 rider_offset 0, 1.45, -.25
The first elephant of a general’s or captain’s unit now carries the driver, both crewmen and the general at general_offset, so 4 men in total. The other elephants in the unit carry their usual 3. The same mount without the general_offset line would carry the driver, the general (in slot 2) and one crewman.
how the general is placed
Section titled “how the general is placed”- Slot 1 is always the driver. He sits at the first
rider_offset, or atdriver_offsetif the mount has one. Withdriver_offset ..., model undefinedthere is no driver, and slot 1 is an ordinary crewman. - The general goes on the first elephant of the unit, at
general_offset. - Any other officers in the unit are placed the vanilla way, in the rider slots from slot 2 onwards.
wrong placement
Section titled “wrong placement”These fail to load:
riders 3general_offset 0.0, 1.335, 2.25 <- must come before ridersrider_offset 0.0, 1.635, 1.45...rider_offset 0, 1.45, -.25general_offset 0.0, 1.335, 2.25 <- must come before riderswhat it’s good for
Section titled “what it’s good for”- Howdah commanders: put the general on a raised seat or at the front of the howdah without losing a crewman.
- Big war elephants and towers: together with the higher rider limit you can build towers full of archers with a commander on top.
- Spotting the general: he always sits in the same, distinct spot, so he’s easy to find in battle.
driver_offset
Section titled “driver_offset”The driver of a chariot or elephant is normally the man in the first rider_offset slot. The optional driver_offset line gives the driver his own seat and, if you like, his own model:
driver_offset <x>, <y>, <z>[, model <descr_model_battle entry>]- It works for
class elephantandclass chariot(including scorpion carts). - Elephants: place it directly before
general_offset. Without ageneral_offsetit goes directly beforeriders. It is also accepted betweengeneral_offsetandriders. - Chariots: place it directly before the
ridersline. - The coordinates work the same as
rider_offset: x is sideways, y is height and z is forwards/backwards. - The driver is an extra man on top of
riders, just like the general atgeneral_offset.ridersand therider_offsetlines only count the other crew, soriders 3with adriver_offsetmeans a driver plus 3 riders, with 3rider_offsetlines. - Units using the mount get one more man per mount to fill the driver’s seat. An elephant unit with 12 soldiers and 4 elephants in
export_descr_unit.txtbecomes 16 men in game. Keep the soldier count inexport_descr_unit.txtas the crew only. - Because of the driver’s seat,
ridersforclass elephantaccepts 1 to 126 with adriver_offset. - If you leave the line out, nothing changes. Existing mods don’t need to touch anything.
The model part is optional:
| line | driver looks like |
|---|---|
driver_offset 0.0, 0.0, 0.75 |
the unit’s normal soldier model |
driver_offset 0.0, 0.0, 0.75, model barb_peasant |
the barb_peasant entry of descr_model_battle.txt |
driver_offset 0.0, 0.0, 0.75, model undefined |
there is no driver at all (see below) |
model nullworks the same asmodel undefined.- An unknown model name is a load error.
- In REX the driver is animated with the skeleton of his own model. If its
descr_model_battle.txtentry has rider skeletons (skeleton_chariot,skeleton_elephantand so on, as general models do), the one for the mount is used. Otherwise its mainskeletonis used, and the driver plays its idle, walk and run animations as the mount stands, walks and runs. - In M2EX the driver keeps the unit’s animations: the model is fitted onto the unit’s skeleton by bone name.
- If the driver dies, the next rider takes his seat as the new driver with his own, normal model.
no driver
Section titled “no driver”With model undefined (or model null) the mount has no driver. It is not an invisible man: there is simply nobody in the driver’s seat.
- The x, y and z of the line are ignored.
ridersand therider_offsetlines work as in vanilla, and every rider is ordinary crew. Nobody plays the driving or mahout animation.- The rider at the first
rider_offsetbehaves like the others too: he turns to face his target and sits at the same height. In vanilla that seat belongs to the driver, who doesn’t turn; the mount turns instead. - Units don’t get the extra man per mount, so the soldier count in
export_descr_unit.txtis used as is.
example
Section titled “example”type war elephant class elephant model elephant ... tusk_radius 0.75 driver_offset 0.0, 1.635, 1.45, model barb_peasant general_offset 0.0, 1.335, 2.25 riders 3 rider_offset 0.0, 1.635, 0.75 rider_offset 0.0, 1.45, 0.5 rider_offset 0, 1.45, -.25
The elephant now has a mahout drawn with the barb_peasant model in his own seat, plus three crewmen with the unit’s normal model.
riders
Section titled “riders”clamp_riders
Section titled “clamp_riders”In vanilla, riders stay upright when their mount tilts, for example when it walks up or down a slope. The optional clamp_riders line makes the riders tilt together with the mount. They still sit at their usual position on it.
clamp_riders- It must be placed directly after the
water_trail_effectline. If the mount has nowater_trail_effect, put it directly afterbouyancy_offset. clamp_riderson its own (orclamp_riders true) turns it on.clamp_riders falseorclamp_riders 0turns it off.- If you leave the line out, nothing changes. Existing mods don’t need to touch anything.
- It works in REX. M2EX accepts the line, but it has no effect there, because M2EX riders already tilt with their mount.
example
Section titled “example”type war elephant class elephant model elephant ... bouyancy_offset 2.0 water_trail_effect <effect name> clamp_riders ...
water trails
Section titled “water trails”With the modern battle water (water_ex true), water_trail_effect also picks the mount’s ripples and foam trail in descr_water_effects_ex.txt. If that file has an effect_set with the same name, the mount uses it while wading and swimming. Otherwise it uses the shared horse_water_trail and horse_swim_trail sets.
water_trail_effect elephant_water_trailSee descr_water_effects_ex.txt.
reloading without restart
Section titled “reloading without restart”descr_mount.txt is re-read every time a battle loads, so you can edit it while the game is running and see the changes in the next battle (or by restarting the current one). Mod files are respected, like on normal startup. This works in both REX and M2EX.
what is reloaded
Section titled “what is reloaded”bouyancy_offset, water trail effect, clamp_riders
y_offset(M2EX only)- all horse settings
- all elephant settings, including
riders,rider_offset,general_offsetanddriver_offset - all chariot and scorpion cart settings, including
driver_offset, LOD models and ranges
what still needs a restart
Section titled “what still needs a restart”Like descr_model_battle.txt, existing entries keep their place, so a few changes can’t be picked up:
- new mounts: a new
typeentry is skipped and an error is written tosystem.log.txt. - changed
class: the entry is skipped and an error is written tosystem.log.txt. - changed
modelof a horse, camel or elephant: the old model stays in use. - added or removed
driver_offset: the unit sizes (one extra man per mount) only change after a restart.
Renaming a type counts as a new mount.
If the file has a parse error, reloading stops at that entry. Entries before it are already updated, entries after it keep their old values. Fix the error and load a battle again.