Mudkip1001 wrote:uktrackbuilder_loco wrote:You could try taking a dat from the miscelleanous section and decompiling it and doing the same for a normal building noting the differences in the xml coding as that will be where the necessary flag is to set the building type, for that you'll need locochanger to decompile the dats and remember when viewing the resulting xml files, use notepad or similiar to read them as IE will attempt to prevent you reading them if you use that programme to view them in
Just a quick question, what is the "locochanger"? I have the locotool and locowrapper, and in the tutorials they mention "Copy a dat file from your objdat folder to the folder locochanger." and "Copy a dat file from your objdat folder to the folder locochanger.". Where is this folder, or where do I have to make it? I'm not very good with coding/programming. Right now, I'm having problems with decompiling dat files to xml.
http://www.tt-wiki.net/wiki/UsingLocoTools
links you to the version where you'll find the tool, there is also a sticky on the use of the program in the forum here as well and it is very self explanatory, you download it into a separate folder away from your objdata folder, back up your objdata folder and then unzip and run locotool
you copy repeat copy the dat you wish to decompile into that folder where you then select it and hold it over the icon for locotool and that will create an xml file and a folder in which will be the rendered sprites for the object
you read the xml file in notepad, do not use IE as it tends to reject reading it as it will come up with some garbage about active x controls, the xml is the code and when you are done in notepad you save and overwrite that file
To recompile the dat file with modifications, hover the completed xml file over the icon again and that will recreate the dat file with your modifications and a back up file of the dat
The reason for copy is simple, the original dats provided with locomotion are essential to it running so you never cut a dat file out because you will not be sure what it's importance is to the game or more pertinently any saved games, so it is best to play it safe that way if you do screw up then the backed up dat can be used to overwrite the modded one