Rusted Warfare Mod Workshop
All coursesCreative tools中文

Finish your first two-vehicle squad

Use inheritance for a variant and package art, code and test notes together

Inherit from a neighboring file

guard.ini reads scout.ini through copyFrom, unchanged settings stay inherited, the second vehicle needs its own name, paths are relative to the current INI file

# 继承同目录下的侦察车 / Inherit the scout in this folder
[core]
copyFrom: scout.ini
name: rwa01Guard
displayText: 巡逻护卫车 / Patrol Guard
price: 450
maxHp: 420
mass: 3500

[graphics]
image: guard.png

[projectile_shell]
directDamage: 28

[movement]
moveSpeed: 0.75

Override only the differences

The guard changes health, cost, image, damage and speed, avoid duplicating the whole weapon setup, fix shared behavior in the base file and verify that variants still behave as intended

Make the project your own

Rename the project and its two vehicles, replace both hull images and preserve the light and heavy roles, document how to find them, whether a factory entry exists and the version you tested

Check the archive contents

Check that mod-info.txt, both INI files and every PNG are included, extract into a fresh folder to verify references, load alongside another project to check for internal name collisions

Try it yourself

Add a medium vehicle through inheritance and test all three together

Open interactive lesson and download the companion mod