02-01-2012, 06:42 PM
I'm stuck in this tutorial so just need some help from experts:
The lines in the blue where i've on question about
Q1. What is the offset of last data byte? (n whose offset svr07? or svr10?)
Q2.With which number should i multiply the result?
waiting for your replies
)First of all open up your ch.pac file of svr 2007 in the Hex Workshop.
2)Now you have to search for the string pof0.When the search is completed you will get all the instances where pof0 occurs in the file.Now before the pof0 string you could find the name of the wrestler e.g. The Rock with pof0 at offset 3A997.Note down the offset of pof0 somewhere.Now search for the string PAC and look for the PACs in which these pof0 lies i.e. if there is a PAC at 4000 and another PAC at 8800 and pof0 is at 7432 then you need to select all the data starting at 4000 and till (8800-1).There will be many pof0 strings for a wrestler so you need to look for all the pof0 strings till you find a pof0 with another wrestler's name before it.
E.g. The poF0 after Stone Cold starts at E5BA6.So if you want data of The Rock you will have to COPY the Pacs at the offset 4000 and 4E800 as these PACs would contain all the pof0 strings that occur before the pof0 having SCSA written before it.You wont copy the PAC at AD800 as it contains Stone Cold's data.So simply place your cursor at 4000 and just use Select Block option in the Edit Menu of Hex Workshop and type in the Ending Position as (4E800-1)i.e.4E7FF.It will select the two pacs associated with The Rock.
3)Now just copy the entire selected block and open the CH.pac file 0f svr 2010.Here you need to find the first valid offset.To find that just note down the offset of last data byte and then divide the offset by 800.Then you will obtain a result.Note the Result and then clear the calculator.Now multiply the Result obtained by 800 and then add 800 to obtain the first valid offset.It comes out to be 13AE000.This is the offset you will paste your data that you copied from ch.pac file of svr 07.
Note:A valid offset will always end at 000 or 800.
4)Now when you have copied the data you need to find the size and offset of the Two pacs you just copied.The offset can be found by searching for the PAC string.The first PAC will have an offset 13AE000 and the second will have an offset ending with 000 or 800.
To find the size of the PACs just find the last data byte of the PAC whose size you want to find and note its offset.Subtract the offset at which the PAC starts from this offset to obtain the size of the PAC.
Random Example:
Suppose PAC starts at 4000 and ends at the offset 8432 then differnce will be 4432 and this will be the size of the PAC................
The lines in the blue where i've on question about
Q1. What is the offset of last data byte? (n whose offset svr07? or svr10?)
Q2.With which number should i multiply the result?
waiting for your replies
)First of all open up your ch.pac file of svr 2007 in the Hex Workshop.
2)Now you have to search for the string pof0.When the search is completed you will get all the instances where pof0 occurs in the file.Now before the pof0 string you could find the name of the wrestler e.g. The Rock with pof0 at offset 3A997.Note down the offset of pof0 somewhere.Now search for the string PAC and look for the PACs in which these pof0 lies i.e. if there is a PAC at 4000 and another PAC at 8800 and pof0 is at 7432 then you need to select all the data starting at 4000 and till (8800-1).There will be many pof0 strings for a wrestler so you need to look for all the pof0 strings till you find a pof0 with another wrestler's name before it.
E.g. The poF0 after Stone Cold starts at E5BA6.So if you want data of The Rock you will have to COPY the Pacs at the offset 4000 and 4E800 as these PACs would contain all the pof0 strings that occur before the pof0 having SCSA written before it.You wont copy the PAC at AD800 as it contains Stone Cold's data.So simply place your cursor at 4000 and just use Select Block option in the Edit Menu of Hex Workshop and type in the Ending Position as (4E800-1)i.e.4E7FF.It will select the two pacs associated with The Rock.
3)Now just copy the entire selected block and open the CH.pac file 0f svr 2010.Here you need to find the first valid offset.To find that just note down the offset of last data byte and then divide the offset by 800.Then you will obtain a result.Note the Result and then clear the calculator.Now multiply the Result obtained by 800 and then add 800 to obtain the first valid offset.It comes out to be 13AE000.This is the offset you will paste your data that you copied from ch.pac file of svr 07.
Note:A valid offset will always end at 000 or 800.
4)Now when you have copied the data you need to find the size and offset of the Two pacs you just copied.The offset can be found by searching for the PAC string.The first PAC will have an offset 13AE000 and the second will have an offset ending with 000 or 800.
To find the size of the PACs just find the last data byte of the PAC whose size you want to find and note its offset.Subtract the offset at which the PAC starts from this offset to obtain the size of the PAC.
Random Example:
Suppose PAC starts at 4000 and ends at the offset 8432 then differnce will be 4432 and this will be the size of the PAC................
