PK2 Armour.^

A place for general discussion about Silkroad Online. Talk about the game or ask questions. Please keep threads Silkroad Online related.
Post Reply
User avatar
bakman
Valued Member
Posts: 449
Joined: Sun Aug 12, 2007 8:10 pm
Quick Reply: Yes
Location: Venus

PK2 Armour.^

Post by bakman »

i need help with my pk2
yes i did use search but i still have trouble.
i want to make (protector) = (armor) in Third Degree

because with my rogue i really don't like protect but i love armor...

so any help would be great.

User avatar
Deacon
Senior Member
Posts: 4376
Joined: Tue May 09, 2006 9:26 am
Quick Reply: Yes
Location: De Dutch

Post by Deacon »

I cannot sing the blues...

User avatar
bakman
Valued Member
Posts: 449
Joined: Sun Aug 12, 2007 8:10 pm
Quick Reply: Yes
Location: Venus

Post by bakman »

i know how to do it its just tje file size in the end

User avatar
Cruor
Loyal Member
Posts: 1999
Joined: Wed Apr 12, 2006 1:22 am
Quick Reply: Yes
Location: Off topic

Post by Cruor »

From an older post that no one ever read:

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.

I still have noobs ask me how to do find and replace.

Note that PK2 extractor doesn't work when you have Windows set to use the Korean locale, for those of you who play kSRO. Some other things from this might have changed.

cin, please add this link to the guide topic:
http://www.silkroadforums.com/viewtopic ... ht=#593315

bakman wrote:i know how to do it its just tje file size in the end
If you added a lot of stuff, look for useless stuff like kSRO event items and change their BSR references to xxx. Then save the file as itemdata.mod.txt or whatever and open it up in HexEdit, figure out how many more bytes it needs to reach the original filesize, and add null bytes to the end of the file until it gets there.
Image

User avatar
bakman
Valued Member
Posts: 449
Joined: Sun Aug 12, 2007 8:10 pm
Quick Reply: Yes
Location: Venus

Post by bakman »

thought there was a quicker easier way of making armour protector

User avatar
Cruor
Loyal Member
Posts: 1999
Joined: Wed Apr 12, 2006 1:22 am
Quick Reply: Yes
Location: Off topic

Post by Cruor »

bakman wrote:thought there was a quicker easier way of making armour protector
No, no there isn't. Well, there is but it will make you a noob. :roll:

It's not that hard to extract/inject anyway. It would take two minutes for me to do what you are asking.
Image

User avatar
bakman
Valued Member
Posts: 449
Joined: Sun Aug 12, 2007 8:10 pm
Quick Reply: Yes
Location: Venus

Post by bakman »

ok ur the pk2 god
whatever you say

User avatar
Cruor
Loyal Member
Posts: 1999
Joined: Wed Apr 12, 2006 1:22 am
Quick Reply: Yes
Location: Off topic

Post by Cruor »

bakman wrote:ok ur the pk2 god
whatever you say
I discourage find/replace because it doesn't create PK2 editors. Instead, it creates zombies who can't think for themselves.

Also, it's a good way to break your PK2 file by replacing things you didn't want replaced.
Image

organic
Common Member
Posts: 124
Joined: Fri Aug 10, 2007 11:48 am

Post by organic »

bakman wrote:ok ur the pk2 god
whatever you say


Please don't feed the ego.

User avatar
Cruor
Loyal Member
Posts: 1999
Joined: Wed Apr 12, 2006 1:22 am
Quick Reply: Yes
Location: Off topic

Post by Cruor »

organic wrote:
bakman wrote:ok ur the pk2 god
whatever you say


Please don't feed the ego.
What ego buddy? I'm giving him an informed opinion. He can go search for find and replace tutorials if he wants. There's billions out there. That's what everyone else does.

I on the other hand would rather not loose potential talent to find and replace. It will do nothing for you past switching your equipment. I want to see more people do great edits that make you wonder how things were done. But no, everyone just finds and replaces and all I see on Youtube is 95% "OMG 10D PvP" crap and 5% interesting stuff from people who know what they are doing.
Image

User avatar
bakman
Valued Member
Posts: 449
Joined: Sun Aug 12, 2007 8:10 pm
Quick Reply: Yes
Location: Venus

Post by bakman »

lil on the retarded side
Last edited by bakman on Sat Sep 29, 2007 12:24 am, edited 1 time in total.

User avatar
Hellzowner
Active Member
Posts: 820
Joined: Sat May 19, 2007 6:00 am
Quick Reply: Yes
Location: OLYMPUS

Post by Hellzowner »

bakman wrote:pwned

No not pwned, just a lil on the retarded side ;)
Image
Image

Post Reply

Return to “Silkroad General Discussion”