Unity - A计划(永久有效期) 扫二维码继续学习 二维码时效为半小时

(197评价)
价格: 4431.00元
泰斗破坏神做到了服务器部分,但是photon server一启动就自己stop了?
cyl3181515发起了问答2016-12-30
38
回复
11229
浏览

 

 

步骤都是按照教程来了,重启重装软件重做还是不好使

 

下面是日志 Photon-MMoDemo-20161230.log

 

8028: 17:40:10.002 - ---
8028: 17:40:10.002 - Service: "Photon Socket Server" starting
8028: 17:40:10.002 - Config File: F:\atWorking\TaidouPhotonServer\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\bin_Win64\PhotonServer.config
8028: 17:40:10.004 - Will produce at most: 10 crash dumps
8028: 17:40:10.004 - Action: run as exe
8028: 17:40:10.004 - Server Starting...
8028: 17:40:10.004 -    Tick count: 740817 (wraps in: 49.7017 days)
8028: 17:40:10.004 - Tick count 64: 740817
8028: 17:40:10.004 - Photon Version: 4.0.28.2962
8028: 17:40:10.004 - PID: 9112
8028: 17:40:10.004 - Config File: F:\atWorking\TaidouPhotonServer\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\bin_Win64\PhotonServer.config
8028: 17:40:10.005 - Will NOT log unimportant exceptions
8028: 17:40:10.006 - Not using performance counters as they are not currently installed. Run the service with /InstallCounters to install them.
8028: 17:40:10.006 - Shutdown timeout enabled: 30000ms
8028: 17:40:10.006 - Starting I/O thread pool with 2 threads
8028: 17:40:10.007 - Using Standard allocator
8028: 17:40:10.007 - Max message size: 512000
8028: 17:40:10.007 - Starting business logic thread pool with the following settings
8028: 17:40:10.007 - InitialThreads: 4 threads
8028: 17:40:10.007 - MinThreads: 4 threads
8028: 17:40:10.007 - Thread pool is fixed size
8028: 17:40:10.007 - Starting ENet thread pool with the following settings
8028: 17:40:10.007 - InitialThreads: 2 threads
8028: 17:40:10.007 - MinThreads: 2 threads
8028: 17:40:10.007 - Thread pool is fixed size
8028: 17:40:10.007 - OnlyDispatchTimers: False
8028: 17:40:10.007 - S2S: flow control: Max pending writes: 50
8028: 17:40:10.007 - S2S: flow control: Max queued buffers: 200
8028: 17:40:10.007 - S2S: flow control: Max pending writes MUX: 500
8028: 17:40:10.007 - S2S: flow control: Max queued buffers MUX: 2000
8028: 17:40:10.007 - S2S: MaxInboundMessageSize: 512000
8028: 17:40:10.007 - S2S: MaxOutboundMessageSize: 512000
8028: 17:40:10.007 - S2S: No inactivity timeout
8028: 17:40:10.013 - Cannot enable FILE_SKIP_COMPLETION_PORT_ON_SUCCESS as "Netease UU" does not support XP1_IFS_HANDLES. ServiceFlags1 = 0x66
8028: 17:40:10.014 - Cannot enable FILE_SKIP_COMPLETION_PORT_ON_SUCCESS as "Netease UU" does not support XP1_IFS_HANDLES. ServiceFlags1 = 0x66
8028: 17:40:10.014 - WebSocket S2S: MaxInboundMessageSize: 512000
8028: 17:40:10.014 - WebSocket S2S: MaxOutboundMessageSize: 512000
8028: 17:40:10.014 - WebSocket S2S: No inactivity timeout
8028: 17:40:10.014 - Cannot enable FILE_SKIP_COMPLETION_PORT_ON_SUCCESS as "Netease UU" does not support XP1_IFS_HANDLES. ServiceFlags1 = 0x66
8028: 17:40:10.014 - Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
8028: 17:40:10.014 - Per peer bandwidth limit
8028: 17:40:10.014 - Transmit Rate Limit: 256 KB/Sec
8028: 17:40:10.014 - Limit period: 200ms
8028: 17:40:10.014 - Limit per period: 52428 bytes
8028: 17:40:10.014 - Max queued data for transmission per peer: 512000 bytes
8028: 17:40:10.014 - Minimum retransmit timeout: 200
8028: 17:40:10.014 - No Maximum retransmit timeout
8028: 17:40:10.014 - Minimum ENet timeout: 5000ms
8028: 17:40:10.014 - Maximum ENet timeout: 30000ms
8028: 17:40:10.014 - Max Inbound Reliable Data Queued (awaiting resends of earlier sequence numbers) per peer : 163840 bytes
8028: 17:40:10.014 - No RTT ACK adjustment timeout
8028: 17:40:10.014 - Outbound ENet: MaxInboundMessageSize: 512000
8028: 17:40:10.014 - Outbound ENet: MaxOutboundMessageSize: 512000
8028: 17:40:10.014 - Cannot enable FILE_SKIP_COMPLETION_PORT_ON_SUCCESS as "Netease UU" does not support XP1_IFS_HANDLES. ServiceFlags1 = 0x66
8028: 17:40:10.015 - GetRuntime - About to load CLR - versions available:
8028: 17:40:10.015 - v2.0.50727
8028: 17:40:10.015 - v4.0.30319
8028: 17:40:10.015 - Configuration requests: "v2.0.50727"
8028: 17:40:10.015 - About to load version: "v2.0.50727"
8028: 17:40:10.022 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D
8028: 17:40:10.022 - CLRBaseDirectory set to "F:\atWorking\TaidouPhotonServer\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy"
8028: 17:40:10.023 - Optimising event broadcast for 20 or more peers
8028: 17:40:10.023 - Start: About to load CLR - versions available:
8028: 17:40:10.023 - v2.0.50727
8028: 17:40:10.023 - v4.0.30319
8028: 17:40:10.023 - No preference in configuration file, will load latest.
8028: 17:40:10.023 - About to load version: "v4.0.30319"
8028: 17:40:10.024 - Loaded version: "v4.0.30319"
8028: 17:40:10.182 - Photon host runtime loaded
8028: 17:40:12.555 - License is valid.
8028: 17:40:12.555 - Licensed for 100 concurrent connections.
8028: 17:40:12.555 - ENet: Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
8028: 17:40:12.555 - ENet: Per peer bandwidth limit
8028: 17:40:12.555 - ENet: Transmit Rate Limit: 256 KB/Sec
8028: 17:40:12.555 - ENet: Limit period: 200ms
8028: 17:40:12.555 - ENet: Limit per period: 52428 bytes
8028: 17:40:12.555 - ENet: Max queued data for transmission per peer: 512000 bytes
8028: 17:40:12.555 - ENet: Minimum retransmit timeout: 200
8028: 17:40:12.555 - No Maximum retransmit timeout
8028: 17:40:12.555 - ENet: Minimum timeout: 5000ms
8028: 17:40:12.555 - ENet: Maximum timeout: 30000ms
8028: 17:40:12.555 - ENet: Max Inbound Reliable Data Queued (awaiting resends of earlier sequence numbers) per peer : 163840 bytes
8028: 17:40:12.555 - No RTT ACK adjustment timeout
8028: 17:40:12.555 - CService::OnException() - Exception: CXMLConfigurationElement::GetStringValue() - Value: "Name" does not exist
8028: 17:40:12.555 - Server shutting down...
8028: 17:40:12.555 - Shutdown monitoring enabled, 30000ms before process abort
8028: 17:40:12.555 - Notifying CLR applications of shutdown...
8028: 17:40:12.555 - RequestStop: defalt app domain
8028: 17:40:12.556 - Shutting down WebSocket Outbound Connection Manager...
8028: 17:40:12.556 - Shutting down TCP Outbound Connection Manager...
8028: 17:40:12.556 - Shutting down ENet Outbound Connection Manager...
8028: 17:40:12.556 - Disconnecting all outbound peers...
8028: 17:40:12.556 - Shutting down ENet host...
8028: 17:40:12.556 - Disconnecting all peers...
8028: 17:40:12.556 - Shutting down socket servers...
8028: 17:40:12.556 - Shutting down ENet thread pool...
8028: 17:40:12.556 - Shutting down TCP inactivity timers...
8028: 17:40:12.557 - Shutting down CLR applications...
8028: 17:40:12.557 - Shutting down business logic thread pool...
8028: 17:40:12.557 - Shutting down I/O thread pool...
8028: 17:40:12.557 - Destroying servers
8028: 17:40:12.557 - Destroying WebSocket Outbound Connection Manager
8028: 17:40:12.557 - Destroying TCP Outbound Connection Manager
8028: 17:40:12.558 - Destroying TCP inactivity timer
8028: 17:40:12.558 - Destroying ENet timer wheel
8028: 17:40:12.558 - Destroying ENet host
8028: 17:40:12.558 - Destroying ENet outbound host
8028: 17:40:12.558 - Destroying HTTP inactivity timer
8028: 17:40:12.558 - Destroying HTTP host
8028: 17:40:12.558 - Destroying HTTP Chunk host
8028: 17:40:12.558 - Flushing ENET buffer allocator...
8028: 17:40:12.558 - Flushing TCP buffer handle allocator...
8028: 17:40:12.558 - Flushing stream socket allocator...
8028: 17:40:12.558 - Flushing inbound datagram socket allocator...
8028: 17:40:12.558 - Flushing outbound datagram socket allocator...
8028: 17:40:12.558 - Destroying CLR dispatcher
8028: 17:40:12.558 - Destroying CLR applications
8028: 17:40:12.558 - ~CCLRApplicationCollection() - Waiting up to 10 seconds for the CLR to release all of our objects
8028: 17:40:12.558 - ~CCLRApplicationCollection() - Done. All objects released
8028: 17:40:12.558 - ~CManagedHost() - Release default app domain
8028: 17:40:12.558 - CManagedHost::OnDomainUnload() - 1
8028: 17:40:12.558 - ~CManagedHost() - Waiting up to 10 seconds for CLR shutdown...
8028: 17:40:12.558 - ~CManagedHost
8028: 17:40:12.558 - Destroying ENet thread pool
8028: 17:40:12.558 - Destroying Business logic thread pool
8028: 17:40:12.558 - Destroying I/O thread pool
8028: 17:40:12.558 - Destroying ENet buffer allocator
8028: 17:40:12.558 - Destroying TCP buffer allocator
8028: 17:40:12.558 - Destroying TCP socket allocator
8028: 17:40:12.558 - Destroying ENet inbound socket allocator
8028: 17:40:12.558 - Destroying ENet outbound socket allocator
8028: 17:40:12.558 - Destroying shared datagram flow control data
8028: 17:40:12.558 - Shutdown complete...
8028: 17:40:12.558 - Service shutting down: with Exception (1). Errorcode: 6        <---
8028: 17:40:12.559 - Service shut down complete

 

所有回复
  • DialConne 2018-07-20

    但是我配置用的教程给的项目里的photonserver配置文件

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • DialConne 2018-07-20

    老师直接用你给的压缩包那个TaidouPhotonServer.zip里的没问题吧 会不会你把什么设置关了

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • DialConne 2018-07-20

    这个版本的photon现在还能用的吧

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • DialConne 2018-07-21

    我按了Remove之后可以start了 但是用工程里老师你给的build出来的游戏还是选不了服务器

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • DialConne 2018-07-21

    8892: 12:06:05.909 - ---
    8892: 12:06:05.909 - Service: "Photon Socket Server" starting
    8892: 12:06:05.909 - Config File: F:\unity3d\TAIDOU\TaidouPhotonServer\deploy\bin_Win64\PhotonServer.config
    8892: 12:06:06.149 - Will produce at most: 10 crash dumps
    8892: 12:06:06.150 - Action: run as exe
    8892: 12:06:06.175 - Server Starting...
    8892: 12:06:06.175 -    Tick count: 339749062 (wraps in: 45.778 days)
    8892: 12:06:06.175 - Tick count 64: 339749062
    8892: 12:06:06.175 - Photon Version: 3.4.5.2597
    8892: 12:06:06.176 - PID: 3076
    8892: 12:06:06.207 - Config File: F:\unity3d\TAIDOU\TaidouPhotonServer\deploy\bin_Win64\PhotonServer.config
    8892: 12:06:06.209 - Will NOT log unimportant exceptions
    8892: 12:06:06.424 - Not using performance counters as they are not currently installed. Run the service with /InstallCounters to install them.
    8892: 12:06:06.425 - Shutdown timeout enabled: 30000ms
    8892: 12:06:06.575 - Starting I/O thread pool with 2 threads
    8892: 12:06:06.581 - Using Standard allocator
    8892: 12:06:06.581 - Max message size: 512000
    8892: 12:06:06.639 - Starting business logic thread pool with the following settings
    8892: 12:06:06.640 - InitialThreads: 4 threads
    8892: 12:06:06.640 - MinThreads: 4 threads
    8892: 12:06:06.640 - Thread pool is fixed size
    8892: 12:06:06.640 - Starting ENet thread pool with the following settings
    8892: 12:06:06.640 - InitialThreads: 2 threads
    8892: 12:06:06.640 - MinThreads: 2 threads
    8892: 12:06:06.640 - Thread pool is fixed size
    8892: 12:06:06.640 - OnlyDispatchTimers: False
    8892: 12:06:06.641 - S2S: flow control: Max pending writes: 50
    8892: 12:06:06.641 - S2S: flow control: Max queued buffers: 200
    8892: 12:06:06.677 - S2S: flow control: Max pending writes MUX: 500
    8892: 12:06:06.677 - S2S: flow control: Max queued buffers MUX: 2000
    8892: 12:06:06.677 - S2S: MaxInboundMessageSize: 512000
    8892: 12:06:06.677 - S2S: MaxOutboundMessageSize: 512000
    8892: 12:06:06.677 - S2S: No inactivity timeout
    8892: 12:06:06.792 - WebSocket S2S: MaxInboundMessageSize: 512000
    8892: 12:06:06.792 - WebSocket S2S: MaxOutboundMessageSize: 512000
    8892: 12:06:06.792 - WebSocket S2S: No inactivity timeout
    8892: 12:06:06.805 - Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
    8892: 12:06:06.805 - Per peer bandwidth limit
    8892: 12:06:06.805 - Transmit Rate Limit: 256 KB/Sec
    8892: 12:06:06.805 - Limit period: 200ms
    8892: 12:06:06.805 - Limit per period: 52428 bytes
    8892: 12:06:06.805 - Max queued data for transmission per peer: 512000 bytes
    8892: 12:06:06.805 - Minimum retransmit timeout: 200
    8892: 12:06:06.805 - Minimum ENet timeout: 5000ms
    8892: 12:06:06.805 - Maximum ENet timeout: 30000ms
    8892: 12:06:06.805 - Max Inbound Reliable Data Queued (awaiting resends of earlier sequence numbers) per peer : 163840 bytes
    8892: 12:06:06.805 - Outbound ENet: MaxInboundMessageSize: 512000
    8892: 12:06:06.805 - Outbound ENet: MaxOutboundMessageSize: 512000
    8892: 12:06:06.994 - GetRuntime - About to load CLR - versions available:
    8892: 12:06:06.994 - v2.0.50727
    8892: 12:06:06.994 - v4.0.30319
    8892: 12:06:06.994 - Configuration requests: "v2.0.50727"
    8892: 12:06:06.994 - About to load version: "v2.0.50727"
    8892: 12:06:07.362 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D
    8892: 12:06:07.362 - CLRBaseDirectory set to "F:\unity3d\TAIDOU\TaidouPhotonServer\deploy"
    8892: 12:06:07.362 - Optimising event broadcast for 20 or more peers
    8892: 12:06:07.409 - Start: About to load CLR - versions available:
    8892: 12:06:07.409 - v2.0.50727
    8892: 12:06:07.409 - v4.0.30319
    8892: 12:06:07.409 - No preference in configuration file, will load latest.
    8892: 12:06:07.409 - About to load version: "v4.0.30319"
    8892: 12:06:07.692 - Loaded version: "v4.0.30319"
    8892: 12:06:13.840 - Photon host runtime loaded
    8892: 12:06:26.274 - License is valid.
    8892: 12:06:26.274 - Licensed for 100 concurrent connections.
    8892: 12:06:26.299 - ENet: Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
    8892: 12:06:26.299 - ENet: Per peer bandwidth limit
    8892: 12:06:26.299 - ENet: Transmit Rate Limit: 256 KB/Sec
    8892: 12:06:26.299 - ENet: Limit period: 200ms
    8892: 12:06:26.299 - ENet: Limit per period: 52428 bytes
    8892: 12:06:26.299 - ENet: Max queued data for transmission per peer: 512000 bytes
    8892: 12:06:26.299 - ENet: Minimum retransmit timeout: 200
    8892: 12:06:26.299 - ENet: Minimum timeout: 5000ms
    8892: 12:06:26.299 - ENet: Maximum timeout: 30000ms
    8892: 12:06:26.312 - ENet: Max Inbound Reliable Data Queued (awaiting resends of earlier sequence numbers) per peer : 163840 bytes
    8892: 12:06:26.331 - About to load application: TaidouServer from TaidouServer
    8892: 12:06:26.331 - Auto restart is enabled for application, existing connections will be terminated during restart
    8892: 12:06:26.331 - Application will restart 1000ms after the last change detected
    8892: 12:06:26.331 - Application will restart if files matching the following are changed: "dll;config"
    8892: 12:06:26.331 - Application will NOT restart if files matching the following are changed: "log4net.config"
    8892: 12:06:27.207 - Taking reference on default app domain
    8892: 12:06:28.653 - Application: "TaidouServer" started in app domain: 2
    8892: 12:06:28.653 - About to load application: CounterPublisher from CounterPublisher
    8892: 12:06:28.653 - Auto restart is enabled for application, existing connections will be terminated during restart
    8892: 12:06:28.653 - Application will restart 1000ms after the last change detected
    8892: 12:06:28.653 - Application will restart if files matching the following are changed: "dll;config"
    8892: 12:06:28.653 - Application will NOT restart if files matching the following are changed: "log4net.config"
    8892: 12:06:29.086 - Taking reference on default app domain
    8892: 12:06:29.383 - Application: "CounterPublisher" started in app domain: 3
    8892: 12:06:29.416 - Adding TCP listener on :0.0.0.0: 4530 with a listen backlog of: 150
    8892: 12:06:29.416 - TCP inactivity timeout: 10000ms
    8892: 12:06:29.416 - TCP disconnect timeout: 120000ms
    8892: 12:06:29.416 - MaxInboundMessageSize: 512000
    8892: 12:06:29.417 - MaxOutboundMessageSize: 512000
    8892: 12:06:29.438 - Serving policy file requests from: "F:\unity3d\TAIDOU\TaidouPhotonServer\deploy\Policy\assets\socket-policy.xml"
    8892: 12:06:29.482 - MaxInboundMessageSize: 512000
    8892: 12:06:29.482 - MaxOutboundMessageSize: 512000
    8892: 12:06:29.482 - UDP address specified as:0.0.0.0 adding listener to each available IPv4 address
    8892: 12:06:29.483 - Adding UDP listener on :192.168.1.8: 5055 with a listen backlog of: 500
    8892: 12:06:29.484 - Adding UDP listener on :127.0.0.1: 5055 with a listen backlog of: 500
    8892: 12:06:29.484 - Adding Policy File listener on :0.0.0.0: 843 with a listen backlog of: 150 and serving Policy File: "F:\unity3d\TAIDOU\TaidouPhotonServer\deploy\Policy\assets\socket-policy.xml"
    8892: 12:06:29.484 - TCP inactivity timeout: 10000ms
    8892: 12:06:29.485 - Adding Policy File listener on :0.0.0.0: 943 with a listen backlog of: 150 and serving Policy File: "F:\unity3d\TAIDOU\TaidouPhotonServer\deploy\Policy\assets\socket-policy-silverlight.xml"
    8892: 12:06:29.485 - TCP inactivity timeout: 10000ms
    8892: 12:06:29.598 - Service is running...
     

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • DialConne 2018-07-21

    在unity里开始还是火云洞点进去报错

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • DialConne 2018-07-21

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • siki 2018-07-23

    应该是你的配置文件的问题,发一下完整的配置文件怎么书写的

    这个是老师的配置,可以参考

    <MyGameInstance
    		MaxMessageSize="512000"
    		MaxQueuedDataPerPeer="512000"
    		PerPeerMaxReliableDataInTransit="51200"
    		PerPeerTransmitRateLimitKBSec="256"
    		PerPeerTransmitRatePeriodMilliseconds="200"
    		MinimumTimeout="5000"
    		MaximumTimeout="30000"
    		DisplayName="My Game"
    		>
    
        <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. -->
        <!-- Port 5055 is Photon's default for UDP connections. -->
        <UDPListeners>
          <UDPListener
    				IPAddress="0.0.0.0"
    				Port="5055"
    				OverrideApplication="MyGame1">
          </UDPListener>
        </UDPListeners>
    
        <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. -->
        <!-- Port 4530 is Photon's default for TCP connecttions. -->
        <!-- A Policy application is defined in case that policy requests are sent to this listener (known bug of some some flash clients) -->
        <TCPListeners>
          <TCPListener
    				IPAddress="0.0.0.0"
    				Port="4530"
    				PolicyFile="Policy\assets\socket-policy.xml"
    				InactivityTimeout="10000"
    				OverrideApplication="MyGame1"
    				>
          </TCPListener>
        </TCPListeners>
    
       
        <!-- Defines the Photon Runtime Assembly to use. -->
        <Runtime
    			Assembly="PhotonHostRuntime, Culture=neutral"
    			Type="PhotonHostRuntime.PhotonDomainManager"
    			UnhandledExceptionPolicy="Ignore">
        </Runtime>
    
    
        <!-- Defines which applications are loaded on start and which of them is used by default. Make sure the default application is defined. -->
        <!-- Application-folders must be located in the same folder as the bin_win32 folders. The BaseDirectory must include a "bin" folder. -->
        <Applications Default="MyGame1">
    
          <!-- MMO Demo Application -->
          <Application
    				Name="MyGame1"
    				BaseDirectory="MyGameServer"
    				Assembly="MyGameServer"
    				Type="MyGameServer.MyGameServer"
    				ForceAutoRestart="true"
    				WatchFiles="dll;config"
    				ExcludeFiles="log4net.config">
          </Application>
    
    
        </Applications>
      </MyGameInstance>

     

    • DialConne 2018-07-23

      <?xml version="1.0" encoding="utf-8" ?>
      <configuration>

      <configSections>
      <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
      <section name="PhotonControl.PhotonControlSettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
      </sectionGroup>
      </configSections>

      <startup>
      <supportedRuntime version="v4.0"/>
      <supportedRuntime version="v2.0.50727"/>
      </startup>

      <userSettings>
      <PhotonControl.PhotonControlSettings>
      <setting name="PhotonWorkingDirectory" serializeAs="String">
      <value />
      </setting>
      <setting name="CounterServiceName" serializeAs="String">
      <value>PhontonDashboardService</value>
      </setting>
      <setting name="LogManCreateOptions" serializeAs="String">
      <value>-si 01:00 -v mmddhhmm -cf "..\bin_tools\perfmon\logman.config.txt"</value>
      </setting>
      <setting name="LogManSetName" serializeAs="String">
      <value>photon_perf_log</value>
      </setting>
      <setting name="Compact" serializeAs="String">
      <value>False</value>
      </setting>
      <setting name="TestClientArguments" serializeAs="String">
      <value>Lite,Master</value>
      </setting>
      <setting name="TestClientPaths" serializeAs="String">
      <value>..\bin_tools\stardust\StarDust.cmd,..\bin_tools\loadbalancing.client\Photon.LoadBalancing.TestClient.exe</value>
      </setting>
      <setting name="Instances" serializeAs="String">
      <value>Default,LoadBalancing (MyCloud)</value>
      </setting>
      <setting name="GameServerConfigPaths" serializeAs="String">
      <value>..\Loadbalancing\GameServer1\bin\Photon.LoadBalancing.dll.config;..\Loadbalancing\GameServer2\bin\Photon.LoadBalancing.dll.config</value>
      </setting>
      <setting name="ReplaceFirewallRules" serializeAs="String">
      <value>True</value>
      </setting>
      <setting name="UseCmdFileToOpenLogs" serializeAs="String">
      <value>False</value>
      </setting>
      </PhotonControl.PhotonControlSettings>
      </userSettings>
      </configuration>

      (0) 回复
    • DialConne 2018-07-23

      老师你那是泰斗的服务器配置吗和教程里配置不一样

      (0) 回复
    • DialConne 2018-07-23

      还有上张图里OnServerpanelClose为什么没被调用之后换了方法吗大概在哪一集改的

      (0) 回复
    • DialConne 2018-07-23

      <?xml version="1.0" encoding="Windows-1252"?>
      <!--
      (c) 2010 by Exit Games GmbH, http://www.exitgames.com
      Photon server configuration file.
      For details see the photon-config.pdf.

      This file contains two configurations:

      "Default"
      Default. Various applications and demos.
      Starts the apps: Lite, LiteLobby, MmoDemo, CounterPublisher and Policy
      Listens: udp-port 5055, tcp-port: 4530, 843 and 943
      "LoadBalancing"
      Loadbalanced setup for local development: A Master-server and two game-servers.
      Starts the apps: Game1, Game2, Master, CounterPublisher and Policy
      Listens: udp-port 5055, tcp-port: 4530, 843 and 943
      -->

      <Configuration>
      <!-- Multiple instances are supported. Each instance has its own node in the config file. -->
      <!-- PhotonControl will currently only start "Default" but the .cmd files could be modified to start other instances. -->

      <!-- Instance settings -->
      <Default
      MaxMessageSize="512000"
      MaxQueuedDataPerPeer="512000"
      PerPeerMaxReliableDataInTransit="51200"
      PerPeerTransmitRateLimitKBSec="256"
      PerPeerTransmitRatePeriodMilliseconds="200"
      MinimumTimeout="5000"
      MaximumTimeout="30000">

      <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. -->
      <!-- Port 5055 is Photon's default for UDP connections. -->
      <UDPListeners>
      <UDPListener
      IPAddress="0.0.0.0"
      Port="5055">
      </UDPListener>
      </UDPListeners>

      <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. -->
      <!-- Port 4530 is Photon's default for TCP connecttions. -->
      <!-- A Policy application is defined in case that policy requests are sent to this listener (known bug of some some flash clients) -->
      <TCPListeners>
      <TCPListener
      IPAddress="0.0.0.0"
      Port="4530"
      PolicyFile="Policy\assets\socket-policy.xml"
      InactivityTimeout="10000"
      >
      </TCPListener>
      </TCPListeners>

      <!-- Policy request listener for Unity and Flash (port 843) and Silverlight (port 943) -->
      <PolicyFileListeners>
      <!-- multiple Listeners allowed for different ports -->
      <PolicyFileListener
      IPAddress="0.0.0.0"
      Port="843"
      PolicyFile="Policy\assets\socket-policy.xml"
      InactivityTimeout="10000">
      </PolicyFileListener>
      <PolicyFileListener
      IPAddress="0.0.0.0"
      Port="943"
      PolicyFile="Policy\assets\socket-policy-silverlight.xml"
      InactivityTimeout="10000">
      </PolicyFileListener>
      </PolicyFileListeners>

      <!-- WebSocket (and Flash-Fallback) compatible listener -->
      <WebSocketListeners>
      <WebSocketListener
      IPAddress="0.0.0.0"
      Port="9090"
      DisableNagle="true"
      InactivityTimeout="10000"
      OverrideApplication="Lite">
      </WebSocketListener>
      </WebSocketListeners>

      <!-- Defines the Photon Runtime Assembly to use. -->
      <Runtime
      Assembly="PhotonHostRuntime, Culture=neutral"
      Type="PhotonHostRuntime.PhotonDomainManager"
      UnhandledExceptionPolicy="Ignore">
      </Runtime>

      <!-- Defines which applications are loaded on start and which of them is used by default. Make sure the default application is defined. -->
      <!-- Application-folders must be located in the same folder as the bin_win32 folders. The BaseDirectory must include a "bin" folder. -->
      <Applications Default="Lite">
      <!-- Lite Application -->
      <Application
      Name="Lite"
      BaseDirectory="Lite"
      Assembly="Lite"
      Type="Lite.LiteApplication"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config">
      </Application>

      <Application
      Name="ChatServer"
      BaseDirectory="ChatServer"
      Assembly="ChatServer"
      Type="ChatServer.ChatServer"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config">
      </Application>

      <!-- LiteLobby Application -->
      <Application
      Name="LiteLobby"
      BaseDirectory="LiteLobby"
      Assembly="LiteLobby"
      Type="LiteLobby.LiteLobbyApplication"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config">
      </Application>

      <!-- MMO Demo Application -->
      <Application
      Name="MmoDemo"
      BaseDirectory="MmoDemo"
      Assembly="Photon.MmoDemo.Server"
      Type="Photon.MmoDemo.Server.PhotonApplication"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config">
      </Application>

      <!-- CounterPublisher Application -->
      <Application
      Name="CounterPublisher"
      BaseDirectory="CounterPublisher"
      Assembly="CounterPublisher"
      Type="Photon.CounterPublisher.Application"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config">
      </Application>

      </Applications>
      </Default>

      <LoadBalancing
      MaxMessageSize="512000"
      MaxQueuedDataPerPeer="512000"
      PerPeerMaxReliableDataInTransit="51200"
      PerPeerTransmitRateLimitKBSec="256"
      PerPeerTransmitRatePeriodMilliseconds="200"
      MinimumTimeout="5000"
      MaximumTimeout="30000"
      DisplayName="LoadBalancing (MyCloud)">

      <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. -->
      <!-- Port 5055 is Photon's default for UDP connections. -->
      <UDPListeners>
      <UDPListener
      IPAddress="0.0.0.0"
      Port="5055"
      OverrideApplication="Master">
      </UDPListener>
      <UDPListener
      IPAddress="0.0.0.0"
      Port="5056"
      OverrideApplication="Game1">
      </UDPListener>
      <UDPListener
      IPAddress="0.0.0.0"
      Port="5057"
      OverrideApplication="Game2">
      </UDPListener>
      </UDPListeners>

      <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. -->
      <TCPListeners>
      <!-- TCP listener for Game clients on Master application -->
      <TCPListener
      IPAddress="0.0.0.0"
      Port="4530"
      OverrideApplication="Master"
      PolicyFile="Policy\assets\socket-policy.xml"
      InactivityTimeout="10000"
      >
      </TCPListener>

      <TCPListener
      IPAddress="0.0.0.0"
      Port="4531"
      OverrideApplication="Game1"
      PolicyFile="Policy\assets\socket-policy.xml"
      InactivityTimeout="10000">
      </TCPListener>

      <TCPListener
      IPAddress="0.0.0.0"
      Port="4532"
      OverrideApplication="Game2"
      PolicyFile="Policy\assets\socket-policy.xml"
      InactivityTimeout="10000">
      </TCPListener>

      <!-- DON'T EDIT THIS. TCP listener for GameServers on Master application -->
      <TCPListener
      IPAddress="0.0.0.0"
      Port="4520">
      </TCPListener>
      </TCPListeners>

      <!-- Policy request listener for Unity and Flash (port 843) and Silverlight (port 943) -->
      <PolicyFileListeners>
      <!-- multiple Listeners allowed for different ports -->
      <PolicyFileListener
      IPAddress="0.0.0.0"
      Port="843"
      PolicyFile="Policy\assets\socket-policy.xml">
      </PolicyFileListener>
      <PolicyFileListener
      IPAddress="0.0.0.0"
      Port="943"
      PolicyFile="Policy\assets\socket-policy-silverlight.xml">
      </PolicyFileListener>
      </PolicyFileListeners>

      <!-- WebSocket (and Flash-Fallback) compatible listener -->
      <WebSocketListeners>
      <WebSocketListener
      IPAddress="0.0.0.0"
      Port="9090"
      DisableNagle="true"
      InactivityTimeout="10000"
      OverrideApplication="Master">
      </WebSocketListener>

      <WebSocketListener
      IPAddress="0.0.0.0"
      Port="9091"
      DisableNagle="true"
      InactivityTimeout="10000"
      OverrideApplication="Game1">
      </WebSocketListener>

      <WebSocketListener
      IPAddress="0.0.0.0"
      Port="9092"
      DisableNagle="true"
      InactivityTimeout="10000"
      OverrideApplication="Game2">
      </WebSocketListener>
      </WebSocketListeners>

      <!-- Defines the Photon Runtime Assembly to use. -->
      <Runtime
      Assembly="PhotonHostRuntime, Culture=neutral"
      Type="PhotonHostRuntime.PhotonDomainManager"
      UnhandledExceptionPolicy="Ignore">
      </Runtime>

      <!-- Defines which applications are loaded on start and which of them is used by default. Make sure the default application is defined. -->
      <!-- Application-folders must be located in the same folder as the bin_win32 folders. The BaseDirectory must include a "bin" folder. -->
      <Applications Default="Master">
      <Application
      Name="Master"
      BaseDirectory="LoadBalancing\Master"
      Assembly="Photon.LoadBalancing"
      Type="Photon.LoadBalancing.MasterServer.MasterApplication"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config"
      >
      </Application>
      <Application
      Name="Game1"
      BaseDirectory="LoadBalancing\GameServer1"
      Assembly="Photon.LoadBalancing"
      Type="Photon.LoadBalancing.GameServer.GameApplication"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config">
      </Application>
      <Application
      Name="Game2"
      BaseDirectory="LoadBalancing\GameServer2"
      Assembly="Photon.LoadBalancing"
      Type="Photon.LoadBalancing.GameServer.GameApplication"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config">
      </Application>

      <!-- CounterPublisher Application -->
      <Application
      Name="CounterPublisher"
      BaseDirectory="CounterPublisher"
      Assembly="CounterPublisher"
      Type="Photon.CounterPublisher.Application"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config">
      </Application>
      </Applications>
      </LoadBalancing>

      <TaidouServer
      MaxMessageSize="512000"
      MaxQueuedDataPerPeer="512000"
      PerPeerMaxReliableDataInTransit="51200"
      PerPeerTransmitRateLimitKBSec="256"
      PerPeerTransmitRatePeriodMilliseconds="200"
      MinimumTimeout="5000"
      MaximumTimeout="30000">

      <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. -->
      <!-- Port 5055 is Photon's default for UDP connections. -->
      <UDPListeners>
      <UDPListener
      IPAddress="0.0.0.0"
      Port="5055">
      </UDPListener>
      </UDPListeners>

      <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. -->
      <!-- Port 4530 is Photon's default for TCP connecttions. -->
      <!-- A Policy application is defined in case that policy requests are sent to this listener (known bug of some some flash clients) -->
      <TCPListeners>
      <TCPListener
      IPAddress="0.0.0.0"
      Port="4530"
      PolicyFile="Policy\assets\socket-policy.xml"
      InactivityTimeout="10000"
      >
      </TCPListener>
      </TCPListeners>

      <!-- Policy request listener for Unity and Flash (port 843) and Silverlight (port 943) -->
      <PolicyFileListeners>
      <!-- multiple Listeners allowed for different ports -->
      <PolicyFileListener
      IPAddress="0.0.0.0"
      Port="843"
      PolicyFile="Policy\assets\socket-policy.xml"
      InactivityTimeout="10000">
      </PolicyFileListener>
      <PolicyFileListener
      IPAddress="0.0.0.0"
      Port="943"
      PolicyFile="Policy\assets\socket-policy-silverlight.xml"
      InactivityTimeout="10000">
      </PolicyFileListener>
      </PolicyFileListeners>

      <!-- Defines the Photon Runtime Assembly to use. -->
      <Runtime
      Assembly="PhotonHostRuntime, Culture=neutral"
      Type="PhotonHostRuntime.PhotonDomainManager"
      UnhandledExceptionPolicy="Ignore">
      </Runtime>

      <!-- Defines which applications are loaded on start and which of them is used by default. Make sure the default application is defined. -->
      <!-- Application-folders must be located in the same folder as the bin_win32 folders. The BaseDirectory must include a "bin" folder. -->
      <Applications Default="TaidouServer">
      <!-- Lite Application -->
      <Application
      Name="TaidouServer"
      BaseDirectory="TaidouServer"
      Assembly="TaidouServer"
      Type="TaidouServer.TaidouApplication"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config">
      </Application>

      <!-- CounterPublisher Application -->
      <Application
      Name="CounterPublisher"
      BaseDirectory="CounterPublisher"
      Assembly="CounterPublisher"
      Type="Photon.CounterPublisher.Application"
      ForceAutoRestart="true"
      WatchFiles="dll;config"
      ExcludeFiles="log4net.config">
      </Application>

      </Applications>
      </TaidouServer>

      </Configuration>

      (0) 回复
    • DialConne 2018-07-23

      好吧我发错了

      (0) 回复
    • DialConne 2018-07-23

      DisplayName="My Game"里My Game可以随意定义吗

      (0) 回复
    还有1条回复,点击查看
    你还没有登录,请先登录注册
  • 小霸亡 2018-07-25

    问题解决了,打开PhotonServer配置文件后需要删除里面的PolicyFileListeners标签,在重启一下PhotonServer即可正常运行(什么原因我也不清楚,就靠各位大佬去研究了)

    • DialConne 2018-07-25

      <!-- Policy request listener for Unity and Flash (port 843) and Silverlight (port 943) -->
      <PolicyFileListeners>
      <!-- multiple Listeners allowed for different ports -->
      <PolicyFileListener
      IPAddress="0.0.0.0"
      Port="843"
      PolicyFile="Policy\assets\socket-policy.xml"
      InactivityTimeout="10000">
      </PolicyFileListener>
      <PolicyFileListener
      IPAddress="0.0.0.0"
      Port="943"
      PolicyFile="Policy\assets\socket-policy-silverlight.xml"
      InactivityTimeout="10000">
      </PolicyFileListener>
      </PolicyFileListeners>

      (0) 回复
    • DialConne 2018-07-25

      是这里都删除吗

      (0) 回复
    • DialConne 2018-07-25

      <TaidouServer只删除里的吗

      (0) 回复
    • DialConne 2018-07-25

      真的可以了感谢

      (0) 回复
    • DialConne 2018-07-25

      再问一下 你的泰斗build出来的版本进入战斗场景会在进度条50%的时候崩溃吗?

      (0) 回复
    还有0条回复,点击查看
    你还没有登录,请先登录注册
  • DialConne 2018-07-25

    老师 泰斗build出来的版本进入战斗场景会在进度条50%的时候崩溃怎么办 上面服务器读取不了的问题解决了但是进战斗场景会崩溃

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
发表回复
你还没有登录,请先 登录或 注册!