Skip to content

rac1-native 0.8.0: mods, the open engine, Daino's Arena, Vulkan by default and lighting batch 4

Choose a tag to compare

@daino-selvatico daino-selvatico released this 12 Nov 19:38
· 26 commits to main since this release

Mods are here, and the frame is shorter

0.8.0 is the release of mods. A mods/ folder in front of the disc's files lets you swap textures and sounds, a Mods menu turns each mod on or off, and level mods add whole new levels that the ship flies to, with their own geometry, music and objects. A mod can carry native code (the mod SDK, now at ABI 19), and the open engine behind it grows to match: sessions with checkpoints, sections joined by portals, other planets' worlds, bosses, grind rails, Clank, Giant Clank and the hoverboard. Daino's Arena (examples/night-arena) is the one complete example: an arena in a lava lake, built in Blender, with championships, a last wave of 110 enemies and a Giant Clank round. Also new: Vulkan is now the default renderer, @Anya-Thoughtmane's lighting batch 4 covers every level, the frame at the default 4:3 is 17 to 41 % shorter, and there are Quick Select Rings, movie subtitles, a Bug Fixes page and fixes from the 0.7.0 reports.

We are open to mods, and this is a first version. Level mods and the SDK work, but they are young: expect rough edges, and please report them. The mod support will be revised for 1.0, the fully native version we are building (#145), which replaces the game's memory and the moby offsets with a typed API: we already know that mods made now will very likely need changes to work with the final version. Daino's Arena comes with the game as an included mod: an example of what the current SDK can do. The rest of the game is not affected: everything modern stays optional, and Graphics: Original is still the original's picture. 0.4.0 was played through to the end. Expect some bugs and glitches, and please keep the reports coming!

Updating from 0.7.0? Read this first.

  • Keep your disc image where it was. This update regenerates part of the code from your disc, so the setup needs the image once more: the launcher uses the one you chose, and ./setup.sh (setup.cmd) finds it again or asks for it. The files already extracted (assets/disc/) are not extracted again.
  • Vulkan is now the default renderer. Your 0.7.x preferences are read as "Renderer never chosen" once, so the game plays Vulkan in a window, and falls back to OpenGL by itself when Vulkan cannot start (the log and Options > Display > Renderer say why). To go back, set the row to OpenGL in Options > Display. On Linux the setup needs glslc (the shaderc package) to compile the Vulkan shaders, and says so if it is missing; on Windows the private toolchain installs it. If you later go back to 0.7.x, it reads the new auto setting as OpenGL.
  • Daino's Arena comes ready to play. The setup installs it into your mods/ folder, composes it with your disc and builds its code: no Blender or Python tools needed. It has code, so it starts off: Options > Mods, turn Daino's Arena on, confirm its code (Cross twice) and restart; then it is on the ship's planet list, under Custom Levels. A mods/night-arena you made yourself is left as it is (the setup's log says so).
  • The mod SDK is at ABI 19, and mods made before 1.0 will very likely break when 1.0 lands (#145). If you write mods, read The mod SDK first.
  • The development channel follows dev (#141). The update check on the Development channel now counts the commits on dev, and an update there checks out dev; Stable and release updates are unchanged.
  • Graphics: Enhanced with Lighting: Original is a new choice (#138): the original game's light and shadows with the other enhancements on top. Preferences from 0.8.0 that use it read as Lighting High in 0.7.x.
  • Movie subtitles are optional and off. If you want them, the setup can make them from the disc's own sound tracks with speech to text (./setup.sh --movie-subtitles, asked once by an interactive setup); nothing is made or downloaded otherwise.
  • Nothing else needs doing: your saves, settings and the rest of your options carry over.

Known issues

Nothing in particular: the open reports are being looked at as usual. The big work in progress is 1.0, a 100 % native version of the game (#145), built beside the 0.x releases.

Thanks

First of all, again, a huge thank you to @Anya-Thoughtmane:

  • Lighting batch 4 (and 4.1): most levels rebalanced and every level marked more fully, with the areas and details the earlier batches could not reach (#144).
  • The Windows specifications in the platforms page: the minimum, recommended and maximum machines for Windows players.
  • The testing and the reports all along: the long bug threads (#136), the Pokitaru and Gaspar lighting regression that led to two fixes (#144), the development channel that did not follow dev (#141), the Clank controls (#129), the Cut Content request for the "Insomniac water" (#139), and the triage of everything new.
  • The 1.0 discussion (#145, #156): the offer to test every stage, and the notes on CPU use, lighting, water and particle effects and on the game's frame pacing, which we keep in mind for the stages ahead.

Thank you so much, Anya.

Thanks also to everyone else who reported, tested and helped in the issues since 0.7.0 (4 November), most active first:

  • @SoraKazooie24, for the Steam Deck reports: the Hydrodisplacer faucet that kept the water on (#131), the HUD in the hoverboard races and the music that kept playing after quitting a race (#132), the Gaspar tunnels' glitches (#133), the ledge and Pokitaru reports (#130, #135) and the notification that came late (#134).
  • @palmerdarrell90-cpu, for the failed update of a development build (#142) and the Pokitaru and Gaspar screenshots that made the cause easy to find (#143, #144).
  • @SaloD37, for the Platinum disc report that found its title sounds and menu texts off (#137), and for testing the fix.
  • @nhnsn2, for the Kerwan artifacts report and the patient tests and logs on a Radeon RX 9070 (#106).
  • @thunderwolfhi-stack, for the Windows setup failing on a missing library (#140).
  • @EidolonEntropy, for the follow-up on the Windows build on a non-NTFS drive (#126).
  • @supergameromegaclank (#82, the ship reticles at 16:9), @AlryFireBlade (#74, the shadows during Giant Clank's arena) and @B-Nerd (#99, the launcher's dark theme), whose earlier reports are fixed in this release.

Highlights

  • Mods: a mods/ folder, texture and sound swaps, a Mods menu, level mods, native plugins, and Daino's Arena as the example.
  • The open engine: sessions, sections, other planets' worlds, bosses, rails, Clank, Giant Clank and the hoverboard for mods.
  • Vulkan is the default renderer, with a safety net to OpenGL.
  • @Anya-Thoughtmane's lighting batch 4, and Graphics: Enhanced with the original's lighting (#138).
  • A shorter frame: 17 to 41 % at the default 4:3, a cheaper widened view, a faster game frame.
  • Quick Select Rings, a Bug Fixes page, movie subtitles, a high precision sound mix.
  • Many enemies at once in a mod, a crash with about 110 of them fixed.

Mods and the open engine

  • Mods (first version): a mods/ folder next to assets/, one folder per mod with a mod.json. A mod's disc/ files are read instead of the disc's, and its textures/<hash>.png replace the game's textures in the modern renderer. Options > Mods turns each one on or off, and a "Mods on" line shows while any is. A modder's guide takes you from a texture mod and a .vag swap to sharing a mod. See Mods.
  • Level mods: a mod can add a level the ship flies to, with a planet picture of its own, its geometry (made in Blender), its music (WAV, Ogg or VAG, stereo too), sounds, objects and rails. The setup builds it from the mod's files and your disc. A level can run on Veldin's code or on Kerwan's, Eudora's or Kalebo III's, with that level's enemies.
  • The mod SDK (ABI 19): a native plugin gives a level its behaviour: objects with their own classes, hits and damage, triggers, the HUD, the camera, the vendor, the weapons, Kalebo III's enemies, saves from a plugin, and the HUD's width. See The mod SDK.
  • Sessions: a death no longer loads the level again. Ratchet is back at a checkpoint and everything else stays, so a mod can be a long challenge; a save brings you back to its checkpoint.
  • Sections and portals: a level made of parts, each with its own collision, sky, music and lights, joined by portals with no loading, and a section can be put back as at its first entry (section_reset, fresh).
  • Other planets' worlds: a section can be a game planet's world, drawn and played as on the planet, with its enemies on their own code, its bosses (the Snagglebeast in Umbris's cave), its camera code, and Gemlik's ship. Your own grind rails can run through it.
  • Grind rails and a set-piece kit: rails from Blender curves, Magneboots walkways, fades, camera control, hazards, objects that carry Ratchet along a path.
  • Hero modes: Clank, Giant Clank and Kalebo III's hoverboard (free outside a race) on any level, with their own cameras. Giant Clank works on a mod's own geometry, and hero_energy reads and refills his energy bar.
  • More music: music_track lines and calls, kept through sections and deaths.
  • Many mobys at once: a crash with about 110 enemies in a level is fixed, and the limits (about 300 alive, about 100 drawn) are logged and documented.
  • Fixes in the open engine: weapons and equipment no longer left in play after a death, a saved game loaded inside a session no longer crashes a planet's world, Umbris's lava and boss camera, Batalia's rail camera, Rilgar's race camera, the screen fades across an ultra-wide screen.

Daino's Arena

  • An included mod, an example of what the current SDK can do. Ready to play: installed by the setup (see "Read this first"); turn it on in Options > Mods and fly there from the ship. Rebuilding it from Blender is only for changing it.
  • An arena in a lava lake on Kalebo III's code, made in Blender, with the game's own lava, its enemies, and grind rails if you own the Grind Boots (a test rail and a course of three lanes).
  • Two championships (15 and 50 rounds), waves of Kalebo III's robots with bombs from the sky, flame vents and weapon limits; Assalto Finale, ten rounds with the enemies of other planets and a last wave of 110 at once; Autoscontro, ramming enemies from the hoverboard; Zona calda, a wandering electrified ring; Clank Gigante, a round as Giant Clank crushing a swarm; and La grande fuga, a grind course that ends with an escape rail through the worlds of Quartu, Batalia, Rilgar (its hoverboard race) and Umbris (the Snagglebeast's cave).
  • The music "Arena Fight", and "Overworld" by Daino Selvatico (CC BY 4.0). A planet picture and a view on the ship's map, and its texts in the game's five text languages. See its README.

Graphics (optional; with Graphics on Original the picture is unchanged)

  • Vulkan by default, with a safety net: every Vulkan 1.3 device is tried, best first, then OpenGL; a start that crashed or a lost GPU sends the next starts to OpenGL until you choose the row again. The pipelines are cached between starts, and the validation errors are fixed. See Vulkan.
  • Graphics: Enhanced, Lighting: Original (#138): the original's lighting and drop shadows with the other enhancements on top; the rows that need the sun are greyed with a help saying why.
  • Widescreen in the space fights (#82): the target reticles, the radar and the missiles follow the widened view and the HUD setting, and a help message wider than 4:3 is drawn whole.
  • Water Reflections: no more flickering line under Pokitaru's far islands or along the shores on Medium (RT) and High (RT), and Low's far sea mirrors the sky.

Lighting (optional)

  • @Anya-Thoughtmane's lighting batches 4 and 4.1: most levels rebalanced, every level marked more fully (#144).
  • A lava material for the ambient particles (#136), a per-level strength for the sun rays (#121), every tie texture listed and markable in the debug menu's Textures tab, and a moby that the game hides no longer casts a sun shadow (#74, a likely cause).

Gameplay and controls

  • Quick Select Rings (Advanced, 1 or 3): three rings as in the later games, the left one on L1 / L2 and the right on R1 / R2, edited on the pause menu's Quick Select page. New Game's Modern turns them on.
  • Bug Fixes (Options, off by default): fixes of the original game's own bugs, each its own row. First two: the race music after quitting Rilgar's hoverboard race (#132), and the Hydrodisplacer faucet that kept the water on (#131).
  • Movie subtitles (Options > Language, off): made from the disc's own sound tracks at setup, hand-editable; the launcher has Movie subtitles, Make movie subtitles and Install subtitle pack.
  • Exit in the main menu, in the game's own style. Cut Content: Kerwan's citizens play a better idle (#136). Clank and Giant Clank strafe and aim like Ratchet (#129).
  • Hoverboard: L2 and R2 are the board's tricks again with Movement = Strafing or RAC 3 (#28), so the Tricky skill point can be earned; the Magneboots walkways work with the modern aiming (#136).
  • More 1.02 rows: the later build's cutscene, Aridia sand shark, hoverbike and Rilgar race fixes, and two more Gameplay rows.

Audio

  • Sound > Mix: High Precision (Original by default): the voices, volumes, reverb and master volume mixed in float, with a look-ahead limiter instead of clipping, also in 5.1 / 7.1. Only the output samples change.
  • 5.1 / 7.1: the few world sounds the game plays without a pan, and the ambience beds tied to the camera, are placed around the listener.

Performance

  • The default 4:3 frame is 17 to 41 % shorter (Kerwan 3.8 to 2.4 ms, Kalebo III 3.8 to 2.2, headless), then a quarter less busy on the renderer's thread again: the game's own world passes tell the renderer what they drew, so it no longer decodes it a second time. The picture and the game are unchanged.
  • The widened view: the second moby run draws only the mobys 4:3 leaves out (the frame 3 to 6 % shorter at 16:9, LOD Original), and its shadow run is 18 to 29 % shorter at LOD High.
  • The game's own code takes 27 to 34 % less time a frame, and a 16:9 frame at LOD High 16 to 18 % less. The MRP's chain reader and the texture uploads are cheaper, and the world's cull, the tfrag lighting, the drop shadows and the sky are written by hand from the original routines, all proved to give the same game state.
  • The loading screen's flight no longer runs the mobys' skinning.

Launcher and setup

  • The Development channel follows dev (#141).
  • The Linux launcher has a dark theme (#99), the launcher's Settings have the subtitle options and Enable debug tools.
  • Windows setup: "unable to find library -lmsvcrt" is fixed: the setup checks the C runtime package's files and installs the missing ones again (#140, #88).
  • On Linux and Windows the setup requires glslc for the Vulkan shaders and warns when no Vulkan driver is installed.

Fixes

  • Gaspar: the lava torn across the sky down in the cave (#144): a hair's difference between the game's matrix and the frame's was blown up into points tens of thousands of units away.
  • Pokitaru at Level of Detail Maximum: a flat shadow across the whole level (#144): an object the game keeps out of sight was drawn past the far plane.
  • Windows: a build error in the SDK's near / far field names (#142).
  • Platinum disc (PAL 2.00) (#137): the menu's sounds and texts were wrong, and a level's start cleared the wrong bytes.
  • Long freezes are gone: before the main menu with Corrected Texts on (20 to 30 s), and when a level loads on Vulkan with another program using the GPU (up to 40 s).
  • Hoverboard races: the bottom bar stays whole with a HUD wider than 4:3 (#132).
  • The Japanese voices' boot logo movie plays in step again.
  • A few pixels of foliage drawn differently from one run to the next on a Radeon in a widened view, Vulkan's shadow bias on mobys, and Kill Ratchet no longer crashing when Clank is the hero (#136).

Debug tools (--debug-tools)

  • The Profiler tab shows the right frame rate without the overlay, and its CSV splits the workers' time into parts.
  • The free hoverboard no longer falls through the ground at speed and slides along walls (#120), and the Textures tab's last column is no longer cut (#120).

Work in progress

  • 1.0, fully native (#145): no translated code and no emulated PS2 memory, a typed mod SDK. It is built beside the 0.x releases, which go on with fixes, graphics, audio and enhancements.
  • Mods: the SDK will change at 1.0, and more of the game's content will be reachable from a mod.
  • The 1.02 fixes and Cut Content: more of each to come.
  • Vulkan as the default needs trying on more GPUs; reports are welcome.

Installing or updating:

  • With the launcher (Windows and Linux): download rac1-launcher.exe or rac1-launcher-linux-x64 from this release's assets, open it, click Install and choose your disc image. It keeps the game, and itself, up to date. Each launcher has a .sha256 file beside it to check the download.
  • From the source: git clone https://github.com/RAC-Native/rac1-native-game.git, then ./setup.sh --iso /path/to/your/ratchet.iso (setup.cmd on Windows; on macOS python3 tools/setup.py, see Metal). To update a clone: git pull, then ./setup.sh (or setup.cmd), or Update now from the in-game notice. See Setup.

Source only, as always: the game is built from your own disc (NTSC-U SCUS-97199, or PAL SCES-50916 version 1.00 or 2.00), and no release contains the game. Full list of changes: CHANGELOG.md.