Comprehensive modding repository, custom gamemodes, weapons, mutators, and decompiled engine reference for Mobile Forces (Rage Software, 2002 — Unreal Engine 1.5 hybrid).
To build mods, run tests, and allow AI coding agents to reference the engine accurately, this repository must be cloned directly into your root Mobile Forces game directory:
<SteamLibrary>/steamapps/common/Mobile Forces/
│ Tracked in this repo:
├── AGENTS.md <- Always-on AI agent rules (Quick Rules)
├── .agents/rules/ <- Detailed engine guide split by topic + caveman response style
├── .agents/tools/maptool/ <- Scripted map building in Python: T3D export/survey, editor macro runner (maps 10)
├── .agents/tools/upkg.py <- Reads package tables (.u/.umf/.utx/.uax/.umx): exports, imports, classes vs sources, who uses a package
├── CoopMode/ KOH/ TugGame/ ZombieGame/ <- Custom gamemodes
├── Molotov/ PredatorMissile/ SeekerMines/ SentryGun/ Totem/ TripLasers/ <- Custom weapons & items
├── ArmedAPC/ <- Custom vehicles
├── README.md, LICENSE, .gitignore
│
│ Local only (not tracked):
├── Core/ Engine/ Rage/ RageWeapons/ RageGame/ ... <- Decompiled base game classes (section 2B)
├── arenaMode/ battleRoyale/ mutPack/ ... <- Decompiled third-party packages (section 2D)
├── MF-updater/ <- Separate repository (section 2A)
├── Maps/ Textures/ Sounds/ Music/ <- Game assets
└── System/ <- UCC compiler, game binaries, configs (.ini) and compiled packages (.u)
- UCC Make Requirements: The UnrealScript compiler (
System/UCC.exe make) requires package source directories (<PackageName>/Classes/*.uc) to exist directly in the game root. - Engine Reference for Developers & AI Agents: Having the decompiled core packages (
Core,Engine,Rage,RageWeapons,RageGame, etc.) in the root enables human coders and AI agents (Antigravity, Cursor, Claude, Copilot) to inspect exact engine variables, replication rules, and native functions without guessing. - Integrated Tooling: Gives immediate access to
MF-updaterandSystem/binaries.
Steam installs the game into a directory with a space: 'Mobile Forces'. To prevent path-escaping issues in shells or tools:
cd "<SteamLibrary>/steamapps/common"
ln -s "Mobile Forces" MobileForcesMF-updater is a separate, independent repository (github.com/fistodul/MF-updater) that is listed in .gitignore and not committed into MF-mods.
- It is a Python/Bash tool used to download and synchronize official and community fast-download assets (maps, textures, sounds, and server binaries) directly into your game folder.
- To set it up in your game root:
See
git clone https://github.com/fistodul/MF-updater.git
MF-updater/README.mdfor standalone updater usage and fast-download server configuration.
Decompiling the base game generates hundreds of .uc files across the core engine packages (Core, Engine, Rage, RageWeapons, etc.). To handle this cleanly, *.uc is globally ignored in .gitignore:
- Prevents Copyright Pollution: Commercial base game sources are kept local and not committed to git.
- Eliminates Git Clutter: Prevents
git status, diff viewers, and commit logs from being flooded with thousands of unmodified engine classes while you develop.
To give yourself and your AI coding agents (Antigravity, Cursor, Claude) full visibility into the engine hierarchy, native formulas, vehicle physics, and replication logic, you should decompile the base game .u packages once after installation:
Open each of these packages from System/ in the Mobile Forces editor, UE Explorer or WOTgreal, and export it into <Package>/Classes/:
Core Engine Editor UWindow Fire IpDrv IpServer UBrowser RageGfx RageEffects RageWeapons Rage RageGame RageMenu RageBrowser
Every class in these packages has its script, so a full export gives one .uc per class (Rage has 169, Engine 104).
Don't use
UCC.exe batchexportfor this. It stops onCore,Engine,Editor,IpDrvandRagewithAssertion failed: Class->ScriptTextbefore writing any file, so those five, the most useful ones, come out empty.
Once decompiled, the base game sources are available locally:
Core/Classes/: Low-level Unreal objects, primitives, and math.Engine/Classes/:Actor,Pawn,PlayerPawn,EnginePhysical,Inventory,Weapon, network replication.Rage/Classes/:RagePlayer, vehicles (Vehicle,Car,Buggy), zones, loadout crates.RageWeapons/Classes/:RageWeapon,AdrenalineShot,Grenades,TripBombs, weapon animations.RageGame/Classes/:RageDeathMatch,RageTeamGame, captains, beacons.
Only these packages are developed in this repository; their .uc files are whitelisted in .gitignore:
- Gamemodes
ZombieGame/: Infection gamemode with custom zombie classes, nemesis mechanics, and melee weapons.TugGame/: Tug of war team gamemode.KOH/: King of the Hill, multi-point domination.CoopMode/: Coop mode built on CTF.
- Weapons & items
PredatorMissile/: Player-guided nuclear missile terminal.SeekerMines/: Drone mine with autonomous tracking.SentryGun/: Deployable defensive auto-turret.TripLasers/: Directional laser tripwire explosives.Molotov/: Grenade that leaves a burning fire area.Totem/: Tactical restoration stim & passive cheat-death item.
- Vehicles
ArmedAPC/: APC whose roof gunner aims a heavy machine gun (ArmedAPC) or rocket launcher (ArmedAPCRocket) turret with the camera.
Other source folders in the game root, such as arenaMode/, battleRoyale/, mutPack/, TurboCars/, MoBall/, jeep/, boat/, deagle/, grenLaunch/ and vote*/, are decompiled community packages, not part of this repository. They're useful as reference.
- Changes to them are not version-controlled, since
*.ucis ignored outside the whitelist. - Recompiling one (e.g.
arenaMode, which is inEditPackages) produces a new package GUID. Every server and client then needs that exact.u; clients with the original package get a version mismatch.
Before compiling a new mod, register it in System/MobileForces.ini under [Editor.EditorEngine].
Important: Packages compile sequentially from top to bottom. Always add new mods at the bottom of the
EditPackageslist:
[Editor.EditorEngine]
EditPackages=Core
EditPackages=Engine
EditPackages=Editor
EditPackages=UWindow
EditPackages=Fire
EditPackages=IpDrv
EditPackages=IpServer
EditPackages=UBrowser
EditPackages=RageGfx
EditPackages=RageEffects
EditPackages=RageWeapons
EditPackages=Rage
EditPackages=RageGame
EditPackages=RageMenu
EditPackages=RageBrowser
...
EditPackages=ZombieGame
EditPackages=TotemUCC will only compile a package if its compiled .u binary does not already exist in System/. Always remove the old binary before compiling:
Linux / Wine:
rm -f System/<PackageName>.u && wine System/UCC.exe make -nobindWindows (PowerShell):
Remove-Item .\System\<PackageName>.u -ErrorAction SilentlyContinue
.\System\UCC.exe make -nobind(Use -nobind to prevent DLL binding issues during automated compilation).
Run rapid test matches directly through Wine or the terminal:
Test a custom gamemode:
wine System/MobileForces.exe mf-polar?game=ZombieGame.ZombieGame?mutator=mutPack.AddWeapsCompile and immediately test in one command:
rm -f System/ZombieGame.u && wine System/UCC.exe make -nobind && wine System/MobileForces.exe mf-polar?game=ZombieGame.ZombieGameEvery mod folder in the root follows the standard Unreal package structure:
MyMod/
├── Classes/ # UnrealScript source files (.uc)
│ ├── MyModGame.uc
│ └── MyModWeapon.uc
├── Textures/ # .bmp / .pcx textures imported via #exec
└── Models/ # 3D meshes / skins imported via #exec
Because *.uc is ignored globally by default to suppress decompiled engine noise, git will not track your new mod's UnrealScript files automatically.
To make your mod visible in git status and tracked by version control, add a whitelist exception to the bottom of .gitignore. Only *.uc is ignored inside package folders, so a mod's Textures/ and Models/ are tracked without extra rules:
# Whitelist your mod in .gitignore:
!MyMod/**/*.ucOnce added, running git status will cleanly show only your mod's files ready to be committed:
git status
# Untracked files:
# MyMod/Classes/MyModWeapon.uc
# MyMod/Textures/my_icon.bmpIf your weapon needs a custom HUD icon:
- Save artwork as a Windows 3.x 8-bit Paletted BMP (64×64 pixels, 5,174 bytes).
- Palette index
0must be pure blackRGB(0, 0, 0)(used as transparent mask byFlags=2). - The 20px Bottom Clearance Rule: In
RageHUD, the ammo quantity badge ("1", "2") covers the bottom ~20 pixels of each inventory slot. Position the icon artwork iny = 4..43(centered aty ~ 24), leaving 20-21 pixels of transparent space at the bottom. - Import in your weapon class:
#exec TEXTURE IMPORT NAME=MyIcon FILE=Textures\my_icon.bmp GROUP=Icons MIPS=OFF Flags=2 defaultproperties { WeaponIcon=(X=0,Y=0,W=64,H=64,t=Texture'MyMod.Icons.MyIcon') }
Agent documentation is split so coding assistants only load what they need:
- AGENTS.md: short always-on Quick Rules with an index of the guide files. Each rule points to a guide section.
- .agents/rules/: the full reference, split by topic (
architecture-build,networking,hud,loadout-consumables,gotchas). These use Antigravity rule frontmatter withtrigger: model_decision, so Antigravity loads one only when the task matches its description. Other agents find them through the index inAGENTS.md. Antigravity's rule editor limits adescriptionto 250 characters and the content to 12,000; keep:and quotes out of descriptions, since the editor shows them literally. - .agents/rules/caveman.md: the official always-on rule from the caveman plugin for terse chat replies (
trigger: always_on; code, commits and docs stay normal).
The guide covers:
- Network replication realities (
ROLE_SimulatedProxy,bReplicateInstigator,ServerMove, local-player checks). - Player-guided actors with client-to-server function calls (
PredatorMissilepattern), and debugging through logs. - Single-use consumables lifecycle (
bDestroyWhenEmpty, the humanFinish()bug). - Loadout zone & crate triggers (
RW.Reload()trap). - Engine traps: weapon state
Ticks shadowing yours, freezing players, server-onlyLevel.Game/Level.PawnList, vehicles living inLevel.VehicleList. - UnrealScript compiler quirks & optimization (
GiveTo()canceling timers, cast caching, short-circuiting).