Repository navigation
Tutorials 5 AI Pathfinding and Custom Modes
Part of the EOD Recomp Modding & World Editor Tutorials · Previous: Tutorial 4: Cars, Wrecks & Scatter Brush · Next: Tutorial 6: 4K Textures, Skyboxes & NASCAR Cars
In this tutorial, you will use the Road (ILIN) tool to drag, split, and branch the 60-byte AI racing-line nodes (*.ild) with automatic tangent (dirX/dirZ) and lap-length recalculation, force Free Roam on any race layout, turn on AI Auto-Drive and Free Cam, and configure three custom game modes: Tag, Cat & Mouse, and Fat Kid / Juggernaut.
In SLUS_209.10, AI cars follow 60-byte nodes in .ild (ILIN v27) files loaded by f_00137A68 into 0x003CD190 (oval.ild, fig8.ild, track.ild, bw_*).
- Click
Roadin the top toolbar to display the 3D directional racing-line ribbon and yellow/magenta diamond waypoint handles. - Click any diamond node to inspect its coordinates, tangent vector (
dirX, dirZat+8, +12), and segment length (segLenat+24) in the Road Node (ILIN) Inspector (Page 2 of the Right Panel). -
Reshape the AI Line:
-
Drag (
Whitehover): Drag any diamond node's Red (X) or Blue (Z) gizmo arrow to reroute AI drivers over your new jump ramp or around an infield bus barricade. -
Split (
Cyanhover): Click the ribbon segment between two nodes (or clickSplit Segment) to insert a new intermediate waypoint. -
Branch / Join (
Greenhover): Pull out or link a side-line node (+36header offset /+56sidePtr) to create a split passing lane or joker lap.
-
Drag (
-
Automatic Tangent & Lap-Length Recalculation:
- Raw
ILINfiles storedirX/dirZ,segLen, cumulativedist, and 3 header lap-length floats (+12/+16/+20). If left un-updated, AI cars brake or swerve erratically. - On save/compile (
Ctrl+Shift+SorF5),tools/formats/ilin.pyandtrk.compile_ildautomatically recompute all unit tangents, segment lengths, cumulative distances, header lap lengths, and the pointer fix-up table (+44)!
- Raw
Open Races → Custom Race & AI Editor… (or click ⚙ Custom Race in the toolbar):
-
Force Free Roam on Any Layout: Set Launch Mode to
Free Roam (Unbounded Sandbox)(or pressF5) to load any event layout (Jump Race,Figure 8,Gauntlet) without lap limits or wrong-way resets. -
AI Auto-Drive (
☑ AI Auto-Drive Player Car): AttachesAICarUpdate(0x001A2D20) to the player's car so you can watch how the AI navigates your customILINspline hands-free! -
Free Cam & 8K Photo Mode (
P11): Cycle all 10 gameplay & tracksideTVcameras (Triangle/EOD_CAMERA_KEYS) or pause to fly the free camera (orbit, roll, FOV, DOF, hide HUD) and export7680×43208K PNG screenshots in< 2 s.
- Open
DUNDAS.TRKorANOKA.TRKand runCollision → Flatten Interior Barriers (Keep Outer Perimeter)to open the entire infield. - Scatter dirt ramps (
W_Jump4) and hay-bale chicanes across the infield withB. - In
⚙ Custom Race+F1 → Gameplay: SelectSurvival(save_ring) orDemolition Derby, enableAI Vengeance(0x003C4190bit0x20—forces every AI car to hunt and T-bone the player!), setAI Speed Scale = 1.15x, and drive a nimbleMOTHorDIGITagainst heavy AI muscle cars.
- Open
GILROY.TRKorAFTON.TRKin theRoad (ILIN)tool and pinch the racing line through a narrow gauntlet lined with Ghost-Placed (P) School Buses and concrete walls (wall2). - In
⚙ Custom Race: ChooseNo-Rules Race,5 Laps,12 AI(mixing heavyBUS/HEARSEblockers with fast Compacts), and enableManual Recovery Onlyso getting knocked off a bridge requires driving back out of the ditch!
- Open
BAXTER.TRKorEAGAN.TRK, place tall dirt launch ramps around the arena, and lower barn roofSOBLboxes (Target Top Above Ground = 2.5 m) so agile cars can jump onto rooftops. -
Play as the Juggernaut: Pick
BUS (School Bus)(790), enableInvincible Humans (GodMode)(L1+R1+Square),Chicken Fight,Chicken Blast Force = 3.0x(75,000 N), andTurbo Scale = 1.5x. -
Survive the AI Juggernauts: Pick
MOTH, turn Invincibility off, enableBattle Bots(armed with AI chicken launchers via0x00227EE8), and survive against 3 explosive-chicken-firing School Buses!
Next Tutorial: Tutorial 6: Live 4K Textures (HOSTTEX), Skybox Swapping & Importing NASCAR: Dirt to Daytona Cars
Test Drive: Eve of Destruction (SLUS_209.10) Static Recompilation & Creation Kit · Target ELF SHA-256: 4f60053dc141365f5ae50737622f8408be30ced513b4c109427c926461f2e2ae · Repository · Tutorials · Architecture · Plume Renderer · File Formats · Symbols · World Editor
- All Tutorials (1–7 Overview)
- 1. Zero-Friction ISO Setup & Controls
- 2. Your First Track Mod & PIE
- 3. Deleting Fences & SOBL Barriers
- 4. Cars, Wrecks & Scatter Brush
- 5. AI Pathfinding (
ILIN) & Custom Modes - 6. 4K Textures, Skyboxes & NASCAR Cars
- 7. Packaging & Sharing
.eodmodMods
-
Architecture Overview
- EE, VU1, GS, IOP, Memory Map & PS2 Limits
-
Native Plume Renderer
- Stages R0–R8, VIF Decoder, Classic/Modern & Gates
-
File Formats Encyclopedia
- All 24 FourCC Formats, 72 Archives & 7,329 Assets
-
Decompiled Subsystems & Symbols
- Addresses, HLE Hooks,
EOD_DIFF, Physics & AI
- Addresses, HLE Hooks,
-
World Editor & Creation Kit
- ADRs 01–08, JTBD Matrix, Fishbones & Toolchain