Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] RaiderZ client packer/unpacker/patcher

Junior Spellweaver
Joined
Apr 23, 2013
Messages
140
Reaction score
7
C:\Users\Ricco\Desktop\rzpacker-master\rzpacker>"C:\Program Files\Java\jre1.8.0_
25\bin\java" -Dfile.encoding=EUC-KR -jar RZPacker.jar -unpack "E:\Games\RZ" "E:\
Games\RZ -Unpack"
Loading fileindex...
Fileindex decrypt error!
Fileindex read/parse error!

C:\Users\Ricco\Desktop\rzpacker-master\rzpacker>pause
 
Skilled Illusionist
Joined
Jun 9, 2013
Messages
307
Reaction score
86
C:\Users\Ricco\Desktop\rzpacker-master\rzpacker>"C:\Program Files\Java\jre1.8.0_
25\bin\java" -Dfile.encoding=EUC-KR -jar RZPacker.jar -unpack "E:\Games\RZ" "E:\
Games\RZ -Unpack"
Loading fileindex...
Fileindex decrypt error!
Fileindex read/parse error!

C:\Users\Ricco\Desktop\rzpacker-master\rzpacker>pause

its not for all client version.. use Bolas Version
 
Newbie Spellweaver
Joined
Feb 7, 2013
Messages
10
Reaction score
0
replace is not working getting Error
Code:
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(Unknown Source)
        at RZPacker.replace(RZPacker.java:169)
        at RZPacker.main(RZPacker.java:75)

same as other in release of same tool.

btw why do two people release this?
#Edit
found a cause:
Line 169&170
Code:
[COLOR=#333333]String[/COLOR][COLOR=#333333] filemrf [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]substring([/COLOR][COLOR=#0086B3]0[/COLOR][COLOR=#333333], file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333], file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333]) [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#0086B3]1[/COLOR][COLOR=#333333]));
[/COLOR][COLOR=#333333]String[/COLOR][COLOR=#333333] filename [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]substring(file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333], file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333]) [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#0086B3]1[/COLOR][COLOR=#333333]) [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#0086B3]1[/COLOR][COLOR=#333333]);[/COLOR]
makes no sense to me


In other
Code:
[COLOR=#333333]me2[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]filedata [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] me2[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]putFileData(filesdir [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#333333] fls2[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]get(rpfile2));[/COLOR]
release there is error with:

would be line 238 in yours
but you have:
Code:
[COLOR=#333333]me[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]filedata [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] me[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]putFileData(filesdir [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#333333] fls[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]get(rpfile));[/COLOR]
dont know if that is a fix or you just have other names
both error are in RZPacker.java

#Edit2
made a hardcoded test for system.mrf with language files:
Code:
final String filemrf = file.substring(file.indexOf("Data/"), file.indexOf("/", file.indexOf("system/") + 1));
final String filename = file.substring(file.indexOf("lang/", file.indexOf("/") ) );
and:
Code:
me2.filedata = me2.putFileData(fls2.get(rpfile2));
that worked!!
the Substring part just confuses me doesn´t make sense in the way it was in my opinion
 
Last edited:
Skilled Illusionist
Joined
Jun 9, 2013
Messages
307
Reaction score
86
replace is not working getting Error
Code:
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(Unknown Source)
        at RZPacker.replace(RZPacker.java:169)
        at RZPacker.main(RZPacker.java:75)

same as other in release of same tool.

btw why do two people release this?
#Edit
found a cause:
Line 169&170
Code:
[COLOR=#333333]String[/COLOR][COLOR=#333333] filemrf [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]substring([/COLOR][COLOR=#0086B3]0[/COLOR][COLOR=#333333], file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333], file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333]) [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#0086B3]1[/COLOR][COLOR=#333333]));
[/COLOR][COLOR=#333333]String[/COLOR][COLOR=#333333] filename [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]substring(file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333], file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333]) [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#0086B3]1[/COLOR][COLOR=#333333]) [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#0086B3]1[/COLOR][COLOR=#333333]);[/COLOR]
makes no sense to me


In other
Code:
[COLOR=#333333]me2[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]filedata [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] me2[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]putFileData(filesdir [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#333333] fls2[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]get(rpfile2));[/COLOR]
release there is error with:

would be line 238 in yours
but you have:
Code:
[COLOR=#333333]me[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]filedata [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] me[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]putFileData(filesdir [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#333333] fls[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]get(rpfile));[/COLOR]
dont know if that is a fix or you just have other names
both error are in RZPacker.java

#Edit2
made a hardcoded test for system.mrf with language files:
Code:
final String filemrf = file.substring(file.indexOf("Data/"), file.indexOf("/", file.indexOf("system/") + 1));
final String filename = file.substring(file.indexOf("lang/", file.indexOf("/") ) );
and:
Code:
me2.filedata = me2.putFileData(fls2.get(rpfile2));
that worked!!
the Substring part just confuses me doesn´t make sense in the way it was in my opinion
I tryied to use JDE and i get this error, use Normal Java , and work fine ^^
 
Newbie Spellweaver
Joined
Feb 7, 2013
Messages
10
Reaction score
0
Interesting. tried some Java Versions but everytime the same Error Occured.
Few Questions that could help me:
Which Java Version exactly wich language?
What OS are you using.
#Edit
Ok i found a fix that worked for me.

In the case that others have the same error.
If i am allowed to i could post compiled RZPacker.class so that people with same error can exchange it in jar
When someone has the error and want to fix it by themself:
replaced line 169&170:
Code:
[COLOR=#333333]String[/COLOR][COLOR=#333333] filemrf [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]substring([/COLOR][COLOR=#0086B3]0[/COLOR][COLOR=#333333], file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333], file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333]) [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#0086B3]1[/COLOR][COLOR=#333333]));
[/COLOR][COLOR=#333333]String[/COLOR][COLOR=#333333] filename [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]substring(file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333], file[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]indexOf([/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#333333]) [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#0086B3]1[/COLOR][COLOR=#333333]) [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#0086B3]1[/COLOR][COLOR=#333333]);[/COLOR]
with:
Code:
String filemrf ="NotFound";
            String filename = "NotFound";
            System.out.println("Now File:"+file);
            Pattern patternFilemrf = Pattern.compile("Data/[a-zA-Z]*");
            Matcher mFilemrf = patternFilemrf.matcher(file);
            if(mFilemrf.find()){
                filemrf=mFilemrf.group(0);
                System.out.println("Filemrf:"+filemrf);
                System.out.println("File:"+file);
                filename=file.substring(file.indexOf("Data/"));
                filename=filename.replaceAll("^Data/[a-zA-Z]*/","");
                System.out.println("filename:"+filename);
             }
                else{
                    System.out.println("NOPE");
                }
And as said in last post:
replaced:
Code:
[COLOR=#333333]me[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]filedata [/COLOR][COLOR=#A71D5D]=[/COLOR][COLOR=#333333] me[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]putFileData(filesdir [/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#DF5000]"/"[/COLOR][COLOR=#A71D5D]+[/COLOR][COLOR=#333333] fls[/COLOR][COLOR=#A71D5D].[/COLOR][COLOR=#333333]get(rpfile));[/COLOR]
with:
Code:
me.filedata = me.putFileData(fls.get(rpfile));

Dont know why it worked for others in original version though.
its not perfect but it works.
Note:
the filestructure must be kept from Data!
Example:
RaiderZBR Packer\Data\system\lang\en_US\language_files_to_be_replaced
then you can use:
Code:
"C:\Program Files (x86)\Java\JAVAVERSION\bin\java" -jar RZPacker.jar -replace "CLIENTDIR" "Data"
if you dont put Data folder in packer folder you need to specify it explicitly.
If you get Errors it could be that i changed some more things and dont remember simply write here or send me pm and i will look into it.
 
Last edited:
Blade & Soul Eldoria Developer
[VIP] Member
Joined
Jul 30, 2012
Messages
1,227
Reaction score
160
i got Heap issue please help me see spoiler
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at org.xerial.snappy.Snappy.uncompress(Snappy.java:406)
at MsfEntry.getFileData(MsfEntry.java:93)
at RZPacker.unpack(RZPacker.java:432)
at RZPacker.main(RZPacker.java:86)
 
Newbie Spellweaver
Joined
Oct 28, 2015
Messages
33
Reaction score
2
i got Heap issue please help me see spoiler

se ior system if is 32 bit or 64 bit get right java version problem is u use a rong version of java i think u use 32 bit on 64 bit sistem
 
Newbie Spellweaver
Joined
Jun 23, 2016
Messages
52
Reaction score
4
idk how to use that packer...I just wanna edit the launcher .dat to replace it with my server IP but all time I get a error that he don´t find the path, when I change the bat with correct path the same error

Edit: I opened your datas in Hex Editor but what to do?!
 
Last edited:
Newbie Spellweaver
Joined
Aug 16, 2005
Messages
42
Reaction score
6
Hi All!
I'm trying to use the replace function of this tool, and when I use this function on my client, all the words look like "??????"
toptaran - [Release] RaiderZ client packer/unpacker/patcher - RaGEZONE Forums

How to fix this??? Text on files is russian.
 
Back
Top