Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

[RELEASED] Multiplayer RTS Starter Kit (using PUN)

Discussion in 'Assets and Asset Store' started by metro_game_studio, Jul 24, 2015.

  1. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130


    Requirement

    -Unity 5.0 or higher
    -RTS Starter Kit v0.7 or Higher

    What is this?

    Multiplayer RTS Starter Kit is a Add-Ons for RTS Starter Kit to implementing your own games with the Photon Unity Networking. This add-ons allow you to get started to make Multiplayer RTS Games with Photon Cloud.

    Framework Feature:
    • Sync all needed variable ( health, state, position, rotation, animation, and many more )
    • Send Animation ( Mecanim, and Legacy animation ) once if given command, this will save the bandwidth.
    • Support Mostly Feature in the RTS Starter Kit
    • Authoritative Master Client
    • 3 Example Scene ( Lobby, Room, and Map ) to help you getting started
    • Victory Condition System.
    • In Room Chat System
    Buy It Now
    Try In Webplayer
     
    tequyla and Twrmois like this.
  2. tequyla

    tequyla

    Joined:
    Jul 22, 2012
    Posts:
    335
    hi,

    i bought for support you.

    +++
     
  3. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    Thank you:)
     
  4. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    Update v0.1.1:
    -Now Support RTS Starter Kit v0.7.1
    -Impoved MPHelper
    -Improved MP_Unit
    -Improved MP_Building
     
    tequyla likes this.
  5. tequyla

    tequyla

    Joined:
    Jul 22, 2012
    Posts:
    335
  6. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    Hi I bought both your assets, multiplayer and the RTS Starter Kit v0.7 however I am getting compiling errors when I import the multiplayer package. The errors show up as

    -Material does not have texture property _EmissionMap

    -Material does not have texture property _SpecGlossMap

    -Material does not have texture property _ParallaxMap

    -Material does not have texture property _DetailAlbedoMap

    -Material does not have texture property _DetailNormalMap

    Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.


    Please can you tell me how to fix these compiling errors for the multiplayer package.

    Thanks
     
  7. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    Ok I managed to solve that problem by replacing my Library and Project Settings folders from a new project. However I have now run into another compiling error from the Multiplayer add on:

    Assets/Multiplayer RTS Starter Kit/Script/Game/MP_SceneManager.cs(39,25): error CS0246: The type or namespace name `LOSManager' could not be found. Are you missing a using directive or an assembly reference?

     
  8. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    What the RTS Starter Kit you using?

    if you not used the latest version please update it first and make sure you follow the tutorial documentation for how to install the kit.
     
  9. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    Update v0.1.2 BETA:
    -Now Support RTS Starter Kit v0.7.2
    -Improved MP_SceneManager
    -Fixed some bugs

    for anyone who have error when using RTS Starter Kit v0.7.2 please update your Multiplayer add-ons to latest version to fix the error.
     
  10. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    I am using RTS Kit 0.7.2

    Ok will try the update.

    Thanks :)
     
    Last edited: Aug 24, 2015
  11. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    I am using RTS Kit 0.7.2
     
  12. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    If you not using latest version of Multiplayer add-ons you must update it first to fix error.
     
  13. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    The update fixed the problem however I have run into another issue with the Unit prefabs in your project.

    I have read the manual on how to setup my own 3D model with your existing prefabs. However when I attach the Animator to my prefab, it will not allow me to attach the 3D model to the Unit Animation script. If I use your existing prefab and remove the Animator from the Unit Animation script, it will NOT allow me to attach the Animator back to the Unit Animation Script. Under the Unit Animation script it just says no matter what I do:

    "Please attach Animator to edit the parameter."

    I have attached the Animator and it will not allow me to attach any 3d model to the Unit Animation script.

    Please look at the screenshot to see what I am referring to.
     

    Attached Files:

    Last edited: Aug 26, 2015
  14. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    Please note: "Please attach Animator to edit the parameter." in the Unit Animation is not to attach animator to the 3d model, it mean you must attach the animator component to the Unit Animator. Look at the attached image.
     

    Attached Files:

  15. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    Yes that's what I mean, it will not allow me to attach the animator component to the Unit Animation script. I have tried attaching the animator component from your prefab to the Unit Animation script and it doesn't recognize the animator component.

    Please can you explain in detail about how you attach the Animator component to the Unit Animation script....I have tried everything but the animator component will not attach to your Unit Animation script.
     
  16. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    Hey metro can you please show me how you connect the animator component to the Unit animation script. I have tried and tried again to connect the RTSUnit with the Animator component attached to it and I have tried dragging it into the Unit Animation script and it doesn't recognize it and keeps saying "Please attach Animator to edit the parameter."
     
  17. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    Sorry for that, i've fixed the that bug and release new version. Update to latest version to fix the bug.

    This is a bug in v0.7.2. i've tested it today and you right i can't attach Animator too, and this bug has been fixed with latest version of RTS Starter Kit you can update it and try to attach your Animator.
     
  18. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    Thanks :D It works now.

    This is probably one of the best assets I have bought from Unity because of the constant updates and quick response from Metro!!

    Highly recommend it...I will be sure to let you know if I come across other problems whch will only make your product more efficient and user friendly!
     
    reese01 likes this.
  19. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    Thank for good review
     
  20. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    Hey Metro

    I am still having trouble with getting my 3D Model to move. I have replaced the RTSunit with my Builder prefab and set up the animator controller with the Unit Animation script ok, that works now. I have also setup the Builder prefab in the Faction Editor window but when I press play my 3D Model will not move when I click on him. I checked the interaction data in the Faction window but that seems to be in order I think...What steps do I need to take in order to get this 3D model of mine interacting and moving in the game? I have read the documentation and still can't find what I am missing?

    Please refer to the screenshots below:

    RTSScreenshot2.jpg

    Also when I click on Play my Prefab goes missing.


    RTSScreenshot3.jpg
     
  21. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    I am also receiving these errors from the development build for the RTS Multiplayer Starter pack which renders the game impossible to play when playing multiplayer. The units won't move.

    RTSScreenshot4.jpg



    RTSScreenshot5.jpg

    If you can tell me how to fix these errors including the one above then your package will be complete and ready to use. Otherwise it's not working at the moment.
     
  22. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    i see the picture, and you missing for edit the unit type in the Unit script to Builder. After you setup the unit type try to test it if not work send me the picture for the problem. and for moving the unit i use unity navmesh so if you not bake the scene bake it first.
    Try to edit Unit Type in Unit Script to Builder. also did you read the installing guide in the documentation i see your builder layer is not set.

    I see the error console that mean you not set the Tag correctly, you must set the tag to Unit if Unit and set tag to Building if Building. did you read installing guide, are you have replace the ProjectSettings?
     
  23. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    Hey Metro

    Ok I have re baked the Unity Nav mesh

    RTSScreenshot7.jpg

    I have also added a new tag and named it Unit and I also added a new layer and named it Unit RTSScreenshot8.jpg

    I have also added Builder prefab to the Faction Editor Window and also applied Builder to the Unit Script
    RTSScreenshot9.jpg

    And when I press play I get this error and Builder Prefab is still missing:

    RTSScreenshot10.jpg


    And when I tick the Nav Mesh it says the following in the console:

    "NavMeshAgent and NavMeshObstacle components are active at the same time. This can lead to erroneous behavior"

    RTSScreenshot11.jpg
     
    Last edited: Aug 29, 2015
  24. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    For the Multiplayer I changed the layer for your Unity Prefab to Unity, so now the Units can move in the development build which is some progress. :)

    And Building layer to Building

    However my console is still showing the following error: RTSScreenshot12.jpg
     
  25. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    for error: are you have set the scene manager in your scene, i see the hierarchy no one object is scene manager.
    for warning: It's easy just disable NavmeshObstacle Component or NavmeshAgent component, the NavmeshObstacle will active when unit is stand/not move, NavmeshAgent will active when unit is moving.
    did you try to play in editor and click in the error log, the error maybe in your 3d model Tag is not set.
     
    Last edited: Aug 29, 2015
  26. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    I have disabled the Navmesh Obstacle component but I still get this error below in the console:

    NullReferenceException: Object Reference not set to an instant of an object: Screenshot13.jpg
     
  27. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    are you have set the scene manager in your scene, i see the hierarchy no one object is scene manager.
    To Fix it: Add New Empty GameObject and add SceneManager script to game object
     
  28. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    I have added Scene Manager, FOW Manager, Grid Manager and Level Manager but still get the following error:

    Screenshot15.jpg
     
  29. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    Ok I managed to solve the Multiplayer problem with the Multiplayer RTS Kit, by setting the Layer to my 3d Model prefab. So that problem is solved. :)

    However the Units are not building when I command them to and it's not coming up with any errors in the console?

    Screenshot16.jpg
     
    Last edited: Aug 29, 2015
  30. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    Try click the console for error, and what the object for error and show me the console picture so i can help to fix it.

    Are you have set the unit to have Ability to Build Building?
    The unit can build building only if they have build building ability. If you not set the ability, read the documentation for how to setup ability for unit.
     
  31. markashburner

    markashburner

    Joined:
    Aug 14, 2015
    Posts:
    212
    This is the console error that I get:

    Screenshot17.jpg

    And when I open it up in Visual Studio 2013 it leads me to this script:

    RTSObject.cs

    Screenshot18.jpg
     
  32. metro_game_studio

    metro_game_studio

    Joined:
    Sep 4, 2014
    Posts:
    130
    to fix it you must place Faction to scene, if no Faction/player with rtsobject player you will getting error so you must place PlayerManager/Faction in the scene and setup the player index.

    you can try the demo scene it will help you to setup new scene.