[Release] RaiderZ client packer/unpacker/patcher

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
 
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
 
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:
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 ^^
 
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:
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)
 
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:
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