I'm working on the bugs. Sit tight. If this version is too bugged revert to the last, the only thing that really changed was salaries fixed and GUI.
[QUOTE=Samalexander]I don't want to sound like a complete idiot here, but, what? What's a GCF?[/QUOTE]
The GCF is where ALL the original models and materials (Media too!) for the game and can only be opened with a orogram called GCFScape. Modders use this for editing orignal models.
I added a dog flag that works. It's awesome.
While on topic about CakeScript do you know were I can find Door Data for the map map rp_tb_city45_v02n any help would be appreciated.
It should be inside garrysmod/garrysmod/data/cakescript/MapData/rp_tb_city45_v02n.txt
Good Luck!
That's if he made it. :3:
Something has become messed up, all of the sudden my server has stopped working, i've tried reinstalling gmod, i didn't even install any mods, error messages are as follows:
CakeScriptG2\gamemode\charactercreate.lua:147: attempt to index field '?' (a nil value)
ERROR: GAMEMODE:'ScoreboardShow' Failed: CakeScriptG2\gamemode\cl_binds.lua:38: attempt to index global 'HiddenButton' (a nil value)
ERROR: GAMEMODE:'PlayerInitialSpawn' Failed: CakeScriptG2\gamemode\player_data.lua:110: bad argument #1 to 'pairs' (table expected, got nil)
Any way to fix it?
Regards, Pete
[b]Edit:[/b]
Also getting an error on line 39 in concmd.lua
[b]Edit:[/b]
New gmod update perhaps?
[b]Edit:[/b]
It doesn't work on my ded server nor my listen server
[b]Edit:[/b]
Problem solved by reinstalling gmod
Everytime i try to spawn nothing shows up, F1 gives me errors and I can't create a character. No schemes load at all either.
I found why it errors with the char select. Only seems to happen when you rotate or change the viewpoint of the Char.
Protip: If the character creation menu doesn't come up when you spawn, delete Cakescript, download Cakescript G2 1.0.3 then get 1.0.4 and copy that over 1.0.3
Reinstalling gmod worked for me, so that will probably fix it if you are not too lazy to do so :)
[b]Edit:[/b]
Having some problems, some models are not "valid" in the model selection.
Not sure where the problem lies, investigating.
[b]Edit:[/b]
You can select a model, but whatever you select you always end up as male_01 (i think that's the one)
[b]Edit:[/b]
Problem solved by installing the original version of cakescript and recoding the part i did on my server.
[QUOTE=gmod] 'ClientsideModel' (string expected, got table)vgui/DModelPanel.lua:66: bad argument #1 to 'ClientsideModel' (string expected, got table)[/QUOTE]
that's the error i'm getting and I can't join a game and chose a model.
I believe the problem lies in your models that you add to the schema. If you're having problems, copy/pm me the schema.
[b]Edit:[/b]
[QUOTE=Ankpuss]Reinstalling gmod worked for me, so that will probably fix it if you are not too lazy to do so :)
[b]Edit:[/b]
Having some problems, some models are not "valid" in the model selection.
Not sure where the problem lies, investigating.
[b]Edit:[/b]
You can select a model, but whatever you select you always end up as male_01 (i think that's the one)
[b]Edit:[/b]
Problem solved by installing the original version of cakescript and recoding the part i did on my server.[/QUOTE]
The entire model path that you add to the schema must be lowercase.
I'm going to try deleting my entire folder and reinstall to see if it worked.
Edit : nope :( dind't work.
Problem unsolved :(
The problem is not related to the paths.
It works at the start, everyone can create their characters, but after some time (when about 10-15 players have played on the server), people lose the ability to pick a model, all except for a female model (not sure which one it was).
I have no idea what's causing this.
Regards, Pete
[b]Edit:[/b]
Problem went away by itself, but keeps coming back from time to time, a server shutdown for about 20 mins then startup fixes it :S
How can I load my own schemes?
[b]Edit:[/b]
whenever i try to give myself a flag it tells me
invalid argument or something like that
Notice : ASSMod does not work with CakeScript G2.
I have a listen server up, it should be up a lot but it'll be occasionally down.
70.92.144.67:2701
If you have given yourself admin, just type:
!admin setflags "firstname" "flagkey"
such as:
!admin setflags Pete hitman (i added a hitman class and gave the flag to my character Pete Dixon)
Please try to not use the forums as a way to advertise for your server.
If setmoney or givemoney doesn't work, and you've entered the command right, spawn rations or edit your money in the data folder by going into Cakescript\PlayerData\[insert scheme here]
There will be some text files, if you've made a character. Open the one you want and edit the money section.
I think the filename is the steamid of the person that made the characters
Been there done that ;/
Oh yay, a new problem. I can't switch characters. Have no idea why. No errors. Just doesn't work.
K guys, I have a problem. I've made a roleplay scheme and template but looks like it breaks CakeScript. I think it's the scheme. It conflicts with concmd.lua and the sandbox base (I don't know why it does that). But does anyone know if there's anything wrong with the following:
Template
[lua]PLUGIN.Name = "RLRP Team Templates"; -- What is the pugin name
PLUGIN.Author = "Monkey"; -- Author of the plugin
PLUGIN.Description = "A collection of team making functions."; -- The description or purpose of the plugin
function PLUGIN.Init( )
end
function CombineDeath(ply)
util.PrecacheSound( "npc/metropolice/die2.wav" );
util.PrecacheSound( "npc/overwatch/radiovoice/lostbiosignalforunit.wav" );
ply:EmitSound( "npc/metropolice/die2.wav" );
local function EmitThatShit()
ply:EmitSound("npc/overwatch/radiovoice/lostbiosignalforunit.wav");
end
timer.Simple(3, EmitThatShit);
end
function 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, iscombine)
local team = CAKE.TeamObject();
team.name = CAKE.NilFix(name, "Citizen");
team.color = CAKE.NilFix(color, Color(0, 255, 0, 255));
team.model_path = CAKE.NilFix(model_path, "");
team.default_model = CAKE.NilFix(default_model, false);
team.partial_model = CAKE.NilFix(partial_model, false);
team.weapons = CAKE.NilFix(weapons, {});
team.flag_key = CAKE.NilFix(flag_key, "citizen");
team.door_groups = CAKE.NilFix(door_groups, { });
team.radio_groups = CAKE.NilFix(radio_groups, { });
team.sound_groups = CAKE.NilFix(sound_groups, { 1 });
team.item_groups = CAKE.NilFix(item_groups, { });
team.salary = CAKE.NilFix(salary, 25);
team.public = CAKE.NilFix(public, true);
team.business = CAKE.NilFix(business, false);
team.broadcast = CAKE.NilFix(broadcast, false);
team.iscombine = CAKE.NilFix(iscombine, false);
if(team.iscombine == true) then
CAKE.AddTeamHook("PlayerDeath", team.flag_key .. "_combinedeath", CombineDeath, team.flag_key);
end
return team;
end
[/lua]
Scheme
[lua]SCHEMA.Name = "Real Life Roleplay";
SCHEMA.Author = "Monkey";
SCHEMA.Description = "Roleplay in present time.";
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
CAKE.AddTeam( CAKE.HL2Team( "Grocery Store Owner", nil, nil, nil, nil, nil, "grocery", nil, nil, nil, { 1 }, nil, true, true, nil) ); -- Grocery Store Owner
CAKE.AddTeam( CAKE.HL2Team( "Medical Specialist", nil, nil, nil, nil, nil, "doctor", nil, nil, nil, { 3 }, nil, true, true, nil) ); -- Doctor
CAKE.AddTeam( CAKE.HL2Team( "Monk", Color( 255, 0, 0, 255 ), "models/monk.mdl", true, false, nil, "monk", nil, nil, nil, nil, nil, true, true, false, nil) );
-- Rebellion
CAKE.AddTeam( CAKE.HL2Team( "Normal Criminal", Color(255, 166, 0, 255), "models/humans/group02/", true, true, {"weapon_crowbar", "weapon_glock"}, "nc", nil, { 2 }, nil, { 4 }, 50, false, true, false) ); -- Refugee
CAKE.AddTeam( CAKE.HL2Team( "Advanced Mafia", Color(255, 166, 0, 255), "models/alyx.mdl", true, false, {"weapon_crowbar", "weapon_glock", "weapon_grenade", "weapon_custom_ak47"}, "am", nil, { 2 }, nil, { 4 }, 150, false, true, false) ); -- Railroad Rebel
CAKE.AddTeam( CAKE.HL2Team( "Terrorist", Color(255, 166, 0, 255), "models/humans/group03/", true, true, {"weapon_crowbar", "weapon_glock", "weapon_custom_ak47", "weapon_deagle"}, "t", nil, { 2 }, nil, { 4 }, 150, false, true, false) ); -- Rebel
CAKE.AddTeam( CAKE.HL2Team( "Terrorist Field Commander", Color(255, 166, 0, 255), "models/odessa.mdl", true, false, {"weapon_crowbar", "weapon_smg", "weapon_custom_ak47"}, "tfc", nil, { 2 }, nil, { 4 }, 300, false, true, false) ); -- Rebel Station Leader (Odessa)
CAKE.AddTeam( CAKE.HL2Team( "Terrorist Leader", Color(255, 166, 0, 255), "models/eli.mdl", true, false, {"weapon_pistol", "weapon_357"}, "tl", nil, { 2 }, nil, { 4 }, 500, false, true, false) ); -- Rebel Medic
-- Combine
CAKE.AddTeam( CAKE.HL2Team( "Police Officer", Color(0, 0, 200, 255), "models/barney.mdl", true, false, {"weapon_stunstick", "weapon_fiveseven"}, "po", {1}, {1}, {2}, {4}, 100, false, true, false) ); -- Stalker
CAKE.AddTeam( CAKE.HL2Team( "Detective", Color(0, 0, 200, 255), "models/kleiner.mdl", true, false, {"weapon_stunstick", "weapon_fiveseven", "weapon_smg"}, "d", {1}, {1}, {2}, {4}, 300, false, true, false) );
CAKE.AddTeam( CAKE.HL2Team( "Federal Bureau of Investigation", Color(0, 0, 200, 255), "models/police.mdl", true, false, {"weapon_stunstick", "weapon_fiveseven", "weapon_custom_m16", "weapon_smg", "weapon_grenade"}, "fbi", {1}, {1}, {2}, {4}, 500, false, true, true) ); -- Civil Protection Trainee
CAKE.AddTeam( CAKE.HL2Team( "City Mayor", Color(0, 0, 200, 255), "models/breen.mdl", true, false, {"weapon_stunstick", "weapon_357"}, "cp", {1}, {1}, {2}, {4}, 1000, false, true, true) ); -- Civil Protection
-- 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
[/lua]
And yes, I'm not very good with Lua.
My list of problems.
If you pick up 2 of the same gun, you get no ammo
Can't switch characters
givemoney doesn't work
Weapon Dropping doesn't work
[code]
CakeScriptG2\gamemode\concmd.lua:304: attempt to index global 'ItemData' (a nil value)
[/code]
A patch would be handy. *glares at Nori*
Sorry don't want to sound like a noob (holy crap that's the first time I've said that :O) but how do you keep Global schema loaded?
[lua]SCHEMA.Base = "global";[/lua]
Add that at the top somewhere.
How the fuck do you do anything in this? Me and three other people have been trying to find one working command on this, and even console can't set flags, kick people or anything.
if you added yourself to the gamemode as admin (admin.lua) then you should be able to use rp_admin commands.
rp_admin help for help :)
Hold tab and right-click items, people and doors/weapons for context menus :)
Good Luck!
Regards, Pete
[QUOTE=frenchy272]How the fuck do you do anything in this? Me and three other people have been trying to find one working command on this, and even console can't set flags, kick people or anything.[/QUOTE]
Not our fault you and your friends are idiots. Read the thread and you'd see it's quite simple. So quit your complaining and read up...Or just go back to your DarkRP DM match.
Sorry, you need to Log In to post a reply to this thread.