Author Topic: Porting Weps  (Read 1379 times)

Im trying to get my weapons to work with v9 but its not working. Ive put it in a .zip added the server.cs and discription thing  and changed them, what am I doing wrong?

Don't worry, we don't need them.

Erm who said I wanted to give them to people.

Is the model in there? All of your files should be in the .zip, so that means all the textures etc.

For this instance, I am porting the lovely Crazy Hammer.

Steps to importing an old object:
  • Create a zip. Name it usefully. Ours will be called Weapon_CrazyHammer.
  • Set aside everything used. This includes: Sound Files, ItemIcons, Shapes, Color##.PNGs, Kill Icons, and Code Files.
  • Dump them in the ZIP.
  • Create two new files. Call them "server.cs" and "description.txt"
  • Put this code in server.cs:
Code: [Select]
exec("./Weapon_CrazyHammer.cs");[li]Put this in description.txt: [/li]
Code: [Select]
Title: Crazy Hammer
Author: A very smart person.
This is my cunning description of our weapon.
[li]Put the ZIP in your add-ons folder, check it in your add-ons list, start the server. You should open your console to make sure there were no missing files and no missing particles. One of the biggest problems that will face importers is creations that run off of other articles. For instance, in the Portal Gun, one of the problems I'm having is finding data on the printer.[/li]
[li]????[/li]
[li]Profit![/li]
[/list]

I have a question from IbanZ post, What if that file is already a .zip, Do we keep it or make a new file?

If it's already in a ZIP then it's either:
A. Imported
B. Unextracted, but still needs to be converted.

Ok I got the weps to work nows the item icon wont work.

Quote
//gui stuff
   uiName = "Megasword";
   iconName = "./Icon_Megasword";
   doColorShift = true;
   colorShiftColor = "0.471 0.471 0.471 1.000";

    // Dynamic properties defined by the scripts
   image = MegaswordImage;
   canDrop = true;
};

Icon_Megasword.png or such, maybe?

LOllll pffff I feel dum now thx.

cant belevie I mist that...