OniSplit: Difference between revisions
m (→Download links: Update to 0.9.90) |
m (link fix) |
||
(34 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{TOCfloat|side=right}} | {{TOCfloat|side=right}} | ||
'''OniSplit''', written by [[User_talk:Neo|Neo]], is an integral part of the [[Anniversary Edition]] and an essential modding tool on its own. It is | {{Hatnote|Before reading this page, it's a good idea to be familiar with basic Oni [[game data terminology]].}} | ||
'''OniSplit''', written by [[User_talk:Neo|Neo]], is an integral part of the [[Anniversary Edition]] and an essential modding tool on its own. It is a command line tool which can import and export almost all kinds of Oni game data, including textures, sound, 3D models, level geometry and combat animations. Its name comes from its original purpose, which was breaking Oni's level data files into individual resources. Later, the ability to convert those resources' data between Oni's format and standard file formats was added. OniSplit incorporates the latest [[OBD|knowledge about Oni's game data]], and it is currently the community's main modding tool. | |||
:''Subpages:'' [[/Change_log|Change log]] (past versions), [[/WIP|WIP notes]] (upcoming versions) | |||
==Getting it== | ==Getting it== | ||
===Download links=== | ===Download links=== | ||
* Latest release of OniSplit: [http://mods.oni2.net/node/38 v0.9. | * Latest release of OniSplit: [http://mods.oni2.net/node/38 v0.9.99.2] ([https://websvn.illy.bz/dl.php?repname=Oni2&path=%2FOniSplit%2F&isdir=1 source code]) | ||
* The current GUI for OniSplit is [[Vago (tool)|Vago]]. '''You should try the GUI to see if it does what you need before working with OniSplit on the command line.''' | * The current GUI for OniSplit is [[Vago (tool)|Vago]]. '''You should try the GUI to see if it does what you need before working with OniSplit on the command line.''' | ||
===Requirements=== | ===Requirements=== | ||
*Windows: [https://dotnet.microsoft.com/en-us/download/dotnet-framework .NET framework] | |||
*macOS: [https://www.mono-project.com/download/stable/ Mono framework] | |||
* [ | |||
==Workflow== | ==Workflow== | ||
Line 30: | Line 31: | ||
==Beginner's tips== | ==Beginner's tips== | ||
{{Divhide|For users new to the command line or to OniSplit}} | {{Divhide|show=yes|For users new to the command line or to OniSplit}} | ||
In Windows, you | In Windows, there are several options through which you can use OniSplit - out of which it is recommended to get Vago and CMDer: | ||
* [[Vago (tool)|Vago]] is a GUI for OniSplit which allows you to handle all general conversions, save your sessions as project files, input manual commands if needed, and more. The two downsides of it is that it doesn't support Blender yet, forcing the users input commands manually, which in turn are not stored upon ending the session. | |||
* [https://cmder.app/ CMDer] is an excellent alternative to cmd.exe. It can be customized to allow starting it from any folder you pick with the context menu, and it also stores the most recently used commands after ending the session. Currently it is highly useful for Blender-related operations. | |||
* Command Prompt/cmd.exe. Windows' default command line interpreter, it's a poor choice as it does not store most recently used commands. | |||
On Macs, the command line is found in the Terminal app (/Applications/Utilities) (press Command-Spacebar and type "Terminal" to get there faster). | On Macs, the command line is found in the Terminal app (/Applications/Utilities) (press Command-Spacebar and type "Terminal" to get there faster). | ||
Line 39: | Line 44: | ||
{| | {| | ||
|- | |- | ||
|'''Windows'''||<tt><span style="background:rgb(235,235,235); border-radius:0.33em;">OniSplit.exe</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">-create:trbs</span> <span style="background:rgb(255,156,156); border-radius:0.33em;">C:\Games\Oni\SomeFolder</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">-normals</span> <span style="background:rgb(156,255,156); border-radius:0.33em;">C:\Games\Oni\Modding\TRBSMyNewChar.dae</span></tt> | |'''Windows'''||<tt><span style="background:rgb(235,235,235); border-radius:0.33em; padding:0.15em">OniSplit.exe</span> <span style="background:rgb(175,175,255); border-radius:0.33em; padding:0.15em">-create:trbs</span> <span style="background:rgb(255,156,156); border-radius:0.33em; padding:0.15em">C:\Games\Oni\SomeFolder</span> <span style="background:rgb(175,175,255); border-radius:0.33em; padding:0.15em">-normals</span> <span style="background:rgb(156,255,156); border-radius:0.33em; padding:0.15em">C:\Games\Oni\Modding\TRBSMyNewChar.dae</span></tt> | ||
|- | |- | ||
|'''Mac'''||<tt><span style="background:rgb(235,235,235); border-radius:0.33em;">mono OniSplit.exe</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">-create:trbs</span> <span style="background:rgb(255,156,156); border-radius:0.33em;">/Games/Oni/SomeFolder</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">-normals</span> <span style="background:rgb(156,255,156); border-radius:0.33em;">/Games/Oni/Modding/TRBSMyNewChar.dae</span></tt> | |'''Mac'''||<tt><span style="background:rgb(235,235,235); border-radius:0.33em; padding:0.15em">mono OniSplit.exe</span> <span style="background:rgb(175,175,255); border-radius:0.33em; padding:0.15em">-create:trbs</span> <span style="background:rgb(255,156,156); border-radius:0.33em; padding:0.15em">/Games/Oni/SomeFolder</span> <span style="background:rgb(175,175,255); border-radius:0.33em; padding:0.15em">-normals</span> <span style="background:rgb(156,255,156); border-radius:0.33em; padding:0.15em">/Games/Oni/Modding/TRBSMyNewChar.dae</span></tt> | ||
|} | |} | ||
Line 48: | Line 53: | ||
! style="width:130px"| | ! style="width:130px"| | ||
|- valign="top" | |- valign="top" | ||
|<span style="background:rgb(235,235,235); border-radius:0.33em;">'''Invocation'''</span> | |<span style="background:rgb(235,235,235); border-radius:0.33em; padding:0.15em">'''Invocation'''</span> | ||
|Windows can refer to the program directly, but Macs use Mono to run the .NET app; note also that if OniSplit.exe is not in the Command Prompt/Terminal's current directory, you must provide the full path to it or set the path variable. | |Windows can refer to the program directly, but Macs use Mono to run the .NET app; note also that if OniSplit.exe is not in the Command Prompt/Terminal's current directory, you must provide the full path to it or set the path variable. | ||
|- | |- | ||
|<span style="background:rgb(175,175,255); border-radius:0.33em;">'''Option'''</span>||The command. | |<span style="background:rgb(175,175,255); border-radius:0.33em; padding:0.15em">'''Option'''</span>||The command. | ||
|- valign="top" | |- valign="top" | ||
|<span style="background:rgb(255,156,156); border-radius:0.33em;">'''Path to folder'''</span>||Whether destination or source, the folder | |<span style="background:rgb(255,156,156); border-radius:0.33em; padding:0.15em">'''Path to folder'''</span>||Whether destination or source, the path which is a folder comes first. <u>Use the full path to the folder (starting from "C:\", or "/" on Macs).</u> | ||
|- | |- | ||
|<span style="background:rgb(175,175,255); border-radius:0.33em;">'''Option flags'''</span>||The flags that can optionally go with this command, separated by spaces. | |<span style="background:rgb(175,175,255); border-radius:0.33em; padding:0.15em">'''Option flags'''</span>||The flags that can optionally go with this command, separated by spaces. | ||
|- valign="top" | |- valign="top" | ||
|<span style="background:rgb(156,255,156); border-radius:0.33em;">'''Path to file | |<span style="background:rgb(156,255,156); border-radius:0.33em; padding:0.15em">'''Path to file'''</span>||Whether destination or source, the path of the file comes second. <u>Use the full path to the file (starting from "C:\", or "/" on Macs).</u> One exception to this parameter being a file is when using <tt>-create</tt> to make a level, in which case this is where you supply the source folder. | ||
|} | |} | ||
===CLI tips=== | ===CLI tips=== | ||
*Command | *Command line interfaces (CLI) usually supply an auto-complete feature to save on typing. If you've typed enough of a file/folder name to identify it, press the Tab key and the rest should fill in. In Windows, you may not get the right path name autocompleted on the first try if there are multiple possible autocompletions based on the names in that directory, so keep pressing Tab to cycle through all possibilities. On Macs, if you have not typed enough of the name to narrow it down to a single autocompletion, you will hear an error sound. Double-tap Tab to see a list of possible autocompletions, then keep typing until you have narrowed it down to one of those and then hit Tab to fill in the rest of its name. | ||
*Note that you can also drag files/folders into the window and the path will magically appear; in cases where you don't need to use a wildcard, this is the fastest way to build an OniSplit command. | *Note that you can also drag files/folders into the window and the path will magically appear; in cases where you don't need to use a wildcard, this is the fastest way to build an OniSplit command. | ||
Line 71: | Line 76: | ||
===Spaces in paths=== | ===Spaces in paths=== | ||
Command | Command line interfaces (CLI) do not recognize spaces as a possible part of a path name because spaces are what separate the terms in your commands. The best course of action is to not use paths with spaces in their names! But if you must, you can use quotes to tell the CLI that a certain string is a single path: | ||
C:\Games\Oni\>OniSplit.exe -list "My Mod Folder\level5_Final.dat" | '''C:\Games\Oni\>'''OniSplit.exe -list "My Mod Folder\level5_Final.dat" | ||
This works in the Mac Terminal too, but you can also use the escape character, <tt>\</tt>. Also, other characters like <tt>(</tt> need to be escaped as well if you do not use quotes: | This works in the Mac Terminal too, but you can also use the escape character, <tt>\</tt>. Also, other characters like <tt>(</tt> need to be escaped as well if you do not use quotes: | ||
'''MyMac%''' mono OniSplit.exe -list My\ Mods\ \(In\ Progress\)/level5_Final.dat | |||
But as mentioned, the best practice is to not use any characters besides the alphabet and numbers. It makes your life simpler, and if you ask for help on the forum with a command, no one wants to have to read your long path with lots of spaces or escaped characters in it ;-) | But as mentioned, the best practice is to not use any characters besides the alphabet and numbers. It makes your life simpler, and if you ask for help on the forum with a command, no one wants to have to read your long path with lots of spaces or escaped characters in it ;-) | ||
===Reading the commands below=== | ===Reading the commands below=== | ||
*The following commands should be complete, but the current list can be obtained by calling OniSplit with the <tt>-help</tt> option | *The following commands should be complete, but the current list can be obtained by calling OniSplit with the <tt>-help</tt> option. You should also use <tt>-version</tt> to make sure you're using the latest version, the number of which is given in the "Download links" section above. | ||
* | *Sample usages are given after certain commands. These are in DOS style, so if you are on a Mac, simply flip the <tt>\</tt>s to <tt>/</tt>s and make "C:\" into a leading "/". | ||
*Optional flags are listed in square brackets simply to indicate that they're optional; don't enter the brackets when typing a command. | *Optional flags are listed in square brackets simply to indicate that they're optional; don't enter the brackets when typing a command. | ||
Note that only the .dat file from a level's data files is mentioned. The .raw and .sep files will be accessed by OniSplit as necessary when working with the .dat file you | Note that only the .dat file from a level's data files is mentioned. The .raw and .sep files will be accessed by OniSplit as necessary when working with the .dat file that you gave the name of. | ||
{{Divhide|end}} | {{Divhide|end}} | ||
Line 96: | Line 101: | ||
! style="width:430px"| | ! style="width:430px"| | ||
|- | |- | ||
|<code>-list <file name></code>||Lists the named resources contained in a .dat (see [[OBD: | |<code>-list <file name></code>||Lists the named resources contained in a .dat (see [[OBD:File types/Naming|HERE]] for info on unnamed resources) | ||
|- | |- | ||
|<code>-export <destination directory> <dat file></code>||Breaks .dat file into .oni files | |<code>-export <destination directory> <dat file></code>||Breaks .dat file into .oni files | ||
Line 128: | Line 133: | ||
===Conversion between .oni/.dat and 3rd party formats=== | ===Conversion between .oni/.dat and 3rd party formats=== | ||
====Textures==== | ====Textures==== | ||
Unless mentioned otherwise, source filenames support wildcards. See [[ | Unless mentioned otherwise, source filenames support wildcards. See [[Modifying textures|HERE]] for a detailed tutorial. The <tt>-extract</tt> commands can work with .oni files (a single file or several files if you use the wildcard), or rip all the TXMPs from a .dat file. | ||
{| | {| | ||
|<code>-extract:dds <destination directory> <dat/oni file></code>||Extracts all textures (TXMP) from a Oni .dat/.oni file into DDS files | |<code>-extract:dds <destination directory> <dat/oni file></code>||Extracts all textures (TXMP) from a Oni .dat/.oni file into DDS files | ||
Line 147: | Line 152: | ||
|<code>-extract:obj <destination directory> <dat/oni file></code>||Extracts 3D data in .oni file (or all M3GM, ONWC and ONCC instances in a .dat) into Wavefront OBJ files | |<code>-extract:obj <destination directory> <dat/oni file></code>||Extracts 3D data in .oni file (or all M3GM, ONWC and ONCC instances in a .dat) into Wavefront OBJ files | ||
|- valign="top" | |- valign="top" | ||
|<code>-extract:dae <destination directory> <dat/oni file></code>||Extracts 3D data in .oni file (or all M3GM, ONWC and ONCC instances in a .dat) into Collada DAE files | |<code>-extract:dae <destination directory> [-noanim] <dat/oni file></code>||Extracts 3D data in .oni file (or all M3GM, ONWC and ONCC instances in a .dat) into Collada DAE files | ||
|- | |- | ||
|<code>-create:m3gm <destination directory> [-tex:texture_name] <OBJ file></code>||Creates a M3GM .oni from an .obj file | |<code>-create:m3gm <destination directory> [-tex:texture_name] <OBJ file></code>||Creates a M3GM .oni from an .obj file | ||
Line 153: | Line 158: | ||
|<code>-create:trbs <destination directory> [-cel] [-normals] <DAE file></code>||Creates a TRBS .oni from a .dae file | |<code>-create:trbs <destination directory> [-cel] [-normals] <DAE file></code>||Creates a TRBS .oni from a .dae file | ||
|} | |} | ||
Note on -noanim parameter: Normally OniSplit exports the character with an idle animation. If you use -noanim the character is exported in "I" pose, also the pelvis has the coordinates x=0, y=0, z=0. | |||
====Levels==== | ====Levels==== | ||
Line 161: | Line 168: | ||
The next two steps are used on a folder in which you have placed the DAE and XML-formatted instances of the required files, as well as textures in TGA format. See [http://oni.bungie.org | The next two steps are used on a folder in which you have placed the DAE and XML-formatted instances of the required files, as well as textures in TGA format. See [http://oni.bungie.org/forum/viewtopic.php?id=1515 HERE] for details. | ||
{| | {| | ||
|- valign="top" | |- valign="top" | ||
Line 193: | Line 200: | ||
|<code>-create <destination directory> <XML file></code>||Creates an .oni file from an XML file | |<code>-create <destination directory> <XML file></code>||Creates an .oni file from an XML file | ||
|} | |} | ||
====Blender support==== | |||
[[Blender]] by default has a number of issues with most of Oni's assets, however, OniSplit allows exporting them to Blender-readable files with the <tt>-blender</tt> flag. | |||
For more detailed information on how to use the <tt>-blender</tt> flag, please check [[Importing_character_models#Blender-specific_OniSplit_information|Blender specific OniSplit information]]. | |||
[[Category:Completed modding tools]][[Category:Bi-platform modding tools]][[Category:Modding tutorials]] | [[Category:Completed modding tools]][[Category:Bi-platform modding tools]][[Category:Modding tutorials]] |
Latest revision as of 22:43, 5 December 2023
- Before reading this page, it's a good idea to be familiar with basic Oni game data terminology.
OniSplit, written by Neo, is an integral part of the Anniversary Edition and an essential modding tool on its own. It is a command line tool which can import and export almost all kinds of Oni game data, including textures, sound, 3D models, level geometry and combat animations. Its name comes from its original purpose, which was breaking Oni's level data files into individual resources. Later, the ability to convert those resources' data between Oni's format and standard file formats was added. OniSplit incorporates the latest knowledge about Oni's game data, and it is currently the community's main modding tool.
- Subpages: Change log (past versions), WIP notes (upcoming versions)
Getting it
Download links
- Latest release of OniSplit: v0.9.99.2 (source code)
- The current GUI for OniSplit is Vago. You should try the GUI to see if it does what you need before working with OniSplit on the command line.
Requirements
- Windows: .NET framework
- macOS: Mono framework
Workflow
OniSplit is used in up to four different stages when modding:
OUT | Exporting - using the -export command, a level data file is broken into its component resources, .oni files. |
Extracting - using the -extract commands, .oni files are converted to standard-format files that can be edited in various third-party programs. | |
Creating - using the -create commands, standard-format files are converted into .oni files. | |
Importing - using the -import command, a folder of .oni files is combined into a level data file. |
Note that "extracting" refers to a conversion from one format to another, but "exporting" only refers to the creation of .oni files from a .dat file. When exporting, no conversion or re-formatting is taking place; the data is simply being copied out of a .dat (any connected binary data in .raw/.sep files will be concatenated to the data from the .dat when making the .oni).
Beginner's tips
In Windows, there are several options through which you can use OniSplit - out of which it is recommended to get Vago and CMDer:
- Vago is a GUI for OniSplit which allows you to handle all general conversions, save your sessions as project files, input manual commands if needed, and more. The two downsides of it is that it doesn't support Blender yet, forcing the users input commands manually, which in turn are not stored upon ending the session.
- CMDer is an excellent alternative to cmd.exe. It can be customized to allow starting it from any folder you pick with the context menu, and it also stores the most recently used commands after ending the session. Currently it is highly useful for Blender-related operations.
- Command Prompt/cmd.exe. Windows' default command line interpreter, it's a poor choice as it does not store most recently used commands.
On Macs, the command line is found in the Terminal app (/Applications/Utilities) (press Command-Spacebar and type "Terminal" to get there faster).
OniSplit syntax
The basic syntax is:
Windows | OniSplit.exe -create:trbs C:\Games\Oni\SomeFolder -normals C:\Games\Oni\Modding\TRBSMyNewChar.dae |
Mac | mono OniSplit.exe -create:trbs /Games/Oni/SomeFolder -normals /Games/Oni/Modding/TRBSMyNewChar.dae |
Here's how it breaks down:
Invocation | Windows can refer to the program directly, but Macs use Mono to run the .NET app; note also that if OniSplit.exe is not in the Command Prompt/Terminal's current directory, you must provide the full path to it or set the path variable. |
Option | The command. |
Path to folder | Whether destination or source, the path which is a folder comes first. Use the full path to the folder (starting from "C:\", or "/" on Macs). |
Option flags | The flags that can optionally go with this command, separated by spaces. |
Path to file | Whether destination or source, the path of the file comes second. Use the full path to the file (starting from "C:\", or "/" on Macs). One exception to this parameter being a file is when using -create to make a level, in which case this is where you supply the source folder. |
CLI tips
- Command line interfaces (CLI) usually supply an auto-complete feature to save on typing. If you've typed enough of a file/folder name to identify it, press the Tab key and the rest should fill in. In Windows, you may not get the right path name autocompleted on the first try if there are multiple possible autocompletions based on the names in that directory, so keep pressing Tab to cycle through all possibilities. On Macs, if you have not typed enough of the name to narrow it down to a single autocompletion, you will hear an error sound. Double-tap Tab to see a list of possible autocompletions, then keep typing until you have narrowed it down to one of those and then hit Tab to fill in the rest of its name.
- Note that you can also drag files/folders into the window and the path will magically appear; in cases where you don't need to use a wildcard, this is the fastest way to build an OniSplit command.
Wildcards
Wildcards can be used to supply patterns to CLI programs. The wildcard is simply the * character. For instance:
OniSplit.exe -export:TRAM* <destination> <source .dat>
will export all the TRAMs in the source .dat into the destination folder. Using "TRAMKON*" would export all of Konoko's animations.
Spaces in paths
Command line interfaces (CLI) do not recognize spaces as a possible part of a path name because spaces are what separate the terms in your commands. The best course of action is to not use paths with spaces in their names! But if you must, you can use quotes to tell the CLI that a certain string is a single path:
C:\Games\Oni\>OniSplit.exe -list "My Mod Folder\level5_Final.dat"
This works in the Mac Terminal too, but you can also use the escape character, \. Also, other characters like ( need to be escaped as well if you do not use quotes:
MyMac% mono OniSplit.exe -list My\ Mods\ \(In\ Progress\)/level5_Final.dat
But as mentioned, the best practice is to not use any characters besides the alphabet and numbers. It makes your life simpler, and if you ask for help on the forum with a command, no one wants to have to read your long path with lots of spaces or escaped characters in it ;-)
Reading the commands below
- The following commands should be complete, but the current list can be obtained by calling OniSplit with the -help option. You should also use -version to make sure you're using the latest version, the number of which is given in the "Download links" section above.
- Sample usages are given after certain commands. These are in DOS style, so if you are on a Mac, simply flip the \s to /s and make "C:\" into a leading "/".
- Optional flags are listed in square brackets simply to indicate that they're optional; don't enter the brackets when typing a command.
Note that only the .dat file from a level's data files is mentioned. The .raw and .sep files will be accessed by OniSplit as necessary when working with the .dat file that you gave the name of.
Commands
Conversion between .dat and .oni
-list <file name> |
Lists the named resources contained in a .dat (see HERE for info on unnamed resources) |
-export <destination directory> <dat file> |
Breaks .dat file into .oni files |
-export:<pattern> <destination directory> <dat file> |
Exports named resource (wildcards also allowed) from .dat file |
-import <source directory> <new dat file> |
Compiles level files from source directory using the name you supply for the .dat file; tries to get target file format from source SNDD, but it's better to use the :sep or :nosep variants below |
To create level5_Final.dat/.raw[/.sep] from the files in MyNewLevel\: OniSplit.exe -import C:\Oni\MyNewLevel\ C:\Oni\GameDataFolder\level5_Final.dat
| |
-import:sep <source directory> <new dat file> |
Imports target file (.dat) from source directory; uses .dat/.raw/.sep format (Mac and PC Demo) |
-import:nosep <source directory> <new dat file> |
Imports target file (.dat) from source directory; uses .dat/.raw format (PC retail) |
- Note that -import will search subdirectories too. If you find having hundreds or thousand of files .oni in one directory to be unmanageable you can always group them in subdirectories any way you like. The only exception is that a subdirectory named "noimport" or "_noimport" is always ignored.
Management of .oni files
Sometimes you want to move some .oni files out of a larger folder of .onis. You could do this manually, but OniSpit knows which files depend on others. It will also look for those dependencies in subfolders beneath the level of the file you supply the name of. The filename field supports wildcards. This is mostly used by the AE Installer rather than modders themselves.
-deps <oni file> |
Displays a list of .oni files that the specified .oni file depends on |
-copy <destination directory> <oni file> |
Copies .oni file and its dependencies; skips file if it already exists at destination |
-move <destination directory> <oni file> |
Moves an .oni file and its dependencies; skips file if it already exists at destination |
-move:overwrite <destination directory> <oni file> |
Moves an .oni file and its dependencies; overwrites any existing .oni files |
-move:delete <destination directory> <oni file> |
Moves an .oni file and its dependencies; doesn't overwrite; deletes source files |
Conversion between .oni/.dat and 3rd party formats
Textures
Unless mentioned otherwise, source filenames support wildcards. See HERE for a detailed tutorial. The -extract commands can work with .oni files (a single file or several files if you use the wildcard), or rip all the TXMPs from a .dat file.
-extract:dds <destination directory> <dat/oni file> |
Extracts all textures (TXMP) from a Oni .dat/.oni file into DDS files |
-extract:tga <destination directory> <dat/oni file> |
Extracts all textures (TXMP) from a Oni .dat/.oni file into TGA files |
-extract:png <destination directory> <dat/oni file> |
Extracts all textures (TXMP) from a Oni .dat/.oni file into PNG files |
-create:txmp <destination directory>
|
Creates .oni file from image file (PNG, TGA, or DDS) |
Models
M3GMs, ONWCs, ONCCs can be exported to the Wavefront .obj and COLLADA .dae formats. For details see Importing character models and Importing weapon models. The generic -extract commands can work with .oni files (a single file, or several files if you use the wildcard), or rip all the TXMP from a .dat file. TRBS and ONCC support additional -noanim and -anim options for -extract:dae; see Importing character models for details. Imported geometry must only contain triangles.
-extract:obj <destination directory> <dat/oni file> |
Extracts 3D data in .oni file (or all M3GM, ONWC and ONCC instances in a .dat) into Wavefront OBJ files |
-extract:dae <destination directory> [-noanim] <dat/oni file> |
Extracts 3D data in .oni file (or all M3GM, ONWC and ONCC instances in a .dat) into Collada DAE files |
-create:m3gm <destination directory> [-tex:texture_name] <OBJ file> |
Creates a M3GM .oni from an .obj file |
-create:trbs <destination directory> [-cel] [-normals] <DAE file> |
Creates a TRBS .oni from a .dae file |
Note on -noanim parameter: Normally OniSplit exports the character with an idle animation. If you use -noanim the character is exported in "I" pose, also the pelvis has the coordinates x=0, y=0, z=0.
Levels
OniSplit can convert AKEV files (level geometry) and the associated file types to and from DAE format:
-extract:dae <destination directory> <AKEV.oni file> |
Extracts 3D data in AKEV and related resources from dependencies into Collada file |
The next two steps are used on a folder in which you have placed the DAE and XML-formatted instances of the required files, as well as textures in TGA format. See HERE for details.
-create <destination directory> |
Converts all AKEV and related instances to .oni files |
-import:nosep <source directory> |
The standard command for creating .dat/.raw files from .oni files (remember to use the import:sep option on Mac!) |
Sounds
The sounds in Windows Oni are stored in WAV format, and on Macs are stored in AIFF format. This also means creating each of your SNDD files in both formats in order to work on both platforms.
-extract:wav <destination directory> <dat/oni file> |
Rips sound data from an SNDD .oni file (or all SNDDs from a .dat) as .wav files |
-extract:aif <destination directory> <dat/oni file> |
Rips sound data from an SNDD .oni file (or all SNDDs from a .dat) as .aif files |
Text
-extract:txt <destination directory> <dat/oni file> |
Rips text data from a SUBT .oni file (or all SUBTs from a .dat) as .txt files |
-create:subt <destination directory> <TXT file> |
Creates a SUBT .oni file from a .txt file |
XML
One of the latest features is conversion of .oni files to and from an XML file, or an XML metafile and related 3rd-party format files. XML files are easier to read and edit.
- Currently XML export/import is limited to files that do not have raw/sep parts. 2-way conversion is known to work for BINA, CONS, DOOR, DPge, FILM, HPge, IGHH, IPge, M3GM, OBAN, ONCC, ONCV, ONLD, ONLV, ONGS, ONSK, ONVL, ONWC, OPge, OSBD, PSpc, PSpL, PSUI, TRAC, TRAM, TRIG, TRGE, TRMA, TRSC, TXMB, TXMP, WMCL, WMDD, WMM_, WPge.
- For detailed examples and tutorials, see HERE
- Currently XML export/import is limited to files that do not have raw/sep parts. 2-way conversion is known to work for BINA, CONS, DOOR, DPge, FILM, HPge, IGHH, IPge, M3GM, OBAN, ONCC, ONCV, ONLD, ONLV, ONGS, ONSK, ONVL, ONWC, OPge, OSBD, PSpc, PSpL, PSUI, TRAC, TRAM, TRIG, TRGE, TRMA, TRSC, TXMB, TXMP, WMCL, WMDD, WMM_, WPge.
-extract:xml <destination directory> <oni file> |
Extracts .oni file and all related resources to XML files and 3rd-party formats |
-create <destination directory> <XML file> |
Creates an .oni file from an XML file |
Blender support
Blender by default has a number of issues with most of Oni's assets, however, OniSplit allows exporting them to Blender-readable files with the -blender flag.
For more detailed information on how to use the -blender flag, please check Blender specific OniSplit information.