avertuss 48 Posted January 1, 2017 Share Posted January 1, 2017 Hi, my friend tried to join to my hamachi server but when he got kick after charselect. He use launcher v2. I tried change my source too: memcpy(p.szIP, g_szPublicIP, 16); to memcpy(p.szIP, "hamachiip", 16); strlcpy(p.szPublicIP, g_szPublicIP, sizeof(p.szPublicIP)); to strlcpy(p.szPublicIP, "hamachiip", sizeof(p.szPublicIP)); in desc_client but it doesn't work too. I can't compile source. Errors: OBJDIR/desc.o: In function `DESC::ProcessOutput()': /usr/home/nonameline/Server/game/src/desc.cpp:396: undefined reference to `max_bytes_written' /usr/home/nonameline/Server/game/src/desc.cpp:398: undefined reference to `total_bytes_written' /usr/home/nonameline/Server/game/src/desc.cpp:399: undefined reference to `current_bytes_written' /usr/home/nonameline/Server/game/src/desc.cpp:396: undefined reference to `max_bytes_written' OBJDIR/event.o: In function `event_process(int)': /usr/home/nonameline/Server/game/src/event.cpp:135: undefined reference to `ContinueOnFatalError()' OBJDIR/input_db.o: In function `CInputDB::P2P(char const*)': /usr/home/nonameline/Server/game/src/input_db.cpp:1364: undefined reference to `main_fdw' OBJDIR/marriage.o: In function `marriage::TMarriage::Logout(unsigned int)': /usr/home/nonameline/Server/game/src/marriage.cpp:299: undefined reference to `g_bShutdown' /usr/home/nonameline/Server/game/src/marriage.cpp:316: undefined reference to `g_bShutdown' /usr/home/nonameline/Server/game/src/marriage.cpp:316: undefined reference to `g_bShutdown' Any ideas? Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 Should i use this: @arves100 Can you help me? Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 (edited) 1 hour ago, arves100 said: PUBLIC_IP normaly, if you are the hoster amd you can't connect you have to edit modem iptables missing this on main.cpp int max_bytes_written = 0; int current_bytes_written = 0; int total_bytes_written = 0; I have this I'm host on hamachi, my friends can login but after charselect kick. Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 (edited) 1 minute ago, arves100 said: extern int max_bytes_written; extern int current_bytes_written; extern int total_bytes_written; do you have this in desc.cpp? We have to fix compile issue first Yes, i have. If i don't use this memcpy(p.szIP, g_szPublicIP, 16); to memcpy(p.szIP, "hamachiip", 16); strlcpy(p.szPublicIP, g_szPublicIP, sizeof(p.szPublicIP)); to strlcpy(p.szPublicIP, "hamachiip", sizeof(p.szPublicIP)); i can compile my source. Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 1 minute ago, arves100 said: Do you use your hamachi ip without .100 final right? You also have to set protmap and all other stuff Yes, i use ip without .100. I have portmap too. And windows firewall is off. Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 1 minute ago, arves100 said: Normally i know bugs about host trying to connect, it's a misconfiguration. Maybe portmap or serverinfo I can join with ip.100 my friends have normall ip. Portmap config only auth +ch1 with subchannels http://pastebin.com/rK00mVAM Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 1 minute ago, arves100 said: Can he ping to your pc? I don't know but if he can login into server. To charselect all is okay but after choose pc kick so its probably launcher bad or idk. Now he use http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/997010-release-2010-mc-sura-v2-100-working-all-servers.html + my compiled binary renamed to .bin. Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 Just now, arves100 said: You should try to launch a precompiled metin2.exe without any started, build your own exe from source. I use own binary. Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 Just now, arves100 said: Do you tried without the old 2010 launcher? Launching .exe directly? It doesn't work 100%. I follow tutorial from pl forum http://www.mpcforum.pl/topic/1581926-mo%C5%BCliwo%C5%9B%C4%87-logowania-si%C4%99-na-serwer-hamachi-sf-40k/#entry13350726 it works but not for me, i cant compile game. So i was looking here and i found this https://metin2dev.org/board/index.php?/topic/12350-kick-after-charselect/&do=findComment&comment=71270 It works or nah? Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 Just now, arves100 said: That ConnectionIp it's the same as PublicIp. Also the launcher is not supported in newer binary, because they just patch some functions on the launcher (that unfortunally i don't know) Yee probably, he should open this lanucher as admin but he can't because he got ???????? error so i need fix in source or idk. Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 3 minutes ago, arves100 said: Because it's not supported, only normal binary works. Unfortunally, i don't know how to fix this, because i never figured out the function that he patch. I'm 40% sure it's launcher problem. So if i will use your "method" it still won't work? Link to comment Share on other sites More sharing options...
avertuss 48 Posted January 2, 2017 Author Share Posted January 2, 2017 Just now, arves100 said: You can try, but i don't think it fix something. Okey, i will try, Thank you for your time. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now