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

'Proper' CreateEdict.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 06-03-2012 , 04:15   'Proper' CreateEdict.
Reply With Quote #1

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 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.
Attached Files
File Type: zip eaf.zip (34.2 KB, 480 views)
File Type: so eaf.ext.so (21.2 KB, 466 views)
File Type: txt CreateEdictFixer.txt (166 Bytes, 533 views)

Last edited by KyleS; 06-04-2012 at 18:01. Reason: Typography.
KyleS is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 06-03-2012 , 07:08   Re: 'Proper' CreateEdict.
Reply With Quote #2

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
Attached Files
File Type: so createedict.ext.so (19.0 KB, 1238 views)
File Type: dll createedict.ext.dll (68.0 KB, 1550 views)
File Type: zip createedict.zip (19.1 KB, 2304 views)
__________________
Taking private C++/PHP/SourcePawn requests, PM me.

Last edited by Zephyrus; 06-03-2012 at 09:24.
Zephyrus is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 06-03-2012 , 12:11   Re: 'Proper' CreateEdict.
Reply With Quote #3

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.
__________________
Fearts is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 06-03-2012 , 15:54   Re: 'Proper' CreateEdict.
Reply With Quote #4

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.
__________________
GoD-Tony is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 06-03-2012 , 23:54   Re: 'Proper' CreateEdict.
Reply With Quote #5

I think I may love you. This has been an issue that has plagued my mods for years.
__________________
thetwistedpanda is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 06-04-2012 , 00:25   Re: 'Proper' CreateEdict.
Reply With Quote #6

Quote:
Originally Posted by thetwistedpanda View Post
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.
KyleS is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-04-2012 , 16:06   Re: 'Proper' CreateEdict.
Reply With Quote #7

Wow, you posted this yesterday and already deprecated it? (er... "depreciated" it according to the text, but I assume you mean deprecated)
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 06-04-2012 , 18:00   Re: 'Proper' CreateEdict.
Reply With Quote #8

Quote:
Originally Posted by Powerlord View Post
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.
KyleS is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 06-08-2012 , 08:34   Re: 'Proper' CreateEdict.
Reply With Quote #9

Quote:
Originally Posted by KyleS View Post
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.
Afronanny is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 06-08-2012 , 08:41   Re: 'Proper' CreateEdict.
Reply With Quote #10

Quote:
Originally Posted by Afronanny View Post
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.
__________________
GoD-Tony 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 07:18.


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