Modding errors: Difference between revisions

From OniGalore
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 20: Line 20:
* Why are body parts in one place in the dae file?
* Why are body parts in one place in the dae file?
: Because the file wasn't saved the right way. Read on [http://oni.bungie.org/community/forum/viewtopic.php?pid=31310#p31310 here].
: Because the file wasn't saved the right way. Read on [http://oni.bungie.org/community/forum/viewtopic.php?pid=31310#p31310 here].


==binary errors==
==binary errors==
Line 29: Line 30:


Edit: You shouldn't encounter this bug anymore with onisplit v0.56.9.0 or newer.
Edit: You shouldn't encounter this bug anymore with onisplit v0.56.9.0 or newer.


===crash while loading a level===
===crash while loading a level===
Line 48: Line 48:
* no bug: TXMP creation via command line and v0.9.56.0 (flag missing), import with v0.9.56.0 (flag becomes added)
* no bug: TXMP creation via command line and v0.9.56.0 (flag missing), import with v0.9.56.0 (flag becomes added)
* no bug: TXMP creation via XML file and v0.9.56.0 (flag is present), import with v0.9.56.0
* no bug: TXMP creation via XML file and v0.9.56.0 (flag is present), import with v0.9.56.0


====missing animation collection (TRAC)====
====missing animation collection (TRAC)====
Line 59: Line 58:
* correct links at the Direct Animations tag
* correct links at the Direct Animations tag
* correct links inside character's animation collection (TRAC)
* correct links inside character's animation collection (TRAC)


==dev mode error messages==
==dev mode error messages==
Line 67: Line 67:
* ''Func "(null)", File "test.bsl", Line 3: semantic error, '''Identifier''' "main" already declared'' - In this case the function "main" is double, it can be found in the file "test.bsl" at line 3. (It's not the first but the last line of the double function.)
* ''Func "(null)", File "test.bsl", Line 3: semantic error, '''Identifier''' "main" already declared'' - In this case the function "main" is double, it can be found in the file "test.bsl" at line 3. (It's not the first but the last line of the double function.)
* ''Func "(null)", File "main.bsl", Line 1: Illegal token, got "func" expected ";"'' - The variable declaration didn't ended with a semicolon.
* ''Func "(null)", File "main.bsl", Line 1: Illegal token, got "func" expected ";"'' - The variable declaration didn't ended with a semicolon.
   
====mistyped variable====
* For example ''chr_lod 4'' will produce this error: ''Func "(null)", File "(called from console)", Line 1: Illegal token, got "0" expected ";"''
** Correct use of this varible would be: ''chr_lod = 4''
** '''Equality symbole is needed for variable.'''
====mistyped function====
* For example ''killled_griffen = 1'' will produce ''Func "(null)", File "(called from console)", Line 1: semantic error, symbole "killed_griffen" is not a variable (function most likely)''
** Correct use of this function is: ''killed_griffen 1''
** '''Equality symbole is <u>not</u> allowed for functions.'''
 
 
* Another wrong function: ''chr_givepowerup = 0 ammo 1'' - The debugger will say:
* ''Func "(null)", File "(called from console)", Line 1: semantic error, symbole "chr_givepowerup" is not a variable (function most likely)''  
* ''Func "(null)", File "(called from console)", Line 1: Illegal token, got "ammo" expected ";"''
** Correct use of this function is: ''chr_givepowerup 0 ammo 1''
 
 
==onisplit error messages==
==onisplit error messages==
===TRAM-related===
===TRAM-related===
Line 77: Line 92:
===blank mod list===
===blank mod list===
Your user accout probably don't have all nessecary rights that the AEInstaller need. (E.g. on Windows, this can happen if you have Oni installed on an ''old'' hard disc drive which is now wired to your new system. Add "full control" to your account: right-click Oni folder, properties, security, edit.)
Your user accout probably don't have all nessecary rights that the AEInstaller need. (E.g. on Windows, this can happen if you have Oni installed on an ''old'' hard disc drive which is now wired to your new system. Add "full control" to your account: right-click Oni folder, properties, security, edit.)


==XSI / Mod Tool errors==
==XSI / Mod Tool errors==

Revision as of 17:09, 14 February 2012

You might use the browser's search function to quickly find an error text.


Unfinished building-60px.jpg

This page is unfinished. Can you fill in any missing information?
If it is not clear which part of the page is unfinished, ask on the talk page.

frequently asked questions

ouch2_tn.jpg
Well... yea... shit happens.

  • Why does Oni crash on game start?
What did you worked on? TRAM?
You are using a mod with bgra32 textures and an old engine that doesn't support bgra32.
  • Why can't I convert TRAMs?
See HERE if you use "-create:tram".
  • Why are body parts in one place in the dae file?
Because the file wasn't saved the right way. Read on here.


binary errors

crash while starting Oni

... due to overloaded animation

Animations with more than 107 keys per bone crash the game. You can import animations with more than 107 frames if the keys cover multiple frames.

For example 12 frames <EKey>12 -156.628983 -14.6175327 -78.3831558</EKey>

Such range and EKeys are produced by an older onisplit version. See HERE.

Edit: You shouldn't encounter this bug anymore with onisplit v0.56.9.0 or newer.

crash while loading a level

... due to missing files

Generally it can be said the Oni complains when an instance is missing that is used somewhere else. For instance:

  • AKEV don't tolerate missing textures.
  • ONVL don't tolerate missing variants.

non-crash errors

These errors are visible inside the game and don't cause a crash when they appear.

missing texture (TXMP)

The texture is either missing, or the texture name and the link in TRMA are unequal.

distorted colors in textures (TXMP)

color_spectrum_test_tn.jpg

Why do my source and re-extracted textures look okay but in-game the colors are distorted? The "little endian data" flag in the level archive is missing.

  • bug: TXMP creation via command line and v0.9.56.0 (flag missing), imported with v0.9.52.0 (flag won't be added)
  • no bug: TXMP creation via command line and v0.9.56.0 (flag missing), import with v0.9.56.0 (flag becomes added)
  • no bug: TXMP creation via XML file and v0.9.56.0 (flag is present), import with v0.9.56.0

missing animation collection (TRAC)

missing 3D model (TRBS)

not working combos (TRAM)

Situation: When you create combos you want to test your moves in-game. And each move actually works (test via: chr_animate) but the combo does not work.

Requirements to prevent that bug:

  • <Attacks> and <HorizontalExtents> data is needed
  • correct links at the Direct Animations tag
  • correct links inside character's animation collection (TRAC)


dev mode error messages

  • throwtarget was NULL - The throw target animation was not found.

BSL errors

  • Func "main", File "(called from engine)", Line 0: semantic error, function "main" does not exist - Function "main" wasn't found in any bsl file. (This can also happen with any other function.)
  • Func "(null)", File "test.bsl", Line 3: semantic error, Identifier "main" already declared - In this case the function "main" is double, it can be found in the file "test.bsl" at line 3. (It's not the first but the last line of the double function.)
  • Func "(null)", File "main.bsl", Line 1: Illegal token, got "func" expected ";" - The variable declaration didn't ended with a semicolon.

mistyped variable

  • For example chr_lod 4 will produce this error: Func "(null)", File "(called from console)", Line 1: Illegal token, got "0" expected ";"
    • Correct use of this varible would be: chr_lod = 4
    • Equality symbole is needed for variable.

mistyped function

  • For example killled_griffen = 1 will produce Func "(null)", File "(called from console)", Line 1: semantic error, symbole "killed_griffen" is not a variable (function most likely)
    • Correct use of this function is: killed_griffen 1
    • Equality symbole is not allowed for functions.


  • Another wrong function: chr_givepowerup = 0 ammo 1 - The debugger will say:
  • Func "(null)", File "(called from console)", Line 1: semantic error, symbole "chr_givepowerup" is not a variable (function most likely)
  • Func "(null)", File "(called from console)", Line 1: Illegal token, got "ammo" expected ";"
    • Correct use of this function is: chr_givepowerup 0 ammo 1


onisplit error messages

TRAM-related

  • COLLADA error: dublicate id light - Maybe your dae file has more than one root scene. In this case you can right-click the model (that selects all 19 bones), then you go to the crosswalk seettings, 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. v0.9.41.0


AE Installer

blank mod list

Your user accout probably don't have all nessecary rights that the AEInstaller need. (E.g. on Windows, this can happen if you have Oni installed on an old hard disc drive which is now wired to your new system. Add "full control" to your account: right-click Oni folder, properties, security, edit.)


XSI / Mod Tool errors

corrupted dae files

Situation: I cannot load my dae file into XSI. It give me an "Unspecified Failure". Possible cause: When you create the dae file also paths are stored inside. If a path contains an illegal letter XSI cannot load the file. Make sure the paths use only letters of the English alphabet.