XML:TXMB: Difference between revisions

155 bytes added ,  29 September 2019
added intro template to template section; renamed and rewrote section as well
(→‎Creating a TXMB: rewriting instructions, as dox's link is broken; referenced material to be added shortly)
(added intro template to template section; renamed and rewrote section as well)
Line 50: Line 50:


*The XML code on this page is compatible with OniSplit '''v0.9.61.0'''
*The XML code on this page is compatible with OniSplit '''v0.9.61.0'''
*TXMB files create the ''splash screens'' which we see at the start and end of levels (making three total: the title screen, an endscreen for losing the level, and one for winning).
*TXMB files create the ''splashscreens'' which we see at the start and end of levels (making three total: the title screen, an endscreen for losing the level, and one for winning).
*A TXMB file simply hold links to TXMPs which are assembled by Oni to display a larger picture than the maximum size of a single texture.<br>The current max resolution for a single TXMP in Windows is 512x512 and on Mac is 1024x1024 as of 2018.
*A TXMB file simply hold links to TXMPs which are assembled by Oni to display a larger picture than the maximum size of a single texture.<br>The current max resolution for a single TXMP in Windows is 512x512 and on Mac is 1024x1024 as of 2018.
*The arrangement of the constituent TXMPs into columns and rows is computed at runtime. Probably the engine stacks TXMPs horizontally until the value in the Width field is reached, and then starts a new row.
*The arrangement of the constituent TXMPs into columns and rows is computed at runtime. Probably the engine stacks TXMPs horizontally until the value in the Width field is reached, and then starts a new row.
Line 86: Line 86:
==Creating a TXMB==
==Creating a TXMB==
===Manually===
===Manually===
You can create the TXMB manually by splitting a large image into pieces, converting them to TXMP.oni files with OniSplit, and then referencing them in a TXMB.xml file in the format given under "General information". Note that the intro screen PSDs linked to under "Custom splashscreen template" have built-in guides for quick slicing of an image (see the read-me in the ZIP). Once you have converted the slices to .oni format and have written the TXMB.xml file, pass it to OniSplit with the "-create" command to get the TXMB.oni file. You now have the TXMB.oni and TXMP.oni files that you need to present a splashscreen in your level.
You can create the TXMB manually by splitting a large image into pieces, converting them to TXMP.oni files with OniSplit, and then referencing them in a TXMB.xml file in the format given under "General information". Note that the intro screen PSDs linked to under "Splashscreen template" have built-in guides for quick slicing of an image (see the read-me in the ZIP). Once you have converted the slices to .oni format and have written the TXMB.xml file, pass it to OniSplit with the "-create" command to get the TXMB.oni file. You now have the TXMB.oni and TXMP.oni files that you need to present a splashscreen in your level.


===Tool-assisted===
===Tool-assisted===
Line 139: Line 139:
*The "4" in "tile -4x" is derived from your knowing that this TXMB is 1024x1024 and the TXMPs are 256px wide, therefore the TXMB is made up of 4 columns of TXMPs.
*The "4" in "tile -4x" is derived from your knowing that this TXMB is 1024x1024 and the TXMPs are 256px wide, therefore the TXMB is made up of 4 columns of TXMPs.


==Creating custom splash screens (similar to original game style)==
==Splashscreen template==
'''ViciousReilly''' provided to the community the following Adobe Photoshop templates that allow any modder to create similar splash screens to the ones found in the original game:
ViciousReilly provided to the community the following Adobe Photoshop templates that allow any modder to create similar splashscreens to the ones found in the original game. '''If you use the templates, please give credit to ViciousReilly for his work!'''
* [http://iritscen.oni2.net/wiki/Intro%20Splash%20Templates.zip Intro screen]
* [http://script10k.oni2.net/wikifiles/ONI_LevelSplash_Template.zip Win / Lose screens]
* [http://script10k.oni2.net/wikifiles/ONI_LevelSplash_Template.zip Win / Lose screens]
* [http://script10k.oni2.net/wikifiles/xenotron_broadstrok.zip Xenotron font]


'''If you use the templates above please give credit to ViciousReilly for his work!'''
The Xenotron font, used by Oni and by us in these templates, can be downloaded from the [[Xenotron]] page.


Example of splash screen that uses the templates above (note: it includes some extra editing not present in the templates):
Samples of splashscreens produced with the above templates (note: final versions of splashscreens in mods may include extra editing not present in the templates):
[[File:OmegaTournamentLose1Splash.png|thumb|left]]
<gallery widths=512px heights=384px>
File:HD Training intro screen.jpg
File:Omega Tournament lose 1 splash.png
</gallery>


{{XML}}
{{XML}}