-
Notifications
You must be signed in to change notification settings - Fork 8
Example Script
Robert Jordan edited this page Dec 16, 2017
·
2 revisions
Below is an example of what a script may look like. The primary use is converting and renaming files when outputing them to Xnb. Scripts can also extract Xnb or wave bank files if they are listed.
<?xml version="1.0" encoding="UTF-8"?>
<TConvertScript>
<Output Path="C:\Programs\Games\Steam\steamapps\common\Terraria\Content"/>
<!--Restore just in case an image doesn't need to be overwritten anymore-->
<Restore Path="C:\Programs\Games\Steam\steamapps\common\Terraria\BackupContent"/>
<!--All preceding images will be compressed-->
<Compress Value="True"/>
<!--Image Files-->
<Folder Path="C:\Users\Onii-chan\Pictures\Terraria">
<!--Set output path to "C:\Programs\Games\Steam\steamapps\common\Terraria\Content\Images"-->
<Output Path="Images"/>
<File Path="NewLogo.png" OutPath="Logo"/>
<!--This single image will not be compressed-->
<File Path="NewLogo2.png" OutPath="Logo2" Compress="False"/>
<!--Folders can have subfolders-->
<Folder Path="ZeldaImages">
<!--Folder path is now "C:\Users\Onii-chan\Pictures\Terraria\ZeldaImages"-->
<!--These images will not be compressed-->
<Compress Value="False"/>
<File Path="RupeeGreen.png" OutPath="Item_71"/>
<File Path="RupeeBlue.png" OutPath="Item_72"/>
<File Path="RupeeRed.png" OutPath="Item_73"/>
<File Path="RupeeGold.png" OutPath="Item_74"/>
<File Path="RupeeGreenAnimation.png" OutPath="Coin_0"/>
<File Path="RupeeBlueAnimation.png" OutPath="Coin_1"/>
<File Path="RupeeRedAnimation.png" OutPath="Coin_2"/>
<File Path="RupeeGoldAnimation.png" OutPath="Coin_3"/>
</Folder>
</Folder>
<!--Sound Files-->
<Folder Path="C:\Users\Onii-chan\My Sounds\Terraria">
<Output Path="Sounds"/>
<File Path="Joseph-OHMYGOD-Death.wav" OutPath="Player_Killed"/>
<File Path="LinkAttack1.wav" OutPath="Item_1"/>
<File Path="LinkAttack2.wav" OutPath="Item_18"/>
<File Path="LinkAttack3.wav" OutPath="Item_19"/>
<!--Files can be output to multiple locations-->
<File Path="Rupee.wav">
<Out Path="Coin_0"/>
<Out Path="Coin_1"/>
<Out Path="Coin_2"/>
<Out Path="Coin_3"/>
<Out Path="Coin_4"/>
</File>
</Folder>
</TConvertScript>