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
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)
[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]
[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]
[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]
final String filemrf = file.substring(file.indexOf("Data/"), file.indexOf("/", file.indexOf("system/") + 1));
final String filename = file.substring(file.indexOf("lang/", file.indexOf("/") ) );
me2.filedata = me2.putFileData(fls2.get(rpfile2));
I tryied to use JDE and i get this error, use Normal Java , and work fine ^^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
makes no sense to meCode:[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]
In otherrelease there is error with: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]
would be line 238 in yours
but you have:
dont know if that is a fix or you just have other namesCode:[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]
both error are in RZPacker.java
#Edit2
made a hardcoded test for system.mrf with language files:
and: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("/") ) );
that worked!!Code:me2.filedata = me2.putFileData(fls2.get(rpfile2));
the Substring part just confuses me doesn´t make sense in the way it was in my opinion
[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]
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");
}
[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]
me.filedata = me.putFileData(fls.get(rpfile));
"C:\Program Files (x86)\Java\JAVAVERSION\bin\java" -jar RZPacker.jar -replace "CLIENTDIR" "Data"
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)
i got Heap issue please help me see spoiler
Jose Lucas knows probably. im looking for that answer toothen ... anyone knows how to generate new keys?
@Jose Lucas knows probably. im looking for that answer too