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!

Mobile 3D MORPG Mogo released Mobile 

Status
Not open for further replies.
Joined
Mar 25, 2007
Messages
662
Reaction score
309
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

You can fix Android login Isseue by these coding....
/Client/Assets/scripts/GameLogic/MogoWorld.cs ----- line 730~, 1204~

Code:
 bool rst = false;[/COLOR]
[COLOR=#BB0000]if (MogoWorld.rc)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]rst = ServerProxy.Instance.Connect(baseIP, basePort);[/COLOR]
[COLOR=#BB0000]LoginReq(rst);[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]/* else if (SystemSwitch.UsePlatformSDK && (RuntimePlatform.Android == Application.platform || RuntimePlatform.IPhonePlayer == Application.platform))[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]islogining = true;[/COLOR]
[COLOR=#BB0000]MogoGlobleUIManager.Instance.ShowGlobleStaticText(true, "Login...");[/COLOR]
[COLOR=#BB0000]//得到baseapp信息[/COLOR]
[COLOR=#BB0000]string url = string.Format(PlatformSdkManager.LOGIN_URL, serverInfo.ip, loginInfo.platName, loginInfo.uid, loginInfo.timestamp, loginInfo.strPlatAccount, loginInfo.strSign, loginInfo.token, SystemConfig.GetSelectedServerInfo().port);[/COLOR]
[COLOR=#BB0000]Action action = () =>[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]Mogo.Util.Utils.GetHttp(url,[/COLOR]
[COLOR=#BB0000](resp) =>[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]Driver.Invoke(() =>[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]string[] baseappInfo = resp.Split(',');[/COLOR]
[COLOR=#BB0000]int errorId = int.Parse(baseappInfo[0]);[/COLOR]
[COLOR=#BB0000]if (errorId == 0)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]baseIP = baseappInfo[1];[/COLOR]
[COLOR=#BB0000]basePort = int.Parse(baseappInfo[2]);[/COLOR]
[COLOR=#BB0000]baseLoginKey = baseappInfo[3];[/COLOR]
[COLOR=#BB0000]rst = ServerProxy.Instance.Connect(baseIP, basePort);[/COLOR]
[COLOR=#BB0000]if (baseappInfo.Length > 4)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]String uid = baseappInfo[4];[/COLOR]
[COLOR=#BB0000]if (RuntimePlatform.Android == Application.platform)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]PlatformSdkManager.Instance.Uid = uid;[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]if (baseappInfo.Length > 5)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]String username = baseappInfo[5];[/COLOR]
[COLOR=#BB0000]if (RuntimePlatform.Android == Application.platform)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]LoginUILogicManager.Instance.UserName = username;[/COLOR]
[COLOR=#BB0000]SystemConfig.Instance.Passport = username;[/COLOR]
[COLOR=#BB0000]SystemConfig.SaveConfig();[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]if (PlatformSdkManager.Instance != null)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]PlatformSdkManager.Instance.SendLoginLog();[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]LoginReq(rst);[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]else[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]MogoGlobleUIManager.Instance.ShowGlobleStaticText(false, "");[/COLOR]
[COLOR=#BB0000]MogoWorld.OnLoginResp((Mogo.RPC.LoginResult)(errorId));[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]islogining = false;[/COLOR]
[COLOR=#BB0000]});[/COLOR]
[COLOR=#BB0000]},[/COLOR]
[COLOR=#BB0000](errodCode) =>[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]Driver.Invoke(() =>[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]MogoMsgBox.Instance.ShowMsgBox("network error:" + errodCode);[/COLOR]
[COLOR=#BB0000]islogining = false;[/COLOR]
[COLOR=#BB0000]MogoGlobleUIManager.Instance.ShowGlobleStaticText(false, "");[/COLOR]
[COLOR=#BB0000]});[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]);[/COLOR]
[COLOR=#BB0000]};[/COLOR]
[COLOR=#BB0000]action.BeginInvoke(null, null);[/COLOR]
[COLOR=#BB0000]} */ //loveomg[/COLOR]
[COLOR=#BB0000]else[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]MogoGlobleUIManager.Instance.ShowGlobleStaticText(true, "Login...");[/COLOR]
[COLOR=#BB0000]Action act = () =>[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]rst = ServerProxy.Instance.Connect(serverInfo.ip, serverInfo.port);[/COLOR]
[COLOR=#BB0000]Driver.Invoke(() =>[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]MogoGlobleUIManager.Instance.ShowGlobleStaticText(false, "");[/COLOR]
[COLOR=#BB0000]LoginReq(rst);[/COLOR]
[COLOR=#BB0000]});[/COLOR]
[COLOR=#BB0000]};[/COLOR]
[COLOR=#BB0000]act.BeginInvoke(null, null);[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]};[/COLOR]
[COLOR=#BB0000]/* if (SystemSwitch.UsePlatformSDK && (RuntimePlatform.IPhonePlayer == Application.platform || RuntimePlatform.Android == Application.platform)[/COLOR]
[COLOR=#BB0000]&& !PlatformSdkManager.Instance.IsLoginDone && !rc)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]LoggerHelper.Info("PlatformSdkManager.Instance.Login();");[/COLOR]
[COLOR=#BB0000]#if UNITY_IPHONE[/COLOR]
[COLOR=#BB0000]PlatformSdkManager.Instance.LoginCallBack= AfterGetInfo; [/COLOR]
[COLOR=#BB0000]#endif[/COLOR]
[COLOR=#BB0000]PlatformSdkManager.Instance.Login();[/COLOR]
[COLOR=#BB0000]return;[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]*/ //loveomg[/COLOR]
[COLOR=#BB0000]if (SystemSwitch.UsePlatformSDK)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]PlatformSdkManager.Instance.Log("AfterGetInfo");[/COLOR]
[COLOR=#BB0000]PlatformSdkManager.Instance.SetupInfo();[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]AfterGetInfo();[/COLOR]
[COLOR=#BB0000]

Code:
[/COLOR]
[COLOR=#BB0000]if (rst)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]//MogoMsgBox.Instance.ShowFloatingTextQueue("rst:" + rst);[/COLOR]
[COLOR=#BB0000]if (MogoWorld.rc)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]LoggerHelper.Error("----------- MogoWorld.rc --- send rc key " + reConnectKey);[/COLOR]
[COLOR=#BB0000]ServerProxy.Instance.SendReConnectKey(reConnectKey);[/COLOR]
[COLOR=#BB0000]MogoGlobleUIManager.Instance.ShowGlobleStaticText(false, "");[/COLOR]
[COLOR=#BB0000]return;[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]//if (SystemSwitch.UsePlatformSDK && (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer))[/COLOR]
[COLOR=#BB0000]//{[/COLOR]
[COLOR=#BB0000]// LoggerHelper.Error("----------- UsePlatformSDK --- send rc key " + reConnectKey);[/COLOR]
[COLOR=#BB0000]// ServerProxy.Instance.BaseLogin(baseLoginKey);[/COLOR]
[COLOR=#BB0000]//} //loveomg[/COLOR]
[COLOR=#BB0000]else[/COLOR]
[COLOR=#BB0000]{ [/COLOR]
[COLOR=#BB0000]LoggerHelper.Debug("------------ else --- send rc key " + reConnectKey);[/COLOR]
[COLOR=#BB0000]ServerProxy.Instance.Login(LoginInfo.GetPCStrList());[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]CheckDefMD5();[/COLOR]
[COLOR=#BB0000]

This fix works in BlueStacks but in Android, have some error after finishing dungeon
and, don't forget coping server.xml to .../LocalLow/aiyou4399 for Windows
for Android, automatically download server.xml from webserver
but config.xml should be copied in /Android/data/com.ahzs.sy4399 because of login ID
 
Last edited:
Newbie Spellweaver
Joined
Aug 9, 2014
Messages
33
Reaction score
16
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

loveomg, thanks and check it now. But i think this is a temp solution, because remarking code will has some hidden errors that make app wrong in future.

p/s: where's ".../LocalLow/aiyou4399" if i run on Android devices?
 
Newbie Spellweaver
Joined
Mar 13, 2015
Messages
41
Reaction score
8
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

on Android files are on sd card - Android - data - com.ahzs.sy4399
 
Joined
Mar 25, 2007
Messages
662
Reaction score
309
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

Android version bug report
- Sometime, on dungeon reward screen, no text and picture displayed so we can't return to home town
- On login screen, we can't input text in ID field
- config.xml and server.xml must be copied in /Android/data/com.ahzs.sy4399
- When mogo icon clicked, phone should be landscape positioned, or game crashed
 
Last edited:
Divine Celestial
Joined
Feb 25, 2013
Messages
808
Reaction score
343
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

Android version bug report
- Sometime, on dungeon reward screen, no text and picture displayed so we can't return to home town
- On login screen, we can't input text in ID field
- config.xml and server.xml must be copied in /Android/data/com.ahzs.sy4399
- When mogo icon clicked, phone should be landscape positioned, or game crashed


Can you copy the correct files now? Some of us want to start working on this game and not wait for 2 weeks :)
 
Newbie Spellweaver
Joined
Feb 9, 2007
Messages
12
Reaction score
5
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

Oh nice. Im actually playing english version of this game. It's called Dragon Warrior-Fashion Fever on Malaysian appstore. loveomg: can you please share the fixed code to us? I will try to set it up and translate it. Thanks man!
 
Joined
Mar 25, 2007
Messages
662
Reaction score
309
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

for input your ID in login screen,
/client/Assets/Scripts/GameLogic/ScenesManager.cs ------ line 169
remark these lines

Code:
 LoadMainUI(() =>[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]MogoUIManager.Instance.ShowMogoLoginUI(() =>[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]//if (Application.platform == RuntimePlatform.Android ||[/COLOR]
[COLOR=#BB0000]// Application.platform == RuntimePlatform.IPhonePlayer)[/COLOR]
[COLOR=#BB0000]//{[/COLOR]
[COLOR=#BB0000]// if (SystemSwitch.UsePlatformSDK)[/COLOR]
[COLOR=#BB0000]// {[/COLOR]
[COLOR=#BB0000]// LoginUIViewManager.Instance.OnSwitchAccount = PlatformSdkManager.Instance.OnSwitchAccount;[/COLOR]
[COLOR=#BB0000]// LoginUIViewManager.Instance.SwitchToAndroidMode();[/COLOR]
[COLOR=#BB0000]// }[/COLOR]
[COLOR=#BB0000]// [/COLOR]
[COLOR=#BB0000]//} //loveomg[/COLOR]
[COLOR=#BB0000]if (loaded != null)[/COLOR]
[COLOR=#BB0000]loaded(isLoadScene);[/COLOR]
[COLOR=#BB0000]},[/COLOR]
[COLOR=#BB0000](progress) =>[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]process((int)(10 * progress + 90));[/COLOR]
[COLOR=#BB0000]});[/COLOR]
[COLOR=#BB0000]


for translate Chinese characters in UE, (some Chinese fixed in UE)
/client/Assets/Scripts/GUI/LoginUI/LoginUIViewManager.cs ----- line 185
add below codes

Code:
[/COLOR]
[COLOR=#BB0000]var l = m_myTransform.FindChild(m_widgetToFullName["LoginUIUserNameInputTextTip"]).GetComponentsInChildren<UILabel>(true);[/COLOR]
[COLOR=#BB0000]if (l != null)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]l[0].text = "ID";[/COLOR]
[COLOR=#BB0000]l[0].transform.localScale = new Vector3(18, 18, 18);[/COLOR]
[COLOR=#BB0000]}[/COLOR]

[COLOR=#BB0000]l = null;[/COLOR]
[COLOR=#BB0000]l = m_myTransform.FindChild(m_widgetToFullName["RecommendServerUIServerNameTip"]).GetComponentsInChildren<UILabel>(true);[/COLOR]
[COLOR=#BB0000]if (l != null)[/COLOR]
[COLOR=#BB0000]{[/COLOR]
[COLOR=#BB0000]l[0].text = "Server";[/COLOR]
[COLOR=#BB0000]l[0].transform.localScale = new Vector3(18, 18, 18);[/COLOR]
[COLOR=#BB0000]}[/COLOR]
[COLOR=#BB0000]

you can see the result

loveomg - Mobile 3D MORPG Mogo released - RaGEZONE Forums


loveomg - Mobile 3D MORPG Mogo released - RaGEZONE Forums


loveomg - Mobile 3D MORPG Mogo released - RaGEZONE Forums
 
Last edited:
Newbie Spellweaver
Joined
Mar 23, 2013
Messages
72
Reaction score
3
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

for translate Chinese characters in UE, (some Chinese fixed in UE)
/client/Assets/Scripts/GUI/LoginUI/LoginUIManager.cs ----- line 185
add below codes

Not have file this name ?
LoginUIManager.cs
 
Joined
Mar 25, 2007
Messages
662
Reaction score
309
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

@Coolza
sorry, I have mistake.

LoginUIViewManager.cs


@Unity exports
somebody knows how to edit texts in UE
these texts only shown on running time
even more, we can't edit it
so I added some codings for change them forcely
but this way is not efficient
loveomg - Mobile 3D MORPG Mogo released - RaGEZONE Forums
 
Last edited:
Divine Celestial
Joined
Feb 25, 2013
Messages
808
Reaction score
343
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

@Coolza
sorry, I have mistake.

LoginUIViewManager.cs

@UniTY exports
somebody knows how to edit texts in UE
these texts only shown on running time
even more, we can't edit it
so I added some codings for change them forcely
but this way is not efficient
loveomg - Mobile 3D MORPG Mogo released - RaGEZONE Forums

You change everything from XML files.
 
Joined
Mar 25, 2007
Messages
662
Reaction score
309
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

No friend,
these texts not exist in XML
it is only shown in running time on NGUI UI
try to change the Chinese text in login screen
I am sure you can't
 
Last edited:
Joined
Oct 28, 2011
Messages
2,466
Reaction score
1,261
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

Highlight it while its Running.
Stop the game, it will still be highlighted in your scene. (99% of the time, stays visible as highlighted object in scene editor.)
Edit.

There are other ways, but I don't have this open nor downloaded to look.

When are you uploading the fixed files? I'll download soon as you do.
 
Newbie Spellweaver
Joined
Mar 13, 2015
Messages
41
Reaction score
8
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

you just need to edit the prefab as that is what is getting instantiated at runtime

Edit:

modified LoginUI prefab:




to edit a prefab easy way drag it into a scene or blank scene, expand it in Hierarchy and edit bits you want in the Inspector then Apply which saves back to the prefab then just delete from scene now every time that prefab gets used your edits will be applied :cool:
 
Newbie Spellweaver
Joined
Nov 2, 2010
Messages
12
Reaction score
0
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

This game is amazing ^_^

@ hi all,

Which version of SQL Server is used to restore .bak file ?
 
Newbie Spellweaver
Joined
Mar 13, 2015
Messages
41
Reaction score
8
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

see the vm for working server

@loveomg
if you have dungeon fix and any other fixes I can merge them into client and reupload for everyone
 
Newbie Spellweaver
Joined
Nov 2, 2010
Messages
12
Reaction score
0
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

see the vm for working server

@loveomg
if you have dungeon fix and any other fixes I can merge them into client and reupload for everyone

No, I don't want your vm, I only want to build server from source code. And I only ask above question. Do you have any .sql database?
 
Newbie Spellweaver
Joined
Mar 13, 2015
Messages
41
Reaction score
8
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

see OP for original server files if you dont want rip working server files and sql from vm

way I see it is vm works as is and a perfect test bed for getting everything setup then can just copy all the data/file/db from the working vm to your own custom server which might not work at first as it is a pain to get it all setup working as you can see if you read all the posts here

Current client project and files that are tested and working with vm server


Here is my current client project with all the released patches and fixes so far



Here is the Android files that go onto device /Androind/data/
 
Last edited:
Newbie Spellweaver
Joined
Nov 2, 2010
Messages
12
Reaction score
0
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine

UnityRage: thank you

I can't restore .bak with SQL Server 2008.
Maybe I will try to download higher version of SQL server or try to download your vm to extract database.
Thank for your sharing
 
Status
Not open for further replies.
Back
Top