Jump to content

XML:TXMB: Difference between revisions

6 bytes removed ,  29 September 2019
→‎Creating a TXMB: rewriting instructions, as dox's link is broken; referenced material to be added shortly
(ViciousReilly provided some nice templates to create similar splash screens to those present in vanilla)
(→‎Creating a TXMB: rewriting instructions, as dox's link is broken; referenced material to be added shortly)
Line 85: Line 85:


==Creating a TXMB==
==Creating a TXMB==
You can use [[Vago_(tool)|Vago]] to create a TXMB and its constituent TXMPs with the menu item "Tools">"Background Image Wizard".
===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.


Alternatively, you can create the files manually using the following process (this example makes a 640x480 TXMB):
===Tool-assisted===
*The actual work is to split the image into six smaller ones.
It's much faster to use [[Vago_(tool)|Vago]] to create a TXMB and its constituent TXMPs — see Vago's menu item "Tools>Background Image Wizard".
*You can use Photoshop, or else a TIFF should work with any other layer-supporting image editor.
*The six-part colored layer should help when the program cannot load a selection.
*Let's drag'n'drop our image into this [http://www.paradox.oni2.net/mods/TXMB_barebone_tif_and_psd.zip TXMB template (.psd / .tif)] and move to to the center.
*Now we can right-click, load a selection, crop and save it as "..._N" (whereas N is a number from 0 to 5).
*Let's redo crop, load another selection, save this piece, and so on.


===Algorithm to split an image for TXMB===
===Algorithm to split an image for TXMB===