Author Topic: Help with modifying default add-ons  (Read 976 times)

I have finished or I though I did modifying the default sword as a another weapon for a basic sword pack (private unless someone PMs me wanting it). So all I am doing is just changing the damage and Name of it but when I enable it  to put in the add-ons list it never shows in game. What do I need to do? I modified the name in namecheck and the damage in the server.cs from the sword.

This is merely just a "get familiar with coding" kind of project so please don't judge the idea of the add-on.

post your server.cs
or whatever the sword's coding is in.

Here it is
https://docs.google.com/file/d/0By9_Er3xJ-vvMC1LS1JLRzB6dlk/edit?usp=sharing

Edit: just to make sure you know this is just the Normal sword that comes default.

Here it is
https://docs.google.com/file/d/0By9_Er3xJ-vvMC1LS1JLRzB6dlk/edit?usp=sharing

Edit: just to make sure you know this is just the Normal sword that comes default.
Please use gist.github.com, that way I can see the code without the need to download it.
But I'm pretty sure it might be because you either have syntax errors or because you didn't specify ui name in item datablock.

Sorry for the long break (was kicked off video games until I got caught up in school). Here is the link for the what you wanted.
https://gist.github.com/anonymous/5326461

are you putting it in Weapon_Sword.zip? Because you shouldn't be.

It sounds like you packaged it wrong, do you have namecheck.txt and description.txt files in your .zip?

Edit: Wait, are you unable to spawn it ingame off the item list? or is it unable to select it when starting a server.
     Because the UI name is Sword, you never changed it.
« Last Edit: April 06, 2013, 12:18:21 PM by Aware »

are you putting it in Weapon_Sword.zip? Because you shouldn't be.

It sounds like you packaged it wrong, do you have namecheck.txt and description.txt files in your .zip?

Edit: Wait, are you unable to spawn it ingame off the item list? or is it unable to select it when starting a server.
     Because the UI name is Sword, you never changed it.
Yeah it won't spawn. When you say UI Name you mean like I need to change the name "sword" to the name in the namecheck.txt?

Edit: I looked at the script I have to idea what I need to edit. also I just realized it's not zipped. is that a problem? I have some that aren't zipped but they work fine.

Wait is what I need to change the Sword.cs to what I renamed? so like one of it is called LVL1sword would it be LVL1sword.cs??
« Last Edit: April 09, 2013, 06:45:37 PM by Transformer »

okay in like 20 minutes i'm going on my computer to help you

i don't think you can actually overwrite default addons. i've tried it before and it didn't work, for me at least. no matter what it's always better to just make a new one.

first and perhaps most importantly i advise that you make a seperate server.cs. Right now the sword's server.cs handles both server-sided stuff just to make the sword activate and appear in game and also have all the coding (model, attack speed, etc.). This is common for old addons.

Basically, make a "level1sword.cs" and a "server.cs". The name doesn't matter for your sword. If you want to take a look at how to make a server.cs, look at GunsAkimbo's server.cs.

just rename all of the datablocks to your liking, and don't overwrite any.
if you need any help PM me or RTB me ingame "Gumba Jonny".
« Last Edit: April 09, 2013, 07:05:56 PM by AromaniaFTW »

namecheck.txt is not required, remove it

namecheck.txt is not required, remove it
???

Yes it is...




And completely pointless.
Not pointless, but not required.

The point of the namecheck is to prevent stupid people from renaming add-on files and then redistributing them.