Class Generator

I got tired of all the crappy half-working Class Makers for Dark RP. I mean I was working on a server for a guy, coding Lua, and he wanted to make his own class, so he used one of the class makers and it broke shared.lua. Anyways, this one is good. It actually works. A PDF is included just in case you don’t know what your doing.

Screenshot:( note: Not Bad Spelling, it is corrected in the actual program :stuck_out_tongue: )
http://img22.imageshack.us/img22/9250/classgenscreen.png

Download:
Filefront Download

Source Code:
Lisenced Under Creative Commons[Attribution-Noncommercial-No Derivative Works 3.0 United States](Attribution-Noncommercial-No Derivative Works 3.0 United States)
Filefront Download - C# Source Code

upload it to garrysmod.org

I tried but every time I upload something it gives me the WARNING thing. If I can get that fixed I will.

There are many of these, this is the fourth one up that is actually for the newer versions of DarkRP. But, most people will feel more secure if you post the source code to compiled software.

If your curious, the other 3 are,
http://www.facepunch.com/showpost.php?p=17570995&postcount=945
Mine - http://darkrp.megagamer.net/kit/index.php?i=classmaker
http://www.facepunch.com/showthread.php?t=784278

This accounts to 2 client side versions, and 2 server side versions.

[editline]04:40PM[/editline]

Make sure you ZIP it up before uploading to garrysmod.org.

I am fine with posting the source will upload it after I post this.
Also, it is a ZIP file, I’m not a moron. (sarcasmHeh… I can code a program but can’t read.sarcasm)

Edit:
Alright C# Source Code Released.

awesome thanks for making a new one art the old ones failed they never worked right :frowning: i could never make a super meta human hobo thing but now i can >:P begins maniacal laughter

My problem is that when i paste it into shared it isnt shown on the server :S

Bug Found and Fixed. Everything works now, sorry for the problems.

I made a quick test class, and I notice a few problems


AddExtraTeam( 'The Leet Class' , Color( 255 , 0 , 0 , 255 )  , 'models/player/leet.mdl' , [[ Yes, we ARE leet. ]] , Class Weapons , 500 ,5 , 1 , true , true )

^ is from your class maker
v is from my class maker using the same exact settings.


TEAM_LEET = AddExtraTeam("The Leet Class", Color(255, 0, 0, 255), "models/player/leet.mdl", [[Yes, we ARE leet]], {"weapon_keys"}, "leet", 5, 500, 1, true, true)

You need to have that TEAM_XXXX = added onto the beginning.
You should probably surround the class name with double quotes just in case someone chooses to have a class such as Dead’s Class, where the script will consider the single quote the end of the string.
Instead of putting in the weapons, it puts in what appears to be a variable, Class Weapons.
The command field is not there.
Salary and Maximum to a team are mixed up.

Hope you can fix those bugs :v:, good luck!

All problems fixed except the quotes. I will probably recoding this in Cpp, due to the limitations of C#.

Good luck! Even though I dont use DarkRP anymore, its nice to see people are still making things for it.

Well I am coding my own script right now so we will be switching before too long, this was just mainly for the server owner, while we still use DarkRP.