Tricycle
Ride tricycles! A rideable tricycle built on the game's motorbike, with bell, squeaks and pedal power. Host spawns it (Alt+T). Everyone in the lobby needs the mod.
By MrRevillo
CHANGELOG
Changelog
0.13.0
- Bell for everyone: the rider's B press goes to the host via the marker (ServerRingBell), the host sends it to all players (MulticastRingBell), every machine plays the same bell. Host makes the rider the marker's owner so their request is accepted. Falls back to a local bell if the events are missing. Config BELL_NETWORK.
0.12.2
- Model credit filled in ("Trycycle" by adityajaiswal9968, CC BY 4.0). README: multiplayer notes (everyone needs the mod, host spawns, bell is local).
0.12.1
- Marker works in single player (spawned, attached, found). Fixed the two checks that logged wrongly: attach check compared Lua wrappers instead of names; "already a trike" used a different key than skin().
0.12.0
- Multiplayer: the host attaches an invisible replicated marker (BP_TrikeMarker, from the pak) to each spawned trike. Every machine with the mod checks for markers once a second and turns the moped they're attached to into a tricycle (mesh, sounds, pedal power, bell). The host uses the same path, so it's testable alone.
- Alt+T only works for the host (a client's spawn would exist only on their machine).
- Known limit: the bell is local - other players don't hear it yet.
0.11.17
- Key box gets the game's very faint dark fill (FILL_ALPHA 0.12). Bell prompt done.
0.11.16
- Bell prompt slightly see-through like the game's (BELL_PROMPT_OPACITY 0.85), key box without fill.
0.11.15
- Bell prompt styled like the game's: key box squarer (lower row, more side padding, smaller corners), bigger gap to "Ring Bell".
0.11.14
- Key box prompt came out unstyled (white block, engine font): finding widgets by name returned nothing in game. Script now walks the widget tree (Border = key box, TextBlocks get the game font).
0.11.13
- Key box styled by the script (rounded box, see-through dark fill, white outline; BELL_PROMPT_KEYBOX), so the Unreal widget only needs the structure. Paste text in dev/WBP_BellPrompt_paste.txt.
0.11.12
- Game font found (Beige_Miracle_Font) and pinned in the config (no more search hitch).
- Key box: widget can be HorizontalBox[ Border "KeyBox"[ Text "KeyText" ], Text "BellText" ]; script styles both texts and centres "Ring Bell" next to the box.
0.11.11
- Text prompt works. Now takes the game's font: searches all text widget types (incl. subclasses) for the "Accelerate"/"Exit Vehicle" prompt; else BELL_PROMPT_FONT; else the first loaded /Game font (all loaded fonts are logged).
0.11.10
- Prompt picture white only (no shadow). Text prompt supported again (own box size BELL_PROMPT_TEXT_SIZE) now that placement works.
0.11.9
- Full-screen test showed white: the widget renders, the picture didn't load. Script now loads T_BellPrompt and sets it on the Image itself.
- Placement in absolute pixels from the viewport size x UI scale (pinning to the bottom-right anchor made it vanish).
0.11.8
- Test build: BELL_PROMPT_PLAIN = true shows the prompt picture without any positioning (fills the screen) - Alt+P never fired.
0.11.7
- Bell prompt as a picture (T_BellPrompt.png, Comic Relief Bold - OFL): text never rendered in game. Placed so its key box lines up with the game's prompt column (BELL_PROMPT_POS/SIZE/ALIGN).
0.11.6
- Bell prompt: widget is in the viewport and visible but draws nothing - likely the engine font (Roboto) isn't in the game. Now copies font + colour from the game's own "Accelerate" prompt at runtime.
0.11.5
- Bell prompt still invisible: log every widget step + IsInViewport/visibility/size. Alt+P recreates it without positioning (test: should appear top right).
0.11.4
- Bell prompt was created but invisible (0x0 size when pinned to the corner): now gets a fixed box (BELL_PROMPT_SIZE) and sits above the game's "Exit Vehicle" prompt.
0.11.3
- Bell prompt: widget class couldn't load - cooked Blueprints only contain "WBP_BellPrompt_C" (the editor asset is stripped). rvlib now also asks for the _C name and re-checks after every attempt.
0.11.2
- Bell prompt: log riding/not riding changes and any error (it showed nothing and logged nothing).
0.11.1
- Bell prompt widget is now just one Text (copy-paste into Unreal); the script pins it bottom right (BELL_PROMPT_POS).
0.11.0
- Bell prompt: "[B] Ring Bell" bottom right while riding a trike (widget WBP_BellPrompt from the pak, see dev/UNREAL_WORKFLOW.md). Config: BELL_PROMPT, BELL_PROMPT_OFFSET, BELL_PROMPT_DIST.
0.10.15
- Real crash cause (probably): bell and crash sounds were loaded by the script but referenced by nothing in the engine, so Unreal's garbage collector deleted them after a while and the next ring played a dead pointer. Each trike now keeps silent "holder" audio components with those sounds set (keeps them alive), and cached sounds are re-checked before every use.
- No more lag on the first bell press: the sounds are preloaded when the trike spawns.
0.10.14
- Crash fix attempt: the crashes always came from a mod sound playing just after the game came back from alt-tab. Now when the game was paused/unfocused (>1 s without ticks), all mod sounds (bell, rolling, squeaks, crash thump) stay off for 3 s (PAUSE_GAP / AUDIO_RESUME_DELAY in the config).
- Bell key debounced (each press arrived twice).
- Pak with the cabbage crash sounds (S_TrikeCrash_01/02).
0.10.13
- Crash thump: when the trike stops very suddenly (hit something), one of two cabbage-hit sounds plays (CC BY 4.0, credited), louder for harder hits. Needs S_TrikeCrash_01/02 in the pak.
0.10.12
- Bell plays as a one-shot at the trike's position (GameplayStatics.PlaySoundAtLocation) instead of our own speakers, which loaded but stayed silent.
0.10.11
- Squeaks confirmed good. Rolling loop a tad quieter (0.18-0.6 instead of 0.25-0.8).
- Bell: log every step (key pressed, nearest trike + distance, ring/error) to find why it's silent.
0.10.10
- Pak with the new wooden-door squeaks.
0.10.9
- Squeak 2 = the full third door opening (7.62-8.85 s, 1.2 s). The rumble at 8.4 s is part of the opening, not a closing thump; closings (heavy ~40 dB thumps) are never used.
0.10.8
- Squeak 2 is a different squeak again (7.55-8.31 s) with a long 0.28 s fade so it dies away before the door thump instead of sounding chopped.
0.10.7
- Squeak: no more time-stretching. The full natural squeak (2.10-3.10 s, 1.0 s, fades out by itself) is used for both pedals; the second squeak ran into the door's closing thump and always sounded chopped.
0.10.6
- Squeaks stretched 2.5x (1.28 s / 1.45 s, pitch unchanged); min squeak interval 0.8 s so they don't cut each other off. Needs reimport + package.
0.10.5
- Longer squeaks (0.73 s / 0.83 s): wider cuts + time-stretched ~1.4x with unchanged pitch. Needs reimport + package.
0.10.4
- New squeaks: two clean opening squeaks from "Old Wooden Door in Scotland Cottage" (CC0), door-closing thumps excluded, 400 Hz high-pass. Needs reimport + package in Unreal.
0.10.3
- Fix bell crash: one speaker per bell sound, created once when the trike spawns; ringing only plays (no SetSound at runtime). Probably also the real cause of the 'horn' crashes in 0.9.x.
0.10.2
- Pak with the re-cut sounds: bells ring out (3-4.5 s), squeaks keep their natural tail.
0.10.1
- Alt+M (dev): spawn a plain, untouched moped to compare with a tricycle. Alt+Y removes those too.
0.10.0
- Tricycles are their own thing: only Alt+T spawns become tricycles; the game's mopeds stay real mopeds (some levels need their speed). REPLACE_ALL_BIKES now defaults to false.
- Known: other players (non-host) don't see spawned trikes as trikes yet.
0.9.5
- The bell now has its own key (B). The moped horn is left completely untouched, because intercepting it kept crashing the game (especially after alt-tab). Old behaviour: HORN_INTERCEPT = true (not recommended).
0.9.4
- Likely fix for crashes after honking: the horn is turned down to 1% instead of 0. At volume 0 Unreal destroys the sound and the moped Blueprint later crashes calling it.
0.9.3
- Horn checked every frame instead of 10x/s (the start of the moped horn was audible).
- Squeaks quieter again (0.25 -> 0.1).
0.9.2
- Fix crash while honking: no more NotifyOnNewObject on every game sound; the horn on our trikes is polled 10x/s, muted (not stopped) and replaced by the bell.
- Two alternating bell speakers, so rings don't cut each other off.
- Squeaks much quieter (0.7 -> 0.25), min interval 0.6 s.
- Re-cut sounds so they ring out instead of being chopped: bells 3-4.5 s with 0.8 s fade, squeaks ~1.1 s (needs reimport + package in Unreal).
0.9.1
- Pak now contains all sounds: 8 bells, rolling loop, 2 squeaks.
0.9.0
- Riding sounds from real recordings (CC BY, credited): rolling loop (volume + pitch follow speed) and two alternating pedal squeaks, one per ~wheel turn, a tad higher pitched when fast (tools/cut_ride_sounds.py).
- Removed the synthesized squeak.
0.8.0
- Bicycle bell instead of the moped horn: horn audio on trikes is muted and one of 8 bell sounds plays (random, slight pitch variation). Sounds cut from a CC0 freesound recording (tools/cut_bell.py). Needs the S_TrikeBell_* sounds in the pak.
0.7.0
- Pedaling feel: engine torque follows a curve - 70% at standstill, fading to 10% at 32 km/h (PEDAL_* settings). Gravity untouched, downhill still fast.
- Logs ride speed (km/h) + pedal factor every 2 s for tuning.
0.6.3
- Fix crash on Alt+T (0.6.0-0.6.2): the 10 Hz LoopAsync timer raced with game-thread Lua. All timers now run on the game thread (rv.Every / rv.After).
0.6.2
- Fix crash right after spawn (0.6.1): engine torque is now changed 2.5 s after spawning, once the vehicle physics run.
- Exhaust/engine re-quieting every 0.5 s instead of 0.1 s.
0.6.1
- Pedal power: moped engine torque x0.35 (ENGINE_TORQUE_FACTOR): slower ramp-up and top speed on flat ground, gravity untouched so downhill is still fast.
- Logs all moped components once (to identify the vehicle system).
0.6.0
- Exhaust smoke hidden; moped engine audio muted (horn kept). Re-applied 10x per second because the moped re-activates them.
- Squeaky pedal sound while riding (generated original sound, tools/make_squeak.py); plays above 40 cm/s, faster pedaling = higher pitch. Needs S_TrikeSqueak_Loop in the pak.
0.5.2
- Textures confirmed in game. Re-tuned placement: Z 57, scale 0.96 (X 10, yaw 270, tilt 8 unchanged).
0.5.1
- Re-cooked pak with "Share Material Shader Code" OFF so the materials carry their own shaders (fixes the grey checkerboard).
0.5.0
- First good-looking ride: placement tuned in game (X 10, Z 62, yaw 270, tilt 8, scale 0.91).
- Known: checkerboard material (shaders), moped exhaust/engine still on, feet use the moped pose.
0.4.7
- Placement from in-game tuning: tilt 12 degrees (wheels level), raised to Z 57.
0.4.6
- Fix: tilt (MESH_PITCH, Alt+Num+/-) rotated around the wrong axis because the mesh is yawed 270 degrees. Now uses the mesh's roll axis = the tricycle's nose up/down.
0.4.5
- Placement from in-game tuning: X 20, Z 47, yaw 270.
- New tilt setting MESH_PITCH, tunable with Alt+Num+ / Alt+Num-.
0.4.4
- Move the tricycle 100 cm back so the seat is under the rider.
0.4.3
- The tricycle is visible in game for the first time.
- Default placement: raised 72 cm (was sunk into the ground) and rotated -90 degrees.
0.4.2
- Confirmed: mesh loads from the pak and the moped gets hidden, but the tricycle wasn't visible.
- Force our part visible; log diagnostics (location, scale, mesh, visible, attach parent) on spawn.
- Alt+Num0: toggle the original moped mesh and log diagnostics.
0.4.1
- Fix: tricycle mesh from our pak wasn't found. LoadAsset only sees the game's own asset registry; now loads mod-pak assets via AssetRegistryHelpers:GetAsset (same as UE4SS BPModLoaderMod).
0.4.0
- First tricycle model in the pak (pak/Tricycle_P.*, cooked with UE 5.6 from the CC BY wooden tricycle).
- The moped's own mesh is hidden and the tricycle is shown in its place (wheels don't spin yet).
0.3.1
- Confirmed in game: Alt+T spawns BP_Moped on the first map.
- Only try to load the tricycle mesh once (0.3.0 retried every 2 s: log spam, possible stutter).
0.3.0
- Uses the game's moped (/Game/Ride/Moped/BP_Moped) as the base: Alt+T loads and spawns it on any map.
0.2.3
- Fix: Alt+U found 2 pawns but printed none (GetPathName unavailable; now uses GetFullName).
0.2.2
- Fix: Alt+U / Alt+T found no pawns at all (FindAllOf ignores subclasses). Now finds every vehicle and player.
0.2.1
- Crash hunting on the beach map: log a line before every risky step, no parent-class walking on live actors.
- Alt+T: 5 s cooldown on the heavy class search (caused the lag on every press).
- Alt+U: log each class path before reading more about it.
0.2.0
- Bike detection only accepts real vehicles (no more Motor Oil).
- Shows the CC BY tricycle model in place of the bike once the pak is built; REPLACE_ALL_BIKES option.
- Alt+U lists vehicle classes and bike bones; Alt+Numpad live mesh tuning.
- Dev builds also log to logs/rvmods.log; version shown in the log.
0.1.0
- Initial scaffold (prototype, uses stock game assets as placeholders).