This errormessage is showing up from time to time for me, what is the error? i can't see it!
Timer Error: CakeScriptG2\gamemode\player_data.lua:251: Tried to use a NULL entity!
This is the line: local SteamID = CAKE.FormatSteamID( ply:SteamID() );
[b]Edit:[/b]
Sometimes, when new people join, they can't pick a model, all it says is:
CakeScriptG2\gamemode\cl_charactercreate.lua:50: attempt to concatenate field 'ChosenModel' (a nil value)
When they press the OK button.
Looking for a way to solve it right now.
[b]Edit:[/b]
[QUOTE=DarkSpider]Perfect timing. Looking for a good RP script to run and the menus are sexy.
Got a nice
[code]
cakescriptg2\gamemode\cl_charactercreate.lua:50: attempt to concatenate field 'ChosenModel' (a nil value)
[/code]
When I pressed OK.
I'll fix it myself but letting you know[/QUOTE]
How did you fix it?
Regards, Pete
[b]Edit:[/b]
Fixed by removing "CAKE" from the line where the problem was, thank you for the help!
Old Fashion Beat Down in Jail
[URL=http://img505.imageshack.us/my.php?image=cakeyt6.png][IMG]http://img505.imageshack.us/img505/7896/cakeyt6.th.png[/IMG][/URL]
I just noticed something, it seems that you can't give a player an amount that is higher than a small part of what the player has, meaning that my bud had 125 bucks, i tried to give him 25, i lost 25, but he didn't receive it.
I gave him 15, that worked, after a while i could give him 25 and so on and so on.
Is there a value for this that you can change? I want to be able to give people money, like when i "invest in their business" (roleplaying a gangster role and talking to a gundealer)
Regards, Pete
NOTICE: Be sure to delete Line 58 of daynight.lua which contains the following
[code]table.insert(SuperAdmins, "STEAM_0:1:5947214");[/code]
My salvation ;D do you know how to fix the problem i'm having in the above post?
[QUOTE=Bios Element]NOTICE: Be sure to delete Line 58 of daynight.lua which contains the following
[code]table.insert(SuperAdmins, "STEAM_0:1:5947214");[/code][/QUOTE]
By the way this is nori's steam id so, replace it with mine!
STEAM_0:0:14747331
[QUOTE=maxicube]By the way this is nori's steam id so, replace it with mine!
STEAM_0:0:14747331[/QUOTE]
Why? :D
[b]Edit:[/b]
I found a new problem, the combine voices don't work.
The regular voices work (citizens etc) but only text appears when the combines try to talk.
Any fix for this?
Reagrds, Pete
[QUOTE=Ankpuss]Why? :D
[b]Edit:[/b]
I found a new problem, the combine voices don't work.
The regular voices work (citizens etc) but only text appears when the combines try to talk.
Any fix for this?
Reagrds, Pete[/QUOTE]
My Combine voices still work.
[QUOTE=Ankpuss]Why? :D
[b]Edit:[/b]
I found a new problem, the combine voices don't work.
The regular voices work (citizens etc) but only text appears when the combines try to talk.
Any fix for this?
Reagrds, Pete[/QUOTE]
Because i WANT TO BE A Super Administrator!
Wierd, i have done a clean install of cake and it still won't work (tried removing all the playerdata and all)
I'll tell you guys when i have fixed this problem.
[QUOTE=Bios Element]NOTICE: Be sure to delete Line 58 of daynight.lua which contains the following
[code]table.insert(SuperAdmins, "STEAM_0:1:5947214");[/code][/QUOTE]
:argh:
[b]Edit:[/b]
[QUOTE=Ankpuss]I just noticed something, it seems that you can't give a player an amount that is higher than a small part of what the player has, meaning that my bud had 125 bucks, i tried to give him 25, i lost 25, but he didn't receive it.[/QUOTE]
That sir is the strangest bug I've ever seen.
Yeah, tell me about it, i have no idea why i'm having this problem, are you having it too?
Bwuh. I was really looking forward to playing this.
Does anyone know why I keep getting the error:
"vgui/DModelPanel.lua:66: bad argument #1 to 'ClientsideModel' (string expected, got table)" Whenever I click "select model".
Looks like a problem with something conflicting, there is no DModelPanel.lua in cakescript!
Try searching for it in your addons folder and see what you come up with!
Regards, Pete
Why does it not work for others but works perfectly for me. :argh:
[b]Edit:[/b]
[QUOTE=Ankpuss]Looks like a problem with something conflicting, there is no DModelPanel.lua in cakescript!
Try searching for it in your addons folder and see what you come up with!
Regards, Pete[/QUOTE]
Actually it's a new Derma panel. That's what makes those cool character/model selection menus possible.
So, how would I go about fixing it, if it's a part of the gamemode?
Also; Nothing came up after searching Dmodelpanel.lua in addons. So that's not it.
[QUOTE=Samalexander]So, how would I go about fixing it, if it's a part of the gamemode?
Also; Nothing came up after searching Dmodelpanel.lua in addons. So that's not it.[/QUOTE]
It's in the GCF.
Perhaps because the file is inside a garrysmod gcf which has been updated?
That's my guess...
Anyways, do you think that you can fix the problem with giving money Nori? Are you having this problem too?
Regards, Pete
[b]Edit:[/b]
Hehe, same answer except you answered it whilst i was typing it :D
Problems I have:
-I can't pick stuff up. (You mapped it to E, right?)
-No ToolGun (Add to ToolTrust? Where?)
-No Phys or Gravity gun (???)
These are likey my fault for being a noob to scripting and Cakescript. (Dark "RP" (Public), and Taco And Banana.)
Can I have some help? Has the Wiki Been released?
Thanks in Advance!
(Sorry if these have been answered, I'm testing it in Single Player)
1. Wrong.
2. Learn to read.
3. Learn to read.
Start reading the thread before bitching and moaning about it.
[QUOTE=Chihuahua]Problems I have:
-I can't pick stuff up. (You mapped it to E, right?)
-No ToolGun (Add to ToolTrust? Where?)
-No Phys or Gravity gun (???)
These are likey my fault for being a noob to scripting and Cakescript. (Dark "RP" (Public), and Taco And Banana.)
Can I have some help? Has the Wiki Been released?
Thanks in Advance!
(Sorry if these have been answered, I'm testing it in Single Player)[/QUOTE]
If you have set yourself as admin in the gamemode, type !admin tooltrust "yourcharactersfirstname" 1
do the same for proptrust, phystrust, and gravtrust and so on.
And no you do not press e, hold tab and right-click on an item/door/person to bring up a context menu!
Good Luck!
[QUOTE=Ankpuss]If you have set yourself as admin in the gamemode, type !admin tooltrust "yourcharactersfirstname" 1
do the same for proptrust, phystrust, and gravtrust and so on.
And no you do not press e, hold tab and right-click on an item/door/person to bring up a context menu!
Good Luck![/QUOTE]
Thank you, that was nice. I read through the pages too.
[QUOTE=Nori]:argh:
[b]Edit:[/b]
That sir is the strangest bug I've ever seen.[/QUOTE]
i gave 153k to a friend he had to reconnect to get the amount but still didn't get 153K. He got like 150K
-snip-
UPDATES are needed!
Second that.
SVN for this gamemode would be nice
ok i have been reading however I couldn't find a place were to add me as super administrator i know its T:\CakeScriptG2\gamemode and called admin (LUA) however this is what I have in it. My steam ID is STEAM_0:1:17060610 how would I do that or add myself as a super administrator my on server?
[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 = { };
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]
[QUOTE=sgtmedic]ok i have been reading however I couldn't find a place were to add me as super administrator i know its T:\CakeScriptG2\gamemode and called admin (LUA) however this is what I have in it. My steam ID is STEAM_0:1:17060610 how would I do that or add myself as a super administrator my on server?
[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 = { };
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][/QUOTE]
Perhaps if you had read through the whole thread you would have realised that this has already been answered, by me.
[QUOTE=Ankpuss]Hey there Carson!
If you want to become admin in the gamemode, just add yourself to the admin.lua file.
Open up admin.lua, and where it says:
SuperAdmins = { };
Add your steamid, and it should look like this:
SuperAdmins = {"Yoursteamid"};
Good luck, and keep the quotes!
Regards, Pete Aka Myrrdin [/QUOTE]
So that means that the line should read:
SuperAdmins = {"STEAM_0:1:17060610"};
Good luck!
[QUOTE=Nori]It's in the GCF.[/QUOTE]
I don't want to sound like a complete idiot here, but, what? What's a GCF?
Sorry, you need to Log In to post a reply to this thread.