Warlock 2: the Exiled

Warlock 2: the Exiled

Conjure up Your Own Magical Kingdom
Map and scenario editor: make maps, edit quests and create scenarios. Edit, add and remove great mages, spells, actions and artifacts. Change their parameters, portraits, icons, names and more!
Köttjörgen 19 May, 2014 @ 1:47am
A quick tool for converting xr/xml with drag and drop.
OneSoulLegion (of Paradox forum fame, also a Paradox employe) wrote a small tool to help new modders out:

"I know using command line to convert those .xr files to .xml and back can get a little tedious, so here's a tip for you to make your life easier. It's pretty basic, but it does the job. =)

Basically, make yourself a batch file (a .bat file) with any name, I like "XR Tool.bat" myself. This can be placed on your desktop, or in a modding folder, or anywhere you can easily drag and drop files onto it, one by one or several at once.

Inside it, put the following and make sure to replace the path to your Warlock 2 folder as relevant on the two lines:

Code:

@echo off
if [%1]==[] goto :eof
:loop
if "%~x1" == ".xml" (
echo Compressing xml
"C:\Program Files (x86)\Steam\SteamApps\common\Warlock 2\XRconvert_Final.exe" %1 -t:bin
) else (
echo Extracting xml
"C:\Program Files (x86)\Steam\SteamApps\common\Warlock 2\XRconvert_Final.exe" %1
)
shift
if not [%1]==[] goto loop

Save the file, and you can then drag/drop files onto the .bat, and it'll convert them in the same folder as the original file.


The original Paradox Forum thread can be found here:
http://forum.paradoxplaza.com/forum/showthread.php?776232-A-quick-tool-for-converting-xr-xml-with-drag-and-drop.

If you have any questions, that's the place to ask them!

Cheers,
< >
Showing 1-5 of 5 comments
Bohandas 7 19 May, 2015 @ 5:40pm 
What is it we're supposed to be dragging and dropping into it?
Shidan 34 19 May, 2015 @ 6:31pm 
Originally posted by Bohandas:
What is it we're supposed to be dragging and dropping into it?
Xr and xml files. To convert between the two.

As the game can only read them in xr format, while we can only edit them in xml.
Last edited by Shidan; 19 May, 2015 @ 6:32pm
Bohandas 7 19 May, 2015 @ 9:24pm 
Is this supposed to be for unpacking stuff too? Because there don't appear to be any files with either of those extensions associated with the game
Shidan 34 19 May, 2015 @ 9:42pm 
They are located in the .pack files. For ease of use for others I have download link that I give to others that has all three files that contain data you can transfer into a mod.

https://www.dropbox.com/s/1844pom7tlkkbp8/Data%20Files.zip?dl=0
Bohandas 7 19 May, 2015 @ 10:49pm 
Thanks! :)
< >
Showing 1-5 of 5 comments
Per page: 1530 50