EventLab, the event creator from Forza Horizon 5, brought to Forza Horizon 2 on PC (Azimuth). Place the game's props anywhere in the open world, build layouts with a free-flying editor, share groups of props as prefab files, drive your own routes, and race them against the clock.
EventLab is a mod for the FH2 Mod Platform.
[!NOTE] EventLab is a work in progress. Drivatars racing your routes is a first version, and custom models and pictures of props aren't in yet.
The EventLab hub
Pause > COMMUNITY: the FORZA HUB tile is now EVENTLAB (the PORSCHE tab's FORZA HUB tile is left as it is). It opens the hub:
- BLUEPRINTS: start a new, empty FREE ROAM LAYOUT (the other kinds are coming later).
- The hub: MY EVENTS (the big tile), CREATE ROUTE and PREFABS.
- MY EVENTS: your saved events and layouts. Choosing one puts it in the world. If it has a route, you can race it (Enter Event, the game's own race) or Edit event; Back takes it away again. X deletes one (it asks first; its file and picture are deleted for good), Y renames its file (with the keyboard).
- CREATE ROUTE: drive a route of your own (see below).
- PREFABS: your prefabs and ones others have shared (put their files in the prefabs folder), in a grid with their pictures. Choose one and the Blueprint Builder starts holding it. View searches them by name or creator (it opens the keyboard), Y renames one. A prefab or layout you save records you as its creator (your gamertag as Azimuth signs you in, or
[EventLab] Creatorin EventLab.ini).
The Blueprint Builder
The Blueprint Builder is EventLab's editor, made to work like FH5's. Open it from CREATE ROUTE (View), or while driving with F9 or LB + RB + D-pad up. The camera leaves the car and flies. The crosshair in the middle of the screen is where things go; a hand shows in it when it's over one of your objects. The top left says the mode (CREATION MODE or SELECTION MODE) and the camera, the top right your blueprint's OBJECTS budget and how many props are selected.
Cameras (L3, or MORE OPTIONS): FREE CAM flies (left stick level, right stick look, RT / LT up and down). ORBIT CAM turns round a point on the ground: the left stick moves the point, the right stick turns round it, RT / LT bring the camera nearer or further.
Menu opens the library: tabs between LB and RB (Ramps & Platforms, Shapes, Roads & Racing, Walls & Fences, Signs & Flags, Gameplay, Decoration, Lighting, Car Park, Vehicles, Industrial, Urban, Rural, Natural, Festival, My Prefabs, World Objects; FH2 has no Dinosaurs, Hot Wheels or HALO), a strip of objects (d-pad or left stick; hold to go faster), A takes the one in the frame.
Holding an object:
| Controller | Does |
|---|---|
| A | Place it |
| B | Back (an object you picked up with Edit goes back where it was) |
| View | MORE OPTIONS |
| LT / RT | Lower / raise it |
| D-pad left / right | Rotate |
| D-pad up / down | Pitch |
| LB / RB | Roll |
| R3 | Reset its turn and height |
After you place something, Y clones it (the tip says so). Fences, walls, barriers and road pieces snap end to end to one of the same kind when you put them near it (attachment nodes).
With nothing held (CREATION MODE): A edits the object under the crosshair (picks it up), X deletes it, Y clones it. Y over the game's own world (a festival hall, a ramp, a stage) copies that object; see World objects below. R3 switches to SELECTION MODE: A adds the object under the crosshair to the selection, hold A for a sphere that grows (let go to add everything in it), X removes it, and Y saves the selection as a prefab (PHOTO, then its name with the keyboard). Edit, clone and delete act on the whole selection when the object under the crosshair is part of it.
View opens MORE OPTIONS: Step Rotation and its Step Amount, Camera Mode, Camera Speed (slow, medium, fast), Attachment Nodes, and a Time of Day and Weather to preview while you build (they go back when you leave).
B leaves: SAVE AND EXIT saves your blueprint (MY EVENTS lists it) and takes its PHOTO, or EXIT WITHOUT SAVING. From a route, it asks RESUME ROUTE.
Props stay where you put them: when you drive away and come back, they're back in place. Gameplay, roads-and-racing and natural props are knocked over by cars; the rest stand solid.
Creating a route
Choose CREATE ROUTE in the hub: the menus close and you're back on the road. Drive. Where the car is when you start is the start line. The top right shows ROUTE LENGTH and the checkpoints.
| Controller | Keyboard | Does |
|---|---|---|
| X | Insert | Place a checkpoint: the car stops and the camera pulls back; the gate starts four cars wide, centred on the car, its two red flares at its ends. The left stick slides it across, LT / RT make it narrower / wider (from a car's width to the road's; the camera pulls back as it widens), A confirms, B cancels |
| Y | The game's rewind: the route after where you rewind to is erased, and its checkpoints with it | |
| View | B | The Blueprint Builder |
| Menu | Home | ROUTE OPTIONS |
ROUTE OPTIONS: Place Finish Line (a sprint ends here), View Map, Blueprint Builder, Delete All Objects, Redraw Route (back to the start line), Quit (your changes go).
When you leave the route creator (Quit, or done with the event page), what it put in the world goes with it: the props you placed, the gates' flags and flares. Your saved event is in MY EVENTS. A test drive brings you back to the event page when it's over. The Blueprint Builder's EXIT WITHOUT SAVING takes away what you placed too.
Drive back across the start line after two checkpoints and 300 m, and it's a circuit.
Then SAVE ROUTE shows your route's outline, its name and length: A names it (the keyboard; the game's race shows the name) and saves it, B goes back to driving it. ROUTE CREATION COMPLETE then offers Create event with this route, Edit route and Quit.
The event page
EVENTLAB has your event's EDIT NAME, DESCRIPTION, CREATE/CHOOSE ROUTE (drive it again), EVENT SETTINGS (laps, Drivatars, time of day, weather), CUSTOM FLYER (a PHOTO for MY EVENTS), TEST DRIVE and PUBLISH, with your route's preview and the flyer (your name PRESENTS, the event's name). PUBLISH is locked until you finish a test drive; publishing puts the event's files in fh2-mods\EventLab\published, ready to share. MY EVENTS' Edit event opens the page for a saved event.
While you're creating (the Blueprint Builder or a route), the traffic and the free-roam Drivatars are taken away and none join the roads (they come back when you're done), so nothing knocks your props about or hits your car; Nitro System's NOS is off, and FH2 ANNA is hidden.
Racing a route
In MY EVENTS, choose an event, then Enter Event: the game's own solo race on your route. The menus close and it starts where you are (it needs Extra Options with its Show All Events switched on):
- EVENT OPTIONS: car class, Drivatar count, grid order, weather, time of day and laps.
- Your car.
- The race: a grid of Drivatars, your checkpoints, and the game's results.
It's a standalone race, not tied to any championship, so your career isn't touched. The race shows your event's name, and when it's over the event's props and route are taken away. Drive the route again in CREATE ROUTE if it was made before EventLab recorded the line you drive, so the Drivatars can follow it off the road too.
The event page's TEST DRIVE is the same game race with no Drivatars, you alone on your route. Reach the finish and PUBLISH unlocks; after the results you're back on the event page. During the game's race only its own checkpoint flares show (EventLab's are off until it's over).
World objects as props
In the Blueprint Builder, point the crosshair at something in the world (a festival hall, a stage, a grandstand) and press Y: EventLab copies it and you hold the copy; A puts it down wherever you like. Copied objects are in the library's WORLD OBJECTS tab as "World object ", and they're saved with your layouts and prefabs like any prop.
A copy collides like the original: you can drive into a copied hall, or up and over a copied structure. Many small festival pieces (towers, lamps, flags) have no collision of their own in the game, so their copies are decorations you drive through. Copies are drawn anywhere on the map, even far from where the original stands.
Pictures
Saving a blueprint or prefab in the Blueprint Builder (and the event page's CUSTOM FLYER) switches it to PHOTO, a photo mode of EventLab's own (the game's photo mode isn't used, so there's no Horizon Promo). Its panel shows the camera's altitude, zoom, pitch, yaw and roll, as the game's does:
| Control | Does |
|---|---|
| Left stick, right stick, LT / RT | Fly and look, as in the Blueprint Builder |
| RB / LB (hold) | Zoom in / out (up to 8x) |
| D-pad left / right (hold) | Roll |
| D-pad down | Zoom and roll back to normal |
| View | Hide the panel and bar |
| A | Take the photo |
| B | No photo (the picture is the view as it was saved) |
MY EVENTS and PREFABS show the photo. Finishing a route takes a picture of the road ahead, until you take a flyer. A picture is saved next to its layout or prefab as <name>.swatchbin, the game's own picture format, so share it with the .json.
Sharing prefabs and layouts
Everything is saved as small text files (JSON) in your Azimuth folder:
fh2-mods\EventLab\layouts\: your layouts and their routes (MY EVENTS).fh2-mods\EventLab\prefabs\: your prefabs (PREFABS), with their pictures (.swatchbin).fh2-mods\EventLab\models\: the world objects you've copied (their shapes). Share these with a layout or prefab that uses copies.
To share a prefab, send its .json file (Discord, a website). To use one, put it in the prefabs folder. Props are saved by name, so they work for everyone.
Installing
- Put
EventLab.dllin thefh2-modsfolder of your Azimuth folder (the one withazimuth.exe). - EventLab needs the FH2 Mod Platform (
DWrite.dllnext toazimuth.exe), a version with the FORZA HUB tile for mods (made for EventLab, not yet in a platform release). - Optional: an FH2 ANNA with its
set_blockedinterface (version 7) hides ANNA while you create; older ones carry on as before.
Settings
fh2-mods\EventLab.ini:
| Setting | Default | Does |
|---|---|---|
[Place] Prop | GEN_OBJ_TrafficCone_Medium | The prop F7 puts ahead of the car (Shift+F7 takes the last one away) |
[Place] Ahead | 8 | How far ahead of the car, in metres |
[Snap] Spacing | 1.0 | Attachment nodes' spacing, times the prop's size |
[Props] ResetRadius | 80 | A knocked-over prop goes back to its place once you're this far away (metres) |
[Props] Wake | 0 | 1: props fall and settle as they're made (thin ones may topple) |
[Editor] FovAxis | v | h if the selection's markers sit beside the props |
[Race] Drivatars | 5 | How many Drivatars join a race (0: a time trial on your own) |
[Race] Solo | 1 | 0: hide Enter Event |
[EventLab] Trace | 0 | 1: more detail in platform.log |
The keyboard keys of the Blueprint Builder and route mode can also be changed on Pause > Settings > MODS.
Building
You need CMake, Ninja and llvm-mingw. The FH2 Mod Platform is a submodule:
git clone --recursive <this repository>
cmake -S . -B build -G Ninja -DCMAKE_TOOLCHAIN_FILE=fh2-mod-platform/cmake/mingw-w64-x86_64.cmake -DCMAKE_BUILD_TYPE=Release
cmake --build build # build/EventLab.dll
tools/deploy.sh copies the build into the game's fh2-mods. tools/test/ has the in-game tests (a virtual Xbox pad, ViGEmBus and vgamepad). docs/design.md has how it works, and what's known about the game.
Credits
- Playground Games: Forza Horizon 2, and EventLab in Forza Horizon 5.
- FH2 Mod Platform.
- WreckingBall, ANNA Drone Mode, FH2 Mouse & Keyboard and Extra Options: what's known about the game's props, cameras and Drivatars.
License
MIT.
