AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Plugins (https://forums.alliedmods.net/forumdisplay.php?f=76)
-   -   Create Edict Fixer. (https://forums.alliedmods.net/showthread.php?t=186830)

KyleS 06-04-2012 10:11

Create Edict Fixer.
 
1 Attachment(s)
THIS IS PROBABLY UNSTABLE. IF YOU'RE HAVING 'RANDOM' CRASHING ISSUES WITH IT, DON'T USE IT.

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 MM:S Plugin. This Plugin has saved me, and I wish someone found this out earlier.

Installation
Pick your engine and throw it into a CEF folder under addons. Then throw the CEF.vdf file into your metamod folder. Or change the CEF.vdf file and do whatever you want with it, it's up to you.

I've only included a build for Linux Source 2009. If you build for another game, let me know and I'll update the OP to your post.

Thanks to
Dr!fter - Being helpful as always.
Zephyrus - Showing how to use SourceHook with the SM Extension.

128 views

FudgePoly 06-04-2012 12:48

Re: Create Edict Fixer.
 
Will this have a benefit to a non-developer, as a server owner?

Zephyrus 06-04-2012 13:09

Re: Create Edict Fixer.
 
Quote:

Originally Posted by FudgePoly (Post 1722708)
Will this have a benefit to a non-developer, as a server owner?

yes.

FudgePoly 06-04-2012 14:44

Re: Create Edict Fixer.
 
Care to expand...

Powerlord 06-04-2012 16:08

Re: Create Edict Fixer.
 
Quote:

Originally Posted by FudgePoly (Post 1722762)
Care to expand...

Quote:

Originally Posted by KyleS (Post 1722645)
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 MM:S Plugin. This Plugin has saved me, and I wish someone found this out earlier.

To expand on it further, the game server crashes when it runs out of edict/entity indexes. This plugin tries to prevent that.

Visual77 06-04-2012 16:12

Re: Create Edict Fixer.
 
builds for all the other games so we can try please :)

Leonardo 06-04-2012 16:46

Re: Create Edict Fixer.
 
windows for losers? okay.

Fearts 06-04-2012 17:32

Re: Create Edict Fixer.
 
Quote:

Originally Posted by Leonardo (Post 1722829)
windows for losers? okay.


https://forums.alliedmods.net/showpo...70&postcount=2

FudgePoly 06-04-2012 17:34

Re: Create Edict Fixer.
 
Quote:

Originally Posted by Powerlord (Post 1722807)
To expand on it further, the game server crashes when it runs out of edict/entity indexes. This plugin tries to prevent that.

That's more like it, thanks!

KyleS 06-04-2012 21:56

Re: Create Edict Fixer.
 
1.1.2 is up. I highly suggest everyone updates as I introduced two bugs in the previous build thinking I was being intelligent at the time.

Included a Windows build for OrangeBox Valve (Source 2009) and L4D2 Windows, thanks to Dr!fter.

thetwistedpanda 06-04-2012 22:05

Re: Create Edict Fixer.
 
<3

nomy 06-05-2012 00:39

Re: Create Edict Fixer.
 
Quote:

Originally Posted by KyleS (Post 1722968)
1.1.2 is up. I highly suggest everyone updates as I introduced two bugs in the previous build thinking I was being intelligent at the time.

Included a Windows build for OrangeBox Valve (Source 2009) and L4D2 Windows, thanks to Dr!fter.

It says "[01] Create Edict Fixer (1.1.1) by Kyle Sanderson" on Windows. Hope its just a typo?

Visual77 06-05-2012 05:51

Re: Create Edict Fixer.
 
thanks Kyles and Dr!fter. you fixed the typos in the source code too. the <engine_wrapper> to "..." that prevented compile :)
compiles fine now with VS2012 RC :)

Edit: both Dr!fters windows version and my compiled prevents my local dedicated srcds.exe to launch. I guess it crashes before server startup.
Just tried late loading it too. srcds.exe processes is killed instantly (crash). windows 7 64bit.

Can you fix that please. anyone else that having the crash problem on l4d2?

Leonardo 06-05-2012 07:09

Re: Create Edict Fixer.
 
oh
yeah
report.
Code:

Could not get IServerPluginCallbaks interface from plugin "addons/CEF/cef_mm"
win7 x86

Dr!fter 06-05-2012 11:01

Re: Create Edict Fixer.
 
Quote:

Originally Posted by Leonardo (Post 1723121)
oh
yeah
report.
Code:

Could not get IServerPluginCallbaks interface from plugin "addons/CEF/cef_mm"
win7 x86

Helps if you put the vdf inside the metamod folder since its a metamod plugin :3

Powerlord 06-05-2012 13:44

Re: Create Edict Fixer.
 
I noticed that, much like SourceMod Extensions, Stripper: Source uses individually named .so and .dll versions for each engine version. I'm not sure if this requires special code to do or not, but it might be worth looking into.

GoD-Tony 06-05-2012 13:54

Re: Create Edict Fixer.
 
Quote:

Originally Posted by Powerlord (Post 1723274)
I noticed that, much like SourceMod Extensions, Stripper: Source uses individually named .so and .dll versions for each engine version. I'm not sure if this requires special code to do or not, but it might be worth looking into.

It requires a loader which then loads the correct binary for that engine. We're getting a bit off-topic but it would be cool if MM:S included a multi-engine stub plugin as well.

Zephyrus 06-05-2012 14:40

Re: Create Edict Fixer.
 
just saying you can still use my sm extension on both platforms

Visual77 06-06-2012 06:30

Re: Create Edict Fixer.
 
Quote:

Originally Posted by Zephyrus (Post 1723314)
just saying you can still use my sm extension on both platforms

Yes but norton didn't like that file. could be false positive though

Zephyrus 06-06-2012 06:49

Re: Create Edict Fixer.
 
Source is there you can just compile it yourself

Visual77 06-06-2012 09:30

Re: Create Edict Fixer.
 
Thanks, just did. Loads fine, hope I'll see any difference :)

adrianman 06-07-2012 05:15

Re: Create Edict Fixer.
 
can you post the working dll please? :)

Zephyrus 06-07-2012 07:03

Re: Create Edict Fixer.
 
Quote:

Originally Posted by adrianman (Post 1724131)
can you post the working dll please? :)

https://forums.alliedmods.net/showpo...70&postcount=2

https://www.virustotal.com/file/e44b...is/1338992365/

adrianman 06-07-2012 08:06

Re: Create Edict Fixer.
 
i mean the newer one with the bugfixes

Zephyrus 06-07-2012 08:09

Re: Create Edict Fixer.
 
Quote:

Originally Posted by adrianman (Post 1724197)
i mean the newer one with the bugfixes

that one does exactly the same except its an sm extension...

thetwistedpanda 06-07-2012 10:45

Re: Create Edict Fixer.
 
The provided windows binary works fine for me o.O -- the sm extension worked dandy prior to switching as ewll.

Visual77 06-07-2012 11:09

Re: Create Edict Fixer.
 
Of course it will work. the problem is in the l4d2 .dll so if you are on l4d2, go with the sm extension by Zephyrus.
funny by the way as the orange box .dll loads up fine on l4d2 (no errors at all) but the cef.dll inside left4dead2 folder crashes the server.
I guess you shouldn't be running the ob version on l4d2 either way.

KyleS 06-07-2012 11:23

Re: Create Edict Fixer.
 
Quote:

Originally Posted by Visual77 (Post 1724309)
Of course it will work. the problem is in the l4d2 .dll so if you are on l4d2, go with the sm extension by Zephyrus.
funny by the way as the orange box .dll loads up fine on l4d2 (no errors at all) but the cef.dll inside left4dead2 folder crashes the server.
I guess you shouldn't be running the ob version on l4d2 either way.

Drifter debugged your issue last night and sent me a compiled binary for L4D2 (and the source). However, with this being said, I've yet to recompile for OB.


Are you sure this is even an issue under L4D2?

Visual77 06-07-2012 11:31

Re: Create Edict Fixer.
 
That's good to hear.

Not sure what you mean with it being an issue. I just thought it was weird that the obv loaded on L4D2 because you usually get errors when you try to load .dll's that
are compiled for different engines like in this case. Either way, good that you guys found the cause to that crash :)

Silvers 06-07-2012 12:21

Re: Create Edict Fixer.
 
Quote:

Originally Posted by KyleS (Post 1724317)
Are you sure this is even an issue under L4D2?

Yeah it's a non-issue. Great work nonetheless.

Dr!fter 06-07-2012 12:36

Re: Create Edict Fixer.
 
Quote:

Originally Posted by Visual77 (Post 1724322)
That's good to hear.

Not sure what you mean with it being an issue. I just thought it was weird that the obv loaded on L4D2 because you usually get errors when you try to load .dll's that
are compiled for different engines like in this case. Either way, good that you guys found the cause to that crash :)

It loads but probably would crash at some point since l4d2 doesn't use the same function for edict. Which is why it was crashing on l4d2 gpGlobals wasn't getting set. As mentioned by silvers this isn't even an issue afaik in l4d2. The main problem is on big servers with lots of entities. CS:S Zombie mod with 60 players for example.

Visual77 06-08-2012 11:12

Re: Create Edict Fixer.
 
Well my server is 20 slots with map rotation and almost full 24/7 and I've been having crashes upon reaching the 2048 limit. happens after some time though and I got plugins that spawns a lot of items and deals with a lot of entities/edicts so what Silvers says is not completly true. It's not an issue on the normal 4-8 slot servers. (vanilla servers). remember that l4d/2 was created for 8 players only so the chance of reaching that 2048 limit would be very low.

Powerlord 06-08-2012 15:20

Re: Create Edict Fixer.
 
By the way, what's the current edict limit in TF2? I vaguely remember they had to bump it up a year or two ago due to changes to the game making cp_steel crash every time it was loaded due to running out of edicts.

KyleS 06-08-2012 15:30

Re: Create Edict Fixer.
 
Quote:

Originally Posted by Powerlord (Post 1725118)
By the way, what's the current edict limit in TF2? I vaguely remember they had to bump it up a year or two ago due to changes to the game making cp_steel crash every time it was loaded due to running out of edicts.

It's still 2047, they made changes to the maps instead of investigating the issue.

psychonic 06-09-2012 15:20

Re: Create Edict Fixer.
 
Quote:

Originally Posted by KyleS (Post 1725130)
Quote:

Originally Posted by Powerlord (Post 1725118)
By the way, what's the current edict limit in TF2? I vaguely remember they had to bump it up a year or two ago due to changes to the game making cp_steel crash every time it was loaded due to running out of edicts.

It's still 2047, they made changes to the maps instead of investigating the issue.

The issue with steel was stringtable overflow (for model precaching), not reaching the entity limit.

They increased the size of the string table.

Silvers 06-09-2012 16:39

Re: Create Edict Fixer.
 
Quote:

Originally Posted by psychonic (Post 1725668)
The issue with steel was stringtable overflow (for model precaching), not reaching the entity limit.

They increased the size of the string table.

Is it possible to increase the size of the string table with MM/SM? This seems an issue with L4D2. Or is that stuff client side related/also?

psychonic 06-09-2012 16:56

Re: Create Edict Fixer.
 
Quote:

Originally Posted by Silvers (Post 1725709)
Is it possible to increase the size of the string table with MM/SM? This seems an issue with L4D2. Or is that stuff client side related/also?

Can't increase it. It uses hardcoded array sizes on both client and server.

adrianman 06-10-2012 17:09

Re: Create Edict Fixer.
 
check out map c6m1_riverbank in l4d2,if you play it for a bit,then vote to restart the campaign/map the server will crash with the no free edicts error,same goes for scavenge on the same map,as soon as the round ends for both teams i think,but it happens. Did valve forgot to clean up edicts on round end there?

Visual77 06-15-2012 02:13

Re: Create Edict Fixer.
 
Quote:

Originally Posted by KyleS (Post 1724317)
Drifter debugged your issue last night and sent me a compiled binary for L4D2 (and the source). However, with this being said, I've yet to recompile for OB.


Are you sure this is even an issue under L4D2?

Can we atleast test it? L4D2 might just run more smooth for me with it.
I didn't see much of a differense with the SM extension. Maybe because of CreateEdict being different on l4d.

daleGEND 06-15-2012 06:30

Re: Create Edict Fixer.
 
For some odd reason this broke Zombie Reloaded so that when a Zombie was spawned they could not infect others. Anyone else experience this issue?


All times are GMT -4. The time now is 07:55.

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