Nori, you should make a new thread special for your G3.
He's working on the script, let him be.
[QUOTE=Legental;15906346]Nori, you should make a new thread special for your G3.[/QUOTE]
It wouldn't be a bad idea. Just write the [b]IMPORTANT[/b] stuff there, what you have planned to add on CakeScript G3.
Fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you Fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you Fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
fuck you
Everyone is so excited. :P
[QUOTE=thompson144;15919141]It wouldn't be a bad idea. Just write the [b]IMPORTANT[/b] stuff there, what you have planned to add on CakeScript G3.[/QUOTE]
Well, it would remove the confusion for alot of people since they still don't really know whats going on.
Since we keep bumping this uber old topic.
Is he making G3 or why are you still posting here?
He said he was busy on G3.
I keep getting this error when players join my multiplayer server. I get it to.
There was a problem opening the gamemode file 'CakeScript/gamemode/cl_init.lua'
It's not included in the init.lua file, just put include( "cl_init.lua" ) in the init file and it should work.
I think cakescript G2 breaks wiremods applyforce().
That wasn't a troll btw :P
:/, thank you for that Gib, maybe G3 won't have that bug.
Hey guys.
I am trying to make a simple cakescript schema, but I cant seem to get the animations themselves to work for custom models. I have read it, and all people have advised is "Add the model to animations.lua". I have already tried to add them to the lists already present (CitizenMale, CitizenFemale etc.) but it doesn't have any effect. My models are still T-posed and it is greatly frustrating me.
Any help would be greatly appreciated.
Thanks,
Todrak
I cant pick a model on start... I guess this is broken.
[QUOTE=NewBee;16376942]I cant pick a model on start... I guess this is broken.[/QUOTE]
You have to edit it.
[QUOTE=Slemo;16385796]You have to edit it.[/QUOTE]
Are there any guides on how to edit this gamemode?
Read the rest of the thread and you should pick up what you need.
Hey, I've created 3 different schemas, how do I pick which one I want to load on start up? I've tried lots but I've either come up with a blank screen without being able to choose a model, or just normal default HL2 RP
[B]Edit:[/B]
[QUOTE=todrak;16363315]Hey guys.
I am trying to make a simple cakescript schema, but I cant seem to get the animations themselves to work for custom models. I have read it, and all people have advised is "Add the model to animations.lua". I have already tried to add them to the lists already present (CitizenMale, CitizenFemale etc.) but it doesn't have any effect. My models are still T-posed and it is greatly frustrating me.
Any help would be greatly appreciated.
Thanks,
Todrak[/QUOTE]
You have to decompile the models then recompile the models with an edited .qc file with the proper animations. I'm sure you can find a tutorial for that somewhere on these forums.
[QUOTE=Blah360;16401663]Hey, I've created 3 different schemas, how do I pick which one I want to load on start up? I've tried lots but I've either come up with a blank screen without being able to choose a model, or just normal default HL2 RP[/QUOTE]
1. Open configuration.lua in gamemodes/cakescriptg2/gamemode/
2. change:
[code]CAKE.ConVars[ "Schema" ] = "hl2rp";[/code]
to
[code]CAKE.ConVars[ "Schema" ] = "whateveryourshemanameis";[/code]
If it comes up with a blank screen, there is something wrong with your schema.
Also, thanks for the help with the models, I'll try it.
EDIT:
I cant find any tutorials, could someone link me to one?
Thanks
I just installed this on my server, seems to work. Now to be honest, I haven't really played in a server with a working cakescript, so I am tackling this blind.
1. At default, is there some sort of admin classes? If so how and where do I set these up? (I'd look through the thread but it's 19 pages)
2. I am reading a lot of things about how annoying it is put custom models, has anyone got a walk through on how to do so?
3. I am using ULX, what conflicts will I encounter?
From what I am getting this seems very poorly documented and a lot of things seem broken just reading this thread, all I see is wait for G3. I am tempted to just use Darkrp :/ (Which isn't as good, but at least it's heavily documented)
[QUOTE=MasterChi;16432298]I just installed this on my server, seems to work. Now to be honest, I haven't really played in a server with a working cakescript, so I am tackling this blind.
1. At default, is there some sort of admin classes? If so how and where do I set these up? (I'd look through the thread but it's 19 pages)
2. I am reading a lot of things about how annoying it is put custom models, has anyone got a walk through on how to do so?
3. I am using ULX, what conflicts will I encounter?
From what I am getting this seems very poorly documented and a lot of things seem broken just reading this thread, all I see is wait for G3. I am tempted to just use Darkrp :/ (Which isn't as good, but at least it's heavily documented)[/QUOTE]
1. Yes. There is admin and super admin. To make yourself an admin or super admin, open admin.lua and type your steamID in either the admin or super admin table. Make sure you have quotation marks ("") around your steamID.
2. My problem exactly.
3. ULX works perfectly fine with Cakescript. There are no conflicts. It is awesome.
[QUOTE=todrak;16433401]1. Yes. There is admin and super admin. To make yourself an admin or super admin, open admin.lua and type your steamID in either the admin or super admin table. Make sure you have quotation marks ("") around your steamID.
2. My problem exactly.
3. ULX works perfectly fine with Cakescript. There are no conflicts. It is awesome.[/QUOTE]
Thanks for the reply, so for superadmin I opened up the admin.lua file and edited the superadmin line like so:
[code]-------------------------------
-- CakeScript Generation 2
-- Author: LuaBanana ( Aka Jake )
-- Project Start: 5/24/2008
--
-- admin.lua
-- Admin functions. Admin concommands are in admin_cc.lua
-------------------------------
SuperAdmins = { "STEAM_0:1:2429392" };
Admins = { };
CAKE.AdminCommands = { }
function CAKE.AnnounceAction( ply, action )
local s = "[ ADMIN ] " .. ply:Name( ) .. " " .. action;
for k, v in pairs( player.GetAll( ) ) do
v:ChatPrint( s );
end
end
-- This will create an admin function.
function CAKE.AdminCommand( ccName, func, description, CanRunFromConsole, CanRunFromAdmin, SuperOnly )
local cmd = { };
cmd.func = func;
cmd.desc = description;
cmd.CanRunFromConsole = CAKE.NilFix(CanRunFromConsole, true);
cmd.CanRunFromAdmin = CAKE.NilFix(CanRunFromAdmin, true);
cmd.SuperOnly = CAKE.NilFix(SuperOnly, false);
CAKE.AdminCommands[ ccName ] = cmd;
end
-- Syntax is rp_admin command args
function ccAdmin( ply, cmd, args )
local cmd = CAKE.NilFix( CAKE.AdminCommands[ args[ 1 ] ], 0);
if( cmd == 0 ) then
CAKE.SendChat( ply, "That is not a valid command!" );
return;
end
local func = cmd.func; -- Retrieve the function
local CanRunFromConsole = cmd.CanRunFromConsole; -- Can it be run from the console
local CanRunFromAdmin = cmd.CanRunFromAdmin; -- Can it be run from a player's console
local SuperOnly = cmd.SuperOnly; -- Can a regular admin run it
table.remove( args, 1 ); -- Remove the admin command from the arguments
if( ply:EntIndex( ) == 0 ) then -- We're dealing with a console
if( CanRunFromConsole ) then
func( ply, cmd, args );
else
CAKE.PrintConsole( "You cannot run this command from server console!" );
end
else
if( ply:IsAdmin( ) and !ply:IsSuperAdmin( ) ) then -- We're dealing with an admin.
if( !SuperOnly and CanRunFromAdmin ) then
func( ply, cmd, args )
else
CAKE.SendChat( ply, "You cannot run this command!" );
end
end
if( ply:IsSuperAdmin( ) ) then -- We're dealing with a superadmin.
if( CanRunFromAdmin ) then
func( ply, cmd, args )
else
CAKE.SendChat( ply, "You cannot run this command!" );
end
end
end
end
concommand.Add("rp_admin", ccAdmin) [/code]
So it should work, but then again how do I know if it worked? What things can I do?(I would just readup and see what I can do, but there is nothing to read up, other than this thread) Also I really hope the author of this makes adding custom models easier... I mean seriously why the fuck do you need to decompile a model just to be a certain playermodel?
Also are there default roles? Like Civil Protection and gangs and the like? Because I see you can create your own teams, but do you have to? Like does it come with presets?
[QUOTE=MasterChi;16441701]Thanks for the reply, so for superadmin I opened up the admin.lua file and edited the superadmin line like so:
[code]-------------------------------
-- CakeScript Generation 2
-- Author: LuaBanana ( Aka Jake )
-- Project Start: 5/24/2008
--
-- admin.lua
-- Admin functions. Admin concommands are in admin_cc.lua
-------------------------------
SuperAdmins = { "STEAM_0:1:2429392" };
Admins = { };
CAKE.AdminCommands = { }
function CAKE.AnnounceAction( ply, action )
local s = "[ ADMIN ] " .. ply:Name( ) .. " " .. action;
for k, v in pairs( player.GetAll( ) ) do
v:ChatPrint( s );
end
end
-- This will create an admin function.
function CAKE.AdminCommand( ccName, func, description, CanRunFromConsole, CanRunFromAdmin, SuperOnly )
local cmd = { };
cmd.func = func;
cmd.desc = description;
cmd.CanRunFromConsole = CAKE.NilFix(CanRunFromConsole, true);
cmd.CanRunFromAdmin = CAKE.NilFix(CanRunFromAdmin, true);
cmd.SuperOnly = CAKE.NilFix(SuperOnly, false);
CAKE.AdminCommands[ ccName ] = cmd;
end
-- Syntax is rp_admin command args
function ccAdmin( ply, cmd, args )
local cmd = CAKE.NilFix( CAKE.AdminCommands[ args[ 1 ] ], 0);
if( cmd == 0 ) then
CAKE.SendChat( ply, "That is not a valid command!" );
return;
end
local func = cmd.func; -- Retrieve the function
local CanRunFromConsole = cmd.CanRunFromConsole; -- Can it be run from the console
local CanRunFromAdmin = cmd.CanRunFromAdmin; -- Can it be run from a player's console
local SuperOnly = cmd.SuperOnly; -- Can a regular admin run it
table.remove( args, 1 ); -- Remove the admin command from the arguments
if( ply:EntIndex( ) == 0 ) then -- We're dealing with a console
if( CanRunFromConsole ) then
func( ply, cmd, args );
else
CAKE.PrintConsole( "You cannot run this command from server console!" );
end
else
if( ply:IsAdmin( ) and !ply:IsSuperAdmin( ) ) then -- We're dealing with an admin.
if( !SuperOnly and CanRunFromAdmin ) then
func( ply, cmd, args )
else
CAKE.SendChat( ply, "You cannot run this command!" );
end
end
if( ply:IsSuperAdmin( ) ) then -- We're dealing with a superadmin.
if( CanRunFromAdmin ) then
func( ply, cmd, args )
else
CAKE.SendChat( ply, "You cannot run this command!" );
end
end
end
end
concommand.Add("rp_admin", ccAdmin) [/code]
So it should work, but then again how do I know if it worked? What things can I do?(I would just readup and see what I can do, but there is nothing to read up, other than this thread) Also I really hope the author of this makes adding custom models easier... I mean seriously why the fuck do you need to decompile a model just to be a certain playermodel?
Also are there default roles? Like Civil Protection and gangs and the like? Because I see you can create your own teams, but do you have to? Like does it come with presets?[/QUOTE]
It comes with its own hl2rp schema, so there are already preset teams and roles.
admin should work fine like that. Here are some commands - type these in the chat:
!admin tooltrust <name> 1
!admin phystrust <name> 1
!admin gravtrust <name> 1
!admin proptrust <name> 1
I am sure there are more, but they escape me at the moment. Just replace the <name> with your IC name. For example, if you were called Ted, type "!admin tooltrust Ted 1" in the chat.
I also solved my model problem. All of the models I was trying to use were rigged to skeletons that weren't hl2. For anyone else who has this problem, I just looked up NPCs from garrysmod.org and took the models from them, as tehy all have proper animations.
Thanks for the response and all the help, but I'm just going to wait till G3, maybe it will be a bit less broken. I say that because I'm not sure what and what doesn't work with no documentation. I am still confused on why the fuck you can't just pick a playermodel like DarkRP. Why must you rig it? That's stupid as fuck.
[QUOTE=todrak;16402550]
[code]CAKE.ConVars[ "Schema" ] = "whateveryourshemanameis";[/code]
[/quote]
Dude, you spelled schema wrong o0...
Also, anyone having an issue with the new GMod update? There's an issue with I think the derma. The pick model panel won't open correctly and in turn no one can make a character. If anyone has this, lemme know.
More info on the issue I'm having. Btw, this only happens when I load my custom schema. The error reads:
[code]vgui/DModelPanel.lua:69: bad argument #1 to 'ClientsideModel' (string expected, got nil)[/code]
It's part of the shitty derma... it's directory is: garrysmod/addons/derma/lua/vgui/DModelPanel.lua
I still would like to know if anyone can fix it.
If anyone has a clue what's wrong, please let me know.
Nobody seems to know what the problem is... Many people have complained about it, but nobody has offered a solution.
I know this may not be much help, but when I get this on a server, I just reconnect.
Help, i am getting this error
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: CakeScriptG2\gamemode\cl_binds.lua:48: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:40: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value)
------------------------------------------------------------
Heres the Schema
SCHEMA.Name = "Half-Life 2 RP";
SCHEMA.Author = "LuaBanana";
SCHEMA.Description = "Live in the HL2 world.";
SCHEMA.Base = "global";
function SCHEMA.SetUp( )
local team = CAKE.HL2Team();
-- name, color, model_path, default_model, partial_model, weapons, flag_key, door_groups, radio_groups, sound_groups, item_groups, salary, public, business, broadcast
-- Item Groups
-- Groceries: 1
-- Black Market: 2
-- Medical: 3
-- Rebel Market: 4
-- Combine Market: 5
-- Monk Market: 6
-- Humans: 1
-- Combine: 2
-- Vortigaunt: 3
-- Door Groups
-- Combine: 1
-- Radio Groups
-- Combine: 1
-- Rebel: 2
-- Citizens
CAKE.AddTeam( CAKE.HL2Team( ) ); -- Citizen
-- Rebellion
CAKE.AddTeam( CAKE.HL2Team( "Soldier", Color(255, 166, 0, 255), "models/graw.mdl", true, true, nil, {"weapon_sidearm"}, "S", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Refugee
CAKE.AddTeam( CAKE.HL2Team( "Medic", Color(255, 166, 0, 255), "models/graw.mdl", true, true, nil, {"weapon_sidearm"}, "M", nil, { 2 }, nil, { 4 }, nil, false, true, nil) ); -- Railroad Rebel
CAKE.AddTeam( CAKE.HL2Team( "NCO", Color(255, 166, 0, 255), "models/graw.mdl", true, true, nil, {"weapon_sidearm"}, "NCO", nil, { 2 }, nil, { 4 }, nil, false, true, nil) ); -- Rebel
CAKE.AddTeam( CAKE.HL2Team( "Officer", Color(255, 166, 0, 255), "models/odessa.mdl", true, false, nil, {"weapon_sidearm"}, "Officer", nil, { 2 }, nil, { 4 }, nil, false, true, nil) ); -- Rebel Station Leader (Odessa)
CAKE.AddTeam( CAKE.HL2Team( "Colonel", Color(255, 166, 0, 255), "models/graw.mdl", true, true, nil, {"weapon_sidearm"}, "Colonel", nil, { 2 }, nil, { 4 }, nil, false, true, nil) ); -- Rebel Medic
CAKE.AddTeam( CAKE.HL2Team( "Quarters Master", Color(255, 166, 0, 255), "models/graw.mdl", true, false, nil, {"weapon_sidearm"}, "Qm", nil, { 2 }, {3}, { 4 }, nil, false, true, nil) ); -- Rebel Vortigaunt
-- Selectable models on character creation
-- Bogus models were needed because the shitty derma doesn't wanna scroll unless it has a certain amount of models.
CAKE.AddModels({
"models/humans/group01/male_01.mdl",
"models/humans/group01/male_02.mdl",
"models/humans/group01/male_03.mdl",
"models/humans/group01/male_04.mdl",
"models/humans/group01/male_06.mdl",
"models/humans/group01/male_07.mdl",
"models/humans/group01/male_08.mdl",
"models/humans/group01/male_09.mdl",
"models/humans/group01/female_01.mdl",
"models/humans/group01/female_02.mdl",
"models/humans/group01/female_03.mdl",
"models/humans/group01/female_04.mdl",
"models/humans/group01/female_06.mdl",
"models/humans/group01/female_07.mdl"
});
end
First. Use [code][code][/code][/code] for the errors.
Second. Use [code][lua][/lua][/code] for the code.
Third... Read the error and actually post the related lines. The code you posted relates nothing to the errors.
Something blew up relating to CS, I had the same error. I think I fixed it by installing a clean version and looking over my schema again. Oh, and don't forget to base your schema on global! If you don't, the whole thing is sure to fuck over :/, as for ClientSide Models, you just have to rejoin if you're on a server, it's due to the code running too many times and just not executing on players.
Right after fixing the tpose problem i got a need to find the best animation so i dont have a tpose reloading from crouch.
Sorry, you need to Log In to post a reply to this thread.