Windows Oni vs. Mac Oni: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (→‎Windows exclusives: actually most Win sounds are also in 22KHz, at least in versions of Oni we've looked at)
(46 intermediate revisions by 5 users not shown)
Line 1: Line 1:
==PC exclusives==
There are no major gameplay or content differences between the Windows and Mac versions. However, there <u>are</u> major differences in file format and minor differences in scripting functionality that modders should be aware of.
===[[Developer Mode]]===
{{TOCfloat|limit=2}}
aka the '''thedayismine''' [[Cheats#Macintosh.2FPC|cheat]]. Partially left out by Bungie when compiling the PC version. Rediscovered by [http://sfeli.oni2.net SFeli].
==Game data files==
The most visible difference between the files in Mac and Windows Oni is the presence of .sep files in the [[GameDataFolder]] of Mac Oni and the Windows Oni demo. This and other changes were made either for general optimization or to meet some limitation on the Mac side. Due to the fact that Mac Oni [[History of Mac Oni|was finished after]] Windows retail Oni but before the Windows demo was made, some changes made for Mac Oni carried over to the Windows demo. To illustrate what sort of level data files you'll find in the GameDataFolder:


===[[Customizing/Binding|Bindable]] events===
{|class="wikitable" style="margin-left:auto; margin-right:auto;"
Everything that has to do with cutscene authoring (recording character movements), and probably a little bit more.
!Windows retail
!Mac demo, Mac retail<br />and Windows demo
|-
|<center>*.dat, *.raw</center>
|<center>*.dat, *.raw, *.sep</center>
|}


===Scripting commands/variables===
To learn about the differences in how resources are stored in these files, read the articles on [[OBD:Instance_file_format|instance files]] and [[OBD:Raw_and_separate_file_formats|raw and separate files]], especially the "Mac vs. Windows" section in the latter.
The PC build is older, and as such it has a lot of "dev-and-debug" functionalities that were not used by the original script logic.
When the Mac release was built, some of those features were completely left out.
[http://geyser.oni2.net/PCvsMac/script_commands_PConly.txt HERE] is the full list of commands and variables that are unavailable on Mac (by order of appearance in '''script_commands.txt''').
While some of them may be obsolete, and thus may have little effect on PC, a lot of them are definitely ''not'' defunct, and their lack on Mac is a major limitation. For instance, one should note :
*the absence of dev-console-related commands (meaning that the Dev Mode is, alas, completely missing from the Mac build)
*the absence of '''chr_focus''' and '''sc_focus'''. Thus none of the following is scriptable on Mac as of today :
**shapeshifting bots and Tag mode in [[OTA:Oni Team Arena|OTA]]
**squad gameplay
**intermittently "switching" to characters that are NPCs in the original logic (used in a few mods e.g. Loser's Warehouse)
*the absence of '''chr_health''', '''wp_reset''', and a few other commands/variables that make scripting more flexible.
*other stuff I'm forgetting (there's quite a lot missing, really)
For further information, here are the complete lists of commands/variables as obtained with the '''dump_docs''' function call :
*[http://geyser.oni2.net/PCvsMac/script_commands_Mac.txt script_commands_Mac.txt]
*[http://geyser.oni2.net/PCvsMac/script_commands_PC.txt script_commands_PC.txt]
As for the effect of the commands and variables, the best documentation so far is on ssg's [http://www6.fh-eberswalde.de/user/dkriesch/onistuff/commands.htm Oni Stuff]. It covers the full list of commands/variables, i.e. that of the PC version.


==Level logic==
The contents of the [[IGMD|IGMD]] folders are exactly the same on Windows and the Mac, except for tctf_ii ({{C13}}); these changes were made in the logic of the boss battle and cutscenes:
*[[Special:Diff/21491/21492|Differences in tctf2.bsl]]
*[[Special:Diff/21493/21494|Differences in tctf_ii_cutscene.bsl]]


----
==Windows exclusives==
There are no major features only available in Windows Oni except support for 44KHz sounds, though this is rarely taken advantage of in the Windows game data.


==Mac exclusives==
===BSL===
===A semi-official patch===
*Windows Oni can turn the BSL boolean '''li_center_cursor''' on/off, whereas this behavior is hardcoded to be on all the time on Macs.
Made by [http://www.omnigroup.com OmniGroup], [http://www.omnigroup.com/games/oni/ Oni 1.0 v1.36] (native OS X port) fixes a few issues with sounds, mouse, rendering, AI...
*The BSL boolean '''ai2_debug_localmove_lines'''.
On the whole, the Mac build of Oni ''may'' have fewer crash issues as a result.
For more information about installing this one on Mac, see [[Installation#Mac|here]]


===Startup GUI===
===Daodan DLL===
If you press Shift while starting Oni (This only applies when running in OS9 or Classic, not OSX), a little GUI will pop up and let you do the following :
It's probably safe to say that all players these days use the [[Daodan DLL]] with Windows Oni. The Daodan confers these exclusives:
*configure controls LH and RH
*Support for multibyte languages such as Chinese.
*set command-line parameters (Args:)
*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 [[Daodan_DLL#Added_BSL_functions|HERE]].
*Level files not ending in "_Final" will be loaded by Oni.


==Mac exclusives==
===A newer, stabler build===
The current build of Oni for Intel Macs (see [[AE:FERAL|HERE]] for link) is based on code that has been touched up by Bungie, The Omni Group, and Feral Interactive since Oni was gold mastered for Windows in 2000 (see [[History of Mac Oni]] for details), so they have fixed a few issues over the years, including the following that have not been reproduced by the Daodan DLL:
*Lens flares shining through objects.
*Crashes from missing textures, missing level files, and excessive particle classes.


See [[AE:FERAL#Bug_fixes|HERE]] for a full list of fixes which is compared to the current state of Windows Oni as patched by the Daodan DLL.


----
===Bigger textures===
 
Macs support 1024x1024 textures, whereas the Daodan DLL only allows up to 512x512 in Windows, although in practice this isn't much of an advantage because no one will go out of their way to make such enormous textures just for Mac players when they can keep their mod to 512x512 and make it playable for everyone ^_^
==Other differences==
===Level logic===
The contents of the [[OSL:IGMD|IGMD]] folders are essentially the same on Mac and PC, but in {{C13}} (aka [[OSL:IGMD#tctf_ii|tctf_ii]]), there are minor differences in the logic of the boss battle.
===File formats===
'''Differences between MAC and PC files:'''
 
'''files'''
 
PC: *.dat, *.raw
 
MAC and PC demo: *.dat, *.sep, *.raw
 
'''dat file'''
 
PC: first 4 bytes are: 1F 27 DC 33


MAC and PC demo: first 4 bytes are: 61 30 C1 23
===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 "[[IGMD/global|global]]" folder in IGMD, which the Mac also supports.


*special: MAC [[OBD:SNDD|SNDD]] files are 32 bytes long, PC and PC demo [[OBD:SNDD|SNDD]] files are 96 bytes long
====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'''.


'''sep file'''
====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.


PC: no sep files
====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'''.


MAC and PC demo: contains the offset data of the [[OBD:BINA|BINA]], [[OBD:OSBD|OSBD]] and [[OBD:TXMP|TXMP]] files
===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".


*special: sep-file link in the TXMP file
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.


'''raw file'''
===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.


PC: contains the offset data of the [[OBD:AGDB|AGDB]], [[OBD:AKVA|AKVA]], [[OBD:BINA|BINA]], [[OBD:OSBD|OSBD]], [[OBD:SNDD|SNDD]], [[OBD:SUBT|SUBT]], [[OBD:TRAM|TRAM]] and [[OBD:TXMP|TXMP]] file
===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.


MAC and PC demo: contains the offset data of the [[OBD:AKVA|AKVA]], [[OBD:SNDD|SNDD]], [[OBD:SUBT|SUBT]] and [[OBD:TRAM|TRAM]] files
==Developer Mode==
The difference in the hard-coded controls for the Dev Mode camera are illustrated [[Developer Mode#Camera_controls|HERE]].


*special 1: MAC and PC demo haven't [[OBD:AGDB|AGDB]] files
==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: Player always has 1 HP, but is immune to weapons and the enemy AI cannot hear the player.
*Mac: The enemy AI cannot hear the player, and their vision range is reduced to 25% of normal distance.


*special 2: MAC uses AIFF sounds, PC and PC demo uses WAV sounds
[[Category:Engine docs]][[Category:Oni Support]]

Revision as of 00:47, 13 May 2020

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 between the files in Mac and Windows Oni is the presence of .sep files in the GameDataFolder of Mac Oni and the Windows Oni demo. This and other changes were made either for general optimization or to meet some limitation on the Mac side. Due to the fact that Mac Oni was finished after Windows retail Oni but before the Windows demo was made, some changes made for Mac Oni carried over to the Windows demo. To illustrate what sort of level data files you'll find in the GameDataFolder:

Windows retail Mac demo, Mac retail
and Windows demo
*.dat, *.raw
*.dat, *.raw, *.sep

To learn about the differences in how resources are stored in these files, read the articles on instance files and raw and separate files, especially the "Mac vs. Windows" section in the latter.

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); these changes were made in the logic of the boss battle and cutscenes:

Windows exclusives

There are no major features only available in Windows Oni except support for 44KHz sounds, though this is rarely taken advantage of in the Windows game data.

BSL

  • Windows Oni can turn the BSL boolean li_center_cursor on/off, whereas this behavior is hardcoded to be on all the time 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:

  • 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.
  • Level files not ending in "_Final" will be loaded by Oni.

Mac exclusives

A newer, stabler build

The current build of Oni for Intel Macs (see HERE for link) is based on code that has been touched up by Bungie, The Omni Group, and Feral Interactive since Oni was gold mastered for Windows in 2000 (see History of Mac Oni for details), so they have fixed a few issues over the years, including the following that have not been reproduced by the Daodan DLL:

  • Lens flares shining through objects.
  • Crashes from missing textures, missing level files, and excessive particle classes.

See HERE for a full list of fixes which is compared to the current state of Windows Oni as patched by the Daodan DLL.

Bigger textures

Macs support 1024x1024 textures, whereas the Daodan DLL only allows up to 512x512 in Windows, although in practice this isn't much of an advantage because no one will go out of their way to make such enormous textures just for Mac players when they can keep their mod to 512x512 and make it playable for everyone ^_^

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 the Mac also supports.

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: Player always has 1 HP, but is immune to weapons and the enemy AI cannot hear the player.
  • Mac: The enemy AI cannot hear the player, and their vision range is reduced to 25% of normal distance.