Posibila rezolvare pentru HLDS Linux

Tutoriale pentru Counter-Strike aprobate de eXtream!

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
bobitzone
Membru, skill +1
Membru, skill +1
Posts: 186
Joined: 30 Aug 2007, 18:36
Detinator Steam: Da
Detinator server CS: cs.orizont.biz
Has thanked: 1 time
Been thanked: 4 times

22 Sep 2010, 21:20

Multe servere linux se confrunta cu problema:

Code: Select all

./hlds_run: line 321: 14508 Segmentation fault$HL_CMD
, acesta fiind un crash al serverului datorat fisierului steam din hlds , care forteaza serverul sa faca update si creeaza eroarea.
Asadar am gasit intamplator pe interent un plugin care poate fixa aceasta problema enervanta pentru totdeauna.
Poate ca multi dintre voi nu v-ati confruntat cu eroarea asa ca nu vreau comentarii aiurea.
Mai jos aveti scriptul , care sper sa va fie de folos unora dintre voi .

Code: Select all

#include <amxmodx> 

#define PLUGIN_NAME        "Fix AutoBuy Bug" 
#define PLUGIN_VERSION    "1.1" 
#define PLUGIN_AUTHOR    "PomanoB & UFPS.Team" 

new g_logfile[64] 

public plugin_init( ) 
{ 
    register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR ) 

    register_clcmd( "cl_setautobuy", "cmd_check" ) 
    register_clcmd( "cl_setrebuy", "cmd_check" ) 

    get_time ( "autobuy_%Y%m.log", g_logfile, charsmax ( g_logfile ) ) 
} 

public cmd_check( id ) 
{ 
    static arg[512], args, i 
    args = read_argc( ) 

    for( i = 1; i < args; ++i ) 
    { 
        read_argv( i, arg, charsmax( arg ) ) 

        if( is_cmd_long( arg, charsmax( arg ) ) ) 
        { 
            log_autobuy( id ) 
            return PLUGIN_HANDLED 
        } 
    } 

    return PLUGIN_CONTINUE 
} 

stock bool:is_cmd_long( string[], const len ) 
{ 
    static cmd[512] 

    while( strlen( string ) ) 
    { 
        strtok( string, cmd, charsmax( cmd ), string, len , ' ', 1 ) 

        if( strlen( cmd ) > 31 ) return true 
    } 

    return false 
} 

stock log_autobuy( id ) 
{ 
    static name[32], steamid[44], ip[16] 
    get_user_ip( id, ip, charsmax( ip ), 1 ) 
    get_user_authid( id, steamid, charsmax( steamid ) ) 
    get_user_name( id, name, charsmax( name ) ) 

    log_to_file( g_logfile, "Autobuy bug use: %s [%s] <%s>", name, ip, steamid ) 
}
Nu imi rezerv drepturile de autor pentru scritp pentru ca nu e facut de mine.
In cazul in care cunoasteti persoane care au aceasta problema , orientati-o spre acest topic .
Si as vrea ca autorul pluginului sa ramana neschimbat , pentru ca lui i se rezerva toate drepturile pentru plugin.
Have Fun!
Enjoy the fun!
Image
RoyalServer
THC dark
Membru, skill +1
Membru, skill +1
Posts: 336
Joined: 03 Dec 2007, 00:34
Detinator Steam: Da
CS Status: CS 1.6 rulez
Detinator server CS: Classic.pow3rful.com
SteamID: pm for it...
Has thanked: 2 times
Been thanked: 10 times

22 Sep 2010, 23:14

sal nu vreau sa critic sau sa ma bag aiurea vreau decat sa ajut
Mai este o rezolvare la acest bug spusa chiar de Crock
tocmai am facut ce zice acolo si nu mai mi se inchid serverle pe win si pe linux

There is another way to fix autobuy bug by patching mp.dll or cs_i386.so:
for mp.dll:

Code: Select all

Select all | Line number On/Off | Expand/Contract
find
3C 20 74 11 83 F9 20 7D 0C 42 88 44
 
replace with
3C 20 74 11 83 F9 1F 7D 0C 42 88 44

for cs_i386.so:

Code: Select all

Select all | Line number On/Off | Expand/Contract
 
find
74 09 3C 20 74 0A 83 FA 1F 7E EC
 
replace width
74 09 3C 20 74 0A 83 FA 1E 7E EC
CU programul hexadecimal editor
PS: vedeti ca a aparut ultima varianta dproto 0.8.72

Modificate de mine
Linux
Win
Last edited by THC dark on 25 Sep 2010, 23:13, edited 4 times in total.
Servere Hostate in UK-Anglia--info = http://www.pow3rful.com

Image

Image
roxana18
Membru, skill 0
Membru, skill 0
Posts: 25
Joined: 13 Jul 2010, 13:53
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com!
Been thanked: 1 time
Contact:

24 Sep 2010, 12:56

Care este varianta mai buna de rezolvare a problemei?
User avatar
RAZVANN.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3610
Joined: 03 Nov 2008, 21:07
Detinator Steam: Da
CS Status: Excelent
SteamID: Privat
Reputatie: Fost moderator ajutator
Utilizator neserios ( tepar )
Has thanked: 206 times
Been thanked: 179 times

24 Sep 2010, 15:10

pai momentan pluginul dat de bobi .. mie nu mi sa mai oprit svu de ieri seara pana acum .. :D
THC dark
Membru, skill +1
Membru, skill +1
Posts: 336
Joined: 03 Dec 2007, 00:34
Detinator Steam: Da
CS Status: CS 1.6 rulez
Detinator server CS: Classic.pow3rful.com
SteamID: pm for it...
Has thanked: 2 times
Been thanked: 10 times

24 Sep 2010, 23:43

eu am facut ce a zis Crock (si cine este el (cel ce a facut dproto)
totu merge bine de 3 zile am servere si pe linux si pe win si toate merg bine acu cel de win imi cadea in fiecare zi plus 2-3 restarturi fara nici macar o eroare ..
daca nu stiti cum sa faceti va pot pune link la cele modificate de mine
Servere Hostate in UK-Anglia--info = http://www.pow3rful.com

Image

Image
User avatar
H3adShoT
Membru, skill +3
Membru, skill +3
Posts: 1254
Joined: 03 May 2009, 19:19
Detinator Steam: Da
CS Status: Nu mai incercati sa-mi furati contul!
Detinator server CS: Nimic
SteamID: PM
Reputatie: Restrictie moderator
Location: Hunedoara
Has thanked: 47 times
Been thanked: 92 times
Contact:

25 Sep 2010, 22:01

THC dark wrote:eu am facut ce a zis Crock (si cine este el (cel ce a facut dproto)
totu merge bine de 3 zile am servere si pe linux si pe win si toate merg bine acu cel de win imi cadea in fiecare zi plus 2-3 restarturi fara nici macar o eroare ..
daca nu stiti cum sa faceti va pot pune link la cele modificate de mine
ai dreptate
de cand am facut ce a zis crock acum nu mai am probleme cu serverul
Retras din activitate.
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 14:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

25 Sep 2010, 22:54

bobitzone pentru texte lungi foloseste Sursa=
Nick: MiSteR D
Image
THC dark
Membru, skill +1
Membru, skill +1
Posts: 336
Joined: 03 Dec 2007, 00:34
Detinator Steam: Da
CS Status: CS 1.6 rulez
Detinator server CS: Classic.pow3rful.com
SteamID: pm for it...
Has thanked: 2 times
Been thanked: 10 times

25 Sep 2010, 23:15

adaugat link de descarcare mai sus ..
Servere Hostate in UK-Anglia--info = http://www.pow3rful.com

Image

Image
User avatar
UnQ.DeViL
Membru, skill 0
Membru, skill 0
Posts: 5
Joined: 06 Apr 2010, 15:30
Detinator Steam: Da
CS Status: Lucrez !
Detinator server CS: CS.XPG.RO
SteamID: gaby219
Location: Bucuresti
Has thanked: 3 times
Contact:

27 Sep 2010, 01:32

eu dupa ce am facut ce a zis bobi n-am mai avut probleme cu eroarea segmentation multam
Image
Va asteptam pe http://www.xpg.ro
Admine pe redirecte doar pe forum sau ID [email protected]
Image
Image
Image
Image
bossuunikat
Membru, skill 0
Membru, skill 0
Posts: 14
Joined: 01 Dec 2009, 18:18
Detinator Steam: Da
CS Status: Ma joc jb.expertcs.info
Detinator server CS: Jb.expertcs.info
Has thanked: 1 time

16 Oct 2010, 00:29

Cea mai buna metoda de rezolvare este una foarte simpla.
Modificati hlds_run
adica in loc de linia:
DEBUG=0
puneti
DEBUG=""

Am un server jailbreak care aproape in fiecare ora dadea aceasta eroare.
De cand am adaugat asta nu mai da nici o eroare...
Testati si sa vedeti :)
User avatar
KrAiD.
Fost moderator
Fost moderator
Posts: 866
Joined: 15 Jun 2013, 12:14
Detinator Steam: Da
CS Status: Cat de cat activ :D
Detinator server CS: Nu
Reputatie: Fost Moderator ajutator
0.7 / 3
Has thanked: 14 times
Been thanked: 131 times
Contact:

03 Nov 2013, 16:15

Mutat in sectiunea corespunzatoare !
Post Reply

Return to “Tutoriale”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests