- Joined
- Oct 15, 2013
- Messages
- 515
- Reaction score
- 159
Well in my recent server work, I found out inside the WZ when adding newer version items, that sometimes they don't all work. Like sometimes the Cash Shop weapons aren't about to be equipped. When you go to equip, say a Fanfar weapon, you D/C. Well that can be easily fixed. With WzClear.
Lame introduction right? Right. Well lets cut to the chase, WzClear is a Java file, you can open in NetBeans and load it and run it. What this does is it removes all the nodes in the Item XML. (I used this for v83 so a lot of current nodes in GMS, don't work in v83) In an attempt to learn some java, @DeathStar helped me make this program to solve one of the problems converting new WZ to old WZ files.
Lets get into it.
What you need:
2 Different Folders named differently
(Ex: "c:\\160Wz" "C:\\160Wz-Final")
NetBeans
Now to begin before you use this, you must have a fully /v160/ wz dumped for this to work, otherwise it will not build. There are some things you must change. Go ahead and find this line of code;
And change the "C:\\160Wz" to where your WZ XML File directory will go. (You need all the XML's of say v160 in a folder. If you only wish to do Character.wz then just go ahead and edit it so it only reads the Character.wz (Explained below.)
Also need to find;
Also edit this line, to your Final folder. (Where the edited XML's go.)
Depending on the type of Wz File you wish to edit with WzClear you can choose here, just put // in front of whatever file you wish to skip.
New Tutorial
(Since my old one was poop.)
1) Make sure to download this file and have it in Netbeans as a project.
1a) Set this project as the Main file. To do so, just right click the package and go to properties. After that scroll down to "Run" and in the Main Class bar click the Browse button next to it and select WzClear. Then hit OK.
2) Create two folders. I use 160Wz. You can too since it is already made inside the file.
160Wz
160Wz-Final
If you do change the file name, be sure to change it inside the WzClear as well. Make sure the Capitalization and spell is exactly the same as well.
3) Inside the folders make more folders. I suggest making them with as these.
Even if you do not have any XML's inside these folders it is just a precaution.
Now copy these folders into the Final folder.
4) Move the XML's into the correct folders.
IMPORTANT: YOU MUST HAVE THE XML'S INSIDE BOTH FOLDERS OR YOU WILL GET AN ERROR!
5) Run the program.
It will take awhile for it to complete so run the program and then go to work or school or something. This application reads each XML line by line and removes the unwanted lines. So if you have say 7k XML's with 20k lines. It will take awhile to complete. One way to tell if it is still working is look at the Date Modified times inside your folder in the XML's. You can see the current progress of where the program is currently at.
Errors:
Exception in thread "main" java.lang.NullPointerException atwzclear.WzClear.main(WzClear.java#)
This means that your folder locations are messed up. They have to be named exactly as they are in the applicaton. Either the names are correct or you need to do the following.
OR
Your folder that the Application reads (160Wz) in the beginning is the ones with all the ID's you need to make a Final folder. I suggest just putting -Final at the end of it. (160Wz-Final) Be sure to have whatever files inside the 160Wz folder inside the 160Wz-Final folder. It will overwrite the XML's inside the -Final folder and those are the ones that you will be able to import into your WZ.
For the most part, it is self explanatory. It is a very easy application to use as well.
If you need any help with this, just post down below.
Credits: @DeathStar and myself.
Lame introduction right? Right. Well lets cut to the chase, WzClear is a Java file, you can open in NetBeans and load it and run it. What this does is it removes all the nodes in the Item XML. (I used this for v83 so a lot of current nodes in GMS, don't work in v83) In an attempt to learn some java, @DeathStar helped me make this program to solve one of the problems converting new WZ to old WZ files.
Lets get into it.
What you need:
2 Different Folders named differently
(Ex: "c:\\160Wz" "C:\\160Wz-Final")
NetBeans
Now to begin before you use this, you must have a fully /v160/ wz dumped for this to work, otherwise it will not build. There are some things you must change. Go ahead and find this line of code;
PHP:
File folder = new File("C:\\160Wz\\" + foldersBitch[D]);
And change the "C:\\160Wz" to where your WZ XML File directory will go. (You need all the XML's of say v160 in a folder. If you only wish to do Character.wz then just go ahead and edit it so it only reads the Character.wz (Explained below.)
Also need to find;
PHP:
File output = new File("C:\\160Wz-Final\\" + foldersBitch[D] + "\\" + list[i].getName());
Also edit this line, to your Final folder. (Where the edited XML's go.)
Depending on the type of Wz File you wish to edit with WzClear you can choose here, just put // in front of whatever file you wish to skip.
New Tutorial
(Since my old one was poop.)
1) Make sure to download this file and have it in Netbeans as a project.
1a) Set this project as the Main file. To do so, just right click the package and go to properties. After that scroll down to "Run" and in the Main Class bar click the Browse button next to it and select WzClear. Then hit OK.
2) Create two folders. I use 160Wz. You can too since it is already made inside the file.
160Wz
160Wz-Final
If you do change the file name, be sure to change it inside the WzClear as well. Make sure the Capitalization and spell is exactly the same as well.
3) Inside the folders make more folders. I suggest making them with as these.
Code:
Accessory, Afterimage, Cap, Cape, Coat, Dragon, Face, Glove, Hair, Longcoat, Pants, PetEquip, Ring, Shield, Shoes, TamingMob, Weapon
Even if you do not have any XML's inside these folders it is just a precaution.
Now copy these folders into the Final folder.
4) Move the XML's into the correct folders.
IMPORTANT: YOU MUST HAVE THE XML'S INSIDE BOTH FOLDERS OR YOU WILL GET AN ERROR!
5) Run the program.
It will take awhile for it to complete so run the program and then go to work or school or something. This application reads each XML line by line and removes the unwanted lines. So if you have say 7k XML's with 20k lines. It will take awhile to complete. One way to tell if it is still working is look at the Date Modified times inside your folder in the XML's. You can see the current progress of where the program is currently at.
Errors:
Exception in thread "main" java.lang.NullPointerException atwzclear.WzClear.main(WzClear.java#)
This means that your folder locations are messed up. They have to be named exactly as they are in the applicaton. Either the names are correct or you need to do the following.
OR
Your folder that the Application reads (160Wz) in the beginning is the ones with all the ID's you need to make a Final folder. I suggest just putting -Final at the end of it. (160Wz-Final) Be sure to have whatever files inside the 160Wz folder inside the 160Wz-Final folder. It will overwrite the XML's inside the -Final folder and those are the ones that you will be able to import into your WZ.
You must be registered to see links
You must be registered to see links
For the most part, it is self explanatory. It is a very easy application to use as well.
If you need any help with this, just post down below.
Credits: @DeathStar and myself.
Last edited: