Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 16:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Writing a PK2 Editor from scratch

Discussion on Writing a PK2 Editor from scratch within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2018
Posts: 1
Received Thanks: 0
Question Writing a PK2 Editor from scratch

Hi all,
I'm trying to write a pk2 editor from scratch, This is how i do it,

First I'll get the corresponding entry of the file to be edited,
then Append the file content at the end of the pk2 file,
get the new size and position,
update the entry.

This kinda works but there is a weird issue i'm facing.
when i update a file, the changes wont show up.
I tried updating 2 files and only the changes in first file applied!(and the ones from before!!)

so after so hopeless retries i figured i should add some garbage at the end of the pk2 file and for some reason it worked and for some other reason the number of those bytes is not constant.

I can't figure this out,
do i really need to append those redundant bytes at the end of the pk2 file?
if yes then what size?

Thanks
sjkdfnasjdfh is offline  
Reply

Tags
pk2 edit, pk2 tools, sro


Similar Threads Similar Threads
[Request] DB Editor / Client Editor / PK2 Editor.
08/30/2013 - SRO Private Server - 3 Replies
Would like to make some Updates on the Server and need some peoples to make em. - Add me on Skype : Saint.sinner8 ( will be rewarded )
New media.pk2 Data.pk2 Particles.pk with Devil Spirit el Devil Spirit Edit PK2 Swsro1
01/22/2011 - SRO Private Server - 15 Replies
Well here I brought my contribution was working when it was the devil spirit Data *- Translated into English 100% *- Uniques Spawn, the uniques great x5 *- Mp ~ Hp Bar New *- Lv of Mobs *- AutoSelect *- Versek purple, blue



All times are GMT +1. The time now is 16:37.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.