CJR Gaming Photon Tutorial: Error

Options
Code_Of_Honour
edited October 2012 in Photon Server
Hello everyone,
I have been following CJR Gaming's Server2Server tutorial series, and I am currently on video number 10. However, in this video, you are required to drag 2 .dll(s) from the deploy/projectname/bin folder into Unity. For some reason, I could not find these dlls. So, I thought to myself "Maybe if I run Photon Control, it'll create the dlls." However, when I ran Photon Control, it crashed, giving me these logs:

[code2=plain]7332: 09:36:04.021 - Service: "Photon Socket Server" starting
7332: 09:36:04.022 - Config File: C:\Photon\deploy\bin_Win64\PhotonServer.config
7332: 09:36:04.044 - Will produce at most: 10 crash dumps
7332: 09:36:04.045 - Action:service
6688: 09:36:04.050 - Server Starting...
6688: 09:36:04.051 - Tick count: 61133827 (wraps in: 49.0027 days)
6688: 09:36:04.051 - Tick count 64: 61133827
6688: 09:36:04.051 - Photon Version: 3.0.27.1684
6688: 09:36:04.051 - PID: 7776
6688: 09:36:04.051 - Current directory is: C:\Windows\system32
6688: 09:36:04.051 - Changing current directory to: C:\Photon\deploy\bin_Win64
6688: 09:36:04.052 - Config File: C:\Photon\deploy\bin_Win64\PhotonServer.config
6688: 09:36:04.063 - Not using performance counters as they are not currently installed. Run the service with /InstallCounters to install them.
6688: 09:36:04.066 - Max message size: 512000
6688: 09:36:04.070 - S2S: MaxInboundMessageSize: 512000
6688: 09:36:04.071 - S2S: MaxOutboundMessageSize: 512000
6688: 09:36:04.071 - S2S: No inactivity timeout
6688: 09:36:04.390 - Max Reliable Data In Transit (awaiting ACKs) per peer : 16384 bytes
6688: 09:36:04.390 - Per peer bandwidth limit
6688: 09:36:04.390 - Transmit Rate Limit: 128 KB/Sec
6688: 09:36:04.390 - Limit period: 200ms
6688: 09:36:04.390 - Limit per period: 26214 bytes
6688: 09:36:04.390 - Max queued data for transmission per peer: 65536 bytes
6688: 09:36:04.390 - Minimum retransmit timeout: 200
6688: 09:36:04.391 - Minimum ENet timeout: 5000ms
6688: 09:36:04.391 - Maximum ENet timeout: 10000ms
6688: 09:36:04.391 - Outbound ENet: MaxInboundMessageSize: 512000
6688: 09:36:04.391 - Outbound ENet: MaxOutboundMessageSize: 512000
6688: 09:36:04.578 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D
6688: 09:36:04.578 - CLRBaseDirectory set to "C:\Photon\deploy"
6688: 09:36:04.578 - Optimising event broadcast for 20 or more peers
6688: 09:36:04.584 - About to load CLR - versions available:
6688: 09:36:04.584 - v2.0.50727
6688: 09:36:04.584 - v4.0.30319
6688: 09:36:04.584 - No preference in configuration file, will load latest.
6688: 09:36:04.585 - About to load version: "v4.0.30319"
6688: 09:36:04.667 - Loaded version: "v4.0.30319"
6688: 09:36:06.563 - Photon host runtime loaded
6688: 09:36:28.962 - License is valid.
6688: 09:36:28.962 - Licensed for 100 concurrent connections.
6688: 09:36:28.962 - Max Reliable Data In Transit (awaiting ACKs) per peer : 16384 bytes
6688: 09:36:28.962 - Per peer bandwidth limit
6688: 09:36:28.962 - Transmit Rate Limit: 128 KB/Sec
6688: 09:36:28.962 - Limit period: 200ms
6688: 09:36:28.962 - Limit per period: 26214 bytes
6688: 09:36:28.962 - Max queued data for transmission per peer: 65536 bytes
6688: 09:36:28.962 - Minimum retransmit timeout: 200
6688: 09:36:28.962 - Minimum ENet timeout: 5000ms
6688: 09:36:28.962 - Maximum ENet timeout: 10000ms
6688: 09:36:28.963 - CENetHost: Using Timer Wheel
6688: 09:36:28.964 - About to load application: Master from Server2Server
6688: 09:36:29.087 - CService::OnException() - Exception: CManagedHost::CreateApplicationInNewAppDomain() - Failed to create new application domain for : "Master" - Can't find Server2Server.dll in or C:\Photon\deploy\Server2Server\bin
6688: 09:36:29.087 - Server shutting down...
6688: 09:36:29.087 - Notifying CLR applications of shutdown...
7332: 09:36:29.087 - Service shutting down
6688: 09:36:29.095 - Shutting down TCP Outbound Connection Manager...
6688: 09:36:29.095 - Shutting down ENet Outbound Connection Manager...
6688: 09:36:29.095 - Disconnecting all outbound peers...
6688: 09:36:29.095 - Shutting down ENet host...
6688: 09:36:29.096 - Disconnecting all peers...
6688: 09:36:29.096 - Shutting down socket servers...
6688: 09:36:29.096 - Shutting down ENet thread pool...
6688: 09:36:29.096 - Shutting down TCP inactivity timers...
6688: 09:36:29.096 - Shutting down CLR applications...
6688: 09:36:29.096 - Shutting down business logic thread pool...
6688: 09:36:29.097 - Shutting down I/O thread pool...
6688: 09:36:29.097 - Flushing ENET buffer allocator...
6688: 09:36:29.097 - Flushing TCP buffer allocator...
6688: 09:36:29.097 - Flushing TCP buffer handle allocator...
6688: 09:36:29.097 - Flushing stream socket allocator...
6688: 09:36:29.097 - Flushing inbound datagram socket allocator...
6688: 09:36:29.097 - Flushing outbound datagram socket allocator...
6688: 09:36:29.097 - Destroying ENet thread pool
6688: 09:36:29.097 - Destroying Business logic thread pool
6688: 09:36:29.097 - Destroying servers
6688: 09:36:29.098 - Destroying TCP Outbound Connection Manager
6688: 09:36:29.098 - Destroying resolver
6688: 09:36:29.098 - Destroying TCP Proxy Connection Manager
6688: 09:36:29.098 - Destroying TCP inactivity timer
6688: 09:36:29.098 - Destroying ENet host
6688: 09:36:29.098 - Destroying ENet host
6688: 09:36:29.098 - Destroying CLR dispatcher
6688: 09:36:29.098 - Destroying CLR applications
6688: 09:36:29.158 - Destroying I/O thread pool
6688: 09:36:29.158 - Destroying ENet buffer allocator
6688: 09:36:29.158 - Destroying TCP buffer allocator
6688: 09:36:29.158 - Destroying TCP socket allocator
6688: 09:36:29.158 - Destroying ENet inbound socket allocator
6688: 09:36:29.158 - Destroying ENet outbound socket allocator
6688: 09:36:29.158 - Destroying performance counters
6688: 09:36:29.159 - Shutdown complete...
7332: 09:36:29.159 - Service shut down complete[/code2]

Obviously, I seem to be missing a lot of dlls. I also checked the tutorial, and confirmed that I am missing a bunch of dlls, as they were all shown on-screen at some point. However, I cannot find a point in the tutorial where it tells how to get these dlls. Help, please?

Comments

  • Tobias
    Options
    The Server2Server.dll is maybe no longer a separate dll anymore.

    Usually, you don't have to drag and drop dlls around. Especially if you want to build your own game logic, you better reference the assemblies (dlls) needed and then let your compiler copy the dlls as needed.

    If you can compile your project, it should be able to run once copied to the /deploy folder (completely).
  • dragagon
    Options
    In my tutorial series I usually open up the project properties and under Build in the output path I put c:\Photon\deploy\Server2Server\bin so that everything copies over correctly.