[MUnique] OpenMU ChatServer

Page 4 of 4 FirstFirst 1234
Results 46 to 56 of 56
  1. #46
    Account Upgraded | Title Enabled! ADMTec is offline
    True MemberRank
    Aug 2011 Join Date
    361Posts

    Re: [MUnique] OpenMU ChatServer

    Quote Originally Posted by solarismu View Post
    -.- That string "publicIp" is used to pass to Player when ChatRoom created

    Code:
    public void ChatRoomCreated(ChatServerAuthenticationInfo authenticationInfo, string friendname, bool success)        
    {
                var authenticationTokenArray = uint.Parse(authenticationInfo.AuthenticationToken).ToBytesSmallEndian();
                var chatRoomId = authenticationInfo.RoomId;
                var packet = new byte[]            {                0xC3, 0x24, 0xCA,                0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // chat server ip (without port)
                    chatRoomId.GetLowByte(), chatRoomId.GetHighByte(),
                    authenticationTokenArray[3], authenticationTokenArray[2],
     authenticationTokenArray[1], authenticationTokenArray[0],
                    0x01, // type
                    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // friendname                success ? (byte)1 : (byte)0
                };
                // chatserver unavailable would have success = 2, type = 0xAF
                var chatServerIp = this.friendServer.GetChatserverIP();
                Encoding.ASCII.GetBytes(chatServerIp, 0, chatServerIp.Length, packet, 3);
                Encoding.UTF8.GetBytes(friendname, 0, friendname.Length, packet, 25);
                this.connection.Send(packet);
            
    }
    Adding WANIP to config file
    ChatServer.ExDbConnector ChatServer.cfg
    Code:
    WANIP=192.168.xx.xx
    
    ChatServerListenerPort=55980
    
    ExDbHost=127.0.0.1
    ExDbPort=55906Xor32
    
    Key=AB 11 CD FE 18 23 C5 A3 CA 33 C1 CC 66 67 21 F3 32 12 15 35 29 FF FE 1D 44 EF CD 41 26 3C 4E 4D
    ChatServer ChatServerListener.cs
    Code:
    //...
    public string PublicIp { get; set; }
    private readonly string publicIp;
    //...
    this.publicIp = PublicIpResolver.GetIPv4().ToString();
    //this.publicIp = "192.168.xxx.xxx";
    ChatServer.ExDbConnector Setting.cs
    Code:
    internal class Settings
        {
    //...
    public string ChatServerWANIP
            {
                get
                {
                    if (this["WANIP"] != null)
                    {
                        var s = this["WANIP"];
                        var match = Regex.Match(s, @".*?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*");
                        return match.Success ? s : null;
                    }
                    return null;
                }
            }
    //...
    }
    ChatServer.ExDbConnector Program.cs
    Code:
    internal static void Main(string[] args)
    {
    //...               
            var chatServer = new ChatServerListener(chatServerListenerPort);
            //Get WANIP Config, If it's null. keep the IP retrieved from //https://api.ipify.org/?format=text
            chatServer.PublicIp = settings.ChatServerWANIP ?? chatServer.PublicIp;
            Log.Info($"WANIP = {chatServer.PublicIp}");
            chatServer.Xor32Key = customXor32Key ?? chatServer.Xor32Key;                chatServer.Start();
    //...
    }
    Quote Originally Posted by nevS View Post
    That's code of the "Full" OpenMU Server. Believe me, you don't need these changes ;)


    he managed to make it work.
    I'm using the default and I can not make it work.
    @solarismu
    Could you post the configuration files of your dataserver and the chatserver?

  2. #47
    Hardcore Member solarismu is online now
    MemberRank
    May 2017 Join Date
    145Posts

    Re: [MUnique] OpenMU ChatServer

    Quote Originally Posted by ADMTec View Post
    he managed to make it work.
    I'm using the default and I can not make it work.
    @solarismu
    Could you post the configuration files of your dataserver and the chatserver?
    inbox me your teamviewer

  3. #48
    Account Upgraded | Title Enabled! ADMTec is offline
    True MemberRank
    Aug 2011 Join Date
    361Posts

    Re: [MUnique] OpenMU ChatServer

    Quote Originally Posted by solarismu View Post
    inbox me your teamviewer
    I'm not home now but as soon as I arrive I'll send

  4. #49
    Account Upgraded | Title Enabled! or30n is offline
    True MemberRank
    Jun 2005 Join Date
    641Posts

    Re: [MUnique] OpenMU ChatServer

    I can install vs 2017 cause i use ssd 120 gigs and i am out of space. Is there any way someone rebuild chat server with ip 192.168.1.5?

    this.publicIp = "192.168.1.5";
    Last edited by or30n; 03-04-18 at 08:17 PM.
    Like if i help you!

  5. #50
    Hardcore Member solarismu is online now
    MemberRank
    May 2017 Join Date
    145Posts

    Re: [MUnique] OpenMU ChatServer

    https://drive.google.com/file/d/1nxC...ew?usp=sharing

    remember edit:
    WANIP in CharServer.cfg & WANIP in DataServer\IGCDS.ini
    ExDbPort in CharServer & ExDataServerPort in DataServer\IGCDS.ini

    Ps: if it works, let me know ty
    Last edited by solarismu; 03-04-18 at 08:39 PM.

  6. #51
    Account Upgraded | Title Enabled! or30n is offline
    True MemberRank
    Jun 2005 Join Date
    641Posts

    Re: [MUnique] OpenMU ChatServer

    Quote Originally Posted by solarismu View Post
    https://drive.google.com/file/d/1nxC...ew?usp=sharing

    remember edit:
    WANIP in CharServer.cfg & WANIP in DataServer\IGCDS.ini
    ExDbPort in CharServer & ExDataServerPort in DataServer\IGCDS.ini

    Ps: if it works, let me know ty
    Thank you my friend but nothing.
    Here is an image

    and logs from chat server and dataserver
    https://ufile.io/nq5ab
    https://ufile.io/adrdi
    Like if i help you!

  7. #52
    Developer nevS is offline
    True MemberRank
    Aug 2005 Join Date
    GermanyLocation
    374Posts

    Re: [MUnique] OpenMU ChatServer

    Can you find out where the Client tries to connect when you start a chat?

    With netstat and/or wireshark, for example.
    Do not follow where the path may lead. Go, instead, where there is no path and leave a trail. ~Ralph Waldo Emerson

    OpenMU Project: Blog - GitHub

  8. #53
    Hardcore Member solarismu is online now
    MemberRank
    May 2017 Join Date
    145Posts

    Re: [MUnique] OpenMU ChatServer

    @or30n
    I've checked ADMTec Files...

    You also have to check ServerInfo.bmd chatport
    Or in IGCDLL source > ServerInfo.cpp
    Code:
    m_ChatServerPort = GetPrivateProfileIntA("Connection", "ChatPort", 55980, filedec);
    set it to 55980 for sure, like this.
    Code:
    m_ChatServerPort = 55980;
    //m_ChatServerPort = GetPrivateProfileIntA("Connection", "ChatPort", 55980, filedec);
    Last edited by solarismu; 03-04-18 at 10:54 PM.

  9. #54
    Account Upgraded | Title Enabled! ADMTec is offline
    True MemberRank
    Aug 2011 Join Date
    361Posts

    Re: [MUnique] OpenMU ChatServer

    @solarismu

    Quote Originally Posted by nevS View Post
    Can you find out where the Client tries to connect when you start a chat?

    With netstat and/or wireshark, for example.

    I'm having an error when I'm going to invite another player to chat

    2018-04-03 20:09:42,099 [ERROR] [ExDbClient] - An error occured while processing an incoming packet from ExDB: C1 16 A1 00 02 00 54 65 63 4D 55 00 00 00 00 00 82 2E 03 00 01 00
    System.ArgumentException: RegisterClient: Could not find chat room with id 512 for 'TecMU'.
    Nome do parâmetro: roomId
    em MUnique.OpenMU.ChatServer.ChatServerListener.RegisterClient(UInt16 roomId, String clientName) na C:\src\src\ChatServer\ChatServerListener.cs:linha 94
    em MUnique.OpenMU.ChatServer.ExDbConnector.ExDbClient.ReadChatRoomInvitation(Byte[] packet) na C:\src\src\ChatServer\ExDbConnector\ExDbClient.cs:linha 144
    em MUnique.OpenMU.ChatServer.ExDbConnector.ExDbClient.ExDbPacketReceived(Object sender, Byte[] packet) na C:\src\src\ChatServer\ExDbConnector\ExDbClient.cs:linha 116
    Last edited by ADMTec; 04-04-18 at 12:34 AM.

  10. #55
    Account Upgraded | Title Enabled! or30n is offline
    True MemberRank
    Jun 2005 Join Date
    641Posts

    Re: [MUnique] OpenMU ChatServer

    Quote Originally Posted by solarismu View Post
    @or30n
    I've checked ADMTec Files...

    You also have to check ServerInfo.bmd chatport
    Or in IGCDLL source > ServerInfo.cpp
    Code:
    m_ChatServerPort = GetPrivateProfileIntA("Connection", "ChatPort", 55980, filedec);
    set it to 55980 for sure, like this.
    Code:
    m_ChatServerPort = 55980;
    //m_ChatServerPort = GetPrivateProfileIntA("Connection", "ChatPort", 55980, filedec);
    This is really work!
    Thank you!
    Like if i help you!

  11. #56
    Developer nevS is offline
    True MemberRank
    Aug 2005 Join Date
    GermanyLocation
    374Posts

    Re: [MUnique] OpenMU ChatServer

    Added release for version 0.1.7. Fixes:
    - Public IP is not determined anymore, because it wasn't used
    - Fixed reading the room id for invitation requests

    Thanks for your feedback :)
    Do not follow where the path may lead. Go, instead, where there is no path and leave a trail. ~Ralph Waldo Emerson

    OpenMU Project: Blog - GitHub



Page 4 of 4 FirstFirst 1234

Advertisement