tictaczep / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 0 forks source link

Lua Error #381

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What is the problem?
I keep getting a lua error for Makethings.lua

LuaError: gamemodes\darkrp\gamemode\MakeThings.lua:95: table index is nil

What steps will reproduce the problem?
Starting up SRCDS with DarkRP as the default gamemode using the console.

Do you have any errors? serverside or clientside? If you do, which ones?
I would say its serverside

Are you using the downloaded version or an SVN revision (if SVN, which
revision number)?
I updated the SVN today. 662

Please provide any additional information below.

Original issue reported on code.google.com by spyste...@gmail.com on 14 Jul 2010 at 9:56

GoogleCodeExporter commented 8 years ago
And I haven't touched the file before.

Original comment by spyste...@gmail.com on 14 Jul 2010 at 9:57

GoogleCodeExporter commented 8 years ago
Have you edited shared.lua and/or addentities.lua?

Original comment by ch...@watersideway.plus.com on 15 Jul 2010 at 12:21

GoogleCodeExporter commented 8 years ago
I have edited both of those.

I edited a default class, and edited addentities.lua correspondingly.

Original comment by spyste...@gmail.com on 15 Jul 2010 at 8:03

GoogleCodeExporter commented 8 years ago
Post the code you've changed/added here, it's probably an error in the syntax 
of them.

Original comment by ch...@watersideway.plus.com on 15 Jul 2010 at 8:18

GoogleCodeExporter commented 8 years ago
addentities.lua

AddEntity("Drug lab", "drug_lab", "models/props_lab/crematorcase.mdl", 400, 3, 
"/buydruglab", {TEAM_GAMB, TEAM_GMOB})

shared.lua

TEAM_GAMB = AddExtraTeam("Gambino Mafia Gangster", Color(75, 75, 75, 255), 
{Took away list of models to keep it small},
[[The lowest person of the Gambino crime family. 
A gangster generally works for the Boss who runs the Gambino family. 
The Boss sets your agenda and you follow it or you might be punished.]], {}, 
"gambino", 3, 45, 0, false, false)

TEAM_GMOB = AddExtraTeam("Gambino Mafia Boss", Color(25, 25, 25, 255), 
"models/player/gman_high.mdl", [[The Gambino Mafia Boss is the boss of the 
Gambino Mafia 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 Boss also can unarrest you.]], {"lockpick", "unarrest_stick"}, "gambboss", 
1, 60, 0, false, false, {TEAM_GAMB})

Original comment by spyste...@gmail.com on 15 Jul 2010 at 9:10

GoogleCodeExporter commented 8 years ago
Your problems here, "{Took away list of models to keep it small}", either put 
the list of models back in or replace it with just 1 model.

Original comment by ch...@watersideway.plus.com on 15 Jul 2010 at 10:48

GoogleCodeExporter commented 8 years ago
I took it away only to post it here. The list of models still exist in the 
shared.lua.

Original comment by spyste...@gmail.com on 15 Jul 2010 at 11:39

GoogleCodeExporter commented 8 years ago
They're fine by the looks of it, and it seems the error is pointing to the 
agendas section of shared.lua, are you sure you haven't touched the agendas or 
accidentally commented them out? 

Original comment by ch...@watersideway.plus.com on 15 Jul 2010 at 11:57

GoogleCodeExporter commented 8 years ago
I know why, you've changed the gangster/mob classes but it's still trying to 
create the agendas with the old ones, change the custom agenda for the 
gangsters to this:

AddAgenda("Gambino Mafia Agenda", TEAM_GMOB, {TEAM_GAMB})

Original comment by ch...@watersideway.plus.com on 15 Jul 2010 at 11:59

GoogleCodeExporter commented 8 years ago
Or delete it if you do not wish for them to have an agenda.

Original comment by ch...@watersideway.plus.com on 15 Jul 2010 at 12:00

GoogleCodeExporter commented 8 years ago

Original comment by fpeijnen...@gmail.com on 15 Jul 2010 at 1:32

GoogleCodeExporter commented 8 years ago
Note you can still post here if the problem isn't solved yet.

Original comment by fpeijnen...@gmail.com on 15 Jul 2010 at 1:33