[QUOTE=Eusion;22193271]
[b]Latest info: [url]http://www.facepunch.com/showpost.php?p=22189347&postcount=1108[/url]
Make sure you follow all the procedures in the above thread, and DarkRP will be fixed.
Because of the way DarkRP handles the tables that are used to store variables, I've decided along with Falco to wait for an update that will fix these problems.[/b][/QUOTE]
This patch?
I added Durgz Mod, added a shipment for each item in it, added a drug dealer team, and my DarkRP Broke
Lines :
shared.lua
[CODE]TEAM_DRUG = AddExtraTeam("Substance Dealer", Color(255, 140, 0, 255), "models/player/monk.mdl", [You sell drugs. Illegal drugs. Have fun.]], {}, "drugdealer", 2, 45, 0, false, false)
TEAM_SCIENCE = AddExtraTeam("Scientist", Color(255, 150, 0, 255), "models/player/kleiner.mdl", [You use drugs and then make flying horses with wire. WIRE PROS ONLY!]], {}, "scientist", 2, 45, 0, false, false)[/CODE]
addentities.lua
[CODE]AddCustomShipment("Alcohol", "models/props_lab/jar01a.mdl", "durgz_alcohol", 500, 10, false, 200, false, {TEAM_DRUG})
AddCustomShipment("Heroine", "models/props_lab/jar01a.mdl", "durgz_heroine", 500, 10, false, 200, false, {TEAM_DRUG})
AddCustomShipment("Cocaine", "models/props_lab/jar01a.mdl", "durgz_cocaine", 500, 10, false, 200, false, {TEAM_DRUG})
AddCustomShipment("Mushroom", "models/props_lab/jar01a.mdl", "durgz_mushroom", 500, 10, false, 200, false, {TEAM_DRUG})
AddCustomShipment("Aspirin", "models/props_lab/jar01a.mdl", "durgz_aspirin", 500, 10, false, 200, false, {TEAM_DRUG})
AddCustomShipment("Cigarette", "models/props_lab/jar01a.mdl", "durgz_cigarette", 500, 10, false, 200, false, {TEAM_DRUG})
AddCustomShipment("Weed", "models/props_lab/jar01a.mdl", "durgz_weed", 500, 10, false, 200, false, {TEAM_DRUG})
AddCustomShipment("Water", "models/props_lab/jar01a.mdl", "durgz_water", 500, 10, false, 200, false, {TEAM_DRUG})
AddCustomShipment("LSD", "models/props_lab/jar01a.mdl", "durgz_lsd", 500, 10, false, 200, false, {TEAM_DRUG})
AddCustomShipment("PCP", "models/props_lab/jar01a.mdl", "durgz_pcp", 500, 10, false, 200, false, {TEAM_DRUG})
[/CODE]
[editline]01:59AM[/editline]
nvm, redid drugdealer class with a classmaker. works now
I finished my AFK module, and it works :D
[release]
[u][i][b]DarkRP AFK Module[/b][/u][/i]
[url=http://www.garrysmod.org/downloads/?a=view&id=99725][img]http://www.garrysmod.org/img/?t=dll&id=99725[/img][/url]
[b][u][i]How to install:[/b][/u][/i]
Put the AFK folder and the afk.lua into garrysmod/gamemodes/DarkRP/gamemode/modules
It should look like:
DarkRP/gamemode/modules/AFK/cl_afk.lua
DarkRP/gamemode/modules/AFK.lua
[b][u][i]How it works:[/b][/u][/i]
If a player does not press a key for a certain amount of time, they will be automatically demoted to hobo, who has $0 salary
and therefore the player cannot money farm whilst AFK using a high-paying job.
Use rp_afk_demotetime to set the time (in seconds), default is 600 (10 minutes).
However, if a player wants to keep their job and go AFK, they can type /afk to go into AFK mode.
Their screen will go black and they will not be auto-demoted, their salary will also be set to $0.
You cannot change your job whilst in AFK mode.
You can still be killed/arrested/vote-demoted whilst AFK.
You can then type /afk again to exit AFK mode, your salary will be restored and you should still have your job.
Feel free to edit this, all I ask is you leave my name at the top & on the HUD, thanks.
(I'm proud of it, this is my first Lua creation xD)
[/release]
Tested fully & works, don't be too harsh on me if something fucks up, it's the first thing I've ever made in Lua :P
(meeeeega proud of myselff :D)
Falco, it'd be really really really really cool of you to link this on the original post for me? :D
Nice looking release Drakehawke!
Anyone know a good character length limit to use for the character description? I'm thinking about adding a little feature to the classmaker that will "wordwrap" the class's description.
Roughly 50 per line including spaces.
Hmm, this is a line broken at 50 characters, and
how it'll probably look after it gets spaced out.
This look about right?
I probably won't get till adding this till
tomorrow. I don't feel like downloading
FileZilla to this PC just for this small
feature that will only add about 15 characters
to the code.
[QUOTE=Drakehawke;22247463]I finished my AFK module, and it works :D
[release]
[u][i][b]DarkRP AFK Module[/b][/u][/i]
[url=http://www.garrysmod.org/downloads/?a=view&id=99725][img]http://www.garrysmod.org/img/?t=dll&id=99725[/img][/url]
[b][u][i]How to install:[/b][/u][/i]
Put the AFK folder and the afk.lua into garrysmod/gamemodes/DarkRP/gamemode/modules
It should look like:
DarkRP/gamemode/modules/AFK/cl_afk.lua
DarkRP/gamemode/modules/AFK.lua
[b][u][i]How it works:[/b][/u][/i]
If a player does not press a key for a certain amount of time, they will be automatically demoted to hobo, who has $0 salary
and therefore the player cannot money farm whilst AFK using a high-paying job.
Use rp_afk_demotetime to set the time (in seconds), default is 600 (10 minutes).
However, if a player wants to keep their job and go AFK, they can type /afk to go into AFK mode.
Their screen will go black and they will not be auto-demoted, their salary will also be set to $0.
You cannot change your job whilst in AFK mode.
You can still be killed/arrested/vote-demoted whilst AFK.
You can then type /afk again to exit AFK mode, your salary will be restored and you should still have your job.
Feel free to edit this, all I ask is you leave my name at the top & on the HUD, thanks.
(I'm proud of it, this is my first Lua creation xD)
[/release]
Tested fully & works, don't be too harsh on me if something fucks up, it's the first thing I've ever made in Lua :P
(meeeeega proud of myselff :D)
Falco, it'd be really really really really cool of you to link this on the original post for me? :D[/QUOTE]
Very good job!
It would be nice if those functions which are only utilized in the module itself could be made local :P.
[QUOTE=Eusion;22252329]Very good job!
It would be nice if those functions which are only utilized in the module itself could be made local :P.[/QUOTE]
I would try but local functions and variables confuse me :P
Well, I understand local variables, they can only be used inside the function where they were defined?
I don't get local functions though, and I couldn't find any articles on the wiki about it.
So, whats this stuff with darkrp servers shiting people in the face by coming with this error when someone tries to join?
"SERVER USES DIFFERENT CLASS TABLES"
Server needs to be updated... it dosent have latest update, and many dosent want to update due to it breaking everything
[QUOTE=Tobba;22255989]Server needs to be updated... it dosent have latest update, and many dosent want to update due to it breaking everything[/QUOTE]
Most decent servers would have fixed it by now though..
[editline]03:34PM[/editline]
Oh yeah, and I added 4 new tutorials to the wiki :)
To everyone that keeps saying "the classmaker" are you referring to the one I made? :3:
[url]http://www.facepunch.com/showthread.php?t=845162[/url]
[QUOTE=Chief Tiger;22257744]To everyone that keeps saying "the classmaker" are you referring to the one I made? :3:
[url]http://www.facepunch.com/showthread.php?t=845162[/url][/QUOTE]
Either that or [url=http://darkrp.megagamer.net/kit/index.php?i=classmaker]this one.[/url]
Hmmm, what shall I try to make next?
-bored face-
[QUOTE=Drakehawke;22258506]Either that or [url=http://darkrp.megagamer.net/kit/index.php?i=classmaker]this one.[/url][/QUOTE]
Yep, I'm refering to my "one page wonder". From what I can tell, either classmaker works great, it's just the user's preference (online compared to ingame).
I might be within automerge, but if I'm not, this is probably worth the new post.
Anyways, I implemented my little word-wrapping feature using PHP's word wrap function, nothing special :v:. This doesn't create line breaks on excessively long words. I figured that if you have 50 characters together without spaces, you are doing this on purpose.
The result
[lua]//Created using DeaDeye's Classmaker
TEAM_MYCLASS = AddExtraTeam("My Class", Color(255, 255, 255, 255), "models/player/group01/Male_05.mdl", [[This is my awesome class. I have completely failed
to even consider typing line breaks into the
character description field. No worry though! The
classmaker will automatically add line breaks.
Despite this very
llllllllllooooooooooooooooooooooooooooonnnnnnnnnnngggggggggg
word. But, notice, how it doesn't break the word.
The classmaker does this just in case the user has
some impulse to really extend the result.]], {}, "myclass", 5, 150, 0, false, false, false)[/lua]
Also, as part of my fooling around with Javascript, I made a nifty popup that tells you before you submit if something is wrong or not. This really isn't as thorough as the check does on the server end (checking for .mdl, checking for the /, etc), but it should prevent the most basic mistakes.
My first double post. The yellow is overwhelming :3:
I've been having this weird problem lately. Whenever I insert new classes for the gamemode all of the classes (including the ones that come with this version) become unavailable does anyone know how to fix this?
[QUOTE=TheFallen(TF2);22279867]I've been having this weird problem lately. Whenever I insert new classes for the gamemode all of the classes (including the ones that come with this version) become unavailable does anyone know how to fix this?[/QUOTE]
Check your saving shared.lua as a .lua file, not as shared.lua.txt or shared.txt
anyone know why datastream is broke O.o
[QUOTE=Bambs;22280723]anyone know why datastream is broke O.o[/QUOTE]
Latest GMod update broke it, [url=http://www.facepunch.com/showpost.php?p=22189347&postcount=1108]here's how to fix it.[/url]
[QUOTE=Drakehawke;22280386]Check your saving shared.lua as a .lua file, not as shared.lua.txt or shared.txt[/QUOTE]
I did but it still won't work I mean I use SciTE to edit it.
If it helps heres the code:
/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("Citizen", Color(20, 150, 20, 255), "models/player/group01/male_01.mdl", [[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {}, "citizen", 0, 45, 0, false, false)
TEAM_POLICE = AddExtraTeam("Civil Protection", Color(25, 25, 170, 255), "models/player/police.mdl", [[The protector of every citizen that lives in the city .
You have the power to arrest criminals and protect innocents.
Hit them with your arrest baton to put them in jail
Bash them with a stunstick and they might learn better than to disobey
the law.
The Battering Ram can break down the door of a criminal with a warrant
for his/her arrest.
The Battering Ram can also unfreeze frozen props(if enabled).
Type /wanted <name> to alert the public to this criminal
OR go to tab and warrant someone by clicking the warrant button]], {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, "cp", 4, 65, 0, true, true)
TEAM_GANG = AddExtraTeam("Gangster", Color(75, 75, 75, 255), "models/player/group03/male_01.mdl", [[The lowest person of crime.
A gangster generally works for the Mobboss who runs the crime family.
The Mobboss sets your agenda and you follow it or you might be punished.]], {}, "gangster", 3, 45, 0, false, false)
TEAM_MOB = AddExtraTeam("Mob boss", Color(25, 25, 25, 255), "models/player/gman_high.mdl", [[The Mobboss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficent crime
organization.
He has the ability to break into houses by using a lockpick.
The Mobboss also can unarrest you.]], {"lockpick", "unarrest_stick"}, "mobboss", 1, 60, 0, false, false)
TEAM_GUN = AddExtraTeam("Gun Dealer", Color(255, 140, 0, 255), "models/player/monk.mdl", [[A gun dealer is the only person who can sell guns to other
people.
However, make sure you aren't caught selling guns that are illegal to
the public.
/Buyshipment <name> to Buy a weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols]], {}, "gundealer", 2, 45, 0, false, false)
TEAM_MEDIC = AddExtraTeam("Medic", Color(47, 79, 79, 255), "models/player/kleiner.mdl", [[With your medical knowledge, you heal players to proper
health.
Without a medic, people can not be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]], {"med_kit"}, "medic", 3, 45, 0, false, false)
TEAM_COOK = AddExtraTeam("Cook", Color(238, 99, 99, 255), "models/player/mossman.mdl", [[As a cook, it is your responsibility to feed the other members
of your city.
You can spawn a microwave and sell the food you make:
/Buymicrowave]], {}, "cook", 2, 45, 0, 0, false)
TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", Color(20, 20, 255, 255), "models/player/combine_soldier_prisonguard.mdl", [[The Chief is the leader of the Civil Protection unit.
Coordinate the police forces to bring law to the city
Hit them with arrest baton to put them in jail
Bash them with a stunstick and they might learn better than to
disobey the law.
The Battering Ram can break down the door of a criminal with a
warrant for his/her arrest.
Type /wanted <name> to alert the public to this criminal
Type /jailpos to set the Jail Position]], {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"}, "chief", 1, 75, 0, false, true, TEAM_POLICE)
TEAM_MAYOR = AddExtraTeam("Mayor", Color(150, 20, 20, 255), "models/player/breen.mdl", [[The Mayor of the city creates laws to serve the greater good
of the people.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player
Type /jailpos to set the Jail Position
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area
/unlockdown to end a lockdown]], {}, "mayor", 1, 85, 0, true, false/*, {TEAM_CHIEF, TEAM_POLICE}*/)
/*
--------------------------------------------------------
HOW TO MAKE AN EXTRA CLASS!!!!
--------------------------------------------------------
You can make extra classes here. Set everything up here and the rest will be done for you! no more editing 100 files without knowing what you're doing!!!
Ok here's how:
To make an extra class do this:
AddExtraTeam( "<NAME OF THE CLASS>", Color(<red>, <Green>, <blue>, 255), "<Player model>" , [[<the description(it can have enters)>]], { "<first extra weapon>","<second extra weapon>", etc...}, "<chat command to become it(WITHOUT THE /!)>", <maximum amount of this team> <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>, true/false DOES THIS TEAM HAVE A GUN LICENSE?, TEAM: Which team you need to be to become this team)
The real example is here: it's the Hobo: */
--VAR without /!!! The name the color(what you see in tab) the player model The description
TEAM_HOBO = AddExtraTeam("Hobo", Color(80, 45, 0, 255), "models/player/corpse1.mdl", [[The lowest member of society. All people see you laugh.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or
outside someone else's door]], {"weapon_bugbait"}, "hobo", 5, 0, 0, false)
//No extra weapons say /hobo to become hobo Maximum hobo's = 5 his salary = 0 because hobo's don't earn money. 0 = everyone can become hobo , false = you don't have to vote to become hobo
// MAKE SURE THAT THERE IS NO / IN THE TEAM NAME OR IN THE TEAM COMMAND:
// TEAM_/DUDE IS WROOOOOONG !!!!!!
// HAVING "/dude" IN THE COMMAND FIELD IS WROOOOOOOONG!!!!
//ADD TEAMS UNDER THIS LINE:
TEAM_MNU = AddExtraTeam("MNU Agent", Color(0,0,64,255), "models/OpethRockr55/mnu_player/mnu_soldier.mdl", [[The MNU agents primary function is to make sure non-humans obey the laws by force if necessary.]],{"pcmod_pwcrack","door_ram","arrest_stick"}, "MNU_Agent", 4, 45, 0, true)
TEAM_Splicer = AddExtraTeam("Splicer", Color(0,0,153,255), "models/player/soldier_stripped.mdl", [[Splicers are civilians that use an unknown substance that gives them strange and unusual powers]],{"lockpick","weapon_winterblastv2","weapons_bugbait","weapon_knife","grapplehook","weapon_incinerate}, "Splicer", 2, 45, 1, true)
TEAM_spacemarinevet = AddExtraTeam("Space Marine Veteran", Color(120,0,0,255), "models/player/SpaceMarine_Veteran.mdl", [[Your the leader of a group of Space Marines ready to cleanse, purge, and kill for the emperor.]],{"door_ram","weapon_w40k_plasma","weapon_w40k_tau_plasma","arrest_stick","weapon_w40k_bolter"}, "spacemarinevet", 1, 45, 0, true, TEAM_spacemarine)
TEAM_spacemarine = AddExtraTeam("Space Marine", Color(120,0,0,255), "models/player/spacemarine.mdl", [[Your a member of the Space Marines ready to cleanse, purge, and kill in the name of the emperor.]],{"door_ram","weapon_w40k_plasma"}, "spacemarine", 1, 45, 0, true)
TEAM_Rock = AddExtraTeam("Rockstar", Color(255,204,153,255), "models/player/daftpunk/daft_silver.mdl", [[Your a rockstar, play your strings to entertain the masses but be careful! Your awesomeness can kill!]],{"weapon_guitar","weapon_radio"}, "Rockstar", 2, 100, 1, true)
TEAM_Prawn = AddExtraTeam("Prawn", Color(128,128,0,255), "models/OpethRockr55/District 9/Prawn/prawn_animooted.mdl", [[Also known as 'non-humans' these alien beings are refugees that came from the area of District 9 and District 10]],{"pcmod_pwcrack","climb_swep","lockpick"}, "prawn", 4, 45, 0, true)
TEAM_PCmod = AddExtraTeam("PCmod Expert", Color(255,204,153,255), "models/player/magnusson.mdl", [[These guys ar
[lua]TEAM_Splicer = AddExtraTeam("Splicer", Color(0,0,153,255), "models/player/soldier_stripped.mdl", [[Splicers are civilians that use an unknown substance that gives them strange and unusual powers]],{"lockpick","weapon_winterblastv2","weapons_bugbait","weapon_knife","grapplehook","weapon_incinerate"}, "Splicer", 2, 45, 1, true)[/lua]
Here's the correct Splicer code.
You had "weapon_bugbai t" and "weapon_incinerat e (a missing " at the end).
[lua]
TEAM_PCmod = AddExtraTeam("PCmod Expert", Color(255,204,153,255), "models/player/magnusson.mdl", [[These guys are the experts on everything PCmod related and they have equipment suited for PCmod]],{"pcmod_hdcopier","pcmod_installdisk","pcmod_networktester","pcmod_pwcrack","pcmod_unwireswep","pcmod_wireswep"}, "PCmod_Expert", 4, 45, 0, false)
[/lua]
Here's the correct PCMod Expert code.
You had "weapon_netw orktester" and "pcm od_hdcopier".
[lua]
TEAM_Legion = AddExtraTeam("Legion", Color(5,5,160,255), "models/slash/legion/legion.mdl", [[Legion is a Geth Infriltrator that is designed to interact with Organic Beings, and his gestalt conciousness is formed by 1,183 Geth Programs in his 'mobile platform' body.]],{"pcmod_pwcrack","keypad_cracker","lockpick","pcmod_hdcopier"}, "Legion", 1, 66, 0, true)
[/lua]
Here's the correct Legion code.
You had "pcm od_hdcopier".
The ones where you've accidentally put a space in shouldn't affect the game in the way you described, but either way it would have to be corrected anyway. I reckon the thing that hit it was the missing " on the Splicer.
These other things shouldn't break the code at all, but it's generally good practice to do these things:
You should also separate long descriptions between lines, eg:
[lua]
TEAM_Sniper = AddExtraTeam("Clone Sniper", Color(128,0,0,255),"models/player/SGG/Starwars/clonetrooper_neyo.mdl", [[Clone Snipers are one of the most respected types
of marksmen in the Grand Army of the Republic and you
never know where they are untill its too late.]],{"lockpick","weapon_ep2sniper","grapplehook"}, "Clone_Sniper", 4, 45, 1, true)
[/lua]
And idk why but I always fully capitalise the TEAM_SNIPER bit, but I don't think that matters, and I'm not sure if chat commands are case sensitive, so it's usually wise to do the command in lowercase, eg "clone_sniper", or even "clonesniper".
But that's not really necessary. (perfectionist xD)
i think this might have to do with other addons, but i added a drugdealer class using the classmaker and drug shipments. money and wage is 0 and there are no jobs
addentities.lua
[code]AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 1000, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 300, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 600, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("LSD", "models/smile/smile.mdl", "durgz_lsd", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("PCP", "models/marioragdoll/Super Mario Galaxy/star/star.mdl", "durgz_pcp", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Cigarette", "models/boxopencigshib.mdl", "durgz_cigarette", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Water", "models/drug_mod/the_bottle_of_water.mdl", "durgz_water", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Mushroom", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Alcohol", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 500, 5, false, 200, false, {TEAM_SD})[/code]
[QUOTE=chuck14;22291804]i think this might have to do with other addons, but i added a drugdealer class using the classmaker and drug shipments. money and wage is 0 and there are no jobs
addentities.lua
[code]AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 1000, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 300, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 600, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("LSD", "models/smile/smile.mdl", "durgz_lsd", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("PCP", "models/marioragdoll/Super Mario Galaxy/star/star.mdl", "durgz_pcp", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Cigarette", "models/boxopencigshib.mdl", "durgz_cigarette", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Water", "models/drug_mod/the_bottle_of_water.mdl", "durgz_water", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Mushroom", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Alcohol", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 500, 5, false, 200, false, {TEAM_SD})[/code][/QUOTE]
Could that be the cause?
[QUOTE=TheFallen(TF2);22292129]Could that be the cause?[/QUOTE]
If there are no jobs then the logic would say there's a problem with your custom jobs, try the fixed code I gave you above and see if it works, if not post your custom shipments too and we'll take a look at them.
[editline]01:55AM[/editline]
[QUOTE=chuck14;22291804]i think this might have to do with other addons, but i added a drugdealer class using the classmaker and drug shipments. money and wage is 0 and there are no jobs
addentities.lua
[code]AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 1000, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 300, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 600, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("LSD", "models/smile/smile.mdl", "durgz_lsd", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("PCP", "models/marioragdoll/Super Mario Galaxy/star/star.mdl", "durgz_pcp", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Cigarette", "models/boxopencigshib.mdl", "durgz_cigarette", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Water", "models/drug_mod/the_bottle_of_water.mdl", "durgz_water", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Mushroom", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 500, 5, false, 200, false, {TEAM_SD})
AddCustomShipment("Alcohol", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 500, 5, false, 200, false, {TEAM_SD})[/code][/QUOTE]
That all looks fine, post the code for the drug dealer class you made, class makers can mess up sometimes.
[QUOTE=Drakehawke;22291437][lua]TEAM_Splicer = AddExtraTeam("Splicer", Color(0,0,153,255), "models/player/soldier_stripped.mdl", [[Splicers are civilians that use an unknown substance that gives them strange and unusual powers]],{"lockpick","weapon_winterblastv2","weapons_bugbait","weapon_knife","grapplehook","weapon_incinerate"}, "Splicer", 2, 45, 1, true)[/lua]
Here's the correct Splicer code.
You had "weapon_bugbai t" and "weapon_incinerat e (a missing " at the end).
[lua]
TEAM_PCmod = AddExtraTeam("PCmod Expert", Color(255,204,153,255), "models/player/magnusson.mdl", [[These guys are the experts on everything PCmod related and they have equipment suited for PCmod]],{"pcmod_hdcopier","pcmod_installdisk","pcmod_networktester","pcmod_pwcrack","pcmod_unwireswep","pcmod_wireswep"}, "PCmod_Expert", 4, 45, 0, false)
[/lua]
Here's the correct PCMod Expert code.
You had "weapon_netw orktester" and "pcm od_hdcopier".
[lua]
TEAM_Legion = AddExtraTeam("Legion", Color(5,5,160,255), "models/slash/legion/legion.mdl", [[Legion is a Geth Infriltrator that is designed to interact with Organic Beings, and his gestalt conciousness is formed by 1,183 Geth Programs in his 'mobile platform' body.]],{"pcmod_pwcrack","keypad_cracker","lockpick","pcmod_hdcopier"}, "Legion", 1, 66, 0, true)
[/lua]
Here's the correct Legion code.
You had "pcm od_hdcopier".
The ones where you've accidentally put a space in shouldn't affect the game in the way you described, but either way it would have to be corrected anyway. I reckon the thing that hit it was the missing " on the Splicer.
These other things shouldn't break the code at all, but it's generally good practice to do these things:
You should also separate long descriptions between lines, eg:
[lua]
TEAM_Sniper = AddExtraTeam("Clone Sniper", Color(128,0,0,255),"models/player/SGG/Starwars/clonetrooper_neyo.mdl", [[Clone Snipers are one of the most respected types
of marksmen in the Grand Army of the Republic and you
never know where they are untill its too late.]],{"lockpick","weapon_ep2sniper","grapplehook"}, "Clone_Sniper", 4, 45, 1, true)
[/lua]
And idk why but I always fully capitalise the TEAM_SNIPER bit, but I don't think that matters, and I'm not sure if chat commands are case sensitive, so it's usually wise to do the command in lowercase, eg "clone_sniper", or even "clonesniper".
But that's not really necessary. (perfectionist xD)[/QUOTE]
I tried the corrections you reccommended and everything worked! Thanks man!
[QUOTE=chuck14;22292334][code]TEAM_SD = AddExtraTeam("Substance Dealer", Color(255, 153, 255, 255), "models/player/leet.mdl", [[You deal drugs. And water.]], {}, "sd", 2, 70, 0, false, false, false)[/code]
Shared.lua[/QUOTE]
That's a suspicious third false at the end, but DeadEyes classmaker adds that and his should be right, what's this you said about an addon conflicting? Have you got any other custom classes/shipments that could be causing it?
Also, you mentioned that the players money and wage is $0, have you done the datastream fix yet?
[editline]02:26AM[/editline]
[QUOTE=TheFallen(TF2);22292518]I tried the corrections you reccommended and everything worked! Thanks man![/QUOTE]
No problem.
Yes I have done the datastream fix. The addons I can list off the top of my head that I have are :
ULX
Ulib
Mad Cow Weapons
Wire
PCMod 2
PHX
Sorry, you need to Log In to post a reply to this thread.