MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

STBLize

by Buzzler Posted 2nd Oct 2015 at 9:45 PM - Updated 2nd Oct 2015 at 11:02 PM by Buzzler
52 Thanks  Thanks     13 Favourited
This is a small console tool to generate STBL resources from XML input files. It's based on twallan's STBL.

usage
The usage is the same as in twallan's version.

1. Write your XML file
The input file is composed of a bunch of KEY and STR tags enclosed in a TEXT tag. The position of the KEY and STR tags is important with the KEY tag first and the STR tag afterwards and so on.
Code:
<?xml version="1.0"?>
<TEXT>
  <KEY>Key1</KEY>
  <STR>Value1</STR>
  <KEY>Key2</KEY>
  <STR>Value2</STR>
</TEXT>


2. Compile the file using STBLize
The first argument when starting STBLize needs to be the path to the XML file. You can start a command line and actually start STBLize from there like some sort of caveman.

The recommended way is to copy the STBLize.exe to the folder where your XML file is located and then simply drag the XML file on the STBLize executable.


You can find more in-depth information about what to use this for and how to write it in this tutorial by yours truly: Tutorial:Sims_3_Localized_Codingwiki

requirements
STBLize is a .NET program and requires .NET 4.

but why?
The original STBL.exe uses manual XML parsing. As such it is vulnerable to different formatting, whitespaces etc. When you e.g. use indention in the original one, the keys will get messed up. STBLize interprets the input files as actual XML. Because of that, it completely ignores the formatting of the input files.

sources
The sources are attached. It's the whole Visual Studio 2012 solution. If I remember correctly, the solution format of VS2010 and VS2013 is exactly the same. Dunno about VS2015.

terms of use
STBLize and its sources are in the public domain. To my best knowledge this should be in line with twallan's TOUs.

credits
Credits to twallan for the original STBL.exe



Download files

Filename Size Downloads Date
STBLize_Sources.zip | Source Code

Size: 5.7 KB · Downloads: 264 · 2nd Oct 2015
5.7 KB 264 2nd Oct 2015
STBLize.zip | Executable

Size: 3.8 KB · Downloads: 485 · 2nd Oct 2015
3.8 KB 485 2nd Oct 2015

Key: - File was updated after upload was posted
Tip: You can click the magnifying glass to see the archive contents

Need help with downloading or installing content? Click here!
 
4 Comments / Replies (Who?)

Expansion/Stuff packs required:
Sims 3

4 Comments / replies (Who?)

747 Downloads

34,934 Views

Operating System: Windows
Utility Type: Miscellaneous
Plugin Type: Not Applicable

Tags: #STBL