Jump to content
  • 0

FluxCP to handle Multiple CharMap server in two seperate databases


Feistz

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

Hello guys, how can i edit/tweak flux cp to handle to separate server( same login server but differ in Char and Map server) with two separate databases? I tried to follow the tutorial here http://code.google.com/p/fluxcp/wiki/Screencasts but it seems that it only handle two server with 1 database only. So how can i change it since i use two different database but it use the login table from the Database A.

Server A=Database A

Server B=Database B (All except login table that it takes from Database A.)

My Servers.php

'CharMapServers' => array(
  array(
   'ServerName'    => 'SARA',
   'BaseExpRates'  => 1,
   'JobExpRates'   => 1,
   'MvpExpRates'   => 1,
   'DropRates'	 => 1,
   'MvpDropRates'  => 1,
   'CardDropRates' => 1,
   'MaxCharSlots'  => 12,
   'DateTimezone'  => null,	   // Specifies game server's timezone for this char/map pair. (See: http://php.net/timezones)
   //'ResetDenyMaps' => 'sec_pri',  // Defaults to 'sec_pri'. This value can be an array of map names.
   //'Database'	  => 'ragnarok', // Defaults to DbConfig.Database
   'CharServer'    => array(
 'Address'   => '127.0.0.1',
 'Port'	  => 7025
   ),
   'MapServer'	 => array(
 'Address'   => '127.0.0.1',
 'Port'	  => 7026
   )
  ),
  array(
   'ServerName'    => 'LOKI',
   'BaseExpRates'  => 1,
   'JobExpRates'   => 1,
   'MvpExpRates'   => 1,
   'DropRates'	 => 1,
   'MvpDropRates'  => 1,
   'CardDropRates' => 1,
   'MaxCharSlots'  => 12,
   'DateTimezone'  => null,	   // Specifies game server's timezone for this char/map pair. (See: http://php.net/timezones)
   //'ResetDenyMaps' => 'sec_pri',  // Defaults to 'sec_pri'. This value can be an array of map names.
   //'Database'	  => 'ragnarok', // Defaults to DbConfig.Database
   'CharServer'    => array(
 'Address'   => '127.0.0.1',
 'Port'	  => 7027
   ),
   'MapServer'	 => array(
 'Address'   => '127.0.0.1',
 'Port'	  => 7028
   ),

When i tried to log in:-

1-4.png

Anyone know how to fix this?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

BUMP! Anyone /no1 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

I think its not possible in fluxCP, my guess you will need a custom control panel for that.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   8
  • Joined:  01/09/12
  • Last Seen:  

You tried to change the 'Database' field inside each server array ?

//'Database'  => 'ragnarok', // Defaults to DbConfig.Database 

Is intuitive that this is for ur purpose but i haven't tested yet.

Link to comment
Share on other sites

×
×
  • Create New...