瀏覽代碼

修改游戏服StartSceneConfig配置,解决ice服务重连问题

大爷 2 年之前
父節點
當前提交
a331799dc0

二進制
Config/Excel/StartConfig/Localhost/StartSceneConfig@s.xlsx


+ 0 - 1
Config/GenFromExcel/s/StartConfig/Localhost/StartSceneConfigCategory.bytes

@@ -1,7 +1,6 @@
 
 "Realm*Realm0²ê
 ‘N"Game*Game10³ê
-’N"Game*Game20´ê
 È"Robot*Robot01
 )¬"
RouterManager*
RouterManager0Üì
 ­"Router*Router010Ýì

+ 0 - 1
Config/GenJson/s/StartConfig/Localhost/StartSceneConfig.txt

@@ -1,7 +1,6 @@
 {"list":[
 {"_t":"StartSceneConfig","_id":1,"Process":1,"Zone":1,"SceneType":"Realm","Name":"Realm","OuterPort":30002},
 {"_t":"StartSceneConfig","_id":10001,"Process":1,"Zone":1,"SceneType":"Game","Name":"Game1","OuterPort":30003},
-{"_t":"StartSceneConfig","_id":10002,"Process":1,"Zone":1,"SceneType":"Game","Name":"Game2","OuterPort":30004},
 {"_t":"StartSceneConfig","_id":200,"Process":1,"Zone":2,"SceneType":"Robot","Name":"Robot01","OuterPort":0},
 {"_t":"StartSceneConfig","_id":300,"Process":1,"Zone":3,"SceneType":"RouterManager","Name":"RouterManager","OuterPort":30300},
 {"_t":"StartSceneConfig","_id":301,"Process":1,"Zone":3,"SceneType":"Router","Name":"Router01","OuterPort":30301},

+ 3 - 5
DotNet/Hotfix/Module/IceBattle/BattleIceAgentComponentSystem.cs

@@ -56,12 +56,10 @@ namespace ET.Server
                     ObjectPrx prx = adapter.add(new ZoneManagerCallback(), communicator().stringToIdentity("bs-" + ConstGame.GameServerId));
                     ZoneIce.ice_getCachedConnection().setAdapter(adapter);
                     int ret = ZoneIce.setCallback(prx.ice_getIdentity(), ConstGame.GameServerId.ToString());
+                    if (ret < 0)
                     {
-                        if (ret < 0)
-                        {
-                            Log.Error($"ice connect error: {ret}");
-                            return 2;
-                        }
+                        Log.Error($"ice connect error: {ret}");
+                        return 2;
                     }
 
                     //向战斗服注册本GameServer

+ 0 - 2
GameEditor/.setting/scenes/1.tree

@@ -2,8 +2,6 @@
 <root>
   <objects Name="所有单位" IsExpanded="True">
     <node Name="Region2" IsExpanded="False" />
-    <node Name="Region3" IsExpanded="False" />
-    <node Name="Region4" IsExpanded="False" />
   </objects>
   <events Name="SceneEventEditor" IsExpanded="True">
     <node Name="派发个boss" IsExpanded="False" />

二進制
GameEditor/data/scene_snaps/1.snd


二進制
Unity/Assets/Res/Config/GenFromExcel/MapConfigCategory.bytes


+ 11 - 0
Unity/Assets/Scripts/Codes/Model/Client/Generate/Config/MapConfig.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 428e0f636fc25214492eea715c19dda7
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: