20,299
edits
(general copy edit) |
m (changed Update template to new Integrate template) |
||
| (9 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{integrate|See "Why are all body parts overlapping in the DAE file?" in the FAQ below.}} | |||
You might want to use the browser's search function to quickly find an error message. | You might want to use the browser's search function to quickly find an error message. | ||
{{TOClimit|3}} | {{TOClimit|3}} | ||
==Frequently asked questions== | ==Frequently asked questions== | ||
[[Image:modding_errors.jpg|thumb|200px]] | |||
[ | |||
*Why does Oni crash on game start? | *Why does Oni crash on game start? | ||
:: What were you working on? A [[#... due to overloaded animation|character animation]]? | ::What were you working on? A [[#... due to overloaded animation|character animation]]? | ||
*Why does Oni crash while loading a level? | *Why does Oni crash while loading a level? | ||
:: What were you working on? A [[#... due to missing files|game level]]? | ::What were you working on? A [[#... due to missing files|game level]]? | ||
*[[# | *Why does a character have black body parts? | ||
::You're probably [[#Missing character texture (TXMP)|missing a texture]]. | |||
*Why does a character have white body parts? | *Why does a character have white body parts? | ||
:: You are using a mod with bgra32 textures and an old engine that doesn't support bgra32. | ::You are using a mod with bgra32 textures and an old engine that doesn't support bgra32. | ||
* Why can't I convert character animations? | * Why can't I convert character animations? | ||
:: See [[#TRAM-related|HERE]] if you use "-create:tram". | ::See [[#TRAM-related|HERE]] if you use "-create:tram". | ||
* Why are all body parts overlapping in the DAE file? | * Why are all body parts overlapping in the DAE file? | ||
:: Because the part hierarchy isn't correct. Read more [http://oni.bungie.org | ::Because the part hierarchy isn't correct. Read more [https://web.archive.org/web/20160225191109/http://oni.bungie.org/forum/viewtopic.php?pid=31310#p31310 here]. | ||
==Visual errors based on settings== | ==Visual errors based on settings== | ||
| Line 24: | Line 23: | ||
Those screens (all TXMBs) are black if the user has a lower resolution than the screen. Oni's vanilla splashscreens are 640x480 but the [[AE]]'s "HD Screens" package bumps them up to 1024x768, which is where players usually encounter this problem. | Those screens (all TXMBs) are black if the user has a lower resolution than the screen. Oni's vanilla splashscreens are 640x480 but the [[AE]]'s "HD Screens" package bumps them up to 1024x768, which is where players usually encounter this problem. | ||
'''Note''': This problem is fixed by [[Daodan DLL]] v3.5 or newer and the [[ | '''Note''': This problem is fixed by [[Daodan DLL]] v3.5 or newer and the [[FERAL|Mac Intel build]] v1.2 or newer. | ||
==Binary errors== | ==Binary errors== | ||
| Line 68: | Line 67: | ||
====Distorted colors in textures (TXMP)==== | ====Distorted colors in textures (TXMP)==== | ||
[ | [[Image:color_spectrum_test.jpg|thumb|200px]] | ||
Why do my source and re-extracted textures look okay but in-game the colors are distorted? The "[[OBD_talk:TXMP#0x_00_10_00_00|little endian data]]" flag in the level data file is missing. The flag will be added by OniSplit v0.9.56.0 or later when you import it, or you can create the TXMP via an XML file and ensure that the flag is present before import. | Why do my source and re-extracted textures look okay but in-game the colors are distorted? The "[[OBD_talk:TXMP#0x_00_10_00_00|little endian data]]" flag in the level data file is missing. The flag will be added by OniSplit v0.9.56.0 or later when you import it, or you can create the TXMP via an XML file and ensure that the flag is present before import. | ||
| Line 77: | Line 76: | ||
====Distorted 3D model (TRBS)==== | ====Distorted 3D model (TRBS)==== | ||
[[Image:XSI_Konoko_Ref.png|thumb|200px]] | |||
When creating the 3D model in Mod Tool, you have to watch out for the naming and order of the body parts. | When creating the 3D model in Mod Tool, you have to watch out for the naming and order of the body parts. | ||
* If you use OniSplit v0.9.58.0 or lower, the naming of body parts must be absolutely correct. | * If you use OniSplit v0.9.58.0 or lower, the naming of body parts must be absolutely correct. | ||
| Line 89: | Line 87: | ||
Requirements to prevent that bug: | Requirements to prevent that bug: | ||
* <Attacks> and <HorizontalExtents> data is needed | * <Attacks> and <HorizontalExtents> data is needed | ||
** '''Note:''' With OniSplit v0.9.55.0 or newer, HorizontalExtents (now named "[[ | ** '''Note:''' With OniSplit v0.9.55.0 or newer, HorizontalExtents (now named "[[XML:TRAM#List_of_tags.2C_types.2C_and_flags|AttackRing]]") is calculated automatically. | ||
* Correct links to the Direct Animations tag | * Correct links to the Direct Animations tag | ||
* Correct links inside the character's animation collection (TRAC) | * Correct links inside the character's animation collection (TRAC) | ||
| Line 120: | Line 118: | ||
The engine has some kind of limit on how many BSL commands can occur in a single BSL file. When you pass the limit, you'll get errors in the developer console like this: "Func "main", File "(called from engine)", Line 0: semantic error, function "main" does not exist." (it can also be a function other than "main"). | The engine has some kind of limit on how many BSL commands can occur in a single BSL file. When you pass the limit, you'll get errors in the developer console like this: "Func "main", File "(called from engine)", Line 0: semantic error, function "main" does not exist." (it can also be a function other than "main"). | ||
For an example, extract these files and place them in IGMD/EnvWarehouse to experience the problem: [http://script10k.oni2.net/wikifiles/main_not_working_without_commenting_commands.zip], [http://script10k.oni2.net/wikifiles/main_not_working_without_commenting_commands( | For an example, extract these files and place them in IGMD/EnvWarehouse to experience the problem: [http://script10k.oni2.net/wikifiles/main_not_working_without_commenting_commands.zip], [http://script10k.oni2.net/wikifiles/main_not_working_without_commenting_commands(functions_splitted).zip], [http://script10k.oni2.net/wikifiles/main_splitted_in_two_files.zip] | ||
In all these BSL files, the message "This message should appear on the beginning" should appear when you load level 1. However for "main_not_working_without_commenting_commands" it doesn't work unless you comment out the 5th line of the BSL file. The "main_not_working_without_commenting_commands(functions_split)" script is the same, but in this one the "main" function is split into two functions, which is still not enough for the error to go away. The scripts in "main_split_in_two_files" are the same BSL as previously, but the two functions are split into two different files: "main.bsl" and "continuation.bsl". In this case the script works as expected, and the message "This message should appear on the beginning" appears on level load. | In all these BSL files, the message "This message should appear on the beginning" should appear when you load level 1. However for "main_not_working_without_commenting_commands" it doesn't work unless you comment out the 5th line of the BSL file. The "main_not_working_without_commenting_commands(functions_split)" script is the same, but in this one the "main" function is split into two functions, which is still not enough for the error to go away. The scripts in "main_split_in_two_files" are the same BSL as previously, but the two functions are split into two different files: "main.bsl" and "continuation.bsl". In this case the script works as expected, and the message "This message should appear on the beginning" appears on level load. | ||
| Line 129: | Line 127: | ||
===TRAM-related=== | ===TRAM-related=== | ||
* ''COLLADA error: duplicate id light'' - Maybe your DAE file has more than one root scene. In this case, you can right-click the model (which selects all 19 bones), then go to the Crosswalk settings, check "Selection Only", and save the file. | * ''COLLADA error: duplicate id light'' - Maybe your DAE file has more than one root scene. In this case, you can right-click the model (which selects all 19 bones), then go to the Crosswalk settings, check "Selection Only", and save the file. | ||
* ''.dae files cannot be imported as TRAM'' - Newer OniSplit versions doesn't seem to support "-create:tram" any longer. If you use that command, download an older version like | * ''.dae files cannot be imported as TRAM'' - Newer OniSplit versions doesn't seem to support "-create:tram" any longer. If you use that command, download an older version like v0.9.41.0 from Mod Depot. | ||
* If TRAM*tgt has more than 256 (0-255) frames, you'll see: | * If TRAM*tgt has more than 256 (0-255) frames, you'll see: | ||