Jump to content
×
×
  • Create New...
  • 0

Source hamachi - kick after charselect


avertuss

Question

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
  • Answers 22
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

22 answers to this question

Recommended Posts

  • 0
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 1e2f7cfe79a54d19087e86e6a9b7b36f.png

I'm host on hamachi, my friends can login but after charselect kick. 

Link to comment
  • 0
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

909882dcfde8429c0e2c81b0eb36ec24.png

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. 

Link to comment
  • 0
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
  • 0
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
  • 0
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
  • 0
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
  • 0
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
  • 0
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.