UWAGA
W związku z upgrade'em Forum Wiaderko do vB 4.x ewentualne błędy i nieprawidłowości proszę zgłaszać w tym temacie
Serwery Counter Strike 1.6 wiaderko.com

HashJama [TP] 193.33.176.148:27015 status serwera HashJama [TP] połącz

HashJama [FFA] 193.33.176.188:27015status serwera HashJama [FFA] połącz

HashJama [DM] 193.33.176.53:27015status serwera HashJama [DM] połącz

HashJama [Aim Hs] 193.33.176.15:27015status serwera HashJama [Aim Hs] połącz

HashJama [Flags] 193.33.176.111:27015status serwera HashJama  [Flags] połącz

HashJama [AWP/HG DM] 193.33.176.50:27015status serwera HashJama [AWP/HG DM] 193.33.176.50:27015 połącz

HashJama [TP #2] 193.33.176.54:27015status serwera HashJama [TP #2] 193.33.176.54:27015 połącz

wiaderko.com [Ventrilo] v1.svoice.pl:6416status serwera wiaderko.com [Ventrilo]

SPONSOR:
pukawka.pl

Wątek: [Poradnik] Skrypt tworzący plik mapcycle.txt i maps.ini

Pokaż wyniki od 1 do 4 z 4
  1. #1 [Poradnik] Skrypt tworzący plik mapcycle.txt i maps.ini 
    Super Mod Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,256
    Przedstawiam wam skrypt, dzięki któremu serwer automatycznie stworzy plik mapcycle.txt oraz maps.ini
    1. Pobieramy plik z załącznika.
    2. Rozpakowujemy tak, żeby plik wylądował w katalogu z hlds_run.
    3. Nadajemy mu chmod 755
    4. Edytujemy plik hlds_run - szukamy:
    Kod php:
    # setup the libraries, local dir first!
    export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH" 
    Wklejamy po:

    Kod php:

    #Uzupelniamy mapcycle.txt
    ./make_mapcycle.sh cstrike/mapcycle.txt

    #uzupelniamy maps.ini
    ./make_mapcycle.sh cstrike/addons/amxmodx/configs/maps.ini 
    Teraz przy każdym restarcie serwera (np przez konsolę stworzy nam się gotowy mapcycle).

    Uwaga! Nie działa z niczym innym poza Counter Strike 1.6!

    Poradnik by peku33 dla forum.wiaderko.com.
    Zakaz kopiowania
    Załączone pliki
    PISANIE DO MNIE NA GG Z PROŚBĄ O JAKĄKOLWIEK POMOC NIE JEST MILE WIDZIANE! Numer: 6374959
    Odpowiedz z cytatem  
     

  2. #2 Odp: [Poradnik] Skrypt tworzący plik mapcycle.txt i maps.ini 
    Super Mod Awatar seba
    Dołączył
    Jun 2007
    Wiek
    4
    Posty
    13,379
    Przecież to lepiej zrobić za pomocą amxx ?

    Kod php:
    #include <amxmodx>
    #include <amxmisc>

    public plugin_init()
    {
        
    // maps.ini start
        
    new dirPath 64 ];
        
    get_configsdirdirPathcharsmaxdirPath ) );
        
    formatdirPathcharsmaxdirPath ), "/maps.ini" );
        if ( 
    file_existsdirPath ) )
        {
            
    delete_filedirPath );
        }
        
    // maps.ini end
        
        // mapcycle.txt start
        
    if ( file_exists"mapcycle.txt" ) )
        {
            
    delete_file"mapcycle.txt" );
        }
        
    // mapcycle.txt end
        
        
        
    new fileName32 ];
        new 
    handleDir open_dir"maps/"fileNamecharsmaxfileName ) );
        
        if ( !
    handleDir )
        {
            return;
        }
        
        do {
            if( 
    ValidMap fileName ) ) 
            {        
                
    // maps.ini start
                
    write_filedirPathfileName )
                
    // maps.ini end
                
                // mapcycle.txt start
                
    write_file"mapcycle.txt"fileName )
                
    // mapcycle.txt end    
            
    }        
        }   
        while ( 
    next_filehandleDirfileNamecharsmaxfileName ) ) );
        
        
    close_dirhandleDir );    
    }

    stock bool:ValidMap(mapname[])
    {
        if ( 
    is_map_valid(mapname) )
        {
            return 
    true;
        }
        
    // If the is_map_valid check failed, check the end of the string
        
    new len strlen(mapname) - 4;
        
        
    // The mapname was too short to possibly house the .bsp extension
        
    if (len 0)
        {
            return 
    false;
        }
        if ( 
    equali(mapname[len], ".bsp") )
        {
            
    // If the ending was .bsp, then cut it off.
            // the string is byref'ed, so this copies back to the loaded text.
            
    mapname[len] = '^0';
            
            
    // recheck
            
    if ( is_map_valid(mapname) )
            {
                return 
    true;
            }
        }
        
        return 
    false;

    Powinno dać rade.
    Ostatnio edytowane przez seba ; 14-09-2010 o 07:37
    Odpowiedz z cytatem  
     

  3. #3 Odp: [Poradnik] Skrypt tworzący plik mapcycle.txt i maps.ini 
    Starsza lamka
    Dołączył
    May 2009
    Posty
    42
    A nie powinno być
    Kod php:
    #include <amxmodx>
    #include <amxmisc>

    public plugin_init()
    {
        
    // maps.ini start
        
    new dirPath 64 ];
        
    get_configsdirdirPathcharsmaxdirPath ) );
        
    formatdirPathcharsmaxdirPath ), "/addons/amxmodx/configs/maps.ini" );
        if ( 
    file_existsdirPath ) )
        {
            
    delete_filedirPath );
        }
        
    // maps.ini end
        
        // mapcycle.txt start
        
    if ( file_exists"mapcycle.txt" ) )
        {
            
    delete_file"mapcycle.txt" );
        }
        
    // mapcycle.txt end
        
        
        
    new fileName32 ];
        new 
    handleDir open_dir"maps/"fileNamecharsmaxfileName ) );
        
        if ( !
    handleDir )
        {
            return;
        }
        
        do {
            if( 
    ValidMap fileName ) ) 
            {        
                
    // maps.ini start
                
    write_filedirPathfileName )
                
    // maps.ini end
                
                // mapcycle.txt start
                
    write_file"mapcycle.txt"fileName )
                
    // mapcycle.txt end    
            
    }        
        }   
        while ( 
    next_filehandleDirfileNamecharsmaxfileName ) ) );
        
        
    close_dirhandleDir );    
    }

    stock bool:ValidMap(mapname[])
    {
        if ( 
    is_map_valid(mapname) )
        {
            return 
    true;
        }
        
    // If the is_map_valid check failed, check the end of the string
        
    new len strlen(mapname) - 4;
        
        
    // The mapname was too short to possibly house the .bsp extension
        
    if (len 0)
        {
            return 
    false;
        }
        if ( 
    equali(mapname[len], ".bsp") )
        {
            
    // If the ending was .bsp, then cut it off.
            // the string is byref'ed, so this copies back to the loaded text.
            
    mapname[len] = '^0';
            
            
    // recheck
            
    if ( is_map_valid(mapname) )
            {
                return 
    true;
            }
        }
        
        return 
    false;

    Seba tak jak napisałeś to generuje maps.ini do folderu cstrike, a tak jak zmieniłem to generuje do cstirke/addons/amxmodx/configs ;)
    Odpowiedz z cytatem  
     

  4. #4 Odp: [Poradnik] Skrypt tworzący plik mapcycle.txt i maps.ini 
    Lamka
    Dołączył
    Feb 2012
    Wiek
    22
    Posty
    3
    Coś mi "errory" wyskakują ;/ - jest jakaś na to rada?
    Odpowiedz z cytatem  
     

Podobne wątki

  1. Mapcycle
    By Pagon in forum Koncert Życzeń AIM HS
    Odpowiedzi: 5
    Ostatni post / autor: 05-02-2010, 16:56
  2. [Non Steam] mapcycle
    By Z3L0 in forum Problemy z CS 1.6
    Odpowiedzi: 2
    Ostatni post / autor: 26-11-2009, 21:18
  3. stały mapcycle?;o
    By J0k3` in forum Problem z pluginem AMX/AMXX
    Odpowiedzi: 2
    Ostatni post / autor: 12-10-2009, 16:33
  4. Saints Row 2 - lokalne pliki cache gry się tworzą za długo
    By StroggNiszczyciel in forum Archiwum forum
    Odpowiedzi: 3
    Ostatni post / autor: 16-08-2009, 15:53
  5. Odpowiedzi: 2
    Ostatni post / autor: 21-07-2009, 07:46
  6. mapcycle
    By MichaiL in forum Koncert Życzeń FFA
    Odpowiedzi: 49
    Ostatni post / autor: 03-05-2009, 10:15
  7. mapcycle
    By markos104 in forum Problemy z HLDS
    Odpowiedzi: 2
    Ostatni post / autor: 06-11-2008, 21:03
  8. mapcycle
    By hacker in forum Instalacja gry i podstawy
    Odpowiedzi: 2
    Ostatni post / autor: 02-08-2008, 22:58
  9. Boty na serwer i nie tylko- które tworzą waypointy?
    By tosiek in forum Konfiguracja serwera HLDS Counter Strike 1.6
    Odpowiedzi: 0
    Ostatni post / autor: 20-05-2008, 14:10

Odwiedzający znaleźli tę stronę szukając:

cs mapcycle.txt

gdzie jest mapcycle.txt

skrypt tworzacy automatycznie

pliki map txt cs

skrypt tworzacy plik

jak z pliku txt zrobic ini

mapcycle plik

maps.ini czy mapcycle

gotowy maps ini do cs

mapcycle gdzie jest

mapcycle.txt download

Skrypt polacz pliki txt

2 mapcycle

maps.ini mapcycle

maps.ini download

gotowy mapcykl

skrypt tworzący plik

skrypt tworzacy folder z datą

jak utworzyć plik maps.ini

mapcycle.ini

plik maps.ini

0 map w mapcycle.txt

plik mapcycle gdzie ma

brak pliku maps.ini

gdzie znajde plik mapcycle.tx

Uprawnienia umieszczania postów
  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •