Closed Neubivljiv closed 8 years ago
Exactly what OS are you using?
Ubuntu Server 15.04 (Vivid Vervet) 64-bit
try putting your internal ip on both lines if not, do not connect on file with bnet.conf
When I set only internal IP address I also could not connect (also no logs/no connection). So I set this: servaddrs = "192.168.0.7,EXTERNAL_IP_ADDRESS" w3routeaddr = "0.0.0.0:6200"
But still the same:
Oct 09 20:44:53 [info ] _setup_listensock: listening for bnet connections on 192.168.0.7:6112 TCP Oct 09 20:44:53 [info ] _setup_listensock: listening for bnet connections on EXTERNAL_IP_ADDRESS:6112 TCP Oct 09 20:44:53 [info ] _setup_listensock: listening for w3route connections on 0.0.0.0:6200 TCP
Ports are open...have no idea why I receive this:
Oct 09 20:44:59 [trace] conn_shutdown: [19] connection allready closed
You should be able to connect with the default configuration. I don't know why you can't connect. The sendto() error indicates a larger problem though....
Well, I didnt change anything (all default) but only server IP - servaddrs I will try to reinstall all...
Is it possible you could try a different OS or an older commit?
example configuration in bnet.conf
servaddrs = "192.168.0.7:6112" w3routeaddr = "192.168.0.7:6200"
try this
servaddrs = ":"
w3routeaddr = "0.0.0.0:6200"
Tried both, but still the same. However, I removed all and tried to reinstall. Now I get this when I run build (with make)
In file included from /home/pvpgn-server/src/common/fdwatch_select.h:29:0, from /home/pvpgn-server/src/common/fdwatch.cpp:29: /home/pvpgn-server/src/common/scoped_ptr.h:42:38: error: expected ')' before '<' token explicit scoped_ptr(std::unique_ptr
& aptr) ^ src/common/CMakeFiles/common.dir/build.make:261: recipe for target 'src/common/CMakeFiles/common.dir/fdwatch.cpp.o' failed make[2]: * [src/common/CMakeFiles/common.dir/fdwatch.cpp.o] Error 1 CMakeFiles/Makefile2:295: recipe for target 'src/common/CMakeFiles/common.dir/all' failed make[1]: * [src/common/CMakeFiles/common.dir/all] Error 2 Makefile:126: recipe for target 'all' failed make: *\ [all] Error 2
Strange...because this working fine earlier...
That was an error that I made when I added the C++11 flag to the compiler arguments, you'll need to manually remove the -ansi flag from the cmake file or temporarily use my repository: https://github.com/xboi209/pvpgn
Tried and it's working. However, got the same problem:
Unable to connect. You may be trying to connect to an invalid Battle.net server...etc. All logs are the same (tried all possible combinations for servaddrs and w3routeaddr).
I am using BattleNet Gateway editor (also tried suggested gateway editor). When I click Detect Gateway via BNGateWay editor I get the following:
Attempt to connect Gateway gamers.host (EXTERNAL_IP)... Connected! Time:60ms.
Edit: Also tried on Windows with magic builder. I have Visual Studio 2015 (Community). When I start .bat I get this:
v2.10 is the latest version ... Visual Studio is not installed
maybe port 6112 used by ghost++ ?
Bots are on another servers. Will try again later, but problem is that I don't know what is cause of this...
Use the default configuration and try connecting through 127.0.0.1 instead of your public ip address
i will try install it too, and will update progress soon
Success compiled on Ubuntu 14.04 LTS Using https://github.com/xboi209/pvpgn success login to bnet when try create new account, the server shutdown / crash
Oct 11 14:39:48 [info ] lua_load: Lua sripts were successfully loaded (42 files)
Oct 11 14:39:48 [info ] /usr/local/var/pvpgn/lua/antihack/starcraft.lua:20: Starcraft Antihack activated
Oct 11 14:39:48 [info ] _setup_listensock: listening for bnet connections on 0.0.0.0:6112 TCP
Oct 11 14:39:48 [info ] _setup_listensock: listening for w3route connections on 0.0.0.0:6200 TCP
Oct 11 14:41:41 [debug] ipbanlist_check: lastcheck: 0, now: 1444588901, now-lc: 1444588901.
Oct 11 14:41:41 [debug] ipbanlist_check: checking 128.199.142.1
Oct 11 14:41:41 [info ] sd_accept: [17] accepted connection from 128.199.142.1:59546 on 0.0.0.0:6112
Oct 11 14:41:41 [info ] conn_create: [17][15] sessionkey=0x3d918022 sessionnum=0x00000000
Oct 11 14:41:41 [debug] sd_accept: [17] client connected to a bnet listening address
Oct 11 14:41:41 [debug] sd_tcpinput: [17] read returned -1 (closing connection)
Oct 11 14:41:41 [trace] conn_shutdown: [17] connection allready closed
Oct 11 14:41:41 [info ] conn_destroy: [17] closed init connection
Oct 11 14:41:42 [debug] ipbanlist_check: lastcheck: 1444588901, now: 1444588902, now-lc: 1.
Oct 11 14:41:42 [debug] ipbanlist_check: checking 128.199.142.1
Oct 11 14:41:42 [info ] sd_accept: [17] accepted connection from 128.199.142.1:59547 on 0.0.0.0:6112
Oct 11 14:41:42 [info ] conn_create: [17][15] sessionkey=0x32265d2f sessionnum=0x00000001
Oct 11 14:41:42 [debug] sd_accept: [17] client connected to a bnet listening address
Oct 11 14:41:42 [debug] sd_tcpinput: [17] read returned -1 (closing connection)
Oct 11 14:41:42 [trace] conn_shutdown: [17] connection allready closed
Oct 11 14:41:42 [info ] conn_destroy: [17] closed init connection
Oct 11 14:41:57 [debug] ipbanlist_check: lastcheck: 1444588901, now: 1444588917, now-lc: 16.
Oct 11 14:41:57 [debug] ipbanlist_check: checking 128.199.142.1
Oct 11 14:41:57 [info ] sd_accept: [17] accepted connection from 128.199.142.1:59548 on 0.0.0.0:6112
Oct 11 14:41:57 [info ] conn_create: [17][15] sessionkey=0x22aa1904 sessionnum=0x00000002
Oct 11 14:41:57 [debug] sd_accept: [17] client connected to a bnet listening address
Oct 11 14:41:57 [info ] handle_init_packet: [17] client initiated bnet connection
Oct 11 14:41:57 [trace] conn_shutdown: [17] connection allready closed
Oct 11 14:41:57 [debug] conn_set_class: added latency check timer
Oct 11 14:41:57 [debug] _client_countryinfo109: [17] COUNTRYINFO_109 packet tzbias=0xfffffe5c(-420) lcid=1033 langid=1033 arch="IX86" client="W3XP" versionid=0x00000018 gamelang="enUS"
Oct 11 14:41:57 [debug] _client_countryinfo109: [17] COUNTRYINFO_109 packet from "United States" "USA"
Oct 11 14:41:57 [info ] conn_set_archtag: [17] setting client arch to "IX86"
Oct 11 14:41:57 [info ] conn_set_clienttag: [17] setting client type to "W3XP"
Oct 11 14:41:57 [info ] conn_set_gamelang: [17] setting client gamelang to "enUS"
Oct 11 14:41:57 [debug] _client_countryinfo109: [17] selecting version check
Oct 11 14:41:57 [debug] versioncheck_create: version check entry archtag=IX86, clienttag=W3XP
Oct 11 14:41:57 [debug] _client_countryinfo109: [17] selected "IX86ver1.mpq" "A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B"
Oct 11 14:41:57 [debug] ipbanlist_check: lastcheck: 1444588901, now: 1444588917, now-lc: 16.
Oct 11 14:41:57 [debug] ipbanlist_check: checking 128.199.142.1
Oct 11 14:41:57 [info ] sd_accept: [18] accepted connection from 128.199.142.1:59549 on 0.0.0.0:6112
Oct 11 14:41:57 [info ] conn_create: [18][15] sessionkey=0x7cf2511f sessionnum=0x00000003
Oct 11 14:41:57 [debug] sd_accept: [18] client connected to a bnet listening address
Oct 11 14:41:57 [info ] handle_init_packet: [18] client initiated file download connection
Oct 11 14:41:57 [trace] conn_shutdown: [18] connection allready closed
Oct 11 14:41:57 [info ] file_send: [18] sending file "IX86ver1.mpq" ("/usr/local/var/pvpgn/files/IX86ver1.mpq") of length 6963
Oct 11 14:41:57 [debug] sd_tcpinput: [18] read returned -1 (closing connection)
Oct 11 14:41:57 [info ] conn_destroy: [18] closed file connection
Oct 11 14:41:58 [info ] _client_authreq109: [17] CLIENT_AUTHREQ_109 ticks=0x06c33719, verstr=1.24.1.230 exeinfo="war3.exe 08/07/09 19:20:53 471040" versionid=0x00000018 gameversion=0x011801e6 checksum=0xcaa59e30
Oct 11 14:41:58 [info ] versioncheck_validate: got a matching entry: W3XP_124B
Oct 11 14:41:58 [info ] _client_authreq109: [17] client matches versiontag "W3XP_124B"
Oct 11 14:41:58 [info ] _client_authreq109: [17] no upgrade for W3XP_124B is available
Oct 11 14:41:58 [info ] _client_fileinforeq: [17] file requested: "termsofservice-enUS.txt" - type = 0x01
Oct 11 14:41:58 [info ] _client_fileinforeq: [17] file requested: "newaccount-enUS.txt" - type = 0x02
Oct 11 14:41:58 [info ] _client_fileinforeq: [17] file requested: "chathelp-war3-enUS.txt" - type = 0x03
Oct 11 14:41:58 [debug] ipbanlist_check: lastcheck: 1444588901, now: 1444588918, now-lc: 17.
Oct 11 14:41:58 [debug] ipbanlist_check: checking 128.199.142.1
Oct 11 14:41:58 [info ] sd_accept: [18] accepted connection from 128.199.142.1:59550 on 0.0.0.0:6112
Oct 11 14:41:58 [info ] conn_create: [18][15] sessionkey=0x7594da7f sessionnum=0x00000004
Oct 11 14:41:58 [debug] sd_accept: [18] client connected to a bnet listening address
Oct 11 14:41:58 [info ] handle_init_packet: [18] client initiated file download connection
Oct 11 14:41:58 [trace] conn_shutdown: [18] connection allready closed
Oct 11 14:41:58 [debug] ipbanlist_check: lastcheck: 1444588901, now: 1444588918, now-lc: 17.
Oct 11 14:41:58 [debug] ipbanlist_check: checking 128.199.142.1
Oct 11 14:41:58 [info ] sd_accept: [19] accepted connection from 128.199.142.1:59551 on 0.0.0.0:6112
Oct 11 14:41:58 [info ] conn_create: [19][15] sessionkey=0x6b019dec sessionnum=0x00000005
Oct 11 14:41:58 [debug] sd_accept: [19] client connected to a bnet listening address
Oct 11 14:41:58 [info ] handle_init_packet: [19] client initiated file download connection
Oct 11 14:41:58 [trace] conn_shutdown: [19] connection allready closed
Oct 11 14:41:58 [info ] file_send: [18] sending file "termsofservice-enUS.txt" ("/usr/local/etc/pvpgn/i18n/termsofservice.txt") of length 1402
Oct 11 14:41:58 [info ] file_send: [19] sending file "newaccount-enUS.txt" ("/usr/local/etc/pvpgn/i18n/newaccount.txt") of length 1423
Oct 11 14:41:58 [debug] ipbanlist_check: lastcheck: 1444588901, now: 1444588918, now-lc: 17.
Oct 11 14:41:58 [debug] ipbanlist_check: checking 128.199.142.1
Oct 11 14:41:58 [info ] sd_accept: [20] accepted connection from 128.199.142.1:59552 on 0.0.0.0:6112
Oct 11 14:41:58 [info ] conn_create: [20][15] sessionkey=0x78ab84a4 sessionnum=0x00000006
Oct 11 14:41:58 [debug] sd_accept: [20] client connected to a bnet listening address
Oct 11 14:41:58 [info ] handle_init_packet: [20] client initiated file download connection
Oct 11 14:41:58 [trace] conn_shutdown: [20] connection allready closed
Oct 11 14:41:58 [debug] ipbanlist_check: lastcheck: 1444588901, now: 1444588918, now-lc: 17.
Oct 11 14:41:58 [debug] ipbanlist_check: checking 128.199.142.1
Oct 11 14:41:58 [info ] sd_accept: [21] accepted connection from 128.199.142.1:59553 on 0.0.0.0:6112
Oct 11 14:41:58 [info ] conn_create: [21][15] sessionkey=0x2ff86cb5 sessionnum=0x00000007
Oct 11 14:41:58 [debug] sd_accept: [21] client connected to a bnet listening address
Oct 11 14:41:58 [info ] handle_init_packet: [21] client initiated file download connection
Oct 11 14:41:58 [trace] conn_shutdown: [21] connection allready closed
Oct 11 14:41:58 [debug] sd_tcpinput: [18] read returned -1 (closing connection)
Oct 11 14:41:58 [info ] conn_destroy: [18] closed file connection
Oct 11 14:41:58 [debug] sd_tcpinput: [19] read returned -1 (closing connection)
Oct 11 14:41:58 [info ] conn_destroy: [19] closed file connection
Oct 11 14:41:58 [info ] file_send: [20] sending file "chathelp-war3-enUS.txt" ("/usr/local/etc/pvpgn/i18n/chathelp-war3.txt") of length 351
Oct 11 14:41:58 [info ] file_send: [21] sending file "icons-WAR3.bni" ("/usr/local/var/pvpgn/files/icons-WAR3.bni") of length 36931
Oct 11 14:41:58 [debug] sd_tcpinput: [21] read returned -1 (closing connection)
Oct 11 14:41:58 [info ] conn_destroy: [21] closed file connection
Oct 11 14:41:58 [debug] sd_tcpinput: [20] read returned -1 (closing connection)
Oct 11 14:41:58 [info ] conn_destroy: [20] closed file connection
Oct 11 14:41:59 [info ] _client_fileinforeq: [17] file requested: "bnserver-WAR3.ini" - type = 0x05
Oct 11 14:41:59 [debug] ipbanlist_check: lastcheck: 1444588901, now: 1444588919, now-lc: 18.
Oct 11 14:41:59 [debug] ipbanlist_check: checking 128.199.142.1
Oct 11 14:41:59 [info ] sd_accept: [18] accepted connection from 128.199.142.1:59554 on 0.0.0.0:6112
Oct 11 14:41:59 [info ] conn_create: [18][15] sessionkey=0x0745c52b sessionnum=0x00000008
Oct 11 14:41:59 [debug] sd_accept: [18] client connected to a bnet listening address
Oct 11 14:41:59 [info ] handle_init_packet: [18] client initiated file download connection
Oct 11 14:41:59 [trace] conn_shutdown: [18] connection allready closed
Oct 11 14:41:59 [info ] file_send: [18] sending file "bnserver-WAR3.ini" ("/usr/local/var/pvpgn/files/bnserver-WAR3.ini") of length 352
Oct 11 14:41:59 [debug] sd_tcpinput: [18] read returned -1 (closing connection)
Oct 11 14:41:59 [info ] conn_destroy: [18] closed file connection
Oct 11 14:42:10 [debug] _client_createaccountw3: This looks more like a plaintext password than like a verifier
Oct 11 14:42:10 [debug] _client_createaccountw3: [17] new account requested for "anonprophet"
Oct 11 14:42:10 [debug] plain_write_attrs: saving attribute key="BNET\acct\ctime" val="1444588930"
Oct 11 14:42:10 [debug] plain_write_attrs: saving attribute key="BNET\acct\userid" val="1"
Oct 11 14:42:10 [debug] plain_write_attrs: saving attribute key="BNET\acct\passhash1" val="cc5cb58e6d72a5e674df49d9af1cba3f05b1fd44"
Oct 11 14:42:10 [debug] plain_write_attrs: saving attribute key="BNET\acct\username" val="anonprophet"
got error on putty after crash
root@sg03:/usr/local/var/pvpgn# cd log*** Error in `./bnetd': free(): invalid next size (fast): 0x0000000000f80e60 ***
Running ./bnetd again Login with account created before Success, nothing problem
use default setting, nothing file i change
Thank you for the information. I will try on Ubuntu 14.04 also...
Tested and no success again. However, I compared logs and difference is this:
Oct 11 14:41:57 [info ] file_send: [18] sending file "IX86ver1.mpq" ("/usr/local/var/pvpgn/files/IX86ver1.mpq") of length 6963
I never get this log (but all before), so I thought I was file permissions problem or something. I set file full permissions for folder /usr/local/var/pvpgn/files/ but still the same. This is my last log (after that nothing is logged):
Oct 12 11:01:09 [debug] _client_countryinfo109: [18] selected "IX86ver1.mpq" "A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B" Oct 12 11:01:09 [debug] sd_tcpinput: [18] read returned -1 (closing connection) Oct 12 11:01:09 [info ] conn_destroy: [18] closed bnet connection
Or maybe recent W3 version (1.26.xxx) is not supported?
Also tried to connect: server.pvpgn.pro Got the same error (Unable to connect...) in W3. Seems that 1.26 is not supported.
what is ur pvpgn IP? i will try login using my WC3
Use this https://code.google.com/p/utpbnet/downloads/detail?name=pvpgn%20loader%20for%201.26a.zip&can=2&q=
or http://www.mediafire.com/download/b4jzbbkw0ywaffn/pvpgn+loader+for+1.26a.zip exctract to your wc3 folder and run w3l.exe as administrator
Currently this is pvpgn IP: 185.101.95.50
yes, i can connect using 1.24b client . but ur server crash after i try to create new account (like i post before) Please run it again, so i can login with my created account on your server
@xboi209 @HarpyWar i think its new bug
Yes, I see. This is your log (just for informations):
Oct 12 12:17:39 [info ] sd_accept: [18] accepted connection from 36.77.XXX.XX:65485 on 0.0.0.0:6112 Oct 12 12:17:39 [info ] conn_create: [18][16] sessionkey=0x32276d6a sessionnum=0x00000001 Oct 12 12:17:39 [debug] sd_accept: [18] client connected to a bnet listening address Oct 12 12:17:39 [debug] sd_tcpinput: [18] read returned -1 (closing connection) Oct 12 12:17:39 [trace] conn_shutdown: [18] connection allready closed Oct 12 12:17:39 [info ] conn_destroy: [18] closed init connection Oct 12 12:17:40 [debug] ipbanlist_check: lastcheck: 1444666659, now: 1444666660, now-lc: 1. Oct 12 12:17:40 [debug] ipbanlist_check: checking 36.77.XXX.XX Oct 12 12:17:40 [info ] sd_accept: [18] accepted connection from 36.77.XXX.XX:65486 on 0.0.0.0:6112 Oct 12 12:17:40 [info ] conn_create: [18][16] sessionkey=0x22ab2955 sessionnum=0x00000002 Oct 12 12:17:40 [debug] sd_accept: [18] client connected to a bnet listening address Oct 12 12:17:40 [debug] sd_tcpinput: [18] read returned -1 (closing connection) Oct 12 12:17:40 [trace] conn_shutdown: [18] connection allready closed Oct 12 12:17:40 [info ] conn_destroy: [18] closed init connection Oct 12 12:17:51 [debug] ipbanlist_check: lastcheck: 1444666659, now: 1444666671, now-lc: 12. Oct 12 12:17:51 [debug] ipbanlist_check: checking 36.77.XXX.XX Oct 12 12:17:51 [info ] sd_accept: [18] accepted connection from 36.77.XXX.XX:65487 on 0.0.0.0:6112 Oct 12 12:17:51 [info ] conn_create: [18][16] sessionkey=0x7cf36145 sessionnum=0x00000003 Oct 12 12:17:51 [debug] sd_accept: [18] client connected to a bnet listening address Oct 12 12:17:51 [info ] handle_init_packet: [18] client initiated bnet connection Oct 12 12:17:51 [trace] conn_shutdown: [18] connection allready closed Oct 12 12:17:51 [debug] conn_set_class: added latency check timer Oct 12 12:17:51 [debug] _client_countryinfo109: [18] COUNTRYINFO_109 packet tzbias=0xfffffe5c(-420) lcid=1033 langid=1033 arch="IX86" client="W3XP" versionid=0x00000018 gamelang="enUS" Oct 12 12:17:51 [debug] _client_countryinfo109: [18] COUNTRYINFO_109 packet from "United States" "USA" Oct 12 12:17:51 [info ] conn_set_archtag: [18] setting client arch to "IX86" Oct 12 12:17:51 [info ] conn_set_clienttag: [18] setting client type to "W3XP" Oct 12 12:17:51 [info ] conn_set_gamelang: [18] setting client gamelang to "enUS" Oct 12 12:17:51 [debug] _client_countryinfo109: [18] selecting version check Oct 12 12:17:51 [debug] versioncheck_create: version check entry archtag=IX86, clienttag=W3XP Oct 12 12:17:51 [debug] _client_countryinfo109: [18] selected "IX86ver1.mpq" "A=3845581634 B=880823580 C=1363937103 4 A=A-S B=B-C C=C-A A=A-B" Oct 12 12:17:52 [debug] ipbanlist_check: lastcheck: 1444666659, now: 1444666672, now-lc: 13. Oct 12 12:17:52 [debug] ipbanlist_check: checking 36.77.XXX.XX Oct 12 12:17:52 [info ] sd_accept: [19] accepted connection from 36.77.XXX.XX:65488 on 0.0.0.0:6112 Oct 12 12:17:52 [info ] conn_create: [19][16] sessionkey=0x7595ea39 sessionnum=0x00000004 Oct 12 12:17:52 [debug] sd_accept: [19] client connected to a bnet listening address Oct 12 12:17:52 [info ] handle_init_packet: [19] client initiated file download connection Oct 12 12:17:52 [trace] conn_shutdown: [19] connection allready closed Oct 12 12:17:52 [info ] file_send: [19] sending file "IX86ver1.mpq" ("/usr/local/pvpgn/var/pvpgn/files/IX86ver1.mpq") of length 6963 Oct 12 12:17:53 [debug] sd_tcpinput: [19] read returned -1 (closing connection) Oct 12 12:17:53 [info ] conn_destroy: [19] closed file connection Oct 12 12:17:53 [info ] _client_authreq109: [18] CLIENT_AUTHREQ_109 ticks=0x0b65a58a, verstr=1.24.1.230 exeinfo="war3.exe 08/07/09 19:20:53 471040" versionid=0x00000018 gameversion=0x011801e6 checksum=0xcaa59e30 Oct 12 12:17:53 [info ] versioncheck_validate: got a matching entry: W3XP_124B Oct 12 12:17:53 [info ] _client_authreq109: [18] client matches versiontag "W3XP_124B" Oct 12 12:17:53 [info ] _client_authreq109: [18] no upgrade for W3XP_124B is available Oct 12 12:17:53 [info ] _client_fileinforeq: [18] file requested: "termsofservice-enUS.txt" - type = 0x01 Oct 12 12:17:53 [info ] _client_fileinforeq: [18] file requested: "newaccount-enUS.txt" - type = 0x02 Oct 12 12:17:53 [info ] _client_fileinforeq: [18] file requested: "chathelp-war3-enUS.txt" - type = 0x03 Oct 12 12:17:53 [debug] ipbanlist_check: lastcheck: 1444666659, now: 1444666673, now-lc: 14. Oct 12 12:17:53 [debug] ipbanlist_check: checking 36.77.XXX.XX Oct 12 12:17:53 [info ] sd_accept: [19] accepted connection from 36.77.XXX.XX:65489 on 0.0.0.0:6112 Oct 12 12:17:53 [info ] conn_create: [19][16] sessionkey=0x6b00adab sessionnum=0x00000005 Oct 12 12:17:53 [debug] sd_accept: [19] client connected to a bnet listening address Oct 12 12:17:53 [info ] handle_init_packet: [19] client initiated file download connection Oct 12 12:17:53 [trace] conn_shutdown: [19] connection allready closed Oct 12 12:17:54 [debug] ipbanlist_check: lastcheck: 1444666659, now: 1444666674, now-lc: 15. Oct 12 12:17:54 [debug] ipbanlist_check: checking 36.77.XXX.XX Oct 12 12:17:54 [info ] sd_accept: [20] accepted connection from 36.77.XXX.XX:65490 on 0.0.0.0:6112 Oct 12 12:17:54 [info ] conn_create: [20][16] sessionkey=0x78aab4e0 sessionnum=0x00000006 Oct 12 12:17:54 [debug] sd_accept: [20] client connected to a bnet listening address Oct 12 12:17:54 [info ] handle_init_packet: [20] client initiated file download connection Oct 12 12:17:54 [trace] conn_shutdown: [20] connection allready closed Oct 12 12:17:54 [debug] ipbanlist_check: lastcheck: 1444666659, now: 1444666674, now-lc: 15. Oct 12 12:17:54 [debug] ipbanlist_check: checking 36.77.XXX.XX Oct 12 12:17:54 [info ] sd_accept: [21] accepted connection from 36.77.XXX.XX:65491 on 0.0.0.0:6112 Oct 12 12:17:54 [info ] conn_create: [21][16] sessionkey=0x2ff95cf1 sessionnum=0x00000007 Oct 12 12:17:54 [debug] sd_accept: [21] client connected to a bnet listening address Oct 12 12:17:54 [info ] file_send: [19] sending file "termsofservice-enUS.txt" ("/usr/local/pvpgn/etc/pvpgn/i18n/termsofservice.txt") of length 1402 Oct 12 12:17:54 [info ] handle_init_packet: [21] client initiated file download connection Oct 12 12:17:54 [trace] conn_shutdown: [21] connection allready closed Oct 12 12:17:54 [debug] ipbanlist_check: lastcheck: 1444666659, now: 1444666674, now-lc: 15. Oct 12 12:17:54 [debug] ipbanlist_check: checking 36.77.XXX.XX Oct 12 12:17:54 [info ] sd_accept: [22] accepted connection from 36.77.XXX.XX:65492 on 0.0.0.0:6112 Oct 12 12:17:54 [info ] conn_create: [22][16] sessionkey=0x0744f56e sessionnum=0x00000008 Oct 12 12:17:54 [debug] sd_accept: [22] client connected to a bnet listening address Oct 12 12:17:54 [info ] handle_init_packet: [22] client initiated file download connection Oct 12 12:17:54 [trace] conn_shutdown: [22] connection allready closed Oct 12 12:17:54 [info ] file_send: [20] sending file "newaccount-enUS.txt" ("/usr/local/pvpgn/etc/pvpgn/i18n/newaccount.txt") of length 1423 Oct 12 12:17:54 [info ] file_send: [21] sending file "chathelp-war3-enUS.txt" ("/usr/local/pvpgn/etc/pvpgn/i18n/chathelp-war3.txt") of length 351 Oct 12 12:17:54 [info ] file_send: [22] sending file "icons-WAR3.bni" ("/usr/local/pvpgn/var/pvpgn/files/icons-WAR3.bni") of length 36931 Oct 12 12:17:55 [debug] sd_tcpinput: [19] read returned -1 (closing connection) Oct 12 12:17:55 [info ] conn_destroy: [19] closed file connection Oct 12 12:17:55 [debug] sd_tcpinput: [20] read returned -1 (closing connection) Oct 12 12:17:55 [info ] conn_destroy: [20] closed file connection Oct 12 12:17:55 [debug] sd_tcpinput: [21] read returned -1 (closing connection) Oct 12 12:17:55 [info ] conn_destroy: [21] closed file connection Oct 12 12:17:55 [debug] sd_tcpinput: [22] read returned -1 (closing connection) Oct 12 12:17:55 [info ] conn_destroy: [22] closed file connection Oct 12 12:17:56 [info ] _client_fileinforeq: [18] file requested: "bnserver-WAR3.ini" - type = 0x05 Oct 12 12:17:57 [debug] ipbanlist_check: lastcheck: 1444666659, now: 1444666677, now-lc: 18. Oct 12 12:17:57 [debug] ipbanlist_check: checking 36.77.XXX.XX Oct 12 12:17:57 [info ] sd_accept: [19] accepted connection from 36.77.XXX.XX:65493 on 0.0.0.0:6112 Oct 12 12:17:57 [info ] conn_create: [19][16] sessionkey=0x443bfd41 sessionnum=0x00000009 Oct 12 12:17:57 [debug] sd_accept: [19] client connected to a bnet listening address Oct 12 12:17:57 [info ] handle_init_packet: [19] client initiated file download connection Oct 12 12:17:57 [trace] conn_shutdown: [19] connection allready closed Oct 12 12:17:57 [info ] file_send: [19] sending file "bnserver-WAR3.ini" ("/usr/local/pvpgn/var/pvpgn/files/bnserver-WAR3.ini") of length 352 Oct 12 12:17:58 [debug] sd_tcpinput: [19] read returned -1 (closing connection) Oct 12 12:17:58 [info ] conn_destroy: [19] closed file connection Oct 12 12:18:11 [debug] _client_createaccountw3: This looks more like a plaintext password than like a verifier Oct 12 12:18:11 [debug] _client_createaccountw3: [18] new account requested for "anonprophet" Oct 12 12:18:11 [trace] sql_read_account: SELECT uid FROM pvpgn_BNET WHERE username='anonprophet' Oct 12 12:18:11 [trace] sql_create_account: SELECT count() FROM pvpgn_BNET WHERE username='anonprophet' Oct 12 12:18:11 [trace] sql_create_account: DELETE FROM pvpgn_BNET WHERE uid = '1' Oct 12 12:18:11 [trace] sql_create_account: INSERT INTO pvpgn_BNET (uid,username) VALUES('1','anonprophet') Oct 12 12:18:11 [trace] sql_create_account: DELETE FROM pvpgn_profile WHERE uid = '1' Oct 12 12:18:11 [trace] sql_create_account: INSERT INTO pvpgn_profile (uid) VALUES('1') Oct 12 12:18:11 [trace] sql_create_account: DELETE FROM pvpgn_Record WHERE uid = '1' Oct 12 12:18:11 [trace] sql_create_account: INSERT INTO pvpgn_Record (uid) VALUES('1') Oct 12 12:18:11 [trace] sql_create_account: DELETE FROM pvpgn_friend WHERE uid = '1' Oct 12 12:18:11 [trace] sql_create_account: INSERT INTO pvpgn_friend (uid) VALUES('1') Oct 12 12:18:11 [trace] sql_read_attrs: SELECT \ FROM pvpgn_BNET WHERE uid='1' Oct 12 12:18:11 [trace] db_set: UPDATE pvpgn_BNET SET
acct_ctime
= '1444666691' WHERE uid = '1' Oct 12 12:18:11 [trace] sql_write_attrs: ALTER TABLE pvpgn_BNET ADD COLUMNacct_ctime
VARCHAR(128) Oct 12 12:18:11 [trace] db_set: UPDATE pvpgn_BNET SETacct_userid
= '1' WHERE uid = '1' Oct 12 12:18:11 [trace] db_set: UPDATE pvpgn_BNET SETacct_passhash1
= 'PASS_HASH' WHERE uid = '1' Oct 12 12:18:11 [trace] db_set: UPDATE pvpgn_BNET SETacct_username
= 'anonprophet' WHERE uid = '1'
So, W3 version is the problem...Unfortunately our players always used the most recent W3 patch. At least we resolve the dilemma
i will update my client to 1.26a = 1.26.0.6401 can u up ur pvpgn again ? using this http://www.dota-utilities.com/2009/09/warcraft-patch-version-switcher-120-121.html and will post soon
Just noticed...Also got this on putty just after your reg:
root@pvpgn:/usr/local/pvpgn/var/pvpgn# * Error in `/usr/local/pvpgn/sbin/bnetd': free(): invalid next size (fast): 0x0000000000cfb560 *
Server started again...
http://prntscr.com/8qiag9 as u can see im updated my client to 1.26a and use w3l.exe to launch WC3 https://code.google.com/p/utpbnet/downloads/detail?name=pvpgn%20loader%20for%201.26a.zip&can=2&q=
Success login to your bnet http://prntscr.com/8qiaxu
Thanks anonprophet. I will try it.
However, looking at MySQL database structure for pvpgn. Must be optimized. Everywhere missing indexes, relations etc. which is not very good for a large number of users. Easily can be optimized.
no problem, thanks for ur openstats, u and grief many help me, im 69 on codelain and ghostpp if u remember
and if u want make web interface for pvpgn i think u need this http://harpywar.pvpgn.pl/?do=hash
Np. Yea, I remember you. :)
However, I will test w3loader, but seems that it overwrite original w3lh.dll.
It's working. But after reg pvpgn server crashed.
I want to thank @xboi209 and @anonprophet for the support and also add a few details. User registration is currently not working (server crash after creating a new account), so I disabled user registration via W3 and made simple web interface for user registration and manage account .
It's currently connected to our services but the plan is also stand-alone. It is possible to register account via web, manage account (change password) and administration of all users (change all data, auth_admin, operator, lock accounts etc).
Just noticed: "max_accounts" have no effect (I set to 2, already have more accounts and successfully created another account). When I change password in the database (manually or via web), it won't update on the next login until I restart the server again. So I can only login with old password (after server restart a new password working fine).
Can confirm that creating a new account on WC3 causes PvPGN to crash, tried with BW which does not crash PvPGN. Currently trying older commits to see when the bug was introduced.
Edit: It should no longer crash when creating a new account now
@xboi209 Gj. However, change password / password update not working (if you manually change the password you need to restart the server in order to update it).
For some reason, max_accounts in bnetd.conf was commented out so it didn't work at all. My latest commit at the time of this writing has uncommented it now. Could you try using the /save command after changing the password to see if the new password works immediately thereafter?
Yes, it's working when i change the password when I am logged on the server with /chpass command. However, it's not working when I change before I login (there's GUI to change the password), but that's not so important I think. Also, it would be nice to check password everytime when user tried to login, because it can be usefull for web interfaces where users can also change the password for their account, or for web administration...
@anonprophet and @Neubivljiv Did you guys use Ubuntu Server 14.04 or Ubuntu Desktop 14.04? Also tell me the exact version number of G++ and CMake you guys used. I need this data for documentation
@Neubivljiv Did you try using the /save command though?
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-5
export CXX="g++-5" CC="gcc-5"
Ubuntu Server 14.04
@anonprophet Exactly what version of G++ and CMake did you use?
latest cmake 3.3.2 if the message above not clear I dont know what version of G++, im using that command to install g++ already destroyed my VPS, bcoz only use for test
Alright, I won't be able to add the information to the ports document then
@xboi209 I tried on Ubuntu Server 15.04 and Ubuntu Server 14.04 (I am not using Ubuntu Desktop tho). However, I had a lot's of problems to install the recent version of G++ and CMake (I compiled the most recent version but when I check it display outdated version runing). So it's nessesary to create a symbolic link for GCC and G++. After that all working fine. Current version I using: G++ 5.1.0 CMake 3.4.0-rc1 (min. 3.2x needed for PVPGN) As far as I know this is minimum requirements to compile pvpgn (so Ubuntu users need to compile g++ and CMake manually)
You don't have to compile G++ and CMake manually, you can add the PPA that @anonprophet posted above which will allow you to access the newer version of G++. For calling G++, you need to use g++-5
instead of g++
.
I'll also need the architecture of your system too.
I know, but I don't want to do that. I'll rather compile manually. Much cleaner solution imo. Also, tried what you suggested, but why to have 2 instance of g++. Simply use the most recent version and call with g++
Architecture: Linux x86_64 GNU/Linux
Can you tell me the architecture of your system?
Answered in a comment above. However, I also started D2 server, but I can't start d2gs (only Windows). Also, when I connect to the server, I have no admin privileges (on Warcraft 3 it's fine). Main issue is that anyone can use hacks (for example character editor) on Diablo server... Just few information I noticed.
I made a small web interface for PVPGN:
Only "issue" is that you need to click Kill more than once to stop the server (same via putty). Also, we have web interfaces for all steam games as well as ghost++ (Linux only)
However, I also started D2 server, but I can't start d2gs (only Windows).
D2GS isn't part of the PvPGN project, so I can't provide support for it.
Also, when I connect to the server, I have no admin privileges (on Warcraft 3 it's fine).
You need to set admin privileges for your account then.
Main issue is that anyone can use hacks (for example character editor) on Diablo server
The server currently doesn't have built-in, ready to use antihack for all games right now. It's probably not ideal to have one built-in since it's complicated to do so(different code for different versions of the games, expansions, etc.)
I know that D2GS is not part of the PvPGN, but it would be nice to keep users data on the server not on client :)
About admin privileges - isn't it in the database (auth_admin field)? I have admin privileges on pvpgn battle.net for W3, but not Diablo 2.
However, I know that it's hard and complicated to have anti-hack system for all versions and all games, but at least I think it should keep data on the server (not on client) for Diablo 2.
Without it, the server is virtually hack :)
Yes it should be the auth_admin
field. I don't know why it doesn't work on D2.
I don't even have a copy of D2 myself so I can't do development for that part of the server unfortunately.
@Neubivljiv can i have ur email?
i have a problem with openstats 4.0
its error 500 when access /adm
im just using default openstats without modification. already try in webhosting and vps, the error still same
Hi, I just installed PvPGN version 1.99.7-PRO and I have a couple of problems. No client can not connect (Unable to connect...). This is part of the server log:
And when I tried to connect:
Whether there is any indication of what is causing the problem? Also, I'm ready to do web interface for this project, but I can not start.
Regards.