Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Unity Moba complete

Newbie Spellweaver
Joined
Sep 24, 2012
Messages
38
Reaction score
5
are you sure you setup the same IP on longin pvp scene , on the jxblgame gameobject ? not on the script
 
Newbie Spellweaver
Joined
Sep 24, 2012
Messages
38
Reaction score
5
Thats it!
I had edited the scripts directly and i didn't saw this configuration on interface, for now im able to connect with LAN IP

Thanks Alot!

NP , did you solve the problem of the end of matchand tutorial it dont come back to lobby ? personnaly i tryed to look but i dont find solution , the most wrong is on windows they are no problem.

EDIT : OK NEVERMIND DONT USE UNITY 2017.3 with this it will work but bug on android build no more finnish match .
 
Last edited:
Joined
May 24, 2007
Messages
721
Reaction score
71
NP , did you solve the problem of the end of matchand tutorial it dont come back to lobby ? personnaly i tryed to look but i dont find solution , the most wrong is on windows they are no problem.

EDIT : OK NEVERMIND DONT USE UNITY 2017.3 with this it will work but bug on android build no more finnish match .
Yep, use Unity inside the release, i haven't this bug anymore, if you want, i can share my translation with you, but.. pt_BR, i'm brazilian, just send me PM.
 
Newbie Spellweaver
Joined
Sep 24, 2012
Messages
38
Reaction score
5
No ty im good ,i will just translate in english, for the network part im still not sure its like pretty slow , will try on my vps later but if the server binary dont work on linux , i will have to rebuild it for linux if its possible (i have totality no idea if its possible) , if someone could make a tutorial about how to build those server for linux , im not a regular user of visual studio, im more regular on unity ...
 
Newbie Spellweaver
Joined
Sep 13, 2014
Messages
45
Reaction score
0
For now, im trying to setup to work under Public IP (Not LAN IP), doing some tests, NAT and others, i'm not able to connect with Public IP.

I have made 5000 changes of IP for public connection and i cant find the way for that i only can connect to account in public ip but not in lobby so if you find the way share with us please
 
Joined
May 24, 2007
Messages
721
Reaction score
71
Hi all,

Here's my configs:

*This way, when i try to connect with android internet 4g, i can input my login and password, select server but, when i select to enter there, i can't connect with. Public IP.
*if i change 127.0.0.1 to my public IP, GS DB don't connect and i got error.
if i follow configs above, i'll got 192.168.0.200:4001 GateServer error (my LAN IP) see picture attached.

C:\MOBA\Server\BSConfig\Setup.ini
[MainGate]
ListernPortForGate = 49999
GateFullCount = 1000
GateBaseIndex = 30000
GateMaxCount = 5
GateServer1 = 127.0.0.1:40000
GateServer2 = 127.0.0.1:40001
GateServer3 = 127.0.0.1:40002
GateServer4 = 127.0.0.1:40003
GateServer5 = 127.0.0.1:40004
GateServer1Export = $PUBLIC_IP:1
GateServer2Export = $PUBLIC_IP:1
GateServer3Export = $PUBLIC_IP:1
GateServer4Export = $PUBLIC_IP:1
GateServer5Export = $PUBLIC_IP:1

[MainClient]
ListernPortForClient = 49998

[MainLogin]
LSIP = $PUBLIC_IP
LSPort = 49997

----------------------------------------------------------------------------------------------------
C:\MOBA\Server\CSConfig\CSKernelCfg.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GSCfg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<GameWorldID>1</GameWorldID>
<CSIP>$PUBLIC_IP</CSIP>
<SSPort>10001</SSPort>
<GSPort>10002</GSPort>
<MaxSSNum>15</MaxSSNum>
<SSBaseIndex>20000</SSBaseIndex>
<MaxGSNum>10</MaxGSNum>
<GSBaseIndex>30000</GSBaseIndex>
<AllSSIndex>20000,S1,123456;20001,S2,123456;20002,S3,123456;20003,S4,123456;20004,S5,123456;20005,S6,123456;20006,S7,123456;20007,S8,123456;20008,S9,123456;20009,S10,123456;20010,S11,123456;20011,S12,123456;20012,S13,123456;20013,S14,123456;20014,S15,123456</AllSSIndex>
<AllGSIndex>30000,ZhongYuan,123456;30001,TongBei,123456;30002,HuaBei,123456;30003,XiLan,123456;30004,JiangLan,123456</AllGSIndex>
<RSPort>10010</RSPort>
<RSKey>123456</RSKey>
<WaitingDBNum>10</WaitingDBNum>
<LogAddress>$PUBLIC_IP</LogAddress>
<LogPort>1234</LogPort>
<redisAddress>$PUBLIC_IP</redisAddress>
<redisPort>6379</redisPort>
<redisLogicAddress>127.0.0.1</redisLogicAddress>
<redisLogicPort>6380</redisLogicPort>
</GSCfg>
----------------------------------------------------------------------------------------------------
C:\MOBA\Server\GSKernel\GSCfg.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GSCfg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<IP>127.0.0.1</IP>
<Port>10002</Port>
<MsgMaxSize>10240000</MsgMaxSize>
<GSID>30001</GSID>
<PWD>123456</PWD>
<ListenIP>$PUBLIC_IP</ListenIP>
<ListenPort>40001</ListenPort>
<MaxGCNum>10000</MaxGCNum>
<BSIP>127.0.0.1</BSIP>
<BSPort>49999</BSPort>
<IfSkipBS>0</IfSkipBS>
</GSCfg>
----------------------------------------------------------------------------------------------------
C:\MOBA\Server\LSConfig\Serverlist.ini
[MainList]
IfOpenSdk = 0;
ServerNum = 7
Name1 = Arena
Name2 = Arena-2
Name3 = Arena-3
Name4 = Arena-4
Name5 = Arena-5
Name6 = Arena-6
Name7 = Arena-7
Addr1 = $PUBLIC_IP:49998
Addr2 = $PUBLIC_IP:49998
Addr3 = $PUBLIC_IP:49998
Addr4 = $PUBLIC_IP:49998
Addr5 = $PUBLIC_IP:49998
Addr6 = $PUBLIC_IP:49998
Addr7 = $PUBLIC_IP:49998
----------------------------------------------------------------------------------------------------
C:\MOBA\Server\LSConfig\Setup.ini
[MainBS]
ListernPortForBS = 49997
BSBaseIndex = 30000
BSMaxCount = 5
BS1 = $PUBLIC_IP:40000
BS2 = $PUBLIC_IP:40001
BS3 = $PUBLIC_IP:40002
BS4 = $PUBLIC_IP:40003
BS5 = $PUBLIC_IP:40004
BS1Export = $PUBLIC_IP:1
BS2Export = $PUBLIC_IP:1
BS3Export = $PUBLIC_IP:1
BS4Export = $PUBLIC_IP:1
BS5Export = $PUBLIC_IP:1

[MainGC]
ListernPortForClient = 49996
----------------------------------------------------------------------------------------------------
C:\MOBA\Server\SSKernel\SSKernelCfg.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SSCfg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CSIP>127.0.0.1</CSIP>
<CSPort>10001</CSPort>
<LogAddress>127.0.0.1</LogAddress>
<LogPort>1234</LogPort>
<SSID>20001</SSID>
<GSIP>127.0.0.1</GSIP>
<GSPort>20001</GSPort>
<GSPWD>123456</GSPWD>
<NPCMaxLifeTime>180000</NPCMaxLifeTime>
<MaxStatisMsgToShow>10</MaxStatisMsgToShow>
<IfStatics>0</IfStatics>
<MsgStaticsInterval>10</MsgStaticsInterval>
<ThreadNum>2</ThreadNum>
<MiniBattleObjNum>60</MiniBattleObjNum>
<BattleFinshProtectTimeSpan>6000</BattleFinshProtectTimeSpan>
</SSCfg>
----------------------------------------------------------------------------------------------------
C:\MOBA\Server\robot.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RobotCfg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<LoginServer>$PUBLIC_IP</LoginServer>
<LoginPort>49996</LoginPort>
<BalanceServer>$PUBLIC_IP</BalanceServer>
<BalancePort>49998</BalancePort>
<DefaultGateServer>$PUBLIC_IP</DefaultGateServer>
<DefaultGatePort>40001</DefaultGatePort>
<RobotNum>500</RobotNum>
<IfSkipToGS>0</IfSkipToGS>
<PlatForm>0</PlatForm>
</RobotCfg>

Client Android - Unity Moba complete - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Sep 13, 2014
Messages
45
Reaction score
0
i have the same problem i can connect to with my phone connected as 4G and i can input login and password but when i select arena i cant connect
 
Newbie Spellweaver
Joined
Sep 24, 2012
Messages
38
Reaction score
5
post the server log ? do you get any error ? netconnect error i mean
 
Newbie Spellweaver
Joined
Sep 24, 2012
Messages
38
Reaction score
5
log when you try online , not lan , and only the error
 
Joined
May 24, 2007
Messages
721
Reaction score
71
Explain better please, because this is the Server logs when i try to connect

In client showme this erro on attached
Client Android - Unity Moba complete - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Joined
May 24, 2007
Messages
721
Reaction score
71
C:\MOBA\Server\CSConfig\DBConfig.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DBCfg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DB>
<type>1</type>
<ip>127.0.0.1</ip>
<Port>3306</Port>
<user>root</user>
<pwd>$DB_PASS</pwd>
<dbname>FBAll_GameDB_1</dbname>
</DB>
<DB>
<type>2</type>
<ip>127.0.0.1</ip>
<Port>3306</Port>
<user>root</user>
<pwd>$DB_PASS </pwd>
<dbname>FBAll_AccountDB</dbname>
</DB>
</DBCfg>
C:\MOBA\Server\LGCfg\DBConfig.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DBCfg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DB>
<ip>127.0.0.1</ip>
<Port>3306</Port>
<user>root</user>
<pwd>$DB_PASS </pwd>
<dbname>FBAll_LogDB_1</dbname>
</DB>
<port>1234</port>
</DBCfg>
 
Newbie Spellweaver
Joined
Sep 24, 2012
Messages
38
Reaction score
5
login done fully working with register/ code confirm via mail , im still working on this project and i have one other project that i should work on than this one
 
Joined
May 24, 2007
Messages
721
Reaction score
71
login done fully working with register/ code confirm via mail , im still working on this project and i have one other project that i should work on than this one
i'll try to fix login and others things after translate game and play for sometimes searching errors, if i don't found, i'll code something like yours.
 
Back
Top