AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   'Proper' CreateEdict. (https://forums.alliedmods.net/showthread.php?t=186730)

KyleS 06-03-2012 04:15

'Proper' CreateEdict.
 
3 Attachment(s)
THIS IS DEPRECATED. DO NOT USE THIS EXTENSION. USE THIS INSTEAD.


What is this?
This replaces CreateEdict on your server with a 'Custom' implementation ensuring no edicts are left unused before going into the higher indexes. This bug (of running out of edicts when you have 1000 free) is present in every Source 2009 game, CS: Global Offensive does something similar to this extension. This extension has saved me, and I wish someone found this out earlier.

THIS IS HORRIBLE, USE SOURCEHOOK INSTEAD OF CDETOUR!
No problem! Show me how I'd go about doing it and I'll swap :o Until then, here's GameData.

You need an AutoLoad file, Linux (Source 2009) is the only supported platform. Use SourceMod 1.5.

Thanks to Dr!fter for assisting me with some rather obvious C++ issues.

If anyone's interested in the rather lame journey I took, it's here.

Have fun.

EDIT: As always, if you run into any issues, do let me know. I can think of one, but I'm not sure if it's even a problem.

Zephyrus 06-03-2012 07:08

Re: 'Proper' CreateEdict.
 
3 Attachment(s)
would this work with a proper windows sig?
edit: why would this need sm1.5?
edit2: heres a sourcehook version, should work with linux and windows + shouldnt require 1.5, no gamedata either

Fearts 06-03-2012 12:11

Re: 'Proper' CreateEdict.
 
Very nice find. I will admit I didn't fully understand what this was until Zeph explained it to me. This isn't very useful to me as my servers do not hold as many players and create/delete a high numbers of ent/indexs. However, I have shown this to a few of my friend who do and I am sure they will be relieve to see a fix has been made.

Nice work.

GoD-Tony 06-03-2012 15:54

Re: 'Proper' CreateEdict.
 
Thanks for taking so much time to track this down, and then release the fix. It explains many crashes I've had with custom maps and gamemodes. :up:

thetwistedpanda 06-03-2012 23:54

Re: 'Proper' CreateEdict.
 
I think I may love you. This has been an issue that has plagued my mods for years.

KyleS 06-04-2012 00:25

Re: 'Proper' CreateEdict.
 
Quote:

Originally Posted by thetwistedpanda (Post 1722456)
I think I may love you. This has been an issue that has plagued my mods for years.

I have a modified version similar to what Zephyrus posted using SourceHook. Provided nothing crashes on my end, I'm depreciating this tomorrow.

Powerlord 06-04-2012 16:06

Re: 'Proper' CreateEdict.
 
Wow, you posted this yesterday and already deprecated it? (er... "depreciated" it according to the text, but I assume you mean deprecated)

KyleS 06-04-2012 18:00

Re: 'Proper' CreateEdict.
 
Quote:

Originally Posted by Powerlord (Post 1722806)
Wow, you posted this yesterday and already deprecated it? (er... "depreciated" it according to the text, but I assume you mean deprecated)

I had no idea Zephyrus would show me how to do this using SourceHook. It doesn't make sense to have it as a SourceMod Extension, either.

Afronanny 06-08-2012 08:34

Re: 'Proper' CreateEdict.
 
Quote:

Originally Posted by KyleS (Post 1722885)
I had no idea Zephyrus would show me how to do this using SourceHook. It doesn't make sense to have it as a SourceMod Extension, either.

Makes more sense to do it as a VSP, that way it will literally never break, ever.

GoD-Tony 06-08-2012 08:41

Re: 'Proper' CreateEdict.
 
Quote:

Originally Posted by Afronanny (Post 1724836)
Makes more sense to do it as a VSP, that way it will literally never break, ever.

Is this true? Didrole's Tickrate Enabler is a single-hook VSP and it broke once or twice.


All times are GMT -4. The time now is 08:29.

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