Jump to content

Troubleshooting/Blam: Difference between revisions

added new section for extremely crashy Chinese version of Oni
m (general copy-edit and correction of section header levels)
(added new section for extremely crashy Chinese version of Oni)
Line 1: Line 1:
{{UpdatedForOniX|1.0.0}}
{{UpdatedForOniX|1.0.0}}
{{fmbox
{{fmbox
   | text = The [[Daodan DLL]] and [[OniX]] solve the most common causes of crashes in Windows, and the [[FERAL|Intel build]] of the Mac app implements many fixes as well. But if you are still encountering crashes while using the most stable Oni available for your system, read on: chances are that your crash is documented below.
   | text = The [[Daodan DLL]] and [[OniX]] solve the most common causes of crashes in Windows, and the [[FERAL|Intel build]] of the Mac app implements many fixes as well. But if you are still encountering crashes while using the most stable Oni available for your system, or you're playing the Chinese version of Oni, read on: chances are that your crash is documented below.
   }}
   }}
[[Image:Blam!.png|right]]
[[Image:Blam!.png|right]]
Line 27: Line 27:
==Non-text buffer overflows==
==Non-text buffer overflows==
There are other fixed-size buffers that can also overflow and crash Oni.
There are other fixed-size buffers that can also overflow and crash Oni.
;Movie buffer
;Movie buffer
:As explained [[Customizing/Binding#start_record, stop_record, play_record|here]], recording a film that approaches half an hour in length can crash Oni.
:As explained [[Customizing/Binding#start_record, stop_record, play_record|here]], recording a film that approaches half an hour in length can crash Oni.


==Out of range errors==
==Out of range errors==
There are a number of situations where Oni will "Blam" that have little to do with buffers. Most often, the engine will attempt to address a region in memory but fail to find the expected data.
There are a number of situations where Oni will blam! that have little to do with buffers. Most often, the engine will attempt to address a region in memory but fail to find the expected data.
;Pathfinding overload
;Pathfinding overload
:Oni can generate too many pathfinding nodes if a pathfinding grid is inconsistent with the environment (rare).
:Oni can generate too many pathfinding nodes if a pathfinding grid is inconsistent with the environment (rare).
Line 38: Line 39:
:Oni will crash if you '''chr_focus''' to a character that's not drawn.
:Oni will crash if you '''chr_focus''' to a character that's not drawn.
:Oni will crash if you fire a gun while in control of an active AI.
:Oni will crash if you fire a gun while in control of an active AI.
:Oni will crash if you "talk" to a neutral AI while in control of it.
:Oni will crash if you "talk" to a neutral AI while in control of it (it's a bit more complicated, but who cares?).
:(it's a bit more complicated, but who cares?)


;Non-existent BSL function
;Non-existent BSL function
:Oni will crash if you call a non-existent BSL function using the [[BSL:Manual#Old vs. new syntax|strict syntax]].
:Oni will crash if you call a non-existent BSL function using the [[BSL:Manual#Old vs. new syntax|strict syntax]].
==Chinese version==
Several additional potential crash points were added when Oni was localized into Chinese. As explained [[OBD:Text encoding#Invalid EUC-CN input|HERE]], various untranslated strings will blam! Oni if it encounters them, and this is the cause of most crashes listed below.
*If the graphics quality is too high, you will probably crash on level-load. The quality setting may need to be Superlow (the lowest setting) to work, but it's not consistent and sometimes a notch or two higher will work.
*Entering any cheat code on the [[Data Comlink]] screen will crash Oni because none of the cheat strings were translated.
*The Daodan DLL contains a feature for always showing the name and current ammo of a weapon on the ground. It's controlled by the flag "newweap" in daodan.ini. This feature is on by default but will cause a crash as soon as you maneuver over a dropped weapon or even drop your existing weapon.
*Turning on Developer Mode will result in text printing to the console which will probably crash the game.
*This one is not a crashing bug (at least, not right away), but if you remove/rename intro.bik so that it doesn't play at startup, you may see garbled text in-game.


[[Category:Oni Support]]
[[Category:Oni Support]]