Server crash: IndexOfEdict: bad entity
Hello,
So I am running a Counter-Strike server with the latest AMX Mod X 1.8.3 installation, the server works perfectly fine without out the plugin admin_commands.amxx a custom and a public plugin I've created that is currently in development phase. Please find the code on my github: https://github.com/TaurusMD/Admin-Co...n_commands.sma I read the plugin like about 2550 times and I couldn't find anything weird that could possible cause the crash, and on server console I get this error when the server crash FATAL ERROR (shutting down): IndexOfEdict: bad entity Thanks in advance! |
Re: Server crash: IndexOfEdict: bad entity
Thanks for the 1374 lines plugin. Do you really believe someone is going to take the time to figure out what's wrong? Do some debugging yourself, just reading the plugin in most cases won't magically tell you what is wrong.
Comment out everything, make sure it doesn't crash and then start enabling code until it crashes again. Now you found what part of the code is causing the crash. Post it here and we will take a look. |
Re: Server crash: IndexOfEdict: bad entity
Quote:
I believe I tried everything possible, the server crashes right when a player spawns, I tried disabling ham_spawn and ham_killed, but still same problem. And FYI the plugin was working absolutely fine with AMX Mod X 1.8.2, and when I added full support to AMX Mod X 1.8.3 the server started crashing for the mentioned reason. - I tried commenting out codes - I tried changing codes and used different methods for the same purpose Same problem, same crash error! Server crash instantly on spawn :/ |
Re: Server crash: IndexOfEdict: bad entity
Quote:
|
Re: Server crash: IndexOfEdict: bad entity
There are no error logs in the logs directory, I just get FATAL ERROR (shutting down): IndexOfEdict: bad entity in server console right when someone spawns. The plugin worked perfectly fine on AMX 182, but crashes the server on AMX 183.
Updated from AMX182 to AMX183: - Replaced client_print( ) with client_print_color( ). - Replaced g_iMaxPlayers = get_maxplayers( ) with using MaxClients. - Replaced get_players( ) with get_players_ex( ). - Removed out MAX_PLAYERS from the code as AMX 183 already has it. Compiled with AMX 183 compiler, and installed into my server and got that crash error! I did it for most of my plugins since I started using AMX183 recently, all plugins worked fine, but this plugin crash. |
Re: Server crash: IndexOfEdict: bad entity
Well, I tried your plugin and I don't get any crash. Try only with this plugin and everything else disabled. Does it happen again?
|
Re: Server crash: IndexOfEdict: bad entity
I tried this:
- Disabled all 3rd party plugins except my plugin Server works. - Activated all 3rd party plugins and disabled my plugin Server works. - Activated all 3rd party plugins Server crash. I think I should keep my plugin enabled, and test it with all 3rd party plugins, and let's see what causes it? |
Re: Server crash: IndexOfEdict: bad entity
Maybe it's a conflict with another plugin. Yes, keep yours enabled, disabled all other 3rd party plugins. Then enable the other plugins one by one until you find out what combination is causing the crash.
|
Re: Server crash: IndexOfEdict: bad entity
1 Attachment(s)
Well, I did that! It appears to be Base Builder 6.5 main plugin :P
|
Re: Server crash: IndexOfEdict: bad entity
Base Builder has this problem since always, just change the following and there won't be another crash.
PHP Code:
|
| All times are GMT -4. The time now is 12:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.