I got a v179.4 server up somehow and this is my first time doing this, how do I fix this error I am getting when I run the dump-items.bat? I checked the path inside and everything seems to be correct. This is what I am getting
And this is the contents of MapleDataProviderFactory.javaCode:java.lang.IllegalArgumentException: Can't create data provider! at lib.data.MapleDataProviderFactory.getWZ(MapleDataProviderFactory.java:45) at lib.data.MapleDataProviderFactory.getDataProvider(MapleDataProviderFactory.java:31) at tools.wztosql.DumpItems.<init>(DumpItems.java:45) at tools.wztosql.DumpItems.main(DumpItems.java:482) 0 quest. Finished with errors in 0 minutes 0 seconds Press any key to continue . . .
Thanks a lot.import java.io.File;
import lib.xml.XMLWZFile;
public class MapleDataProviderFactory {
public static MapleDataProvider getDataProvider(String file) {
return getWZ(new File("wz", file), false);
}
private static MapleDataProvider getWZ(Object in, boolean provideImages) {
if(in instanceof File) {
File file = ((File) in);
if (file.isDirectory()) {
try {
return new XMLWZFile((File) in);
} catch(NullPointerException npe) {
throw new IllegalArgumentException("The file '"+in+"' was not found!");
}
}
}
throw new IllegalArgumentException("Can't create data provider!");
}
}



Reply With Quote

