Jump to content
  • 0

1 Login 2 Map 2 Char Servers


Yoona

Question


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

Im trying to create 2 Servers but 1 Login server, but encounter this kind of problem...

 

 

[ Server 1 ] Running Good 

[ Server 2 ] Running Good 

 

but when i try to log in, i can log in on Server 2 not on Server 1 :(

 

anyone can help me with this?


@bump!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

@Akkarin Yes i follow this Guide http://www.eathena.ws/board/index.php?showtopic=279692&view=findpost&p=1532918

 

 

 

When i run the First Server I can Login but when i start to run the Second Server i cant login on the First Server anymore, instead i can log in on the 2nd Server..


How do you run the char and map server only for the second server...
L_SRV=./server1/login-server_sql
C_SRV1=./server1/char-server_sql
M_SRV1=./server1/map-server_sql
C_SRV2=./server2/char-server_sql
M_SRV2=./server2/map-server_sql


check_files() {
   for i in ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}
   do
       if [ ! -f ./$i ]; then
           echo "$i does not exist, or can't run."
           echo "Stop. Check your compile."
           exit 1;
       fi
   done
#    more << EOF
echo "Check complete."
echo "Looks good, a nice Athena!"
#EOF
}
'start')
       print_start
       check_files
       exec .{L_SRV}&
       exec .{C_SRV1}&
       exec .{M_SRV1}&
       exec .{C_SRV2}&
       exec .{M_SRV2}&
'stop')
       killall ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}

can someone tell me where can i add this one?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

@Akkarin how can i apply those things?..

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

/me is following this topic since I'm curious about this (read: I don't know how)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

Me too i have also 

 

Im trying to create 2 Servers but 1 Login server, but encounter this kind of problem...

 

 

[ Server 1 ] Running Good 

[ Server 2 ] Running Good 

 

but when i try to log in, i can log in on Server 2 not on Server 1 :(

 

anyone can help me with this?


@bump!

 

 

i got the same problem as you 

i also followed that guide and test it on windows pc. and it worked 

but when i tried it on my vps i got the same results as you.

 

when i rung the first server its ok.

when i run the second servers char server and map server using 

./map-server

and 

./char-server

the map server of the first server disconnects.

 

then now i can login on the second but  rejected on the first :(

 

can anyone help us?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

I know how to make connection for 1 login-server 2 char-servers 9with each 1 map-server). but I don't get "how client decide which game (char&map-server) will be connected?", since the clientinfo.xml uses login port only.

 

Ohh lol, I get what's "Service select" mean now. to be honest, this my first time using 1 login server. /heh

@Akkarin Yes i follow this Guide http://www.eathena.ws/board/index.php?showtopic=279692&view=findpost&p=1532918

 

 

 

When i run the First Server I can Login but when i start to run the Second Server i cant login on the First Server anymore, instead i can log in on the 2nd Server..

How do you run the char and map server only for the second server...

L_SRV=./server1/login-server_sql
C_SRV1=./server1/char-server_sql
M_SRV1=./server1/map-server_sql
C_SRV2=./server2/char-server_sql
M_SRV2=./server2/map-server_sql


check_files() {
   for i in ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}
   do
       if [ ! -f ./$i ]; then
           echo "$i does not exist, or can't run."
           echo "Stop. Check your compile."
           exit 1;
       fi
   done
#    more << EOF
echo "Check complete."
echo "Looks good, a nice Athena!"
#EOF
}
'start')
       print_start
       check_files
       exec .{L_SRV}&
       exec .{C_SRV1}&
       exec .{M_SRV1}&
       exec .{C_SRV2}&
       exec .{M_SRV2}&
'stop')
       killall ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}
can someone tell me where can i add this one?
 

it's on function.sh

once u edit it, when u run runserver-sql.bat, that file will run your 1 login-server, 2 char-servers, & 2 map-server

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

I know how to make connection for 1 login-server 2 char-servers 9with each 1 map-server). but I don't get "how client decide which game (char&map-server) will be connected?", since the clientinfo.xml uses login port only.

 

Ohh lol, I get what's "Service select" mean now. to be honest, this my first time using 1 login server. /heh

 

@Akkarin Yes i follow this Guide http://www.eathena.ws/board/index.php?showtopic=279692&view=findpost&p=1532918

 

 

 

When i run the First Server I can Login but when i start to run the Second Server i cant login on the First Server anymore, instead i can log in on the 2nd Server..

How do you run the char and map server only for the second server...

L_SRV=./server1/login-server_sql
C_SRV1=./server1/char-server_sql
M_SRV1=./server1/map-server_sql
C_SRV2=./server2/char-server_sql
M_SRV2=./server2/map-server_sql


check_files() {
   for i in ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}
   do
       if [ ! -f ./$i ]; then
           echo "$i does not exist, or can't run."
           echo "Stop. Check your compile."
           exit 1;
       fi
   done
#    more << EOF
echo "Check complete."
echo "Looks good, a nice Athena!"
#EOF
}
'start')
       print_start
       check_files
       exec .{L_SRV}&
       exec .{C_SRV1}&
       exec .{M_SRV1}&
       exec .{C_SRV2}&
       exec .{M_SRV2}&
'stop')
       killall ${L_SRV} ${C_SRV1} ${M_SRV1} ${C_SRV2} ${M_SRV2}
can someone tell me where can i add this one?

 

 

it's on function.sh

once u edit it, when u run runserver-sql.bat, that file will run your 1 login-server, 2 char-servers, & 2 map-server

 

 

On this part i want to make sure, i should put the directory of where i put the 2nd server files right? and 1 problem about rathena.. if you recompile server 2 ==> Server 1 will be stop same with recompile Server 1 ==> Server 2 stops. please correct me if im wrong.. thanks!

C_SRV1=./server1/char-server_sql
M_SRV1=./server1/map-server_sql
C_SRV2=./server2/char-server_sql
M_SRV2=./server2/map-server_sql
Edited by Yoona
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...