Unity Community


Page 2 of 25 FirstFirst 123412 ... LastLast
Results 21 to 40 of 487

  1. Location
    Belarus
    Posts
    721
    How should I specify to which machines to load balance? (if for example Game1 and Game2 are on different machines)


  2. Location
    Australia
    Posts
    30
    Hi Tobias, great product! I'm guessing the Windows Azure deploy kit should be out soon too?

    Just wondering is there a reason why only the Win_32 binaries are included in the Photon-Server zip?


  3. Location
    Hamburg, Germany
    Posts
    71
    Quote Originally Posted by gnoblin View Post
    How should I specify to which machines to load balance? (if for example Game1 and Game2 are on different machines)
    By specifiying their urls/ips and ports in the config.
    Client Engineer
    EXIT GAMES - Multiplayer Engine for Cross-Platform Gaming
    Exit Games Photon - Exit Games Blog


  4. Location
    Russian, Volgograd
    Posts
    5
    Hi.
    JavaScript conflict: BCE0004: Ambiguous reference 'RPC': PhotonView.RPC(String, PhotonTargets, *Object[]), PhotonView.RPC(String, PhotonPlayer, *Object[]), UnityEngine.RPC. What to do?


  5. Location
    The Netherlands
    Posts
    879
    Quote Originally Posted by Igavva View Post
    Hi.
    JavaScript conflict: BCE0004: Ambiguous reference 'RPC': PhotonView.RPC(String, PhotonTargets, *Object[]), PhotonView.RPC(String, PhotonPlayer, *Object[]), UnityEngine.RPC. What to do?
    How are you calling the RPC?
    Mike Hergaarden - M2H Game Studio - http://twitter.com/M2Hgames

    Unity 3D game portal: Wooglie.com
    Free Unity resources/projects M2HCulling, Networking tutorial and more


  6. Location
    The Netherlands
    Posts
    879
    Quote Originally Posted by gnoblin View Post
    Package on asset store doesn't contain source code for serverside app(s) - should I just take lite app sources from previous releases? (I'd like to add some logic on the server and not just send data from client to client). Sorry if I misunderstood something .

    What is the difference between Master, Game1 and Game2 apps? (is there any place I missed where I can read about it?)
    Game1 and Game2 are no different...but different instances. They could've been placed on two seperate servers. Master is the app that routes all players to a game server. (The master contains the room list of rooms on ALL game servers).

    Currently you cannot -yet- modify the server side logic. This is an idea for future updates though. You need to use the bundled server, using the lite app server will not work. When&if server side logic is added, you will be able to use RPCTarger.Server to send an RPC to the server only.
    Mike Hergaarden - M2H Game Studio - http://twitter.com/M2Hgames

    Unity 3D game portal: Wooglie.com
    Free Unity resources/projects M2HCulling, Networking tutorial and more


  7. Location
    Hamburg
    Posts
    72
    Quote Originally Posted by yunspace View Post
    I'm guessing the Windows Azure deploy kit should be out soon too?
    Indeed - Azure version is in the works and looks good already. We had to build a special tech to allow sticky sessions with a specific node through the Azure Loadbalancer.

    Quote Originally Posted by yunspace View Post
    Just wondering is there a reason why only the Win_32 binaries are included in the Photon-Server zip?
    This version runs on all Windows Versions: XP, Vista, Win7, Server 2008 and 32 and 64bit. So this Photon binary is only 7MB in size and fits neatly into the package.
    Last edited by bertelmonster2k; 08-26-2011 at 02:19 AM.
    Photon Cloud: Realtime :: Turnbased :: Chat
    53k+ developers. Get our SDKs in the Asset Store


  8. Posts
    44
    a couple of side notes that knocked me for a loop that may help others. I downloaded and everything worked amazingly well on my home network. When I put my public ip address for our house, it didn't... nothing to do with yours, but I guess my router and / or isp doesn't allow you to "connect to yourself"

    Also, I have a virtual dedicated server that I thought I would try it on. Since its just a base machine without Unity, I downloaded from your site instead of from the link in this thread. Maybe it was me, but I could never get it to connect. After scratching my head for about a day, I put this threads version on the virtual dedicated server, changed the ip in the load balances and its working good.


  9. Location
    Russian, Volgograd
    Posts
    5
    Quote Originally Posted by Leepo View Post
    How are you calling the RPC?
    import PhotonView;
    import PhotonTargets;
    import PhotonPlayer;

    var hp : int = 100;

    function ApplyDamage (hp: int){
    photonView.RPC("setHP",PhotonTargets.Others, hp);
    }

    @RPC
    function setHP(newHP : int){
    hp=newHP;
    }


  10. Location
    Hamburg
    Posts
    72
    Quote Originally Posted by rhamm1320 View Post
    Also, I have a virtual dedicated server that I thought I would try it on. Since its just a base machine without Unity, I downloaded from your site instead of from the link in this thread. Maybe it was me, but I could never get it to connect. After scratching my head for about a day, I put this threads version on the virtual dedicated server, changed the ip in the load balances and its working good.
    "Photon Unity Networking" uses the brand new Photon3 which will go live next week. It supports load balancing across nodes out of the box which is used here as well.
    Photon Cloud: Realtime :: Turnbased :: Chat
    53k+ developers. Get our SDKs in the Asset Store


  11. Posts
    31
    ReflectionException: Can not read main module
    Mono.Cecil.StructureReader.VisitModuleDefinitionCo llection (Mono.Cecil.ModuleDefinitionCollection modules)
    Mono.Cecil.ModuleDefinitionCollection.Accept (IReflectionStructureVisitor visitor)
    Mono.Cecil.AssemblyDefinition.Accept (IReflectionStructureVisitor visitor)
    Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader irv, Boolean manifestOnly)
    Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader reader)
    Mono.Cecil.AssemblyFactory.GetAssembly (System.String file)
    UnityEditor.AssemblyHelper.ExtractAllClassesThatIn heritMonoBehaviourAndScriptableObject (System.String path, System.String[]& classNamesArray, System.String[]& classNameSpacesArray) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/AssemblyHelper.cs:144)
    +19 nulls,reflection exceptions and internal compiler errors


  12. Location
    Hamburg
    Posts
    732
    phil_ivey
    That doesn't really look like something from the plugin. If it's causing this, then you should report a bug to Unity.
    In 3.4, we tested the plugin.

    Igavva
    Ambiguous reference 'RPC': PhotonView.RPC(String, PhotonTargets, *Object[]), PhotonView.RPC(String, PhotonPlayer, *Object[]), UnityEngine.RPC.
    Maybe you copied the plugins folder to your project's base, when you should have moved it? Try a search for "Plugins" or "Photon Unity Networking" in the Project "search" of the Editor. I assume you find it twice. Remove one.

    I think the other questions are already answered?

    I will ask one myself: How are you doing so far with the plugin?

    From my perspective, unzipping and starting the server is one the biggest inconvenience but this will become obsolete with the upcoming hosted service.


  13. Location
    Russian, Volgograd
    Posts
    5
    Quote Originally Posted by TobiasS View Post
    phil_ivey
    That doesn't really look like something from the plugin. If it's causing this, then you should report a bug to Unity.
    In 3.4, we tested the plugin.

    Igavva
    Ambiguous reference 'RPC': PhotonView.RPC(String, PhotonTargets, *Object[]), PhotonView.RPC(String, PhotonPlayer, *Object[]), UnityEngine.RPC.
    Maybe you copied the plugins folder to your project's base, when you should have moved it? Try a search for "Plugins" or "Photon Unity Networking" in the Project "search" of the Editor. I assume you find it twice. Remove one.

    I think the other questions are already answered?

    I will ask one myself: How are you doing so far with the plugin?

    From my perspective, unzipping and starting the server is one the biggest inconvenience but this will become obsolete with the upcoming hosted service.
    I fixed my issue.
    #pragma strict
    public class Machinegun extends Photon.MonoBehaviour {
    /////
    }
    Last edited by Igavva; 08-27-2011 at 07:39 AM.


  14. Posts
    14
    server does NOT start....

    Window xp pro SP 3
    -----------------------------------

    Hi, got this error when start server
    ------------------------------------------------------------

    2124: 02:07:05.468 - ---
    2124: 02:07:05.468 - Service: "Photon Socket Server" starting
    2124: 02:07:05.468 - Config File: C:\Documents and Settings\Bruno\Desktop\Photon-Server\bin_Win32_xp\PhotonServer.config
    2124: 02:07:05.468 - Will NOT produce crash dumps
    2124: 02:07:05.468 -
    2124: 02:07:05.468 - WARNING: ************************************************** *************
    2124: 02:07:05.468 - WARNING: Photon has been built to operate on an operating system earlier than Windows Vista.
    2124: 02:07:05.468 - WARNING: Performance will not be as good as when built for Windows Vista or later.
    2124: 02:07:05.468 - WARNING: ************************************************** *************
    2124: 02:07:05.468 -
    2124: 02:07:05.468 - Server Starting...
    2124: 02:07:05.468 - CService::OnException() - Exception: CJob::IsProcessInJob() - Accesso negato.
    2124: 02:07:05.468 - Server shutting down...
    2124: 02:07:05.468 - Shutting down socket servers...
    2124: 02:07:05.468 - Destroying ENet thread pool
    2124: 02:07:05.468 - Destroying TCP inactivity timer
    2124: 02:07:05.468 - Destroying Business logic thread pool
    2124: 02:07:05.468 - Destroying servers
    2124: 02:07:05.468 - Destroying TCP Outbound Connection Manager
    2124: 02:07:05.468 - Destroying resolver
    2124: 02:07:05.468 - Destroying TCP Proxy Connection Manager
    2124: 02:07:05.468 - Destroying ENet host
    2124: 02:07:05.468 - Destroying CLR dispatcher
    2124: 02:07:05.468 - Destroying CLR applications
    2124: 02:07:05.468 - Destroying I/O thread pool
    2124: 02:07:05.468 - Destroying ENet buffer allocator
    2124: 02:07:05.468 - Destroying TCP buffer allocator
    2124: 02:07:05.468 - Destroying TCP socket allocator
    2124: 02:07:05.468 - Destroying ENet socket allocator
    2124: 02:07:05.468 - Destroying performance counters
    2124: 02:07:05.468 - Shutdown complete...


  15. Location
    Hamburg
    Posts
    72
    Quote Originally Posted by BBGameDev View Post
    server does NOT start....
    2124: 02:07:05.468 - Server Starting...
    2124: 02:07:05.468 - CService::OnException() - Exception: CJob::IsProcessInJob() - Accesso negato.
    2124: 02:07:05.468 - Server shutting down...
    Try "Run as Administrator".
    Photon Cloud: Realtime :: Turnbased :: Chat
    53k+ developers. Get our SDKs in the Asset Store


  16. Posts
    14
    Quote Originally Posted by bertelmonster2k View Post
    Try "Run as Administrator".
    have already tried, but same problem


  17. Location
    Belarus
    Posts
    721
    Quote Originally Posted by TobiasS View Post
    gnoblin:
    This looks like missing DotNet framework, yes.
    You could use this installer: http://www.microsoft.com/download/en....aspx?id=17851
    Didn't help.

    I'll try to install the latest windows updates on this machine and try installing .net framework 1 more time.


  18. Location
    Australia
    Posts
    30
    I'm hosting the Photon-Server on a vm. I've changed all the IPs from localhost to the actual IP of the vm and the demo is working fine in standard build. However when I try to build the web player, I get the following error:

    Code:  
    1. Connect() failed: System.Security.SecurityException: Unable to connect, as no valid crossdomain policy was found
    2.   at System.Net.Sockets.Socket.Connect_internal (IntPtr sock, System.Net.SocketAddress sa, System.Int32& error, Boolean requireSocketPolicyFile) [0x00000] in <filename unknown>:0
    3.   at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP, Boolean requireSocketPolicy) [0x00000] in <filename unknown>:0
    4.   at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in <filename unknown>:0
    5.   at System.Net.Sockets.Socket.Connect (System.Net.IPAddress address, Int32 port) [0x00000] in <filename unknown>:0
    6.   at ExitGames.Client.Photon.NConnect.StartConnection () [0x00000] in <filename unknown>:0
    7. UnityEngine.Debug:LogError(Object)
    8. PhotonHandler:DebugReturn(DebugLevel, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:77)
    9. NetworkingPeer:DebugReturn(DebugLevel, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:669)
    10. ExitGames.Client.Photon.NConnect:StartConnection()
    11. ExitGames.Client.Photon.EnetPeer:Connect(String, String, Byte)
    12. ExitGames.Client.Photon.PhotonPeer:Connect(String, String)
    13. NetworkingPeer:Connect(String, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:136)
    14. PhotonNetwork:Connect(String, Int32, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs:101)
    15. MainMenu:Awake() (at Assets/Photon Unity Networking/DemoWorker/Scripts/Menu/MainMenu.cs:19)

    It's as if the policy file is not found. But I can see from the server log that the policy files are being read correctly:
    Code:  
    1. 2011-08-28 01:52:54,257 [1] INFO  Exitgames.Realtime.Policy.Application.Policy [(null)] - Application start. AppId: Policy ApplicationPath: C:\Photon-Server\Policy
    2. 2011-08-28 01:52:54,282 [1] DEBUG Exitgames.Realtime.Policy.Application.Policy [(null)] - Reading policy file: C:\Photon-Server\Policy\assets/socket-policy.xml
    3. 2011-08-28 01:52:54,283 [1] INFO  Exitgames.Realtime.Policy.Application.Policy [(null)] - Policy file:
    4. <cross-domain-policy>
    5.     <allow-access-from domain="*" to-ports="5055,5056,5057,4530,4531,4532" />
    6. </cross-domain-policy>


  19. Location
    Belarus
    Posts
    721
    Quote Originally Posted by gnoblin View Post
    Didn't help.

    I'll try to install the latest windows updates on this machine and try installing .net framework 1 more time.
    Can this error happen because I have x64 windows server and not x32 one? )


  20. Location
    Belarus
    Posts
    721
    I've updated windows - this didn't help.
    I've tried launching Photon in Windows XP compatibility mode - this didn't help.

    Any ideas?

    thanks,
    Slav

Page 2 of 25 FirstFirst 123412 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •