Register for your free account! | Forgot your password?

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

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

Advertisement



looking for a media patcher source

Discussion on looking for a media patcher source within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
sercankd's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 273
Received Thanks: 135
looking for a media patcher source

yes i know i ask too many things but i am just curious about those stuff trying to improve myself with a project. i am just stuck at editing ip in media.pk2
i am using this code but it gives error when i start, checked it with hex editor it does the job but silkroad.exe gives some errors like Memory#$|d£#Æ
Code:
        Dim fs As New FileStream("D:\****** Silkroad\Media.pk2", FileMode.Open, FileAccess.Write)
        Dim br As New BinaryWriter(fs)
        Dim bytes() As Byte
        'IP1
        br.BaseStream.Position = "&H1E9A0059"
        bytes = System.Text.Encoding.Default.GetBytes(ip1.Text)
        br.Write(bytes)
        If ip1.TextLength <> 16 Then
            For i = 1 To 16 - ip1.TextLength
                Dim tmp As Byte = &H0
                br.Write(tmp)
            Next
        End If
        br.Close()
        fs.Close()
i found this code somewhere in this forum end edited for myself,hex location is true i have checked it.
but i have decompiled some media patchers and they are using some class called LoadPk2File, and i guess there is bunch of functions to do my job, searched on google and i havent found it yet.they are just editing divisioninfo.txt instead of hex edits.

example


Code:
loc_431AB6:   var_88 = PropBag.ReadProperty(Me.txtMedia.Text, "\divisioninfo.txt")
loc_431AF9:   var_8C = PropBag.ReadProperty(Me.txtMedia.Text, "\gateport.txt")
loc_431B0C:   lPort = var_8C
loc_431B1B:   lIP1 = (var_88 + &H11)
loc_431B30:   lIP2 = ((var_88 + &H11) + &H15)
loc_432716:   Call SaveDataInPk2(Me.txtMedia.Text, lPort)
loc_432743:   Call SaveDataInPk2(Me.txtMedia.Text, lIP1)
loc_432770:   Call SaveDataInPk2(Me.txtMedia.Text, lIP2)
sercankd is offline  
Reply


Similar Threads Similar Threads
media patcher?
04/18/2013 - SRO Private Server - 3 Replies
can some one teach me how to use media patcher for sjsro?
Media patcher
03/11/2012 - SRO Private Server - 5 Replies
Pls post a media patcher Thx i dont find a working link in searching
media patcher
11/05/2009 - SRO Private Server - 5 Replies
i hope some 1 explain for me wt is an media patcher and how could i use it thx all :D
MEDIA PATCHER
05/26/2009 - Silkroad Online - 12 Replies
Ok so! I've been playing SRO for a long time, and with bot as well... But now i have something that i didn't have for a long time. :D A Problem wich is called -> msvbvm60.dll When i try to launch Media Patcher this appear -> msvbvm60.dll Is not a valid Windows image. o_O wth? Ive tried to DL that file, but nothing changes. <_< Does anyone knows something about it.? :handsdown:
media patcher?
04/26/2009 - SRO Private Server - 1 Replies
can some one teach me how to use media patcher for sjsro?



All times are GMT +1. The time now is 00:47.


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.