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

[L4D & L4D2] Round Start Items Giver


Post New Thread Reply   
 
Thread Tools Display Modes
kwski43
Senior Member
Join Date: Mar 2009
Old 04-06-2010 , 09:11   Re: [L4D2] Round Start Items Giver (2.4)
Reply With Quote #21

Quote:
Originally Posted by Acecombat2 View Post
Rolf!

L 04/06/2010 - 17:14:28: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/06/2010 - 17:14:28: [SM] Native "PrintToChat" reported: Language phrase "upgrade_incendiary" not found
L 04/06/2010 - 17:14:28: [SM] Displaying call stack trace for plugin "l4d2_itemgiver.smx":
L 04/06/2010 - 17:14:28: [SM] [0] Line 1841, l4d2_itemgiver.sp::GiveUpgradeItemToAllL4D2()
L 04/06/2010 - 17:14:28: [SM] [1] Line 747, l4d2_itemgiver.sp::GiveUpgradeDelayL4D2()
You received: EXPLOSIVE ammo!
[Information] You can refuelling of a chainsaw with a gascan.
[Information] You can drop a chainsaw by pressing reload button.
You received: Chainsaw!
You received: Chainsaw!
You received: Molotov!
You received: VomitJar!
L 04/06/2010 - 17:145: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/06/2010 - 17:145: [SM] Native "PrintToChat" reported: Language phrase "irst_aid_kit" not found
L 04/06/2010 - 17:145: [SM] Displaying call stack trace for plugin "l4d2_itemgiver.smx":
L 04/06/2010 - 17:145: [SM] [0] Line 1667, l4d2_itemgiver.sp::GiveHealthItemToAllL4D2()
L 04/06/2010 - 17:145: [SM] [1] Line 737, l4d2_itemgiver.sp::GiveHealthDelayL4D2()
L 04/06/2010 - 17:146: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/06/2010 - 17:146: [SM] Native "PrintToChat" reported: Language phrase "irst_aid_kit" not found
L 04/06/2010 - 17:146: [SM] Displaying call stack trace for plugin "l4d2_itemgiver.smx":
L 04/06/2010 - 17:146: [SM] [0] Line 1667, l4d2_itemgiver.sp::GiveHealthItemToAllL4D2()
L 04/06/2010 - 17:146: [SM] [1] Line 737, l4d2_itemgiver.sp::GiveHealthDelayL4D2()
You received: Adrenaline!
My failures. Fixed in 2.5.
I wonder only why there is:
Code:
You received: Chainsaw!
You received: Chainsaw!
Maybe because of Chainsaw Refueling, I'll have to check this.
And:
Code:
You received: EXPLOSIVE ammo!
Just after
Code:
L 04/06/2010 - 17:14:28: [SM] Plugin encountered error 4: Invalid  parameter or parameter type
 L 04/06/2010 - 17:14:28: [SM] Native "PrintToChat" reported: Language  phrase "upgrade_incendiary" not found
 L 04/06/2010 - 17:14:28: [SM] Displaying call stack trace for plugin  "l4d2_itemgiver.smx":
 L 04/06/2010 - 17:14:28: [SM]   [0]  Line 1841,  l4d2_itemgiver.sp::GiveUpgradeItemToAllL4D2()
 L 04/06/2010 - 17:14:28: [SM]   [1]  Line 747,  l4d2_itemgiver.sp::GiveUpgradeDelayL4D2()
__________________

Last edited by kwski43; 04-06-2010 at 09:13.
kwski43 is offline
Acecombat2
Senior Member
Join Date: Nov 2009
Old 04-06-2010 , 15:58   Re: [L4D2] Round Start Items Giver (2.5)
Reply With Quote #22

is because whenever start a server in the very beginning all plugins loads 2 times then next map it loads normally. i thought thats the announce to you what item you get. but.... weird.
__________________
I'm Noob So Please Don't Criticise me (Fail In Engglish)
Acecombat2 is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 04-07-2010 , 09:28   Re: [L4D2] Round Start Items Giver (2.5)
Reply With Quote #23

Quote:
Originally Posted by Acecombat2 View Post
is because whenever start a server in the very beginning all plugins loads 2 times then next map it loads normally. i thought thats the announce to you what item you get. but.... weird.
Yes, my plugin informs what item player got. But why plugins loads 2 times, wth...
__________________
kwski43 is offline
marvel
BANNED
Join Date: Dec 2009
Old 04-07-2010 , 13:11   Re: [L4D2] Round Start Items Giver (2.5)
Reply With Quote #24

I did some testing with 2.5 and none of the survivors got anything when the round started.

Edit:

same on my 10vs10 server, only one guy was given boomer bile and pillz.

Last edited by marvel; 04-07-2010 at 13:16.
marvel is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 04-07-2010 , 13:44   Re: [L4D2] Round Start Items Giver (2.5)
Reply With Quote #25

Quote:
Originally Posted by marvel View Post
I did some testing with 2.5 and none of the survivors got anything when the round started.

Edit:

same on my 10vs10 server, only one guy was given boomer bile and pillz.
This could be because I've removed maxplayers define, I've replaced it with GetMaxClients()+1 (+1 just in case, can produce console errors about "client x is not active", ignore it and report to me).
Try version 2.6. Also try to set delays to their default values(see example config) or try deleting config and reset cvars and check. Always you can use older 1.4 version, without weapons support.
If the problem will still persist you have to give me time to Friday, I'm away from my computer for now.
Also I'm planning to rewrite whole plugin to use a functions with arguments, this will optimize plugin and simplify the code.
__________________

Last edited by kwski43; 04-07-2010 at 13:52.
kwski43 is offline
marvel
BANNED
Join Date: Dec 2009
Old 04-07-2010 , 14:28   Re: [L4D2] Round Start Items Giver (2.5)
Reply With Quote #26

Quote:
Originally Posted by kwski43 View Post
This could be because I've removed maxplayers define, I've replaced it with GetMaxClients()+1 (+1 just in case, can produce console errors about "client x is not active", ignore it and report to me).
Try version 2.6. Also try to set delays to their default values(see example config) or try deleting config and reset cvars and check. Always you can use older 1.4 version, without weapons support.
If the problem will still persist you have to give me time to Friday, I'm away from my computer for now.
Also I'm planning to rewrite whole plugin to use a functions with arguments, this will optimize plugin and simplify the code.
Thanks a bunch. I'll test this or fallback to 1.4 but I like the weapon support

Btw I let the cfg generate by the plugin so I'm already using default delay values.

I'll let you know if it works now.
marvel is offline
marvel
BANNED
Join Date: Dec 2009
Old 04-07-2010 , 14:34   Re: [L4D2] Round Start Items Giver (2.6)
Reply With Quote #27

Nope, still one survivor.
marvel is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 04-07-2010 , 14:38   Re: [L4D2] Round Start Items Giver (2.6)
Reply With Quote #28

Quote:
Originally Posted by marvel View Post
Nope, still one survivor.
Can you disable all other plugins except item giver and restart the map, tell me the result.
Or post plugin list here.

Also try this attached version.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_itemgiver.sp - 575 views - 63.6 KB)
File Type: smx l4d2_itemgiver.smx (16.9 KB, 242 views)
__________________

Last edited by kwski43; 04-07-2010 at 14:41.
kwski43 is offline
Mortiegama
Senior Member
Join Date: Feb 2010
Old 04-07-2010 , 17:47   Re: [L4D2] Round Start Items Giver (2.6)
Reply With Quote #29

Just tried it on a fresh server I built and none of the survivors got their Round Start upgrade. Second team only one survivor got anything. This was on a Versus server.

Quote:
L 04/07/2010 - 17:47:53: [SM] Native "IsClientInGame" reported: Client index 33 is invalid
L 04/07/2010 - 17:47:53: [SM] Displaying call stack trace for plugin "l4d2_itemgiver.smx":
L 04/07/2010 - 17:47:53: [SM] [0] Line 758, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GivePrimWeaponItemToAllL4D2()
L 04/07/2010 - 17:47:53: [SM] [1] Line 708, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GivePrimWeaponDelayL4D2()
L 04/07/2010 - 17:47:55: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/07/2010 - 17:47:55: [SM] Native "PrintToChat" reported: Language phrase "upgrade_laser" not found
L 04/07/2010 - 17:47:55: [SM] Displaying call stack trace for plugin "l4d2_itemgiver.smx":
L 04/07/2010 - 17:47:55: [SM] [0] Line 1845, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveUpgradeItemToAllL4D2()
L 04/07/2010 - 17:47:55: [SM] [1] Line 733, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveUpgradeDelayL4D2()
L 04/07/2010 - 17:47:57: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/07/2010 - 17:47:57: [SM] Native "PrintToChat" reported: Language phrase "pistol" not found
L 04/07/2010 - 17:47:57: [SM] Displaying call stack trace for plugin "l4d2_itemgiver.smx":
L 04/07/2010 - 17:47:57: [SM] [0] Line 1342, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveSecoWeaponItemToAllL4D2()
L 04/07/2010 - 17:47:57: [SM] [1] Line 713, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveSecoWeaponDelayL4D2()
L 04/07/2010 - 17:48:00: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/07/2010 - 17:48:00: [SM] Native "PrintToChat" reported: Language phrase "pipe" not found
L 04/07/2010 - 17:48:00: [SM] Displaying call stack trace for plugin "l4d2_itemgiver.smx":
L 04/07/2010 - 17:48:00: [SM] [0] Line 1536, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveGranadeItemToAllL4D2()
L 04/07/2010 - 17:48:00: [SM] [1] Line 718, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveGranadeDelayL4D2()
L 04/07/2010 - 17:48:03: [SM] Native "IsClientInGame" reported: Client index 33 is invalid
L 04/07/2010 - 17:48:03: [SM] Displaying call stack trace for plugin "l4d2_itemgiver.smx":
L 04/07/2010 - 17:48:03: [SM] [0] Line 1584, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveHealthItemToAllL4D2()
L 04/07/2010 - 17:48:03: [SM] [1] Line 723, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveHealthDelayL4D2()
L 04/07/2010 - 17:48:06: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/07/2010 - 17:48:06: [SM] Native "PrintToChat" reported: Language phrase "pills" not found
L 04/07/2010 - 17:48:06: [SM] Displaying call stack trace for plugin "l4d2_itemgiver.smx":
L 04/07/2010 - 17:48:06: [SM] [0] Line 1756, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveSupplyItemToAllL4D2()
L 04/07/2010 - 17:48:06: [SM] [1] Line 728, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveSupplyDelayL4D2()
L 04/07/2010 - 17:48:09: [SM] Native "IsClientInGame" reported: Client index 33 is invalid
L 04/07/2010 - 17:48:09: [SM] Displaying call stack trace for plugin "l4d2_itemgiver.smx":
L 04/07/2010 - 17:48:09: [SM] [0] Line 1892, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveMeleeItemToAllL4D2()
L 04/07/2010 - 17:48:09: [SM] [1] Line 738, /home/groups/alliedmodders/forums/files/5/0/1/6/1/63217.attach::GiveMeleeDelayL4D2()

Last edited by Mortiegama; 04-07-2010 at 17:50.
Mortiegama is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 04-08-2010 , 00:26   Re: [L4D2] Round Start Items Giver (2.6)
Reply With Quote #30

Quote:
Originally Posted by Mortiegama View Post
Just tried it on a fresh server I built and none of the survivors got their Round Start upgrade. Second team only one survivor got anything. This was on a Versus server.
BTW, You dont have the translations file.
Until I can fix it, I have to test it, until I can test I must get my PC back.

try ingame command: sm_giveitems and tell me if it gives all items set in your config
__________________
kwski43 is offline
Reply



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 02:45.


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