Merry Christmas Modders Spreadsheet Gold
Posted: Tue Dec 22, 2009 8:06 am
Hello
As you know each OOB file has a specific character line length. This Line length is unique to each game. We will use East Front for the example. I have used excel to generate an ascii text file that can be used for the OBX file. It is a clear text file and can be edited with notebook and inserted in really any spreadsheet program that can utilize formulas to extract the data you need.
1. Open your spreadsheet program.
2. Drag and drop the OOB file that is to be edited in a blank spreadsheet
(Platoon10.OOB is being used)
In column A2 will be the entire line 1 of the OOB, A3 will be line 2 , etc
I created a header to help me in identifying the various columns.
3. In Colum B is the formula to insert a number of character spaces based on a given constant (199, note 198 will be used to compensate for the end of line marker that is the comma).
4. In column C is the end of line marker (,). This will identify the exact end of the line in the ASCII file.
5. In column D is the formula to get the total of characters to be inserted in the Line
6. In Column E is the sum of the Column D that is used in the formula for column B.
7. Once everything is completed save as a tab delimited text file.
8. Open Notepad find and replace tabs with no spaces. Delete all “ as well as everything after the comma.
Note this whole process takes about 5 minutes to do on this OOB.
Below is listed the formula and or text header
A B C D E
Platoon file line =rept(“ “,-(e2)) , =len(a2)-198 =sum(d2)
Note this format can be used for the weapons.pdt file as well. This will work in 1.04 +
Have Fun!
May the Mods and Tweeks be with you
Marc
East Front is 199 CL
WF Not sure 177 CL
RS Not sure 195 CL
As you know each OOB file has a specific character line length. This Line length is unique to each game. We will use East Front for the example. I have used excel to generate an ascii text file that can be used for the OBX file. It is a clear text file and can be edited with notebook and inserted in really any spreadsheet program that can utilize formulas to extract the data you need.
1. Open your spreadsheet program.
2. Drag and drop the OOB file that is to be edited in a blank spreadsheet
(Platoon10.OOB is being used)
In column A2 will be the entire line 1 of the OOB, A3 will be line 2 , etc
I created a header to help me in identifying the various columns.
3. In Colum B is the formula to insert a number of character spaces based on a given constant (199, note 198 will be used to compensate for the end of line marker that is the comma).
4. In column C is the end of line marker (,). This will identify the exact end of the line in the ASCII file.
5. In column D is the formula to get the total of characters to be inserted in the Line
6. In Column E is the sum of the Column D that is used in the formula for column B.
7. Once everything is completed save as a tab delimited text file.
8. Open Notepad find and replace tabs with no spaces. Delete all “ as well as everything after the comma.
Note this whole process takes about 5 minutes to do on this OOB.
Below is listed the formula and or text header
A B C D E
Platoon file line =rept(“ “,-(e2)) , =len(a2)-198 =sum(d2)
Note this format can be used for the weapons.pdt file as well. This will work in 1.04 +
Have Fun!
May the Mods and Tweeks be with you
Marc
East Front is 199 CL
WF Not sure 177 CL
RS Not sure 195 CL