What are TRE Files. Many new people into SWG Emulation projects often wonder this question.


We would like to explain so you have a better idea.


A TRE file is short for TREE file. Simply stated, a TRE file is a collection of programming that runs the CLIENT SIDE portion of what you see rendered in a computer video game.

This file is what handles displaying, and at times, organizing, the scripting and programming on the live server.


Many times, people think a video game is displayed compeltly remote, over the Internet. I thought that too. They is actually a misconception. A video game typically using a server-side based C++ or C# programmed game engine (SWG uses standard Linux based C++), and a scripting engine to do the actual server load. Modern games use LUA scripting language. (WoW, SWG, Age of Camelot, and a few others use LUA). I believe SWG was one of the first.


If you want to get good at programming or assist us here at the SWG Resurrection Project, learn LUA and C++!.


Back to TRE files. So, there are GB's worth of art and data that must be displayed in game. It obviously would not be effective have that pushed down an internet connection. So, that information is loaded, from tables, datatables, and config files, inside a collection file called a TRE.


So, when you are missing TRE files, you are effectively missing artwork, datatables, programming information, and other data needed to render (or produce) objects, quests, loot, and characters in the SWG world. 


One of the most common issues with adding custom or NGE content, is that we have to put data in TRE files, which we call custom TRE files. We use one at the time of writing, for simplicity. Everytime we add new content, I add to the TRE file. Some projects add multiple TRE files that do different things (think NGE vehicles, armor, weapons, etc).

So, our updater provides you with the latest TRE file, which provides you with custom art, quests, datatables, etc. 

If you are missing content, like you spawn a sith speeder, see the deed, but no speeder shows, thats usually because you are missing artwork and other files to control the speeder. So you do not have the TRE, or have an incomplete TRE file. Its almost always client side!


Take a look at how large your 52 TRE file collection is for SWG Resurrection. Its GB large! That is all of your ingame content, plus some unused content that may be added later!


Pretty cool, eh?



Also, there is a file that dictates the EXACT list of TRE files you need. This file is used by the launcher to ensure you have what you need to run the game. You can view it in a text editor, BUT, DO NOT MESS UP OR ALTER THE FILE. IF YOU CHANGE THE SEQUENCING OF THE ITEMS YOU WILL ALSO MESS IT UP. Good new though, if you do, just delete that file and run <UPDATE> and the Launcher will grab the latest again! 


resurrection_live.cfg -> the latest TRE file is always at the top.

At writing here is the current live file (as we call it)


====Start====




[SharedFile]

    maxSearchPriority=27
    searchTree_00_25=C:\swgresurrection\TRE\resurrection_01.tre
    searchTree_00_25=C:\swgresurrection\TRE\default_patch.tre
    searchTree_01_24=C:\swgresurrection\TRE\patch_sku1_14_00.tre
    searchTree_00_23=C:\swgresurrection\TRE\patch_14_00.tre
    searchTree_01_22=C:\swgresurrection\TRE\patch_sku1_13_00.tre
    searchTree_00_21=C:\swgresurrection\TRE\patch_13_00.tre
    searchTree_01_20=C:\swgresurrection\TRE\patch_sku1_12_00.tre
    searchTree_00_19=C:\swgresurrection\TRE\patch_12_00.tre
    searchTree_00_18=C:\swgresurrection\TRE\patch_11_03.tre
    searchTree_01_17=C:\swgresurrection\TRE\data_sku1_07.tre
    searchTree_00_16=C:\swgresurrection\TRE\patch_11_02.tre
    searchTree_01_15=C:\swgresurrection\TRE\data_sku1_06.tre
    searchTree_00_14=C:\swgresurrection\TRE\patch_11_01.tre
    searchTree_00_14=C:\swgresurrection\TRE\patch_11_00.tre
    searchTree_01_13=C:\swgresurrection\TRE\data_sku1_05.tre
    searchTree_01_13=C:\swgresurrection\TRE\data_sku1_04.tre
    searchTree_01_13=C:\swgresurrection\TRE\data_sku1_03.tre
    searchTree_01_13=C:\swgresurrection\TRE\data_sku1_02.tre
    searchTree_01_13=C:\swgresurrection\TRE\data_sku1_01.tre
    searchTree_01_13=C:\swgresurrection\TRE\data_sku1_00.tre
    searchTree_00_12=C:\swgresurrection\TRE\patch_10.tre
    searchTree_00_11=C:\swgresurrection\TRE\patch_09.tre
    searchTree_00_10=C:\swgresurrection\TRE\patch_08.tre
    searchTree_00_9=C:\swgresurrection\TRE\patch_07.tre
    searchTree_00_8=C:\swgresurrection\TRE\patch_06.tre
    searchTree_00_7=C:\swgresurrection\TRE\patch_05.tre
    searchTree_00_6=C:\swgresurrection\TRE\patch_04.tre
    searchTree_00_5=C:\swgresurrection\TRE\patch_03.tre
    searchTree_00_4=C:\swgresurrection\TRE\patch_02.tre
    searchTree_00_3=C:\swgresurrection\TRE\patch_01.tre
    searchTree_00_2=C:\swgresurrection\TRE\patch_00.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_other_00.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_static_mesh_01.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_static_mesh_00.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_texture_07.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_texture_06.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_texture_05.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_texture_04.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_texture_03.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_texture_02.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_texture_01.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_texture_00.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_skeletal_mesh_01.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_skeletal_mesh_00.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_animation_00.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_sample_04.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_sample_03.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_sample_02.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_sample_01.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_sample_00.tre
    searchTree_00_1=C:\swgresurrection\TRE\data_music_00.tre
    searchTree_00_0=C:\swgresurrection\TRE\bottom.tre
   
[SharedNetwork]
    networkHandlerDispatchThrottle=true

[ClientUserInterface]
    messageOfTheDayTable=live_motd

[SwgClientUserInterface/SwgCuiService]
    knownIssuesArticle=10424

[Station]
subscriptionFeatures=1
gameFeatures=65535



====End====


You see you need all those TRE files in c:\swgresurrection\tre to run the game.



So this general equation is a good one to remember to keep you running smoothly.


Latest launcher + Latest TRE file + rest of needed tre files + correct game settings = game launch.



We hope this helps you understand TRE files a bit more!