TSetAdd2 Readme 5-15-07

I remade this program to overcome the vast limitations of the old TSetAdd.
This program replaces it, throw the other out if you have it!


The program is made to load edit.dax data (made by my TarSetDataMaker program) into Tardata.dat
-------------

--> 1. Place your Targets.dat and Tardata.dat into the programs folder

--------------
--> 2. Launch the program, and chose the .dax you wish to use. 

--> 3. When it asks, just enter the record number of the base record of your Targets.dat

This is simple decimal number for the Tcode.
Numbers from 0 - to whatever
(0 being the first record, 1 the second, etc.)

in most cases it would for default EAW only be up to 301 , since there is 302 bases total, of course now MrJelly's program and some others have coded up to 308 bases for EAW... at any rate the program does not care how large (or small.. hint ;) your targets.dat or tardata.dat is, it can edit any concievable size (well at least 32 or > bytes that is), it just loads it, calculating every targets.dat record as 32 bytes, and of course any block of tardata records as a whole chunk of however many 32 bytes lines)


--> 4. Next it will ask "do you want to keep the existing objects?"

"yes", and it will also move them to the new end of tardata.dat.
"No" to only load the edit.dax objects data

No matter if what, it then loads the edit.dax data to the end of tardata.
(if you keep the old objects it also makes a block copy and saves in a file named tardumpt, just for whatever insane use you may have later.. lol!)


It automatically recalculates the new pointer to the new tardata location and also the number of objects now present there, and writes the needed numbers into the targets.dat base record.
Then of course it calculates the new tardata header and writes it to tardata.
It zeroes the old tardata location tcode byte so only the new objects will be used.


--> 5.That's it, you are done, 

->the new targets.dat and tardata.dat are located in the outputs folder
note every time you run the program it overwrites these with no warning, so move them somewhere!<-

-> it backed up your original with a filedate name

->a report of changes is in TarSetChanges.txt , appending it to end every time.


-------
extra batch files incuded :
additonal batch file keepgoing.bat.txt located in outputs folder, just rename it remove the .txt
and with one click it will move your new files back into the main folder to be edited again.

getout.bat.txt is there to more them somewhere or somewhereelse - you'll have to put where, likely your EAW folder for testing ;)

-----

extra note:
linedata feature was removed, it was useless anyway really.

----

--- Techy notes:
The program and I assume you targets.dat and tardata.dat are made properly to begin with, and existing pointers are correct.
The sequence it follows is it takes the number you give it, then multiplies it by 32, then reads your targets.dat record found at that location and gets the both the number of objects listed and the existing pointer to tardata.
Then it jumps to tardata there,counts and grabs your data if wanted,  makes copy of the first line for the odd bytes of data needed to fill with the edit.dax data, it zeroes the left over tcode byte, writes the new data to end, and does all the other needed calculations as mentioned.
---
other notes:
I personly never recommend using tcode 0 (old default EAW Brest location) but that is up to you..

-S!
RAF_Roy













