Raised This Month: $12 Target: $400
 3% 

[L4D & L4D2] Gear Transfer (2.33) [28-Jan-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Newbie_Sexy
Member
Join Date: Aug 2016
Location: Vietnam
Old 07-15-2017 , 10:51   Re: [L4D & L4D2] Gear Transfer (1.5.11) [25-Jun-2017]
Reply With Quote #221

Can anyone help me :'(
L 07/15/2017 - 10:27:52: [SM] Native "GetEdictClassname" reported: Invalid edict (60 - 60)
L 07/15/2017 - 10:27:52: [SM] Displaying call stack trace for plugin "l4d_gear_transfer.smx":
L 07/15/2017 - 10:27:52: [SM] [0] Line 656, l4d_gear_transfer.sp::Event_SpawnerGiveItem()
Newbie_Sexy is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 07-15-2017 , 17:15   Re: [L4D & L4D2] Gear Transfer (1.5.11) [25-Jun-2017]
Reply With Quote #222

-60 is an invalid entity index

Look up this line:

new ent = GetEventInt(event, "spawner");

And add a new line just under it:

Code:
if (ent <= MaxClients || ent > 2048) return;

Last edited by Visual77; 07-15-2017 at 17:16.
Visual77 is offline
Newbie_Sexy
Member
Join Date: Aug 2016
Location: Vietnam
Old 07-16-2017 , 09:12   Re: [L4D & L4D2] Gear Transfer (1.5.11) [25-Jun-2017]
Reply With Quote #223

Quote:
Originally Posted by Visual77 View Post
-60 is an invalid entity index

Look up this line:

new ent = GetEventInt(event, "spawner");

And add a new line just under it:

Code:
if (ent <= MaxClients || ent > 2048) return;
I have added it, I will test it soon. Thx You much
Newbie_Sexy is offline
Newbie_Sexy
Member
Join Date: Aug 2016
Location: Vietnam
Old 07-17-2017 , 11:16   Re: [L4D & L4D2] Gear Transfer (1.5.11) [25-Jun-2017]
Reply With Quote #224

Quote:
Originally Posted by Visual77 View Post
-60 is an invalid entity index

Look up this line:

new ent = GetEventInt(event, "spawner");

And add a new line just under it:

Code:
if (ent <= MaxClients || ent > 2048) return;
Still have that :'(
__________________
I am a noob so... hope you guys will help me up
P/s .-. : My English is bad, i am good at Vietnamese
Newbie_Sexy is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 07-17-2017 , 11:42   Re: [L4D & L4D2] Gear Transfer (1.5.11) [25-Jun-2017]
Reply With Quote #225

Quote:
Originally Posted by Newbie_Sexy View Post
Still have that :'(
Use sourcemod 1.8
https://www.sourcemod.net/downloads.php?branch=stable
Visual77 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-17-2017 , 13:29   Re: [L4D & L4D2] Gear Transfer (1.5.12) [17-Jul-2017]
Reply With Quote #226

Thanks, should be fixed.
__________________
Silvers is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 07-17-2017 , 18:53   Re: [L4D & L4D2] Gear Transfer (1.5.12) [17-Jul-2017]
Reply With Quote #227

Quote:
Originally Posted by Silvers View Post
Thanks, should be fixed.
No problem. Although he claimed to be running an inofficial sourcemod 2.0 in a comment I can no longer find, and now when I look closer at the error it doesn't say -60, it says +60 which should be within the valid range of edicts and entities.

So the error was probably generated from a shitty sourcemod version. However, having the index check can't hurt.

Last edited by Visual77; 07-17-2017 at 18:56.
Visual77 is offline
Trerex
Junior Member
Join Date: Sep 2017
Old 09-11-2017 , 07:31   Re: [L4D & L4D2] Gear Transfer (1.5.12) [17-Jul-2017]
Reply With Quote #228

There is a glitch, using this on a listed server will make chat notify disappear if you create a server for a second time
Trerex is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-31-2018 , 22:26   Re: [L4D & L4D2] Gear Transfer (1.5.12) [17-Jul-2017]
Reply With Quote #229

Many thanks for this very useful plugin !!!

Quote:
Code:
	if( strcmp(s_Model, "models/survivors/survivor_coach.mdl") == 0 ) { Format(s_Model,9,"coach"); i_Type = 1; }
	else if( strcmp(s_Model, "models/survivors/survivor_gambler.mdl") == 0 ) { Format(s_Model,9,"gambler"); i_Type = 2; }
	else if( strcmp(s_Model, "models/survivors/survivor_mechanic.mdl") == 0 ) { Format(s_Model,9,"mechanic"); i_Type = 3; }
	else if( strcmp(s_Model, "models/survivors/survivor_producer.mdl") == 0 ) { Format(s_Model,9,"producer"); i_Type = 4; }
	else if( strcmp(s_Model, "models/survivors/survivor_namvet.mdl") == 0 ) { Format(s_Model,9,"NamVet"); i_Type = 5; }
	else if( strcmp(s_Model, "models/survivors/survivor_biker.mdl") == 0 ) { Format(s_Model,9,"Biker"); i_Type = 6; }
	else if( strcmp(s_Model, "models/survivors/survivor_manager.mdl") == 0 ) { Format(s_Model,9,"Manager"); i_Type = 7; }
	else if( strcmp(s_Model, "models/survivors/survivor_teenangst.mdl") == 0 ) { Format(s_Model,9,"TeenGirl"); i_Type = 8; }
	else { LogError("failed to vocalize %s for %s", s_Class, s_Model); return; }
Okay, I think it's a bit incorrect, because if I change my skin to custom, plugin is starting to spam in sm-errors log, like:

Quote:
L 04/01/2018 - 03:26:25: [l4d_gear_transfer.smx] failed to vocalize weapon_molotov for models/survivors/my_lovely_model.mdl
Can you please place some voice as a default instead of error placeholder?
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-01-2018 , 08:58   Re: [L4D & L4D2] Gear Transfer (1.5.12) [17-Jul-2017]
Reply With Quote #230

1) After a little conversation, I found Silvers' reasons are strong about the fact that voice is more reliable to determine by model path criteria, not a character ("m_survivorCharacter" property), that is a bugged by Valve for Bill and Zoey. So I decided to add own private criteria like if my model name end with _W.mdl letters it should be woman voice, _M.mdl - man...

2) I also would like to report:
Quote:
L 03/26/2018 - 16:58:29: [l4d_gear_transfer.smx] Tracer Bug: Player-Zombie Trace did not hit anything, WTF
Dragokas is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode