Creating a level: Difference between revisions

289 bytes removed ,  Yesterday at 21:45
m
no edit summary
mNo edit summary
mNo edit summary
Line 157: Line 157:
The level import demo files can be downloaded [http://mods.oni2.net/node/299 HERE].
The level import demo files can be downloaded [http://mods.oni2.net/node/299 HERE].


First, put '''OniSplit.exe''' into the second '''lab''' folder alongside the XML files.
Look at the file '''build.cmd'''. These are the two important lines:
OniSplit.exe -create:level out lab.xml
OniSplit.exe -import:pc out level3_Final.dat
The first line creates the *.oni files from a master.xml file, in this case '''lab.xml'''. Once finalized, the resulting .oni files can be put into a new [[Making a mod package|AE package]].
The second line creates level archives which can be used for fast tests. They don't require you to install a package through the AE Installer.
Instead of "-nosep" you can now also use "-pc" for the import. Macs, however, do use "-sep".
==Troubleshooting==
If the game crashes while loading at ~90% progress, be sure that the texture's x and y dimensions are powers of two: 64, 128, 256, 512….
If the game crashes while loading at ~50-60% progress, be sure that the BINACJBOCharacters or AISA file has a player character defined.
If the game crashes while loading ~5-10% progress, check if all your textures were inside the "out" folder.
:You can extract the AKEV file to XML, then search for the [[XML:AKEV#TXMA|TXMP Array]].
:[http://mods.oni2.net/system/files/AKEV_texture_checker.txt THIS] script checks which textures are missing by comparing the AKEV*.xml with its *.oni files folder. Change the two paths so that it works for you: Alt+4, insert code, then F5.
"TXMP_marker_door" and "TXMP_marker_ghost" will be missing in the demo's "out" folder.
You can add this between the other two lines in build.cmd to prevent a crash.
OniSplit.exe -create:txmp out env/markers/*.tga
==Todo: update workflow==
When you unpacked the folders shared and lab into the GameDataFolder your setup should look like this. With the shared folder in the GDF you can easily create more level projects. Be sure to update the build.cmd for these projects.
When you unpacked the folders shared and lab into the GameDataFolder your setup should look like this. With the shared folder in the GDF you can easily create more level projects. Be sure to update the build.cmd for these projects.
{{Tree list}}
{{Tree list}}
Line 206: Line 176:
{{Tree list|end}}
{{Tree list|end}}


build.cmd
Content of build.cmd
  OniSplit -create:level out lab.xml
  ..\..\..\AE\Tools\OniSplit -create:level out lab.xml
  OniSplit -create:txmp out env/markers/*.tga
  ..\..\..\AE\Tools\OniSplit -create:txmp out env\markers\*.tga
  REM use quote signs for folder names the contain spaces
  REM use quote signs for folders names the contain spaces
  OniSplit -create post-create-patches post-create-patches/*.xml
  ..\..\..\AE\Tools\OniSplit -create post-create-patches post-create-patches\*.xml
  copy /Y post-create-patches\*.oni out
  copy /Y post-create-patches\*.oni out
  OniSplit -import:pc out ../level3_Final.dat
  ..\..\..\AE\Tools\OniSplit -import:pc out ..\level3_Final.dat
  REM read error messages, close console with any key press
  REM read error messages, close console with any key press
  pause
  pause
Line 218: Line 188:
  Oni.exe -noswitch
  Oni.exe -noswitch


Known issues of lab demo:
Known issues of lab demo
* Motocycle anim (OBAN) is to low
* Motocycle anim (OBAN) is to low
* second scene block shows no motorcycle
* second scene block shows no motorcycle
* uses an automated fix for updating TXMPgoo
* uses an automated fix for updating TXMPgoo
Notes on packaging
* Hit "build.cmd" to create .oni files. They will be stored in the "out" folder and can be used to make a new [[Making a mod package|AE package]].
* Normally, "TXMP_marker_door" and "TXMP_marker_ghost" will be missing in the "out" folder so we added a line to handle that as well.
* The script continues to build level3_Final files and starts Oni so you can instantly test the level. That is much faster then using the AEInstaller.
* To generate test archives for Macs, use the "-import:sep" argument instead of "-import:pc".
==Troubleshooting==
If the game crashes while loading at ~90% progress, be sure that the texture's x and y dimensions are powers of two: 64, 128, 256, 512….
If the game crashes while loading at ~50-60% progress, be sure that the BINACJBOCharacters or AISA file has a player character defined.
If the game crashes while loading ~5-10% progress, check if all your textures were inside the "out" folder.
:You can extract the AKEV file to XML, then search for the [[XML:AKEV#TXMA|TXMP Array]].
:[http://mods.oni2.net/system/files/AKEV_texture_checker.txt THIS] script checks which textures are missing by comparing the AKEV*.xml with its *.oni files folder. Change the two paths so that it works for you: Alt+4, insert code, then F5.


==Terminology==
==Terminology==
8,979

edits