Bad news: the gamemode now crashes ever since I added my steam
Can someone tell me the .lua file called with the defualt weapons a player spawns?
Thanks
Do you still remove all the schemas or change something in a lua file?
Noob Question, sorry.
Thanks in Advance!
Go Cscript!
[QUOTE=Bullet26]Can someone tell me the .lua file called with the defualt weapons a player spawns?
Thanks[/QUOTE]
init.lua
[lua]
function GM:PlayerLoadout
[/lua]
[QUOTE=Looter]init.lua
[lua]
function GM:PlayerLoadout
[/lua][/QUOTE]
Thanks. And also, what is the most working version so far? 0.3 or 0.4 ?
I seem to have an issue.
Flags don't have their set models.
[lua]
CAKE.AddTeam( CAKE.DesertiaTeam( "Bandit", Color(200, 150, 150, 255), nil, nil, true, {"des_gerber"}, "bandit", nil, nil, nil, nil, 0, true, false, false) ); -- Bandit
CAKE.AddTeam( CAKE.DesertiaTeam( "Veteran", Color(37, 201, 255, 255), nil, nil, nil, {"des_kabar", "des_beretta"}, "vet", nil, nil, nil, nil, 10, false, false, false) ); -- Veteran
CAKE.AddTeam( CAKE.DesertiaTeam( "The Barkeep", Color(180, 80, 20, 255), "models/monk.mdl", "models/monk.mdl", false, {"des_remington"}, "barkeeper", nil, nil, nil, { 1, 5 }, 15, false, true, true) ); -- Barkeeper!
CAKE.AddTeam( CAKE.DesertiaTeam( "Black Market", Color(150, 80, 100, 255), nil, nil, nil, {"des_nighthawk"}, "ds", nil, nil, nil, { 2 }, 5, false, true, false) ); -- Black Market
CAKE.AddTeam( CAKE.DesertiaTeam( "Mechanic", Color(180, 80, 20, 255), nil, nil, nil, {"des_wrench"}, "mechanic", nil, nil, nil, { 6 }, 15, false, true, true) ); -- Mechanic
CAKE.AddTeam( CAKE.DesertiaTeam( "Miner", Color(0, 255, 0, 255), nil, nil, nil, {"des_crowbar"}, "miner", nil, nil, nil, nil, 5, false, false, false) ); -- miner
CAKE.AddTeam( CAKE.DesertiaTeam( "Artificial Intelligence", Color(255, 205, 205, 255), nil, nil, nil, {"weapon_cloakdevice"}, "ai", nil, nil, nil, nil, 120, false, false, true) ); -- ai[/lua]
Everything but the models work fine. Even though the barkeeper flag is the only model WITH a flag. Still doesn't work.
[QUOTE=m0dUlator]I seem to have an issue.
Flags don't have their set models.
[lua]
CAKE.AddTeam( CAKE.DesertiaTeam( "Bandit", Color(200, 150, 150, 255), nil, nil, true, {"des_gerber"}, "bandit", nil, nil, nil, nil, 0, true, false, false) ); -- Bandit
CAKE.AddTeam( CAKE.DesertiaTeam( "Veteran", Color(37, 201, 255, 255), nil, nil, nil, {"des_kabar", "des_beretta"}, "vet", nil, nil, nil, nil, 10, false, false, false) ); -- Veteran
CAKE.AddTeam( CAKE.DesertiaTeam( "The Barkeep", Color(180, 80, 20, 255), "models/monk.mdl", "models/monk.mdl", false, {"des_remington"}, "barkeeper", nil, nil, nil, { 1, 5 }, 15, false, true, true) ); -- Barkeeper!
CAKE.AddTeam( CAKE.DesertiaTeam( "Black Market", Color(150, 80, 100, 255), nil, nil, nil, {"des_nighthawk"}, "ds", nil, nil, nil, { 2 }, 5, false, true, false) ); -- Black Market
CAKE.AddTeam( CAKE.DesertiaTeam( "Mechanic", Color(180, 80, 20, 255), nil, nil, nil, {"des_wrench"}, "mechanic", nil, nil, nil, { 6 }, 15, false, true, true) ); -- Mechanic
CAKE.AddTeam( CAKE.DesertiaTeam( "Miner", Color(0, 255, 0, 255), nil, nil, nil, {"des_crowbar"}, "miner", nil, nil, nil, nil, 5, false, false, false) ); -- miner
CAKE.AddTeam( CAKE.DesertiaTeam( "Artificial Intelligence", Color(255, 205, 205, 255), nil, nil, nil, {"weapon_cloakdevice"}, "ai", nil, nil, nil, nil, 120, false, false, true) ); -- ai[/lua]
Everything but the models work fine. Even though the barkeeper flag is the only model WITH a flag. Still doesn't work.[/QUOTE]
You wrote the model path twice, you only need to do it once, set the value to false/true/nil afterwards and it should be fixed.
[b]Edit:[/b]
I have found the problem, it does not lie within the gamemode edit i made, it either lies within the gamemode itself or an addon confliction.
The invalid model problem seems to only ocurr when a model has been selected by someone else.
Let's say that someone joins the server before i do, and selects the model: male_04 (bald guy).
I join, he disconnects.
I can't select his model because it has already been selected by him, and the gamemode does not seem to let it go, even after he has disconnected.
The reason behind all of this is probably that you can't pick a model that has already been picked, but it seems to be quite bugged.
I think it is originally only supposed to work when the guy that has selected the model you want is online, but the problem is that it is still active even when he has disconnected.
Luabanana, is there a way to remove this feature? it would solve all of my problems.
Regards, Pete
[b]Edit:[/b]
[QUOTE=brandy689]I have the Source 2007 models extracted to the server, but when people try to choose a model, they get this error and no pop-up window:
[code]
vgui/DModelPanel.lua:66: bad argument #1 to 'ClientsideModel' (string expected, got nil)
[/code]
How do I fix this?[/QUOTE]
You don't really need to join another server, i tried this myself.
I reconnected and then it magically began to work :)
[b]Edit:[/b]
[QUOTE=Bullet26]Thanks. And also, what is the most working version so far? 0.3 or 0.4 ?[/QUOTE]
1.0.4
Short answer :)
You can pick a model that's already been picked. For the "ClientsideModel" bug issue, its because when CakeScript first loads it takes about 5 seconds to setup everything for the client, just retry if you have that problem.
[QUOTE=Bios Element]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*[/QUOTE]
The weapon must have a corresponding item also, so if you're trying to drop a Scripted Weapon or a Counter-Strike-Source weapon, then you need to code that in yourself. Example, you can drop a Half-life 2 weapon because there is a corresponding item for it in
[lua]schemas/hl2rp/items/[/lua]
[QUOTE=Looter]You can pick a model that's already been picked. For the "ClientsideModel" bug issue, its because when CakeScript first loads it takes about 5 seconds to setup everything for the client, just retry if you have that problem.
The weapon must have a corresponding item also, so if you're trying to drop a Scripted Weapon or a Counter-Strike-Source weapon, then you need to code that in yourself. Example, you can drop a Half-life 2 weapon because there is a corresponding item for it in
[lua]schemas/hl2rp/items/[/lua][/QUOTE]
Firstly, I've already fixed it and have coded the patch into ArcoScript which I plan to release eventually. Secondly, You are wrong. The Real problem is something easier to fix. Take a look at the code for a few and you'll figure it out.
[QUOTE=Looter]You can pick a model that's already been picked. For the "ClientsideModel" bug issue, its because when CakeScript first loads it takes about 5 seconds to setup everything for the client, just retry if you have that problem.
[/QUOTE]
That's the problem, it still doesn't work.
I pressed the damn model like 50 times now, still says invalid.
[b]Edit:[/b]
[QUOTE=Bios Element]Firstly, I've already fixed it and have coded the patch into ArcoScript which I plan to release eventually. Secondly, Your wrong. The Real problem is something easier to fix. Take a look at the code for a few and you'll figure it out.[/QUOTE]
When you say that you will release it "eventually" do you mean in a few weeks months or in a few days?
I just want to know so that i can cancel my server rental until this problem has been solved.
Why are the asian citizen models removed? (male05/female04/05?)
Also, can you add a /pm command, and /title.
A couple weeks at the least.
And /pm is kinda not needed... and /title is rp_title in console or something along that line.
[QUOTE=Bios Element]A couple weeks at the least.
And /pm is kinda not needed... and /title is rp_title in console or something along that line.[/QUOTE]
/pm IS needed... the OOC delay could be set 1000 and some mingebag could be on the server minging without any admins knowing, and there would be no way to contact a admin.
If you get the time, could you please tell us how to fix the invalid models problem?
Since you fixed it in Arcoscript i'm guessing that fixing it in Cakescript itself shouldn't be much trouble for you, right?
Regards, Pete
[b]Edit:[/b]
Just as a temporary fix for all of us Cakescript users until most of us switch to Arcoscript that is :) (if it is as good as i'm guessing)
[QUOTE=Bios Element]Firstly, I've already fixed it and have coded the patch into ArcoScript which I plan to release eventually. Secondly, Your wrong. The Real problem is something easier to fix. Take a look at the code for a few and you'll figure it out.[/QUOTE]
Firstly, I'm sure everyone here is glad about your script, thanks for letting me know. Secondly, I'd love to know how I'm wrong, take a look at the code and the problem I addressed in my post.
Code
[lua]
function ccDropWeapon( ply, cmd, args )
local wep = ply:GetActiveWeapon( )
if( CAKE.ItemData[ wep:GetClass( ) ] == nil ) then CAKE.SendChat( ply, "This weapon cannot be dropped!" ); return; end
ply:StripWeapon( wep:GetClass( ) );
CAKE.CreateItem( wep:GetClass( ), ply:CalcDrop( ), Angle( 0,0,0 ) );
end
concommand.Add( "rp_dropweapon", ccDropWeapon );
[/lua]
There's the drop-weapon code I was talking about, now if you look closely it's trying to make an item out of the weapon. If there isn't an item for the weapon, it will return the error about ItemData being nil. Which is exactly what I was pointing out. So instead of advertising or getting all pissy, please try to know what you're talking about first. It really helps out.
[QUOTE=tankkiller]Why are the asian citizen models removed? (male05/female04/05?)
Also, can you add a /pm command, and /title.[/QUOTE]
There is a title command, but its in console. It's [code]rp_title <your title>[/code]
If you want a /title command, put this into concmd.lua
[lua]
function ChangeTitle( ply, title )
ply:ConCommand( "rp_title ".. title );
return "";
end
CAKE.ChatCommand( "/title", ChangeTitle );
[/lua]
Looter, Yet again your dead wrong. You need to go back and re-learn lua apparently.
[code]
if( CAKE.ItemData[ wep:GetClass( ) ] == nil ) then CAKE.SendChat( ply, "This weapon cannot be dropped!" ); return; end[/code]
Which Means it does NOT return nil if there is not an item. So please refrain from posting until you know what you are talking about.
Wow, watch out for the big ol' meanie!
The standard FP lua coder.
Still waiting for an answer :/
I will try learning lua on my own in the meantime, but that won't work probably since i'm a complete retard when it comes to coding stuff.
The Invalid Model problem took a rather large recode of the entire Creation section of the Derma and Honestly, I'm not going to release it until I feel the script is ready for public use. Because we all know what will happen. Everyone will use it, My servers will be empty and All I'll get is people bitching left and right about each and every bug. Currently ArcoScript is at version 1.0.6 Complete with City8 Models, Mostly working StunStick (Gotta add the sexy electric effects still), New Items, Partially working Furniture System, Prop Damage, Updated Door Tool, Custom Spawn Points (Until i get around to finding a way to code Clothes in) And tons of Bug Fixes.
If you don't want your servers do be emtpy just try to make them stand out from the crowd, don't let everyone being out of the loop just because you are scared that nobody will play on your servers.
Don't worry, i'm sure that most of your players will stay, since they have gotten used to playing on your server.
Other then that, best wishes, good luck, and i hope that you release this awesome script as soon as possible.
Regards, Pete
-SNIP-
[QUOTE=Bios Element]Looter, Yet again your dead wrong. You need to go back and re-learn lua apparently.
[code]
if( CAKE.ItemData[ wep:GetClass( ) ] == nil ) then CAKE.SendChat( ply, "This weapon cannot be dropped!" ); return; end[/code]
Which Means it does NOT return nil if there is not an item. So please refrain from posting until you know what you are talking about.[/QUOTE]
Well smart guy, please explain to everyone how your amazing "patchitupscript" gets around this problem. Either way my point was still valid, and works. This is exactly why I don't post on face-punch, somebody always tries to prove their e-dick when I'm just trying to help people. So instead of once again, advertising your script, please. Help the CakeScript users or release you're obviously better script.
[QUOTE=Looter]This is exactly why I don't post on face-punch, somebody always tries to prove their e-dick when I'm just trying to help people.[/QUOTE]
talk to teta_bonita
Keeps freezing.
I can create a character, but when any friend click on "Select Model"...
Take a look at the top of the screen
[img]http://img519.imageshack.us/img519/2824/errorbn6sj8.jpg[/img]
EDIT:
How I spawn a ent? I use this script placed in "\gamemodes\CakeScriptG2\gamemode\schemas\hl2rp\items":
[code]ITEM.Name = "Motor";
ITEM.Class = "sent_EasyEngine";
ITEM.Description = "Motor";
ITEM.Model = "models/vehicle/vehicle_engine_block.mdl";
ITEM.Purchaseable = true;
ITEM.Price = 1;
ITEM.ItemGroup = 2;
function ITEM:Drop(ply)
ply:Give("sent_EasyEngine");
end
function ITEM:Pickup(ply)
ply:Give("sent_EasyEngine");
self:Remove();
end
function ITEM:UseItem(ply)
ply:Give("sent_EasyEngine");
self:Remove();
end
[/code]
But spawns an unuseful motor
Hey could you put the CID back in for 1.0.5, or tell me how to add it i need the CID. Also can i modify cake, Its only for my server it won't be made public in any way.
the mod need door ram for open nexus door tb maps
Sorry, you need to Log In to post a reply to this thread.