←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

CS:GO
[ROZWIĄZANE] SourceBans - Robię coś źle

Locked

hary's Photo hary 01.06.2013

Nie wiem co robię źlę, ale nie wyświetla mi banów w SourceBans. Chodzi chyba o konfigurację bo nie łączy się z bazą danych.

Logi:

L 06/01/2013 - 10:20:20: [sourcebans.smx] Database failure: Could not find Database conf "sourcebans". See FAQ: http://sourcebans.net/node/19
L 06/01/2013 - 10:22:25: [sourcebans.smx] Database failure: Could not find Database conf "sourcebans". See FAQ: http://sourcebans.net/node/19
L 06/01/2013 - 10:33:10: [sourcebans.smx] Database failure: Could not find Database conf "sourcebans". See FAQ: http://sourcebans.net/node/19

L 06/01/2013 - 10:20:19: SourceMod error session started
L 06/01/2013 - 10:20:19: Info (map "de_dust2") (file "errors_20130601.log")
L 06/01/2013 - 10:20:19: [SM] Detected parse error(s) in file "/data/piootrek16/199820.csgo/csgo/addons/sourcemod/configs/databases.cfg"
L 06/01/2013 - 10:20:19: [SM] Line 51: Section beginning without a matching ending
L 06/01/2013 - 10:20:20: [SM] Plugin encountered error 25: Call was aborted
L 06/01/2013 - 10:20:20: [SM] Native "SetFailState" reported: Database failure: Could not find Database conf "sourcebans"
L 06/01/2013 - 10:20:20: [SM] Displaying call stack trace for plugin "sourcebans.smx":
L 06/01/2013 - 10:20:20: [SM]   [0]  Line 206, D:\scripting\sourcebans.sp::OnPluginStart()
L 06/01/2013 - 10:20:20: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 06/01/2013 - 10:20:20: [SM] Native "SetMenuTitle" reported: Language phrase "Please select a map" not found
L 06/01/2013 - 10:20:20: [SM] Displaying call stack trace for plugin "basecommands.smx":
L 06/01/2013 - 10:20:20: [SM]   [0]  Line 85, /home/builds/sourcemod/linux-1.5/build/plugins/basecommands.sp::OnPluginStart()
L 06/01/2013 - 10:20:20: [SM] Unable to load plugin "hlstatsx.smx": Native "BfWriteByte" was not found
L 06/01/2013 - 10:20:20: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 06/01/2013 - 10:20:20: [SM] Native "SetMenuTitle" reported: Language phrase "Please select a map" not found
L 06/01/2013 - 10:20:20: [SM] Displaying call stack trace for plugin "basevotes.smx":
L 06/01/2013 - 10:20:20: [SM]   [0]  Line 122, /home/builds/sourcemod/linux-1.5/build/plugins/basevotes.sp::OnPluginStart()
L 06/01/2013 - 10:22:25: Error log file session closed.
L 06/01/2013 - 10:22:25: SourceMod error session started
L 06/01/2013 - 10:22:25: Info (map "de_dust2") (file "errors_20130601.log")
L 06/01/2013 - 10:22:25: [SM] Detected parse error(s) in file "/data/piootrek16/199820.csgo/csgo/addons/sourcemod/configs/databases.cfg"
L 06/01/2013 - 10:22:25: [SM] Line 51: Section beginning without a matching ending
L 06/01/2013 - 10:22:25: [SM] Plugin encountered error 25: Call was aborted
L 06/01/2013 - 10:22:25: [SM] Native "SetFailState" reported: Database failure: Could not find Database conf "sourcebans"
L 06/01/2013 - 10:22:25: [SM] Displaying call stack trace for plugin "sourcebans.smx":
L 06/01/2013 - 10:22:25: [SM]   [0]  Line 206, D:\scripting\sourcebans.sp::OnPluginStart()
L 06/01/2013 - 10:22:25: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 06/01/2013 - 10:22:25: [SM] Native "SetMenuTitle" reported: Language phrase "Please select a map" not found
L 06/01/2013 - 10:22:25: [SM] Displaying call stack trace for plugin "basecommands.smx":
L 06/01/2013 - 10:22:25: [SM]   [0]  Line 85, /home/builds/sourcemod/linux-1.5/build/plugins/basecommands.sp::OnPluginStart()
L 06/01/2013 - 10:22:25: [SM] Unable to load plugin "hlstatsx.smx": Native "BfWriteByte" was not found
L 06/01/2013 - 10:22:25: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 06/01/2013 - 10:22:25: [SM] Native "SetMenuTitle" reported: Language phrase "Please select a map" not found
L 06/01/2013 - 10:22:25: [SM] Displaying call stack trace for plugin "basevotes.smx":
L 06/01/2013 - 10:22:25: [SM]   [0]  Line 122, /home/builds/sourcemod/linux-1.5/build/plugins/basevotes.sp::OnPluginStart()
L 06/01/2013 - 10:22:25: [UPDATER] --- BEGIN ERRORS FROM AUTOMATIC UPDATER ---
L 06/01/2013 - 10:22:25: [UPDATER] Could not download "http://update.sourcemod.net/update/"
L 06/01/2013 - 10:22:25: [UPDATER] Error: The requested URL returned error: 417
L 06/01/2013 - 10:22:25: [UPDATER] --- END ERRORS FROM AUTOMATIC UPDATER ---
L 06/01/2013 - 10:33:10: Error log file session closed.
L 06/01/2013 - 10:33:10: SourceMod error session started
L 06/01/2013 - 10:33:10: Info (map "de_train") (file "errors_20130601.log")
L 06/01/2013 - 10:33:10: [SM] Detected parse error(s) in file "/data/piootrek16/199820.csgo/csgo/addons/sourcemod/configs/databases.cfg"
L 06/01/2013 - 10:33:10: [SM] Line 51: Section beginning without a matching ending
L 06/01/2013 - 10:33:10: [SM] Plugin encountered error 25: Call was aborted
L 06/01/2013 - 10:33:10: [SM] Native "SetFailState" reported: Database failure: Could not find Database conf "sourcebans"
L 06/01/2013 - 10:33:10: [SM] Displaying call stack trace for plugin "sourcebans.smx":
L 06/01/2013 - 10:33:10: [SM]   [0]  Line 206, D:\scripting\sourcebans.sp::OnPluginStart()
L 06/01/2013 - 10:33:10: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 06/01/2013 - 10:33:10: [SM] Native "SetMenuTitle" reported: Language phrase "Please select a map" not found
L 06/01/2013 - 10:33:10: [SM] Displaying call stack trace for plugin "basecommands.smx":
L 06/01/2013 - 10:33:10: [SM]   [0]  Line 85, /home/builds/sourcemod/linux-1.5/build/plugins/basecommands.sp::OnPluginStart()
L 06/01/2013 - 10:33:10: [SM] Unable to load plugin "hlstatsx.smx": Native "BfWriteByte" was not found
L 06/01/2013 - 10:33:10: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 06/01/2013 - 10:33:10: [SM] Native "SetMenuTitle" reported: Language phrase "Please select a map" not found
L 06/01/2013 - 10:33:10: [SM] Displaying call stack trace for plugin "basevotes.smx":
L 06/01/2013 - 10:33:10: [SM]   [0]  Line 122, /home/builds/sourcemod/linux-1.5/build/plugins/basevotes.sp::OnPluginStart()

Plik databases.cfg

"Databases"
{
    "driver_default"        "mysql"
    
    // When specifying "host", you may use an IP address, a hostname, or a socket file path
    
    "default"
    {
        "driver"            "default"
        "host"                "localhost"
        "database"            "sourcemod"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        //"port"            "0"
    }
    
    "storage-local"
    {
        "driver"            "sqlite"
        "database"            "sourcemod-local"
    }

    "clientprefs"
    {
        "driver"            "sqlite"
        "host"                "localhost"
        "database"            "clientprefs-sqlite"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        //"port"            "0"
    }
    
    "Databases"
{
    "driver_default"        "mysql"
    
    "sourcebans"
    {
        "driver"        "mysql"
        "host"            "91.239.67.175"    
        "database"        "virt101226_bany"    
        "user"            "virt101226_sb"        
        "pass"            "XXX"    
        //"timeout"        "0"
        "port"            "3306"
    }
}
Quote

  • +
  • -
Cypis''s Photo Cypis' 01.06.2013

Najpierw musisz zainstalować skypt sourcebans, a później plugin
Quote

  • +
  • -
JaBydlak's Photo JaBydlak 01.06.2013

Tak powinno być...

 

"Databases"
{
    "driver_default"        "mysql"
    
    // When specifying "host", you may use an IP address, a hostname, or a socket file path
    
    "default"
    {
        "driver"            "default"
        "host"                "localhost"
        "database"            "sourcemod"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        //"port"            "0"
    }
    
    "storage-local"
    {
        "driver"            "sqlite"
        "database"            "sourcemod-local"
    }

    "clientprefs"
    {
        "driver"            "sqlite"
        "host"                "localhost"
        "database"            "clientprefs-sqlite"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        //"port"            "0"
    }
    "sourcebans"
    {
        "driver"        "mysql"
        "host"            "91.239.67.175"    
        "database"        "virt101226_bany"    
        "user"            "virt101226_sb"        
        "pass"            "XXX"    
        //"timeout"        "0"
        "port"            "3306"
    }
}

 

Quote

hary's Photo hary 03.06.2013

Cypis mam zainstalowany skrypt http://clearskill.eu/bany/

 

mikrus mógł byś jakoś inaczej wkelić ten cały kod? Bo wszystko jest w jednej linii.

Quote

  • +
  • -
Cypis''s Photo Cypis' 03.06.2013

Z tego loga
[sourcebans.smx] Database failure: Could not find Database conf "sourcebans"
można wywnioskować że źle skonfigurowałeś połączenie do bazy w pliku databases.cfg

P.S
Cały plik databases.cfg masz źle zrobiony (patrząc po pierwszym poście).
Quote

hary's Photo hary 04.06.2013

No, a mikrus podał mi database w jednej linii i nie mam jak tego skopiować.

Quote

hary's Photo hary 04.06.2013

Zasłużony ten karny minus. Mogłem od razu sprawdzić to bym wiedział, że kopiuje się normalnie.

O kurde post pod postem. Proszę o scalenie.

 

Co do tematu jest lepiej bo sb łączy się z bazą, ale nie wiem czemu w menu admina nie mam opcji banuj tylko dwa razy uderz gracza. Jedynie działa komenda sm_ban

 

[uwaga='Kawon']Posty zostały połączone.[/uwaga]

Quote

  • +
  • -
Cypis''s Photo Cypis' 04.06.2013

Wyłączyłeś standardowy plugin od banowania ?
Quote

hary's Photo hary 05.06.2013

Wszystko już działa. Dzięki za pomoc.

Quote

  • +
  • -
Kawon's Photo Kawon 05.06.2013

Wiadomość wygenerowana automatycznie


Ten temat został zamknięty przez moderatora.

Powód: Pomoc udzielona

Jeśli się z tym nie zgadzasz, report.png raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.


Z pozdrowieniami,
Zespół AMXX.PL
Quote
Locked