Silkroad Online Forums

A community forum for the free online game Silkroad Online. Discuss Silkroad Online, read up on guides, and build your character and skills.

Faq Search Members Chat  Register Profile Login

All times are UTC




Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [Guide]How to use Extract/Inject For pk.2 75% done
PostPosted: Sat Sep 29, 2007 1:34 am 
Frequent Member
Offline

Joined: Jul 2007
Posts: 1172
Cruor wrote:
1. Stop using XVI32.
2. Go to http://catch22.net/ and download Hexedit.
3. Stop using the "find/replace" method and learn the "extract/inject" method.

Unfortunately, I can't just say that because surprisingly no one's written a tutorial on using the extract/inject method for replacing equipment. The extract/inject method has pretty much completely replaced the find/replace method.

The basic steps are:
1. Extract itemdata.txt from Media.pk2 using PK2Extractor.
2. Find the equipment you want to change in itemdata.txt and change the degree number in the BSR reference string. As you scroll to the right you should see two or three long strings. The BSR reference string will either be the first one, or there will be an "xxx" in it's place because there is no BSR to reference.
3. Once you have made all of your changes, save the file as itemdata.mod.txt.
4. Open up Media.pk2 in HexEdit.
5. Do an ANSI search for "ITEM_ETC_GOLD".
6. In the hex column, you will see an "FF FE" somewhere before the "ITEM_ETC_GOLD". This is the file's header that marks it as a Unicode file. Put your cursor in front of the "FF".
7. Go Edit -> Paste From and select the itemdata.mod.txt file you saved earlier. Click okay.
8. You should see everything past your cursor turn to red. Now press CTRL+Z and then CTRL+Y. This will bring you to the end of what you pasted.
9. This is where it gets tricky. The way Joymax updates the files leaves parts of old files sitting around in the PK2 file. I have two copies of itemdata.txt in my Media.pk2 file and only one is valid. Anyway, the valid one in yours should be immediately followed by skilldata.txt. Look for "SKILL_PUNCH_01".
10. If you see it, then you can save your Media.pk2 file and test ingame. If you don't see it, hit CTRL+Z again to undo the Paste From. Then do an ANSI search for "ITEM_ETC_GOLD" again. You should hit the one you are right next to first because your cursor was before it. Hit Find again to find the next instance of the file. Once you find that do the Paste From again and check to see if it's immediately followed by "SKILL_PUNCH_01".

That was fairly basic, but I'm assuming others can hop in here and help with whatever I missed. As a side note, this is just the basic idea of the extract/inject method. You can take this idea and apply it to other files. In it's purest form, the extract/inject method is simply extracting the file you want, editing it and saving it as a .mod.* (making sure to preserve your original file size), opening up the PK2 file that contained it, searching for a unique string or sequence of bytes you found in the file, placing your cursor in front of the start of the file in the PK2 file, pasting from the file, then finally checking to see if you pasted in the right spot with CTRL+Z and CTRL+Y. Also, once you are done it is smart to write down the hexadecimal offset of where you found the file so that the next time you want to change it you only need to hit CTRL+G and enter in the offset.


All Credit's go to Cruor for this guide
I just posted it =]

And 1% of credit for Hellzowner for bumping it up


The Picture guide from step 1 to the last.[/color]

Programs required.]
Pk2 Extractor http://www.sendspace.com/file/wpsoam
Hex Edit http://catch22.net/

(If you already have downloaded files Skip step's 1-2 )
Step 1. Open http://www.sendspace.com/file/wpsoam Scroll down and download pk2 Extractor Save it to the desktop.
Image

Step 2. Go to http://www.sendspace.com/file/wpsoam
Scroll down a bit and click on Hex Edit 2002

Image

After this go click download and again save to desktop or a directory.
Image

Step 3. Let's extract the Hex Edit for now we will be using it later on in the Guide.
Image

Let's get started
Step 1. First of all Open your Pk3 Extractor and go to your silkroad Directory
Image

Step.2 Now lets up Media.pk2
Image

Step3. After this lets extract the Text.data. Follow the path 1 by 1.
Server_Dep/Silkroad/Textdata/Itemdata.Txt


ServerDep
Image
Silkroad
Image
TextData
Image
Itemdata.Txt
Image
After you find this double click Itemdata.Txt. If you did it right you should get this in your silkroad directory.
Image
Step 4.Lets open up The txtdata.You should get this.
Image
Lets scroll Down and look for ITEM_CH_BOW_01_A
Image
Change the ITEM_CH_BOW_01_A to ITEM_CH_BOW_07_A For 7th degree
Image
Now that you do that let save it. Go to top left to Save as.
Image
Save it as itemdata.mod.txt.
Image
Hit save and If you did all well you should get this in your Silkroad Directory.
Image
Now let's move on.
Let's open up Media.pk2 with HexEdit.
Image
You should get this screen.
Image
Step1.On top left go to Open and open Media.pk2 from [color=green]your Silkroad folder.
C;/ProgramFiles/Silkroad/Media.pk2 Then hit open.
Image
You Should get this screen.
Image
Now let's go to top left in Search and hit Find.
Image


To be continued.... For now Give Feedback or Tip's While i work on rest.

_________________
<<banned from SRF for bot admission. -SG>>


Last edited by Stormprobe on Wed Nov 14, 2007 11:23 pm, edited 6 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 29, 2007 1:43 am 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
B-But... i bumped it.. me deserve creditz, Lawl

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 29, 2007 1:49 am 
Frequent Member
Offline

Joined: Jul 2007
Posts: 1172
Hellzowner wrote:
B-But... i bumped it.. me deserve creditz, Lawl


fine -.- ^^

_________________
<<banned from SRF for bot admission. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 29, 2007 5:58 am 
Loyal Member
User avatar
Offline

Joined: Dec 2006
Posts: 1562
Location:
Off Topic
something is with Stormprobe and giving 1% credit to people

_________________
Image

:love: fena


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 29, 2007 6:08 am 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
San wrote:
something is with Stormprobe and giving 1% credit to people

xD

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 29, 2007 6:40 am 
Frequent Member
User avatar
Offline

Joined: Feb 2007
Posts: 1303
Location:
Babel
bump , ooo i helped give me 1% :P :P :)

jk, jk nice guild

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 29, 2007 6:59 am 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
hitman144 wrote:
bump , ooo i helped give me 1% :P :P :)

jk, jk nice guild
OMG is this actually a guild? Lawl

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 29, 2007 2:12 pm 
Frequent Member
Offline

Joined: Jul 2007
Posts: 1172
Picture guide coming soon made by me :)

_________________
<<banned from SRF for bot admission. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 30, 2007 12:28 am 
stickied.

im not able to check this section that much the coming 2 weeks cause
my laptop died last tuesday. so if anything more deserves a sticky, let
me know thru pm ;)


Top
  
 
 Post subject:
PostPosted: Sun Sep 30, 2007 12:29 am 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
I'll help yah cin :)

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 30, 2007 12:32 am 
:love:

if only i knew which bastard killed my laptop -.-

oh, one more thing.. on the pk2 stuff, if u guys think a guide needs screenshots
and you can provide em, then send me a pm with the info or screenies that
need to be added n i will edit the posts so the screenies go in the guide not
the replies ^^


Top
  
 
 Post subject:
PostPosted: Sun Sep 30, 2007 12:40 am 
Frequent Member
Offline

Joined: Jul 2007
Posts: 1172
cin wrote:
:love:

if only i knew which bastard killed my laptop -.-

oh, one more thing.. on the pk2 stuff, if u guys think a guide needs screenshots
and you can provide em, then send me a pm with the info or screenies that
need to be added n i will edit the posts so the screenies go in the guide not
the replies ^^


i sent you a pm telling you im already making screenies ^^

soon to be done

_________________
<<banned from SRF for bot admission. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 30, 2007 1:32 am 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
Stormprobe wrote:
cin wrote:
:love:

if only i knew which bastard killed my laptop -.-

oh, one more thing.. on the pk2 stuff, if u guys think a guide needs screenshots
and you can provide em, then send me a pm with the info or screenies that
need to be added n i will edit the posts so the screenies go in the guide not
the replies ^^


i sent you a pm telling you im already making screenies ^^

soon to be done

*claps once*
*stops*
:)

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 30, 2007 7:52 am 
Loyal Member
User avatar
Offline

Joined: Apr 2006
Posts: 1999
Location:
Off Topic
Might as well add my clarifications:

Cruor wrote:
The files are arranged within the PK2 file in a linear fashion, like so:

Code:
File.pk2
├───A_FILE
├───B_FILE
├───C_FOLDER
│   ├───A_FOLDER
│   │   ├───A_FILE
│   │   └───B_FILE
│   └───B_FILE
├───D_FOLDER
│   ├───A_FOLDER
│   │   └───A_FILE
│   ├───B_FOLDER
│   │   └───A_FILE
│   └───C_FILE
└───E_FILE


You only care about the files, not the folders. Hopefully that isn't too confusing. It's all sorted alphabetically. Anyway, most duplicate files are in the resinfo folder, which comes before the server_dep folder. That means you want to extract your files from server_dep\Silkroad\TextData, and when injecting back in you want to inject over the second occurance.

Step 10 is to check if you pasted over the wrong file. If you know how they are arranged and are sure you aren't pasting over the wrong one you can ignore it. Just remember that in most cases the end of what you pasted should be followed immediately by FF FE in the hexadecimal column if you are working in TextData, possibly normal ANSI text if you are working in server_dep, or if you are working elsewhere a file header such as JMXVDDJ or JMXVRES.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 1:46 am 
Loyal Member
User avatar
Offline

Joined: Jun 2007
Posts: 1647
Location: Earth
Looks nice.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 1:53 am 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
Im sure people know how to download and extract it. ;)

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 1:56 am 
Frequent Member
Offline

Joined: Jul 2007
Posts: 1172
Hellzowner wrote:
Im sure people know how to download and extract it. ;)


I knwo im a little to litetal ;) but there are those "special" new editro's who need help =](no offence toanyone)

_________________
<<banned from SRF for bot admission. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 2:01 am 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
Stormprobe wrote:
Hellzowner wrote:
Im sure people know how to download and extract it. ;)


I knwo im a little to litetal ;) but there are those "special" new editro's who need help =](no offence toanyone)

Special needs FTW

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 2:06 am 
Frequent Member
Offline

Joined: Jul 2007
Posts: 1172
Hellzowner wrote:
Stormprobe wrote:
Hellzowner wrote:
Im sure people know how to download and extract it. ;)


I knwo im a little to litetal ;) but there are those "special" new editro's who need help =](no offence toanyone)

Special needs FTW



lol well i know it wasn't neccesary to put the first part. But better safe then sorry

_________________
<<banned from SRF for bot admission. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 3:49 am 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
Stormprobe wrote:
Hellzowner wrote:
Stormprobe wrote:
Hellzowner wrote:
Im sure people know how to download and extract it. ;)


I knwo im a little to litetal ;) but there are those "special" new editro's who need help =](no offence toanyone)

Special needs FTW



lol well i know it wasn't neccesary to put the first part. But better safe then sorry

Why? Will downloading it wrong totally f*ck up your pc?

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 8:11 am 
Loyal Member
User avatar
Offline

Joined: Apr 2006
Posts: 1999
Location:
Off Topic
Hellzowner wrote:
Why? Will downloading it wrong totally f*ck up your pc?
Based on the conversations I've had with people on MSN, I would have to say it was the right choice. You put too much faith in people.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 9:23 am 
Forum Legend
User avatar
Offline

Joined: Aug 2006
Posts: 7800
Location:         
Cruor wrote:
Hellzowner wrote:
Why? Will downloading it wrong totally f*ck up your pc?
Based on the conversations I've had with people on MSN, I would have to say it was the right choice. You put too much faith in people.


:roll:

_________________
<< banned for being a constant problem. -cin >>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 10:47 am 
Frequent Member
Offline

Joined: Jul 2007
Posts: 1172
lol HellzOwner relax. The link's are from Lynx general guide -.-

_________________
<<banned from SRF for bot admission. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 8:10 pm 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
Stormprobe wrote:
lol HellzOwner relax. The link's are from Lynx general guide -.-

Lynx.. Grr.. xD
Did you check they still work? Lol

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 10:49 pm 
Frequent Member
Offline

Joined: Jul 2007
Posts: 1172
Hellzowner wrote:
Stormprobe wrote:
lol HellzOwner relax. The link's are from Lynx general guide -.-

Lynx.. Grr.. xD
Did you check they still work? Lol



duh :p

_________________
<<banned from SRF for bot admission. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 02, 2007 12:15 am 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
Stormprobe wrote:
Hellzowner wrote:
Stormprobe wrote:
lol HellzOwner relax. The link's are from Lynx general guide -.-

Lynx.. Grr.. xD
Did you check they still work? Lol



duh :p

Just making sure.. :)

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 02, 2007 1:12 am 
Frequent Member
Offline

Joined: Jul 2007
Posts: 1172
Hellzowner wrote:
Stormprobe wrote:
Hellzowner wrote:
Stormprobe wrote:
lol HellzOwner relax. The link's are from Lynx general guide -.-

Lynx.. Grr.. xD
Did you check they still work? Lol



duh :p

Just making sure.. :)



ok Started on actual guide but gonna be sending to cruor in PM just to make sure i got it all right ;). Better safe then sorry

_________________
<<banned from SRF for bot admission. -SG>>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 02, 2007 3:34 am 
Regular Member
User avatar
Offline

Joined: Apr 2007
Posts: 233
Location:
Aege
A REAL quick summary for this would be like:

Extract:
1) Use pk2extractor and take out that nice text.
2) Edit whatever you want, whatever strings, etc.

Inject:
1) Open up said EDITED file with HextEdit
2) Open up media.pk2 w/ HexEdit (backed up already, i hope)
3) Go to beginning of said file in PK2.
4) Copy edited file in HexEdit window, paste.
5) Save, ur done.

Pros:
i) Make more sense, u can see everything in a nice line
ii) You can tell which is which (important to know what you're changing with)
iii) Copy and paste
iv) Can make more complicated codes (dont have to replace words)

Cons:
i) Take longer.
ii) Can be confusing.

The injection method is used in my guide, the general skill editing one. I just didn't point it out as the injectino method (nor did i realize it was). Thought everyone used it O_o.

Edit: Woops, mine differ from cruor's slightly. oh well. \(O.O)/

_________________
Image
PK2 lover
Thank you HyorunmarouZ for signature =)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 02, 2007 3:43 am 
Active Member
User avatar
Offline

Joined: May 2007
Posts: 820
Location:
Olympus
Don't worry SCArchon, just be a good little boy and your guide will soon-to-be loved <3

_________________
Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 03, 2007 3:45 am 
Active Member
Offline

Joined: Jun 2007
Posts: 946
Hellzowner wrote:
Don't worry SCArchon, just be a good little boy and your guide will soon-to-be loved <3



Humm this is goign well..


Btw storm said that he will be in school and wont be able to upload next part today. Hes on msn =O

_________________
<<banned from SRF for remaking a banned account. -SG>>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group