Search Unity

Erroneous Errors??

Discussion in 'Scripting' started by DigitalDuane, Oct 22, 2007.

  1. DigitalDuane

    DigitalDuane

    Joined:
    Dec 13, 2006
    Posts:
    39
    Greetings Earthlings:

    I come in frustration. I am trying to work through the 2nd FTS tutorial but upton loading the FPS package I get an error that the Player is not good, I remove the player then get , Machine gun code is invade , or
    Code (csharp):
    1.  Assets/WeaponScripts/InstantDeathCollider.js(2) error BCE0018: The name 'FPSPlayer' does not denote a valid type. I don't think I should be removing all these items, but it won't let me go forward.  I haven't altered them, just downloaded, then loaded into Unity. Anybody know a work around or fix?
    2.  
    3. Digital D
     
  2. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Just hang on, the Unity crew are in the proccess of updating the examples that will alleviate these errors.
    AC
     
  3. Samuco

    Samuco

    Joined:
    Dec 11, 2007
    Posts:
    3
    Im getting that same error when I try and use the Network.Connect function strings. Do you know why?

    Heres the script (I Don't know Javascript, so this is just improvised)

    Code (csharp):
    1.  
    2.     static var incomingPassword : string;
    3. static function InitializeServer (connections : int, listenPort : int) : NetworkConnectionError {}
    4. static function Connect (IP : string[], remotePort : int, password : string) : NetworkConnectionError{}
    5.  
    6. function LaunchServer () {
    7.     Network.incomingPassword = "Sam";
    8.     Network.InitializeServer(32, 25000);
    9. }
    10.  
    11. LaunchServer();
    12.  
    13. Network.InitializeServer();
    14.  
    15. function OnServerInitialized() {
    16.     Debug.Log("Server initialized and ready");
    17. }
    18.  
    19. OnServerInitialized();
    20.  
    21. function ConnectToServer () {
    22.     Network.Connect("200.200.2.2", 25000, "Sam");
    23. }
    24.  
    25. ConnectToServer();
    26.  
    27. function OnGUI() {
    28.     if (Network.isServer)
    29.         GUILayout.Label("Running as a server");
    30.     else if (Network.isClient)
    31.         GUILayout.Label("Running as a client");
    32. }
    33.  
    34.  
    Do you know what wrong with it?