Windows Oni vs. Mac Oni
- For a comparison of Win/Mac Oni with PS2 Oni, see Oni (PlayStation 2).
There are no major gameplay or content differences between the Windows and Mac versions. However, there are major differences in file format and minor differences in scripting functionality that modders should be aware of.
Game data files
The most visible difference from Windows Oni to Mac Oni is the presence of .sep files in the Mac GameDataFolder. Small changes were also made to the format of SNDD and TXMP resources. These changes were made to meet certain needs on the Mac side. Due to the fact that Mac Oni was finished after Windows retail Oni but before the Windows demo was made, the addition of .sep files automatically carried over to the Windows demo (and OniX, since it is based on this final version of the engine). To illustrate what sort of level data files you'll find in the GameDataFolder:
| Windows retail | Mac retail, Mac + Windows demo, OniX |
|---|---|
To learn about the differences in which resources are stored in these files between Windows and Mac, read OBD:Raw and separate file formats § File storage.
Level logic
The contents of the IGMD folders are exactly the same on Windows and the Mac, except for tctf_ii (CHAPTER 13 . PHOENIX RISING). When the Mac version of Oni was gold-mastered, these changes had been made in the logic of the boss battle:
- Differences in tctf2.bsl (prevents Shinatama from assuming combat stance when lasers are triggered and turrets begin firing)
- Differences in tctf_ii_cutscene.bsl (prevents Griffin from being throwable through the force field)
These updated BSL files are supplied to both Windows and Mac users of the Anniversary Edition for consistency's sake.
Windows exclusives
Data format
There are no major features of the game data that are only available in Windows Oni except an extended header for SNDD (sound data) which isn't actually taken advantage of. TXMP (texture data) also differs slightly, with an extra field found on the Mac side, but this is a runtime field which doesn't materially matter.
BSL
- Windows Oni can turn the BSL boolean li_center_cursor on/off, whereas this behavior is hardcoded to "true" on Macs.
- The BSL boolean ai2_debug_localmove_lines.
Daodan DLL
It's probably safe to say that all players these days use the Daodan DLL with Windows Oni. The Daodan confers these exclusives not found in the latest Mac Oni application:
- Improved input handling for mouse and keyboard.
- Support for multibyte languages such as Chinese.
- The name of a newly-acquired weapon is printed at your feet when you pick it up.
- New BSL commands for math, game characters, and output, listed here.
OniX
OniX is currently Windows-only though it will come to Macs in the future. OniX at present has fewer features than the last build of Oni for Intel Macs (see below) but it runs on modern machines, which sadly Mac users cannot say about the Intel Mac build since support for 32-bit apps was dropped from macOS in 2019. OniX also supports HDPI and high refresh rate displays while the Intel Mac build does not.
Mac exclusives
The original version of Oni for the Mac did not contain any notable bug fixes or niceties except that it could present dialog boxes at startup to pick your active monitor and to set your key bindings. The Omni Group build for Mac OS X did not add any niceties on top of this, and lost the dialogs for key binding and display picking.
However the build of Oni for Intel Macs fixed many issues and restored the display picker. The "Bug fixes" section of that article contains a full list of fixes compared against the current state of Windows Oni as patched by the Daodan DLL, including the following two that have not been reproduced by the Daodan DLL or OniX:
- Lens flares shining through objects or, alternately, being hidden properly but hurting performance.
- Crashes from missing textures, missing level files, and excessive particle classes.
- Aiming reticles not being stretched in widescreen resolutions.
The major caveat with the Intel Mac build is that, being 32-bit, it cannot run on a version of macOS past 10.14 Mojave.
Bigger textures
Intel Mac Oni supports 1024x1024 textures, whereas the Daodan DLL only allows up to 512x512 in Windows, although in practice this isn't much of an advantage because modders generally do not go out of their way to make bigger textures just for Mac players.
BSL
Any BSL commands left in a text file with the name bsl_config.txt alongside the Oni app will be run upon level load. This is equivalent to using the global folder in IGMD, which works in both Windows and Mac Oni.
Sounds
All of the Mac sounds are in 22.05 kHz, as opposed to the Windows data which contains 46 sounds in 44.1 kHz. Why is this good? Because the Windows EXE plays 44.1 kHz sounds at half-speed, assuming they are 22 kHz. The main thing affected by this are some quiet ambient electrical noises, so it doesn't do much harm. But since Bungie West caught the issue for the Mac release, Mac Oni plays those sounds at the correct pitch – except that the sound effect for an impact against the force shield is pitched up 2x from Windows for a reason explained here.
Unique
- The mouse speed can be set with mouse_acceleration (0.1-1.0).
- The name of a weapon will display when it is equipped if chr_show_weaponid is set to 1 (a similar feature that comes through the Daodan DLL will show for all players, not just in Developer Mode).
- You can see the name of a texture by setting am_show_texturename to 1 and pointing to a texture while holding a weapon with an active laser sight.
- Macs have a few probably-useless variables for graphics left over from the debugging days at Bungie: debug_font_cache, gl_disable_dxt1, gl_disable_packed_pixels, and gl_mipmap_offset.
Improved
The function chr_location can take either the AI's name or the AI's index number on Macs, but only the AI's index number on Windows.
Functional
The following commands and variables seem to work on Macs but not in Windows:
- You can see attack extents by passing an animation name to the chr_showextent command (with the chr_showextent_globals variable set to 1). You can see attack extents with the chr_showextent_globals variable set to 1 by watching characters attack (or by passing an animation name to the chr_showextent command).
- These variables can also be useful for modders: ai2_showastar, am_hit_everything, am_show_axes, character_name_distance, patrolpath_name_distance, show_characters, show_flags, show_patrolpaths, show_sound_all, show_sound_rectangles, show_sound_spheres, and turret_show_debug.
Launch arguments
Instead of using the Terminal to pass launch arguments to the Oni binary, you can list them in a file with the name launch_args.txt next to the Oni app, separated by spaces, e.g. "-fsaa2x -noswitch".
On top of this, a launch panel appears if launching Oni with Command held down. Most of the launch arguments can be chosen using the GUI, and if not, they can be typed in manually in the Advanced tab.
Graphical niceties
You can supply the launch arguments -fsaa2x or -fsaa4x to get full-screen anti-aliasing, and -af2x or -af4x to get anisotropic filtering.
Gameplay
The launch argument -wsafety allows you to activate the weapon safety by pressing the button bound to "weapon_safety", which prevents your weapon from firing when you click, so you can punch and kick with a loaded weapon. The launch argument -parkour allows the AI to jump over obstacles in pursuit of the player.
Developer Mode
The difference in the hard-coded controls for the Dev Mode camera are illustrated HERE.
Cheats
The Daodan DLL adds the same cheats to Windows Oni that were added to Mac Oni in code, however "shinobi" differs as follows:
- Windows: The enemy AI cannot hear the player, and the player always has 1 HP but is immune to weapons.
- Mac: The enemy AI cannot hear the player, and their vision range is reduced to 25% of normal distance.