AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Ammo Pack Deployers (https://forums.alliedmods.net/showthread.php?t=304988)

cravenge 02-03-2018 09:02

[L4D2] Ammo Pack Deployers
 
2 Attachment(s)
Description:


ConVars:


Commands:


Bugs:


Notes:


Changelog:

Psyk0tik 02-03-2018 14:48

Re: [L4D2] Ammo Pack Deployers
 
Nice! :D

Dr. LightMare 02-05-2018 06:25

Re: [L4D2] Ammo Pack Deployers
 
HUGE Thanks!

ricksfishin 02-05-2018 15:02

Re: [L4D2] Ammo Pack Deployers
 
Compile error 181: function argument named 'vector' differs from prototype
Have working l4downtown Exension so linux installed.
Have L4D2 New Ammo Packs installed works fine.

cravenge 02-06-2018 02:36

Re: [L4D2] Ammo Pack Deployers
 
Quote:

Originally Posted by ricksfishin (Post 2576571)
[...]

I assure you that this compiles just fine. Your Left 4 Downtown 2 include file must be outdated/old.

theproperson 02-08-2018 04:24

Re: [L4D2] Ammo Pack Deployers
 
This is a very useful plugin, Thank you cravenge. I am wondering about these errors that are appearing in my logs, should I be worried or are these harmless?

L 02/08/2018 - 03:56:22: SourceMod error session started
L 02/08/2018 - 03:56:22: Info (map "C12m1_hilltop") (file "errors_20180208.log")
L 02/08/2018 - 03:56:22: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 02/08/2018 - 03:56:22: [SM] Blaming: ammo_pack_deployers-l4d2.smx
L 02/08/2018 - 03:56:22: [SM] Call stack trace:
L 02/08/2018 - 03:56:22: [SM] [0] ArrayList.Length.get
L 02/08/2018 - 03:56:22: [SM] [1] Line 279, ammo_pack_deployers-l4d2.sp::OnEntityDestroyed
L 02/08/2018 - 03:56:22: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 02/08/2018 - 03:56:22: [SM] Blaming: ammo_pack_deployers-l4d2.smx
L 02/08/2018 - 03:56:22: [SM] Call stack trace:
L 02/08/2018 - 03:56:22: [SM] [0] ArrayList.Length.get
L 02/08/2018 - 03:56:22: [SM] [1] Line 279, ammo_pack_deployers-l4d2.sp::OnEntityDestroyed
L 02/08/2018 - 03:56:27: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 02/08/2018 - 03:56:27: [SM] Blaming: ammo_pack_deployers-l4d2.smx
L 02/08/2018 - 03:56:27: [SM] Call stack trace:
L 02/08/2018 - 03:56:27: [SM] [0] ArrayList.Length.get
L 02/08/2018 - 03:56:27: [SM] [1] Line 279, ammo_pack_deployers-l4d2.sp::OnEntityDestroyed
L 02/08/2018 - 03:56:27: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 02/08/2018 - 03:56:27: [SM] Blaming: ammo_pack_deployers-l4d2.smx
L 02/08/2018 - 03:56:27: [SM] Call stack trace:
L 02/08/2018 - 03:56:27: [SM] [0] ArrayList.Length.get
L 02/08/2018 - 03:56:27: [SM] [1] Line 279, ammo_pack_deployers-l4d2.sp::OnEntityDestroyed
L 02/08/2018 - 03:56:27: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 02/08/2018 - 03:56:27: [SM] Blaming: ammo_pack_deployers-l4d2.smx
L 02/08/2018 - 03:56:27: [SM] Call stack trace:
L 02/08/2018 - 03:56:27: [SM] [0] ArrayList.Length.get
L 02/08/2018 - 03:56:27: [SM] [1] Line 279, ammo_pack_deployers-l4d2.sp::OnEntityDestroyed
L 02/08/2018 - 04:01:53: Error log file session closed.

cravenge 02-08-2018 08:24

Re: [L4D2] Ammo Pack Deployers
 
Quote:

Originally Posted by theproperson (Post 2577022)
[...]

Those errors are harmless, but I assure you that the plugin will still work. I'm kinda working it out on figuring what causes them to pop out and why.

DarkDeviL 02-08-2018 11:30

Re: [L4D2] Ammo Pack Deployers
 
Quote:

Originally Posted by cravenge (Post 2577050)
Those errors are harmless, but I assure you that the plugin will still work. I'm kinda working it out on figuring what causes them to pop out and why.

You're not checking whether it is a valid entity:

Code:

public void OnEntityCreated(int entity, const char[] classname)
{
        if (entity < 1 || entity > 2048)
        {
                return;
[...]

vs

Code:

public void OnEntityDestroyed(int entity)
{
        if (IsAmmoPack(entity) && !IsAmmoPackOwned(entity))
        {
[...]

Adding some check in OnEntityDestroyed before blindly using "entity" might fix it.

cravenge 02-09-2018 22:14

Re: [L4D2] Ammo Pack Deployers
 
Quote:

Originally Posted by arne1288 (Post 2577082)
Adding some check in OnEntityDestroyed before blindly using "entity" might fix it.

Ohh, okay. Noted! Thanks! :up:

cravenge 06-28-2018 04:53

Re: [L4D2] Ammo Pack Deployers
 
A (probably last) minor update has been posted! Please check the changelog for further details.


All times are GMT -4. The time now is 01:28.

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