Page 1 of 2

PK2 editing | skills

Posted: Thu Apr 05, 2007 7:23 pm
by bebrazz
Hello. I wanna ask u how to change skills like this http://www.youtube.com/watch?v=_Q-fhel4xag

pls help
:!:

Posted: Fri Apr 06, 2007 1:44 am
by NuclearPinoy
:shock: Wow that looks crazy

Posted: Sat Apr 07, 2007 1:55 pm
by Rainigul
Cruor is a god at pk2 editing, what can I say?

Posted: Sat Apr 07, 2007 7:14 pm
by Azilius
Cruor wrote:First you have to shorten skilleffect.txt by getting rid of unnecessary things. Then you copy the "shots" from the ice nuke to right underneath the fire or lightning nuke. Then you change the names of those shots to match the fire nuke. Next you change the EFP references of the shots to match the effects you want. There are two EFP references, one for the falling animation, one for impact. Finally you add null bytes at the end of the file to preserve its size and then inject it back into Media.pk2.

Then if you want you can change the colors of things or add custom icons by changing DDJ files but that is a separate matter entirely.

Point is, it's too complicated to explain without a full picture tutorial. Try to be patient, I will write a tutorial eventually.


I'll try to elaborate.
First you need to have basic knowledge about editing your pk2 files, I suggest looking in the sticky for help.

Now heres a step by step way to edit your skills, I'm to lazy to add in screenshots though.

Starting off: Firstly you should have a hexeditor, that is able to "paste over" "Search/Find" etc. And a Pk2 Extracter for opening up Media.pk2.

#1 Extract Media.pk2 using the Extractor provided in the sticky.

#2
Open the skillEffect.txt ->> Media/ResInfo/Skilleffect.txt

#3 Now is the tricky part. Firstly decide on what you want to make, I'll show you the "Meteor-Rain" since it's fairly easy. Search for "Cold_Gigongsul_B". You'll find 1 entry that is fairly short. Search for it again and you'll find a bigger entry with much more data.

#4 Under "Cold_Gigongsul_B" you'll see more entries of it, these are the 'shots'. You need to copy from the first shot to the last. They shouldn't be hard to find, as in the text you can see the word "shot". Theres quite a few of them too.

EDIT: Heres a pic = ) You need to copy all those shots from the start to the end.
Image


#5 Now scroll back up to the top, and do a search for "Fire_Gigongsul_C", you'll see one short entry, search for it again, you'll find a larger entry. Right under it, paste the shots you just copied from the cold skill. Next place your cursor infront of "Fire_Gigongsul_C" and go to -> Edit -> Replace.

#6 Now that the replace box is open, and your cursor is infront of "Fire_Gigongsul_C", type "Cold_Gigongsul_B" in the -Find What- selection, and place "Fire_Gigongsul_C" in the selection under it.

#7 Now press -Find Next-, it should select "Cold_Gigongsul_B" that is right under the "Fire_Gigongsul_C" nuke. Press replace, and continue to press replace until you can't find any more to replace.

#8 Now scroll back up to the start, and do a search for "Fire_Gigongsul_C". The first entry you find is short, you need to copy it all.

It should look something VERY close to this

Code: Select all

±¤Æø Æø¿°ÆÄ   SKILL_CH_FIRE_GIGONGSUL_C   0   FALSE   1   DEFAULT   ANI_READY02   ANI_WAIT02   ANI_SKILL_2   none   none   none   none   hiteffect\hit_4_fire_attack_a.efp   0   0,0,0,0   ONE   mirage_texture_fire.ddj   none   none   none   LIGHT_4   none   Yaw   1



#9 Scroll back up to the top and do a search for "Spear_Shoot_A" (or B if you have book 2 Spear throw) if you are a spear/glaive user

OR

"SWORD_GEOMGI_A" (or b..c etc, depending on book - I think this is the first ranged attack you get for blade..or the second, I'm not entirely sure.) if you are a blader.

If you are a Bow, do a search for Bow_Critical_A (or b..or...c..depends on what book [this is the first skill])

-------------------------------------------------------------------------------------

I'm not entirely sure about the sword, or bow skills. If someone could test them for me I'd be greatful.

#10 Now, paste the "Fire_gigongsul_C" entry you just copied over which ever entry you just looked for.

#11
With the text you just pasted, change the text "Fire_gigongsul_C" into either

Spear_shoot_A (or..b)
Sword_geomgi_a (or..b..c..d..etc)
Bow_Critical_a (or b..c..-.-)

#12 Now we are done the hard part! Scroll down all the way to the bottem. You should see a short entry that has to do with potions. Above it is a pretty big entry, many of which have "//" infront of them. Delete everything that has "//" infront of it in that entry. You should of deleted this


Code: Select all

//ÃâÇ÷(»óÅÂÀÌ»ó)   PARAM_BLOOD   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_bleeding.efp   @Bip01   0,0,0   none   0,0,0   none   0   none   none   none
//Àẹ(»óÅÂÀÌ»ó)   PARAM_TIME_BOMB   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_hide.efp   none   0,25,0   none   0,0,0   none   0   none   none   none
//¼ö¸é(»óÅÂÀÌ»ó)   PARAM_SLEEP   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_sleep.efp   none   0,25,0   none   0,0,0   none   0   none   none   none
//Áúº´(»óÅÂÀÌ»ó)   PARAM_DISEASE   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_disease.efp   @Bip01   0,0,0   none   0,0,0   none   0   none   none   none
//È¥¶õ(»óÅÂÀÌ»ó)   PARAM_CHAOS   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_confusion.efp   @Bip01   0,0,0   none   0,0,0   none   0   none   none   none
//°øÆ÷(»óÅÂÀÌ»ó)   PARAM_FEAR   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_temptation.efp   @Bip01   0,0,0   none   0,0,0   none   0   none   none   none
//¼Ó¹Ú(»óÅÂÀÌ»ó)   PARAM_ROOT   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_root.efp   none   0,0,0   none   0,0,0   none   0   none   none   none
//±Ù½Ã(»óÅÂÀÌ»ó)   PARAM_MYOPIA   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_myopia.efp   @Bip01   0,0,0   none   0,0,0   none   0   none   none   none
//¼®È­on(»óÅÂÀÌ»ó)   PARAM_STONE   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_stone_on.efp   none   0,0,0   none   0,0,0   none   0   none   none   none
//¼®È­off(»óÅÂÀÌ»ó)   PARAM_STONE   DEACT   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_stone_off.efp   none   0,0,0   none   0,0,0   none   0   none   none   none
//µÐÈ­(»óÅÂÀÌ»ó)   PARAM_SLOW   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   none   none   none   0,0,0   none   0,0,0   none   0   none   none   none
//ºÎÆÐ(»óÅÂÀÌ»ó)   PARAM_CURSE_PD   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   none   none   none   0,0,0   none   0,0,0   none   0   none   none   none
//¼è¾à(»óÅÂÀÌ»ó)   PARAM_CURSE_MD   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   none   none   none   0,0,0   none   0,0,0   none   0   none   none   none
//¹«·Â(»óÅÂÀÌ»ó)   PARAM_CURSE_STR   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   none   none   none   0,0,0   none   0,0,0   none   0   none   none   none
//ºÐ¿­(»óÅÂÀÌ»ó)   PARAM_CURSE_INT   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   none   none   none   0,0,0   none   0,0,0   none   0   none   none   none
//°øÈ²(»óÅÂÀÌ»ó)   PARAM_CURSE_HP   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   battle\   status_bad_panic.efp   @Bip01   0,0,0   none   0,0,0   none   0   none   none   none
//¿¬¼Ò(»óÅÂÀÌ»ó)   PARAM_CURSIE_MP   ACT_L   0   FALSE   none   CHAR_BASE   0   0   0   0   1   500,0   AT_LOOP   MOV_NONE,0,0,0   0,0,0   false,0,0,0,0,false   none   none   none   0,0,0   none   0,0,0   none   0   none   none   none

#13 Now, save the file (DO NOT OVER WRITE THE FILE INCASE YOU MAKE A MISTAKE!). Open it up with a hexEditor, and scroll to the bottem. Add Null bytes (00) in the Hex part until you have the File size matched to the original.

#14
Now, to inject it back into media.pk2! Open up media.pk2 in a HexEditor, do a search for

Code: Select all

23 73 65 63 74 69 6f 6e 09 63 68 61 72 61 63 74 


in hexadecimal mode. TWICE. It is the SECOND ENTRY!! NOT THE FIRST!

Open up your Skilleffect.txt in another window of the HexEditor, and click -> Edit-> SelectAll -> Copy.

Now go back to your Media.pk2 in the HexEditor, place your cursor right infront of the "23" from what you searched, and click "Paste Over". Save it (MAKE SURE YOU'VE MADE A BACKUP!!!) and test =)

I made this fairly fast, so sorry if it's a little messy.

-------------------------------------------------------------------------------------

Pk2 Skill editing - You can do a lot more, although it requires testing, and time. My first attempt ended up with a the starting of the nuke animation (The hands moving in a circle) and then when my character pushed his hands out to 'shoot' the nuke, and glaive came out xD.

About the EFP references. As Cruor stated, the first one is for the falling animation (like the fire ball falling from the sky) and the second is the animation when the target gets hit (the fire balls splattering on the ground). You can also change the sounds that are made, you'll notice the Ice nuke text that was copied has .wav sounds attached, you can delete them or change them to any other sound you can find in the Pk2 file.

When you search for a skill from the start of the document, you end up with a smaller text, I'm fairly sure that this is the starting animation for your skill (When I only switched the fire-nuke skill [short text] with the Spear throw [short text] I ended up with hand motions, then a spear being shot out -.-), the larger text is the rest. I'm not 100% sure about this, but it's the only explanation I can give because I'm not that advanced >.>
-------------------------------------------------------------------------------------
Notes:

-You will most likely NOT be able to do this if you don't have past experience in Pk2 editing.

-ALWAYS make a backup of the files you edit. ALWAYS.

-If at first you don't succeed, try again. If you continue to fail, hit your head a few times and give up.

-If you don't understand it, then I suggest not messing with your files, because god knows what could happen.

-Please don't PM me asking how to do this -.-

-If you do succeed, take your knowledge of changing skills and GO WILD!\

-Here is the fire-rain skill, with a little bit less shots =)
http://www.youtube.com/watch?v=fD3kxzZRkrk

-Thanks to Cruor for the short guide, and the Fire-Rain skill!

Posted: Tue Apr 10, 2007 2:15 am
by neitsnie7055
OMG u idiot. U made me do this for like, 2 hours...
and it didnt work.
Sloooooppppyyyyy... Try making an ACTUALLY GUIDE thats easy to read.

Posted: Tue Apr 10, 2007 2:20 am
by cin
neitsnie7055 wrote:OMG u idiot. U made me do this for like, 2 hours...
and it didnt work.
Sloooooppppyyyyy... Try making an ACTUALLY GUIDE thats easy to read.


at least the idiot knows how to do stuff. dont call people
names when they are trying to help. you didnt ask for
a clear guide did you. if you want something from a person
ask it in a nice way.

and btw.. even the most detailed pk2 editing guides are
too difficult for average computer users so next time think
twice before you call someone an idiot.

Posted: Tue Apr 10, 2007 2:23 am
by Azilius
neitsnie7055 wrote:OMG u idiot. U made me do this for like, 2 hours...
and it didnt work.
Sloooooppppyyyyy... Try making an ACTUALLY GUIDE thats easy to read.


I took my time to write a guide, the least you could do is say thankyou, and not call me an idiot. I did not make you do anything, you did it all by free will, and you should know that Pk2 editing isn't simple. I did note at the bottem that I was short on time, and I was sorry that it was a bit sloppy. The fact that it took you 2 hours baffles me, as it took me around 20 minutes my first try, and now I can edit my skills in as little as 2 minutes.

Possible reasons as to why it didn't work.

1. You injected it to the wrong spot. You had to search for the line of code twice, before Pasting over. (This was my only mistake)

2. You overlooked one of the steps, didn't read something throughly, etc.

3. I have ONLY tested this for the glaive skill, the bow and blade skills should work, but as I stated with the blade skill -> I'm not entirely sure.

Next time, I suggest you reply with what the exact problem was, and what you did. Calling me an idiot only shows your own idiocy. Remember, I did this with my own free time to try to HELP YOU. People like you are very ungreatful.

Posted: Tue Apr 10, 2007 6:59 am
by HyorunmarouZ
Wow thanks for this little guide, it will be added to my treasure vault, i have saved other pk2 editing tutorials. I have tried all of them and succeded in almost all... my evil enemy is the Seal glow... i can't make it work yet...
I'll try this, if this works, that means the glow hates me, if it doesn't... i have another new enemy...

Posted: Tue Apr 10, 2007 7:43 pm
by Azilius
:P I can't do the seal glow either, just keep trying, you'll get it right eventually.

As for the guide, I'll try to update it and make it easier to read, maybe some screen shots too.. I'm just very short on time with school and all.

Posted: Tue Apr 10, 2007 10:52 pm
by neitsnie7055
cin wrote:
neitsnie7055 wrote:OMG u idiot. U made me do this for like, 2 hours...
and it didnt work.
Sloooooppppyyyyy... Try making an ACTUALLY GUIDE thats easy to read.


at least the idiot knows how to do stuff. dont call people
names when they are trying to help. you didnt ask for
a clear guide did you. if you want something from a person
ask it in a nice way.

and btw.. even the most detailed pk2 editing guides are
too difficult for average computer users so next time think
twice before you call someone an idiot.


Your right. I was pissed off couple days ago. Got dumped man... I decided to go and do some modding when i found this thread... Looked, tried everything and it didnt work. Took me 4 hours actually but i gotta say, i was an idiot and sorry :cry:

Btw, cin, u gotta admit, u did take it a lil harsh. Not being dumped and all... :banghead:

Posted: Tue Apr 10, 2007 11:11 pm
by cin
neitsnie7055 wrote:
cin wrote:
neitsnie7055 wrote:OMG u idiot. U made me do this for like, 2 hours...
and it didnt work.
Sloooooppppyyyyy... Try making an ACTUALLY GUIDE thats easy to read.


at least the idiot knows how to do stuff. dont call people
names when they are trying to help. you didnt ask for
a clear guide did you. if you want something from a person
ask it in a nice way.

and btw.. even the most detailed pk2 editing guides are
too difficult for average computer users so next time think
twice before you call someone an idiot.


Your right. I was pissed off couple days ago. Got dumped man... I decided to go and do some modding when i found this thread... Looked, tried everything and it didnt work. Took me 4 hours actually but i gotta say, i was an idiot and sorry :cry:

Btw, cin, u gotta admit, u did take it a lil harsh. Not being dumped and all... :banghead:


lol ya i did take it a bit harsh but not as harsh as you took
the guide :P next time just remember people actually need
time to make them they dont just fall from the sky :)

anyways no im not dumped indeed but im in australia for 6
months while my gf is in the netherlands so im also having
quite a hard time <_<;

Posted: Tue Apr 10, 2007 11:31 pm
by Nicsan*
OMG, nice movie but what the hell is pk2?

Posted: Tue Apr 10, 2007 11:31 pm
by Nicsan*
OMG, nice movie but what the hell is pk2?

Posted: Tue Apr 10, 2007 11:35 pm
by cin
Nicsan* wrote:OMG, nice movie but what the hell is pk2?


http://www.silkroadforums.com/viewtopic.php?t=30876

and plz next time dont double post

Posted: Wed Apr 11, 2007 7:13 am
by Nicsan*
cin wrote:
Nicsan* wrote:OMG, nice movie but what the hell is pk2?


http://www.silkroadforums.com/viewtopic.php?t=30876

and plz next time dont double post

I'm very sorry, but I'm sure I pressed once at the submit button :roll:.

Posted: Wed Apr 11, 2007 3:18 pm
by Flaming
Please. Give me tutorial screenshoot.

Posted: Wed Apr 11, 2007 4:09 pm
by D@RK_L!GHT
LoL in that video hes not even using nukes. xD He must be using a blade skill or somethign cause one of them Critted xD

Posted: Wed Apr 11, 2007 4:32 pm
by BlindMaster
hm... is it posible to add this skills to wolf atack :? if yes it would be cool to have Nuker Wolf :banghead:

Posted: Wed Apr 11, 2007 7:31 pm
by Azilius
I updated the guide, coloured some of it, added a little more explanation at the bottem. It's easier to read now, and eventually..I'll add screenshots -.-


@ Flaming

I'll get screenshots..eventually.

@ D@RK

I was using the 'spear throw' skill, that's why I critted =) I actually grind with it ^^ Although I don't recommend doing that without a good computer.

@ BlindMaster

Honestly, I have no idea :D There is a way to change any attack, but that's changing in depth files, and it requires programs I do not have.

Posted: Wed Apr 11, 2007 10:36 pm
by D@RK_L!GHT
Azilius wrote:I updated the guide, coloured some of it, added a little more explanation at the bottem. It's easier to read now, and eventually..I'll add screenshots -.-


@ Flaming

I'll get screenshots..eventually.

@ D@RK

I was using the 'spear throw' skill, that's why I critted =) I actually grind with it ^^ Although I don't recommend doing that without a good computer.

@ BlindMaster

Honestly, I have no idea :D There is a way to change any attack, but that's changing in depth files, and it requires programs I do not have.


I didnt mean YOU critted. I meant the Cruor video he critted. I know you used the spear throw because its in your tutorial, but im using the original fire meteor nuke. Your tutorial is really hard to follow but luckly im not a nub and i firgured it out anyways. Im going to go ahead and add more shots later. ^^

Posted: Wed Apr 11, 2007 10:38 pm
by Azilius
-.- I knew that

Well, I fixed it up, it should be easier to follow. It's all basically one step after another. I tried to go into detail because well, there is always gonna be those questions "i dun undrstnd wht i do hre plz hep me"

Posted: Thu Apr 12, 2007 1:34 am
by D@RK_L!GHT
Azilius wrote:-.- I knew that

Well, I fixed it up, it should be easier to follow. It's all basically one step after another. I tried to go into detail because well, there is always gonna be those questions "i dun undrstnd wht i do hre plz hep me"


LoL i know what you mean >< Basicly didnt explain changing the ice nuke to the meteors but its a good tut nice job.

Posted: Thu Apr 12, 2007 12:03 pm
by Flaming
@Azilius

But it give it these screens me Plss XD

Posted: Thu Apr 12, 2007 10:14 pm
by D@RK_L!GHT
If Azilius doesnt mind ill make you guys screenshots. But he has to say its ok.

Posted: Fri Apr 13, 2007 8:00 pm
by Azilius
I'd be greatful :)

I've just been REALLY busy these last few weeks.. If you'd like to add anything to any parts that may seem confusing just tell me, and I'll paste it in and give creds to you :D

Posted: Sat Apr 14, 2007 1:44 pm
by Flaming
But it give it these screens me

Posted: Mon Apr 16, 2007 11:00 pm
by pichalonga
put download here plzzz

Posted: Mon Apr 23, 2007 5:11 am
by sayafaya
Thanks for your effort to make this tutorial, ive been trying it but i cant make the filesize the same as the original one. My new file, after i changed the flying spear skill into the meteor-rain, is bigger then my original. How can i make it smaller so my filesize is good?

Posted: Mon Apr 23, 2007 6:20 am
by cin
sayafaya wrote:Thanks for your effort to make this tutorial, ive been trying it but i cant make the filesize the same as the original one. My new file, after i changed the flying spear skill into the meteor-rain, is bigger then my original. How can i make it smaller so my filesize is good?


i dont pk edit myself but i think i have seen it in one of the
posts some weeks ago. i will look into it if nobody else knows.

Posted: Mon Apr 23, 2007 1:49 pm
by sayafaya
cin wrote:
sayafaya wrote:Thanks for your effort to make this tutorial, ive been trying it but i cant make the filesize the same as the original one. My new file, after i changed the flying spear skill into the meteor-rain, is bigger then my original. How can i make it smaller so my filesize is good?


i dont pk edit myself but i think i have seen it in one of the
posts some weeks ago. i will look into it if nobody else knows.


Thanks, ive only been on this forum for some days, so i dunno what has been posted before. Maybe its possible that someone posts a skilleffect.txt whit the book 1 of spear throw skill changed into the meteor-rain. Then i could simply implement the .txt file back into my media.pk2 through the hexeditor.