Weird Bug in Deathrun
So, i've been using the same Deathrun Manager for about some time already and i've never had any problems or errors with it.
But, recently i upgraded my server from AMX 1.8.3 +dev-5151 to 1.8.3 +dev-5154 and i started receiving an strange error and random crashes with no pattern (the second applies to every single map) I'm using DeathrunManager by xPaw. PHP Code:
PHP Code:
Metamod Code:
Metamod v1.21p37 2013/05/30 (5:13)Code:
AMX Mod X 1.8.3-dev+5154Code:
Currently loaded plugins:There is only one crash that has a pattern, and that is when the DR is about to pick the first terrorist (the round ends and it crashes right after, before even starting) So, i'm here because i don't know if there is a bug with this version of AMXX or is there something else causing this, any ideas? |
Re: Weird Bug in Deathrun
Post full code.
|
Re: Weird Bug in Deathrun
Either way this should never happen:
Code:
L 06/17/2018 - 10:25:04: [CSTRIKE] Invalid weapon id 16Also the reason for the crash when picking a terrorist could be an infinity loop, there's a while loop that could potentially get into one, also the whole function itself is looped under certain conditions, I just have no idea why it would start behaving like that since the update ( Unless you changed something ). This is just a guess, but hear me out, since we already saw a weird problem with you cstrike module,im gonna guess that it has something to do with it. Because there are several cstrike functions in EventRandromize() and if those return a wrong value every time, it would cause an infinite loop. Just shooting in the dark. But yes, please post the full code. |
Re: Weird Bug in Deathrun
Try
Code:
If that doesn't help, enable debug mode and post full code. |
Re: Weird Bug in Deathrun
Simply use amx latest stable version and its 182.
|
Re: Weird Bug in Deathrun
Quote:
I'm too lazy to download 5154 right now, but you can test this simple code and see if the same error pops up: PHP Code:
|
Re: Weird Bug in Deathrun
Quote:
Code:
L 06/18/2018 - 11:30:50: Start of error session.For people requesting full code, it is just the default DeathrunManager. The only thing i replaced was the deprecated functions, like client_disconnect to client_disconnected, but when i was using 1.8.3 5151 they were already there. PHP Code:
EDIT - Added debug, but it doesn't say anything that changes the situation Code:
L 06/18/2018 - 11:49:08: [CSTRIKE] Invalid weapon id 16 |
Re: Weird Bug in Deathrun
Do you have a plugin blocking the "WeaponList" message? This is happening because the module can't retrieve weapon information that it collects from that user message.
|
Re: Weird Bug in Deathrun
Quote:
Plugins.ini (that's the only thing in as_oilrig, there isn't a plugins-as.ini or something) Code:
; Server Bans - Advanced Bans required at the top to run properly |
Re: Weird Bug in Deathrun
Test in amx v182 and see if the error still occur, give feedback.
|
| All times are GMT -4. The time now is 12:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.