dreamstalker / rehlds

Reverse-engineered HLDS
GNU General Public License v3.0
652 stars 167 forks source link

amx_last Not Working #426

Closed GoRiLliAz closed 7 years ago

GoRiLliAz commented 7 years ago

Hello,

I installed rehdsl yesterday, but I encountered a problem with amx_last this one does not show the last 10 connections.

I can not install the latest amxmodx build because it bug with this error message

L 04/08/2017 - 15:29:14: FATAL ERROR (shutting down): AbstractHookChainRegistry::addHook: The same handler can't be used twice on the hookchain. FATAL ERROR (shutting down): AbstractHookChainRegistry::addHook: The same handler can't be used twice on the hookchain. ./hlds_run: line 255: 25546 Segmentation fault $HL_CMD

In-line commented 7 years ago

Install non-official reamxmodx or/and report bug to the amxmodx developers.

GoRiLliAz commented 7 years ago

Hi

I do not know how to answer on the amxmodx git there is no issue

In-line commented 7 years ago

AMX Mod X Issue tracker. You can also find a link in their github page README.md Write this commands to the server console

meta list
game version
version

And show output for each of them

GoRiLliAz commented 7 years ago

I made contact with Arkshine and he is giving the link here.

Nemesis31 commented 7 years ago

Hello there,

i am with GoRiLliAz.

Here what you asked:

meta list

Currently loaded plugins: description stat pend file vers src load unlod [ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.8.3-d ini Start ANY
[ 2] NetBufExtender RUN - nbex.so v1.0 ini ANY Never [ 3] Invalid MSG_ONE RUN - msgone_blocker_a v1.0.0-m pl1 ANY ANY
[ 4] SteamTools RUN - steamtoolsamxx v1.1.0 pl1 ANY ANY
[ 5] Ham Sandwich RUN - hamsandwich_amxx v1.8.3-d pl1 ANY ANY
[ 6] FakeMeta RUN - fakemeta_amxx_i3 v1.8.3-d pl1 ANY ANY
[ 7] CStrike RUN - cstrike_amxx_i38 v1.8.3-d pl1 ANY ANY
[ 8] Fun RUN - fun_amxx_i386.so v1.8.3-d pl1 ANY ANY
[ 9] CSX RUN - csx_amxx_i386.so v1.8.3-d pl1 ANY ANY
[10] MySQL RUN - mysql_amxx_i386. v1.8.3-d pl1 ANY ANY
[11] SQLite RUN - sqlite_amxx_i386 v1.8.3-d pl1 ANY ANY
[12] Engine RUN - engine_amxx_i386 v1.8.3-d pl1 ANY ANY
[13] GeoIP RUN - geoip_amxx_i386. v1.8.3-d pl1 ANY ANY
13 plugins, 13 running

game version: nothing happened

version

Protocol version 48 Exe version 1.1.2.7/Stdio (cstrike) ReHLDS version: 3.0.0.518-dev Build date: 20:24:57 Mar 20 2017 (1073) Build from: https://github.com/dreamstalker/rehlds/commit/7e05e65

In-line commented 7 years ago

Disable nbef.so it will lead to a undefined behavior and it's useless with rehlds.

Nemesis31 commented 7 years ago

I disabled the nbef.so. Did you think it will solve the problem with amx_last ?

Arkshine commented 7 years ago

amx_last code is generic.. If nothing is saved, it means the client_disconnected forward has not been called.

This forward is not called in the following situations;

I tried also to run the latest AMXX dev version and latest ReHLDS version with the default plugins, whatever under linux or windows, I had no crash. The amx_last is working fine for me as well. If issue there is, this is something else.

GoRiLliAz commented 7 years ago

In git 5100 server start but i have this message not in error log but in log basic / En git 5100 le serveur démarre mais j'ai ces problème là pas dans le error.log mais dans le log normal.

L 04/09/2017 - 10:00:55: Binding/Hooking cvars have been disabled - check your gamedata files.
L 04/09/2017 - 10:00:55: client_disconnected and client_remove forwards have been disabled - check your gamedata files.

I have verified is reupload 3 times amxmodx in full with no additional plugins and always the same J'ai vérifié et re upload 3 fois en suppriment le dossier amxmodx complétement et toujours la même chose.

10:18:45 Currently loaded plugins:
                name                    version     author            file             status   
          [  1] Admin Base              1.8.3-dev+  AMXX Dev Team     admin.amxx       running  
          [  2] Admin Commands          1.8.3-dev+  AMXX Dev Team     admincmd.amxx    running  
          [  3] Admin Help              1.8.3-dev+  AMXX Dev Team     adminhelp.amxx   running  
          [  4] Slots Reservation       1.8.3-dev+  AMXX Dev Team     adminslots.amxx  running  
          [  5] Multi-Lingual System    1.8.3-dev+  AMXX Dev Team     multilingual.am  running  
          [  6] Menus Front-End         1.8.3-dev+  AMXX Dev Team     menufront.amxx   running  
          [  7] Commands Menu           1.8.3-dev+  AMXX Dev Team     cmdmenu.amxx     running  
          [  8] Players Menu            1.8.3-dev+  AMXX Dev Team     plmenu.amxx      running  
          [  9] Maps Menu               1.8.3-dev+  AMXX Dev Team     mapsmenu.amxx    running  
          [ 10] Plugin Menu             1.8.3-dev+  AMXX Dev Team     pluginmenu.amxx  running  
          [ 11] Admin Chat              1.8.3-dev+  AMXX Dev Team     adminchat.amxx   running  
          [ 12] Anti Flood              1.8.3-dev+  AMXX Dev Team     antiflood.amxx   running  
          [ 13] Scrolling Message       1.8.3-dev+  AMXX Dev Team     scrollmsg.amxx   running  
          [ 14] Info. Messages          1.8.3-dev+  AMXX Dev Team     imessage.amxx    running  
10:18:45  [ 15] Admin Votes             1.8.3-dev+  AMXX Dev Team     adminvote.amxx   running  
          [ 16] NextMap                 1.8.3-dev+  AMXX Dev Team     nextmap.amxx     running  
          [ 17] Nextmap Chooser         1.8.3-dev+  AMXX Dev Team     mapchooser.amxx  running  
          [ 18] TimeLeft                1.8.3-dev+  AMXX Dev Team     timeleft.amxx    running  
          [ 19] Pause Plugins           1.8.3-dev+  AMXX Dev Team     pausecfg.amxx    running  
          [ 20] Stats Configuration     1.8.3-dev+  AMXX Dev Team     statscfg.amxx    running  
          [ 21] StatsX                  1.8.3-dev+  AMXX Dev Team     statsx.amxx      running  
         21 plugins, 21 running
10:19:12 Protocol version 48
         Exe version 1.1.2.7/Stdio (cstrike)
         ReHLDS version: 3.0.0.518-dev
         Build date: 20:24:57 Mar 20 2017 (1073)
         Build from: https://github.com/dreamstalker/rehlds/commit/7e05e65
10:19:57 Currently loaded plugins:
               description      stat pend  file              vers      src  load  unlod
          [ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.8.3-d  ini  Start ANY  
          [ 2] Ham Sandwich     RUN   -    hamsandwich_amxx  v1.8.3-d  pl1  ANY   ANY  
          [ 3] CSX              RUN   -    csx_amxx_i386.so  v1.8.3-d  pl1  ANY   ANY  
         3 plugins, 3 running
11:00:30 metamod_version
11:00:30 "metamod_version" is "1.21.1-am"
11:00:59 amxmodx_version
11:00:59 "amxmodx_version" is "1.8.3-dev+5100"

For past on rehlds I updated the file engine_i486.so bugfixed not pure y something else to do for amxmodx? Pour passé sur rehlds j'ai mis à jours le fichier engine_i486.so bugfixed not pure y autre chose à faire pour amxmodx ?

In git 5109 i have this message


L 04/09/2017 - 10:14:56: FATAL ERROR (shutting down): AbstractHookChainRegistry::addHook: The same handler can't be used twice on the hookchain.
FATAL ERROR (shutting down): AbstractHookChainRegistry::addHook: The same handler can't be used twice on the hookchain.
./hlds_run: line 255: 13945 Segmentation fault      $HL_CMD

If I remove rehlds to go back to hlds my server works perfectly without any problems

In-line commented 7 years ago

Download latest hlds from steamcmd (not 5xxx), install latest rehlds, install latest amxmodx and test it. It's nearly impossible to install 2 same servers with same configurations and get different results. There are 2 options for you now:

  1. You didn't mention some important details. So tell us.
  2. Wait.
Arkshine commented 7 years ago

I can't reproduce using latest AMXX 1.8.3.5109 and ReHLDS 3.0.0.518-dev whatever under linux or windows.

Technically this means that the ReHLDS registerHook function has been used more than one time on the same hook address.

In AMXX (core), it's essentially used in MetaAttach called one time when metamod is ready:

So:

Well, I don't know. Unless I'm missing something, the only possibility is that somehow you're using the same AMXX or engine instance more than one time, I'm not sure if it makes sense or if even possible. This sounds more an issue on how server is manager on your end.

GoRiLliAz commented 7 years ago

I use a single instance of amxmodx by server you know but server view arkshine you had access again in December.

so : i delete rehlds and replace by hlds original i run git5109 and work perfectly

@In-line My server is in latest version

Auto-restarting the server on crash Could not locate steam binary:steamcmd/steamcmd.sh, ignoring.

Console initialized. Using breakpad crash handler Setting breakpad minidump AppID = 10 Forcing breakpad minidump interfaces to load dlopen failed trying to load: /home/bg85433-ovh/.steam/sdk32/steamclient.so with error: /home/bg85433-ovh/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit Protocol version 48 Exe version 1.1.2.7/Stdio (cstrike) Exe build: 20:24:57 Mar 20 2017 (1073) STEAM Auth Server

Server logging data to file logs/L0409039.log L 04/09/2017 - 12:00:09: Log file started (file "logs/L0409039.log") (game "cstrike") (version "48/1.1.2.7/Stdio/1073") L 04/09/2017 - 12:00:09: Server cvar "sv_aim" = "0" L 04/09/2017 - 12:00:09: Server cvar "pausable" = "0" L 04/09/2017 - 12:00:09: Server cvar "sv_maxrate" = "100000" L 04/09/2017 - 12:00:09: Server cvar "sv_minrate" = "20000" Server IP address 164.132.9.244:27015

Metamod version 1.21.1-am Copyright (c) 2001-2013 Will Day willday@metamod.org Metamod comes with ABSOLUTELY NO WARRANTY; for details type meta gpl'. This is free software, and you are welcome to redistribute it under certain conditions; typemeta gpl' for details.

L 04/09/2017 - 12:00:09: [META] Metamod v1.21.1-am 2013-09-26 L 04/09/2017 - 12:00:09: [META] by Will Day willday@metamod.org L 04/09/2017 - 12:00:09: [META] http://www.metamod.org/ L 04/09/2017 - 12:00:09: [META] compiled: Sep 26 2013, 17:09:41 -0500 (optimized) L 04/09/2017 - 12:00:09: [META] engine: i486 L 04/09/2017 - 12:00:09: [META] Recognized game 'cstrike'; using dllfile 'cs.so' L 04/09/2017 - 12:00:09: [META] Game DLL for 'Counter-Strike' loaded successfully L 04/09/2017 - 12:00:09: [META] ini: Begin reading plugins list: /home/bg85433-ovh/13611/cs/cstrike/addons/metamod/plugins.ini L 04/09/2017 - 12:00:09: [META] ini: Read plugin config for: L 04/09/2017 - 12:00:09: [META] ini: Finished reading plugins list: /home/bg85433-ovh/13611/cs/cstrike/addons/metamod/plugins.ini; Found 1 plugins to load L 04/09/2017 - 12:00:09: [META] dll: Loading plugins...

AMX Mod X version 1.8.3-dev+5109 Copyright (c) 2004-2015 AMX Mod X Development Team AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'. This is free software and you are welcome to redistribute it under certain conditions; type 'amxx gpl' for details.

L 04/09/2017 - 12:00:09: [META] dll: Loaded plugin 'AMX Mod X': AMX Mod X v1.8.3-dev+5109 Apr 4 2017, AMX Mod X Dev Team L 04/09/2017 - 12:00:09: [META] dll: Finished loading 1 plugins

Metamod version 1.21.1-am Copyright (c) 2001-2013 Will Day willday@metamod.org Metamod comes with ABSOLUTELY NO WARRANTY; for details type meta gpl'. This is free software, and you are welcome to redistribute it under certain conditions; typemeta gpl' for details.

L 04/09/2017 - 12:00:09: [META] Metamod v1.21.1-am 2013-09-26 L 04/09/2017 - 12:00:09: [META] by Will Day willday@metamod.org L 04/09/2017 - 12:00:09: [META] http://www.metamod.org/ L 04/09/2017 - 12:00:09: [META] compiled: Sep 26 2013, 17:09:41 -0500 (optimized) L 04/09/2017 - 12:00:09: [META] engine: i486 Can't register variable "meta_debug", already defined Can't register variable "metamod_version", already defined Cmd_AddMallocCommand: "meta" already defined L 04/09/2017 - 12:00:09: [META] Recognized game 'cstrike'; using dllfile 'cs.so' L 04/09/2017 - 12:00:09: [META] Game DLL for 'Counter-Strike' loaded successfully L 04/09/2017 - 12:00:09: [META] ini: Begin reading plugins list: /home/bg85433-ovh/13611/cs/cstrike/addons/metamod/plugins.ini L 04/09/2017 - 12:00:09: [META] ini: Read plugin config for: L 04/09/2017 - 12:00:09: [META] ini: Finished reading plugins list: /home/bg85433-ovh/13611/cs/cstrike/addons/metamod/plugins.ini; Found 1 plugins to load L 04/09/2017 - 12:00:09: [META] dll: Loading plugins... Can't register variable "amxmodx_version", already defined Can't register variable "amxmodx_modules", already defined Can't register variable "amx_debug", already defined Can't register variable "amx_mldebug", already defined Can't register variable "amx_language", already defined Can't register variable "amx_client_languages", already defined Cmd_AddMallocCommand: "amxx" already defined

AMX Mod X version 1.8.3-dev+5109 Copyright (c) 2004-2015 AMX Mod X Development Team AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'. This is free software and you are welcome to redistribute it under certain conditions; type 'amxx gpl' for details.

L 04/09/2017 - 12:00:09: FATAL ERROR (shutting down): AbstractHookChainRegistry::addHook: The same handler can't be used twice on the hookchain. FATAL ERROR (shutting down): AbstractHookChainRegistry::addHook: The same handler can't be used twice on the hookchain. ./hlds_run: line 255: 22998 Segmentation fault $HL_CMD Auto-restarting the server on crash

Arkshine commented 7 years ago

Looks like Metamod is forced to load twice... Log should have been posted from the start.

Maybe something wrong in liblist.gam.

GoRiLliAz commented 7 years ago

PFFF I have hosting provider has put 2 times the same line in the liblist.gam!

It's like this on all my servers!

With his bug rehlds but with hlds its past well. Weird Thanks again for your help.

In-line commented 7 years ago

Close the issue