Mar
4

[Tutorial] Adding a weapon

By choseal  //  Choseal  //  8 Comments

Good day bloggers,

And welcome to yet another entry of my blog, a special one this time, as I am going to teach you how to add a weapon to the Rose Online client, hurray!

Download link to tools and files: http://www.mediafire.com/?mdjwwoy3tnf

Don’t get scared of the huge amount of text in this tutorial, doing it will take 2 minutes for me, but explaning it with pictures and details takes about and hour, haha. Seriously though, it wont take as long as you might think.

1. The basics

First of, I’m going to make a list of the file extentions you are going to meet, so you can look up what it is used for if you forget during the guide:
.STB - These files contain alot of information, you will need this kind of file 99% of the time when you add something, ranging from weapons to armors to even monsters.
.STL - These files contain the names for everything, once again ranging from weapons to monsters.
.DDS - This is the skin of the monsters, weapon, armor, etc. It is just a picture, made in a special way so you can use it in Rose Online.
.ZMS - This is the 3D model for the item, weapon, armor, etc. you are adding or making.
.ZSC - These files are bridges that link you DDS and ZMS files, so that the game will know what DDS file goes with what ZMS file, and which item uses the ZMS and DDS file.
.VFS - This is the most important thing you will use as a developer. 3DDATA.VFS is the file that contains almost éverything you see in-game. This ranges from houses, trees, roads, to the DDS and ZMS files of weapons and armors.

And here is a list of tools I am going to use in this tutorial, and what they do. If you do not get the descriptions, don’t worry, it will become more clear in the tutorial itself:
VsfNextGen - This is a tool that is used to take things out of your 3DDATA.VFS file.
Stb Editor by Lmame - Like the name suggests, this is a tool that can open, ánd edit STB and STL files, and save them properly.
Zsc Editor by MaXxon - Doktor Obvious, this is a tool used to modify and save .Zsc files.

2. Setting things up and ready to go

OK, so let’s start by getting our client folder in front of us. I am going to use my test client in this tutorial, which is a NaRose - Evo Style client.

Why am I saying Evo Style? -well, that’s because alot of people use iRose too. iRose is an older version of Rose Online, with a different look, and it works a bit different. Some like it more then others because it’s safer to use, more flexible and has a more balanced system. I myself use Evo because there are already alot of iRose servers out there, and we’re trying to be different, also I think it looks better then iRose, but that’s just my personal preference. =P

Now that I have got my client folder in front of me, I will put VsfNextGen in the map, and run it by double-clicking it. A small screen will pop up. Click the [+] sign next to the word 3DDATA, and it will expand. Now you will see alot more maps, like in my screenshot below:

3. Extracting the file you need

Next, we are going to extract the files we need:
3DDATA/STB/LIST_WEAPON.STB
3DDATA/STB/LIST_WEAPON_S.STL
3DDATA/WEAPON/LIST_WEAPON.ZSC

I have also prepaired some ZMS and DDS files for you (Download link at the bottom of this post), which I took from jRose, which is the japanese version of Rose Online, which has alót more cool items. Normally you would just extract the DDS and ZMS file from another client yourself, but I won’t do that this time, to save you some time. If you read my guide, you will know how it will work.

First, we are going to get the LIST_WEAPON.STB file, the name speaks for itself, it is an STB file, containing a list of weapon information. We’ve already opened the 3DDATA folder, so now, navigate to the map called STB and once again click the [+] sign next to it. As the name suggest, this folder contains all the STB files, but also all the STL files. The list you are seeing is probably pretty big, and you are probably going to overlook the file you need from time to time, as there is no search function. So just keep looking for the file untill you find it.

When you do, first, click it with the left mouse button for safety reasons, and then click it with the right mouse button. A menu will drop down, and in that menu, you have to click “Extract Item”. Now click “Browse” and select the place where you want to put the stb file. It is smart to make a new folder for this guide, so you won’t lose anything, and so you can delete it if you want, when you are done with this tutorial. Do the same for LIST_WEAPON_S.STL, extract it from the client.

Now you can click the [-] sign next to the STB folder again so it will collapse. Now go to the folder called WEAPON, and once again press the [+] button next to it. Extract the LIST_WEAPON.ZSC file like you did with the STB and STL files.

Good, so now we have all the files we need:
LIST_WEAPON.STB
LIST_WEAPON_STL.STL
LIST_WEAPON.ZSC
TEST.DDS
TEST.ZMS

4. Adding the item to the client

OK, now it’s time to actually start adding an item. Go to VsfNextGen, and once again, go to the folder called WEAPON in the 3DDATA folder. Next, you have to determine whether it’s a special weapon, or a normal weapon. Since my weapon is a two-handed weapon, it’s not special, so just go to the WEAPON folder, and then open the map called TWOHAND.

What you are seeing now are maps, containing the DDS and ZMS files for each weapon. Because the item we are adding is completely new, we are going to have to make a new folder. Right click the map called TWOHAND, and press “Create new folder..”. Name it whatever you want, but I suggest you make it the same as your weapons name. My weapon’s name was Test Weapon, so I will name my folder TEST.

OK, we have a folder called TEST, now we need to put our DDS and ZMS files in it. Right click the map you made, and press “Add item to folder”. Click “Browse” on the menu that popped up, and locate your DDS file, double click it, and press add item. Now do the same again, except this time, add the ZMS file.

5. Adding the item to the STL and STB files.

Next, we are going to add the items to your STB and STL file. Open your stb editor. The one I am using in this example requires Excel, if you do not have Excel, look for another tool on this site:
http://forum.dev-osrose.com/viewtopic.php?f=32&t=1026

Next, click on the large button at the top left of the editor with the text “Open Control Panel”. Now click “Load STB” and then locate and double click your LIST_WEAPON.STB file, it will start loading, wait till it’s done, and do the same with “Load STL”

The STB editor has now loaded the STB and STL file, as you are probably already seeing, you now have a huge list with things you do not understand, except for the weapon names at the left of the list. If you are a game master, or if you have your own server, you probably know what an item ID is, if you don’t:

An Item ID is a unique number assigned to an item to help the client identify what it is, what it looks like, and what it does. You will find these numbers to the left of the item names.

Pick an empty row, which means that everything on that line is empty, except for the ID. (Do not delete or change the ID, ever, that just wouldn’t be smart. =P) let’s start by typing an item name in the second row. I am going to go with Test Weapon, it’s probably not the best name ever, but heck. =P

Now, press the big gray button at the top left that sais “Item Editor”. This will open up another menu. Click the white bar at the top left of the menu, and a drop-down menu will appear. Find your item’s ID and item name, and press enter. Nothing much will change, everything will still be empty. I don’t think this part needs much explaining, so I am just going to fill it in, and you can fill in whatever you like, and look at my example if you don’t know what to fill in. Once you are done, click the “Save Changes” button, and you will probably see that alot more information is written down next to your item’s name.

Scroll all the way to the right, and stop at row BD, it will be empty, but it it’s filled in everywhere else. Now fill in the following: LWEA*item ID*, so if my item’s ID was 201, it would be LWEA201.

Now go to the STL tab, by pressing the tab called “STL Reader” at the bottom of the Excel screen. Once again, find an empty row, and fill in the Weapon’s name and the description, where it sais LWEA*Number*, change it to the LWEA*number* you made in the stb file. In my case this would be LWEA201.

OK, now you are done with the STB and STL files, open the Control Panel again, and press “Save stb”, once it is done saving, press “Save stl”. Click Close Control Panel, and minimalize your stb editor, because you might need it later for the ZSC file.

6. Adding the item to the ZSC file.

Alright, almost there, the only thing we have to do now is edit the zsc file!
Open up the ZSC editor, and when it opens up, look at the top-left part of the program that pops up. Where it sais: “Entry [White box]“, fill in the ID of your weapon and then press “Jump To”. Even if it looks like nothing change, something did, trust me. If you forgot the ID, just open up your STB again.

Next, click “Add ZMS Resource”, locate your ZMS file, and double click it. Scroll down to the bottom in the box below the text “ZSC Selection and Mesh Values”. There you will see a link that looks alot different then the other links, so click it with your left mouse button, and then press “Rename ZMS Resource”. Change the link like I did in my example, but if your map or ZMS name was different, change it.

Now do exactly the same in right part of the ZSC editor, the DDS part. Press “Rename DDS Resource”, and the rest speaks for itself, right?
Now I’m going to skip some stuff because the chance of you using it is very unlikely, so just fill in everything like I did in this example:

Filled everything in except the part where it sais “Bounding Box”? Good, now use this tool to found out what to fill in there, there should already be a guide on this in that topic:
http://forum.dev-osrose.com/viewtopic.php?f=32&t=2527
OK, now press the “Save” button at the right part of the ZSC editor, and then press “Save ZSC File”, and you should get a confirmation.

7. Putting everything back where it belongs

OK, we are done with everything, time to clean up our mess! Close down your stb and zsc editor first.
Open up VsfNextGen again, and go to the STB map. Right click the LIST_WEAPON.STB file, and press “Delete Item”, do the same for LIST_WEAPON_S.STL.
Now right click the STB map, and press “Add Item”. Add the STB file we just changed, and do the same for the STL file. Don’t forget to always check if VsfNextGen added the files correctly, it can be a bit tricky at times. =P
Now go to the WEAPON folder, and delete and re-add LIST_WEAPON.ZSC like you did with the STB and STL file.
Great, now close VsfNextGen, and start up your client.
Once you logged in, it’s time to test you weapon. In my case I would spawn the item by typing: /item 190 8 1.

Tadaa, if you did everything right, you will have your first weapon, congratulations! =D
Now isn’t that just fantastic? -now go pratice some more, haha. At first it took me a while to add items, but now I can add an item in 2 minutes or so, so practice doés make perfect, right? =D

If you have any questions, or if you found any errors, don’t be afraid to ask/tell me on my blog! Also be sure to expect more tutorials in the near future, I take requests. =P

Credits for the tools go to the people from OsRose, credits for the ZMS and DDS files go to jRose. Please do not distribute this tutorial without giving credits to the original poster, me. =P

8 Comments to “[Tutorial] Adding a weapon”

  • Thanks for the post, well pass on to our garden customers to come to your blog

  • Ermmm so if we follow this guide and do it correctly will other players be able to see it? o.o Sorry if you wrote the answer but I dont like reading words and I just scrolled down untill i saw that shiny golden axe xD

  • No, you have to make a patch for it first and then update the server files, there are guides for that on OsRose. =3

    Thank you for showing posting on our blog, you’r the first. x3

  • Good share,you article very great, very usefull for us…thank you

  • Thanks for sharing this.

  • really appreciate YOU — thanks a lot!

  • I am the first time on this site and am really enthusiastic about and so many good articles. I think it’s just very good.

  • One again, your article is very nice

Leave a comment