Jump to content

Tlams

Members
  • Posts

    4
  • Joined

  • Last visited

Tlams's Achievements

  1. Hi, I changed the source code of ja++ to save the users's discutions in a distant mysql database, with the mysql library who are implanted. It's work fine. But, it's possible to create the same with "JPLua plugins" ? Thx.
  2. For the Web Chat you can use every technology if it use a mysql database with a column id / name / message / Unixtime
  3. Jass is compatible with openJk. I don't know the C++ programming(I program in python for fun, it's not my job). I want it to be compatible with conventional JK server.
  4. Hi ! I made a program that allows you to talk between several JKA servers and Web Chat. It working in peer to peer, you don't need a master server. But all the peer must be know all the other peer. The configurations are not very easy... JK/OpenJk: You must use the Jass Connector... Because the script is based on the logs generated by JASS Mod ! In the Jass configuration you must activate the "log" to 2 in the jass.ini Note: JassMod is compatible with the all other mod and OpenJk. System : Linux / Windows servers WebChat: You must use the Mysql connector, but this connecter is not very stable... I'm working for corrected the problem. System: Windows servers (Not ready for linux) Sources: JASS_Connector: http://pastebin.com/mSgWFtV5 MYSQL_BDD connector: http://pastebin.com/6tz8ip3G Note: i will make a github... Demo: http://image.noelshack.com/fichiers/2013/43/1382466561-bddtojka.jpg http://image.noelshack.com/fichiers/2013/43/1382466568-jkatoall.jpg You can try in live on the "Ninja servers" (ja+ // Fullforce // base) but you must be registered on ninja-gaming.fr for try the WebChat (http://ninja-gaming.fr/v2/chat.php). Download: http://tlams.free.fr//JKchat/chat_by_tlams.rar Installation: ONE game server = ONE jass folder = ONE conf.ini = ONE process ONE Web chat = ONE bdd folder = ONE conf.ini = ONE process Architecture example: http://image.noelshack.com/fichiers/2013/43/1382471228-schema1.png Config files example: ------JASS CONNECTOR(config.ini) SERVER1---------- [JKA]logfile = C:\Users\Tlams\Desktop\jkchat\V2\games.log <= THE JASS LOG FILERCON = rconPW <= JKA RCONIP_server = 10.8.0.1 <= Your IP JK ServerPORT_server = 29070 <= Your port JK Server[PEERS]IP_Autorise = 10.8.0.10,88.181.10.2,88.181.10.3 <= Ip Peer Allowed for reveive List_servers = 10.8.0.10:28801,88.181.10.2:28800,88.181.10.3:28801 <= Ip/ports peer to send [LOCAL]PORT = 28800 <= JASS PORT ! YOU MUST ADD A PAT RULE ON YOUR ROUTER (UDP)IP = 10.8.0.1 <= YOU LOCAL SERVER IP OR PUBLIC IP IF YOUR NETWORK CART HAVE A DIRECT PUBLIC IP Username = ServerJK1 <= Name for this serverPassword = Common_password <= Common password with the ALL OTHER PEERS[LANG]player_co = ^1Connected to player_disco = ^1Disconnected to # ------JASS CONNECTOR(config.ini) SERVER2---------- #[JKA]logfile = C:\Users\Tlams\Desktop\jkchat\V2\games.log <= THE JASS LOG FILERCON = rconPW <= JKA RCONIP_server = 10.8.0.10 <= Your IP JK ServerPORT_server = 29060 <= Your port JK Server[PEERS]IP_Autorise = 10.8.0.1,88.181.10.2,88.181.10.3 <= Ip Peer Allowed for reveive List_servers = 10.8.0.1:28800,88.181.10.2:28800,88.181.10.3:28801 <= Ip/ports peer to send [LOCAL]PORT = 28801 <= JASS PORT ! YOU MUST ADD A PAT RULE ON YOUR ROUTER (UDP)IP = 10.8.0.10 <= YOU LOCAL SERVER IP OR PUBLIC IP IF YOUR NETWORK CART HAVE A DIRECT PUBLIC IP Username = ServerJK2 <= Name for this serverPassword = Common_password <= Common password with the ALL OTHER PEERS[LANG]player_co = ^1Connected to player_disco = ^1Disconnected to # ------JASS CONNECTOR(config.ini) SERVER3---------- #[JKA]logfile = C:\Users\Tlams\Desktop\jkchat\V2\games.log <= THE JASS LOG FILERCON = rconPW <= JKA RCONIP_server = 88.181.10.2 <= Your IP JK ServerPORT_server = 29070 <= Your port JK Server[PEERS]IP_Autorise = 88.181.10.3,98.10.5.56 <= Ip Peer Allowed for reveive List_servers = 88.181.10.3:28801,98.10.5.56:28801,98.10.5.56:28800 <= Ip/ports peer to send [LOCAL]PORT = 28800 <= JASS PORT ! YOU MUST ADD A PAT RULE ON YOUR ROUTER (UDP)IP = 10.8.0.10 <= YOU LOCAL SERVER IP OR PUBLIC IP IF YOUR NETWORK CART HAVE A DIRECT PUBLIC IP Username = ServerJK3 <= Name for this serverPassword = Common_password <= Common password with the ALL OTHER PEERS[LANG]player_co = ^1Connected to player_disco = ^1Disconnected to # ------BDD/MYSQL CONNECTOR(config.ini)---------- # [PEERS]IP_Autorise = 88.181.10.2,98.10.5.56 <= Ip Peer Allowed for reveive List_servers = 88.181.10.2:28800,98.10.5.56:28801,98.10.5.56:28800 <= Ip/ports peer to send [LOCAL]PORT = 28801 <= JASS PORT ! YOU MUST ADD A PAT RULE ON YOUR ROUTER (UDP) IP = 88.181.10.3 <= YOU LOCAL SERVER IP OR PUBLIC IP IF YOUR NETWORK CART HAVE A DIRECT PUBLIC IP Username = CHAT <= Name for this serverPassword = Common_password <= Common password with the ALL OTHER PEERS[MYSQL]MYSQL_IP = 88.181.10.3 <= Your MYSQL IP serverMYSQL_USER = user MYSQL_PASSWORD = pwMYSQL_BD_NAME = bdnameMYSQL_TB_NAME = Table_nameMYSQL_BD_Col_Message = message_colMYSQL_BD_Col_username = name_user_colMYSQL_BD_Col_id = id_colMYSQL_BD_Col_time = time_colMYSQL_BD_Col_time_format = UNIX <= NOT CHANGE (Not compatible with other date system)----------------------------- Note: I'm sorry for my bad english !
×
×
  • Create New...