Search Unity

uSurvival Official Thread - Unity Multiplayer Survival Asset

Discussion in 'Assets and Asset Store' started by mischa2k, May 14, 2018.

  1. RGreulich

    RGreulich

    Joined:
    Oct 29, 2012
    Posts:
    19
    This kit is working out great!
    Do you have an ETA on the campfire/forge?
     
  2. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Thanks for suggestions. Can’t promise those features though. going more into the dayz direction.
     
  3. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    @vis2k
    hello,
    how can i implement team match? i mean players can create or joint to teams and battle with zombies and other teams ...
     
  4. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Modify the networkmanager to keep new connections in a lobby dictionary until they all picked a team.
    Take a look at my uMOBA asset for a lobby example.
     
  5. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    you mean its simple copy paste from uMOBA to uSURVIVAL??
     
  6. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Haven't tried moving it over. But it should't be too difficult.
     
  7. HiddenFace

    HiddenFace

    Joined:
    Feb 13, 2016
    Posts:
    12
    @vis2k OK ok i undertand ;)

    Another suggestion, is to add items (projectiles) like Grenade / RPG / Throwing Knife.
    They are grenades and others kind of projectiles in DayZ.

    It could be cool to play with these items !
     
  8. RelajoSoft

    RelajoSoft

    Joined:
    Apr 29, 2018
    Posts:
    23
    I have noticed that if you shoot a tree it falls, would it be possible in the next update to add that the tree only falls if you hit it with an ax?
     
  9. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    You can already add projectiles with the scriptableitem system. I just didn't include an example yet. Will do in the future.

    You could modify it for that. I probably won't though, because no matter what you hit a tree with - at some point it will fall.
     
    Adrad likes this.
  10. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    @vis2k
    how can i access to players database via web browser to managing the users?
    and adding some attributes to user database? like as score or inventory items or player respawning world position?
    does exists any solution?
    thanks.
     
  11. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    try Mysql
     
  12. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    nice ... but how can i connect it to the SQL DB of uSurvival on linux server?
     
  13. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    modify usurvival database.cs to use mysql
     
  14. Davood_Kharmanzar

    Davood_Kharmanzar

    Joined:
    Sep 20, 2017
    Posts:
    411
    ok ... can you post some of this script modification if have to connect mysql to database on linux, please?? [i mean like as Ubuntu server - mysql]
     
  15. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    you will have to try that yourself, sorry.
    but take a look at the mysql addon for uMMORPG, that should be a good start
     
  16. johny256

    johny256

    Joined:
    Mar 3, 2015
    Posts:
    259
    Version: 1.33 ( 2019) downgrad to Version: 1.32 (Jan 19, 2019) ??
     
  17. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Yes. Temporary downgrade because the source drop-in only works after reimporting scripts once. So new customers would get confusing error messages until we fix the weaver bug in Mirror. Will upgrade again afterwards.

    If you already upgraded then don't worry about it.
     
  18. RefactorDev

    RefactorDev

    Joined:
    Jul 10, 2018
    Posts:
    21
    Where would the package like check where if the space key is pressed it'll go up the character's y value and do the jump animation? I'd have no idea on how to find that
     
  19. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    PlayerMovement component
     
  20. ParadoxSolutions

    ParadoxSolutions

    Joined:
    Jul 27, 2015
    Posts:
    325
    Taking a look at this asset again, are you only supporting LTS branches of Unity or just waiting for a stable version of the new unity 2018 network layer? Is Unity deprecating uNet because it seems to work in 2018.3?
     
  21. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    will upgrade to 2018.2 or .3 in a few days.
    unity’s network later was deprecated, but I am not using it anyway. uSurival uses Mirror.
     
  22. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    V1.34 pending review!

    • PlayerHotabar: only set usageEndTime for local player
    • Fix clients being affected by other client's recoil
    • Mirror updated to latest version (weaver as DLL again to fix first time import issues)
    • NetworkProximityGridChecker: 30x performance increase when checking 1000 monsters and almost half GC
    • Upgrade to Unity 2018.2.20f1
    • Change .NET version to 4.X to fix a bug where a build client would often freeze while sending/receiving over the network. Reproduceable on OSX + macbook pro + editor=server, client=build, after 3-15 minutes.
    • Fix shoulder look at for other players
     
  23. HighKeys

    HighKeys

    Joined:
    Jan 6, 2016
    Posts:
    29
    Hi,

    first of all, thanks for the amazing asset!

    I tried now some things and i got a question for you, sorry if its retard.

    Tree System:
    Works fine with speed tree nice! But if i use the tree as a "terrain tree" even with tree collider on it doesnt work to harvest the tree, can you tell me what i made wrong?​
     
    mischa2k likes this.
  24. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    It needs a NetworkIdentity component. Not sure if that works if the terrain generates it.
     
  25. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Progress:
    • V1.35
      • Mirror updated to latest version
      • ShouldersLookAt rotation fix
    • V1.36
      • PlayerAnimation: remove unused netTransform field
      • PlayerAnimation: fix other players briefly showing jump animation when moving over small obstacles
      • PlayerAnimation: removed unused lastPosition and lastVelocity
      • Fix camera being destroyed after disconnect
     
  26. TonyFil

    TonyFil

    Joined:
    Aug 9, 2017
    Posts:
    10
    Good Update
    Please write instructions for adding equipment
     
  27. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Check out the uMMORPG documentation from ummorpg.net - it's the same system. I just don't have any equipment models for uSurvival yet. We are currently working on new sprites for uMMORPG 2D, maybe after that :)
     
  28. HighKeys

    HighKeys

    Joined:
    Jan 6, 2016
    Posts:
    29
    Hi could you send me the link to the Discord channel where its ok to ask for help? :)

    p.s. i will post some Screens after i finished my testings :)
     
  29. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Click on the 'Assets Discord' link in my signature :)
     
  30. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
  31. TechSins

    TechSins

    Joined:
    Feb 16, 2015
    Posts:
    142
    What's in 1.37?
     
  32. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    You can see the changelog in the first post
     
  33. iLawn

    iLawn

    Joined:
    Apr 16, 2013
    Posts:
    16
    hi vis2k, I right understand about NetworkProximityGridChecker - it work for pseudo3D ? Without up direction? How about real 3d? change to standard ProximityChecker?
     
  34. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Yes, it uses xz and ignores y.
    I can't think of a case where you would care about y in a game like Dayz/Fortnite.
    E.g. if a helicopter flies above a player then he really should see it.

    If you have so many objects stacked on y that you need to worry about that then either modify Grid to use Vector3int and check not only 9 neighbors, but also the 9 neighbors at y+1 and y-1 - or use Mirror's built in ProxmityChecker.
     
  35. HiddenFace

    HiddenFace

    Joined:
    Feb 13, 2016
    Posts:
    12
    Hello, i would like to know if you have planned to fill up the documentation like uMMORPG.

    More i work on your asset more i think you make a wonderful job on it !
     
  36. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Sure. I usually add whatever people have the most questions about. Let me know what you like to see in the docs.
     
  37. johny256

    johny256

    Joined:
    Mar 3, 2015
    Posts:
    259
    Hi vis2K plan to ingame menu? seting quality and exit games? logout etc?
     
  38. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    There is quit button on the bottom right of the UI when you press Tab.
    Ingame menu for settings isn't planned, people can use the Unity launcher for that.
     
  39. johny256

    johny256

    Joined:
    Mar 3, 2015
    Posts:
    259
    vis2k planned better animation or weapon walk,run,aiming,draw,?
    System first person animated hands?
     
  40. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Would be good to replace them in the future yes. Can't give you a date yet.
     
  41. KyleH112

    KyleH112

    Joined:
    Jan 19, 2019
    Posts:
    2
    Getting some errors after updating.

    Enter play mode > works fine for 30 seconds > errors hit and game freezes

     
  42. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Those errors usually happen when you reload a script at runtime. Try not to do that :)
     
  43. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    News: uSurvival is now available for $20, grab it while you can!

    Update: V1.38 released, V1.39 pending review!
    • V1.38 [released 2019-02-19]
      • Crossbow & Projectile system
    • V1.39
      • Documentation updated (monster creation video)
      • Mirror updated to latest version (server tick rate etc.)
      • Chat renamed to PlayerChat because it's a player component
      • PlayerChat.CmdMsgWhisper: use TryGetValue for maximum performance
      • NetworkNavMeshAgent.OnDeserialize warning message fixed
      • Grid: remove HashSet at position if empty so we don't keep them in memory forever.
      • NetworkProximityGridChecker.OnDestroy: remove no matter what
      • Fix crossbow item tooltip
      • Arrow layer changed to 'Projectile' so it actually hits the monster's body too (physics matrix ignores default<->monster layers, so it would only hit it in the head because the head uses a DamageArea layer)
      • NetworkManagerSurvival: removed tick rate setting because Mirror handles it now
      • Utils: remove unused functions, improve syntax
      • Utils.IsNullOrWhiteSpace removed, NET 4.5 has string.IsNullOrWhiteSpace now.
     
    Ronith likes this.
  44. RefactorDev

    RefactorDev

    Joined:
    Jul 10, 2018
    Posts:
    21
    Hey, I changed the character model perfectly fine but how do I change the idle/walking/running animation
     
  45. TonyFil

    TonyFil

    Joined:
    Aug 9, 2017
    Posts:
    10
    Hi, I have some problems
    I made a server and can connect to it, but I don't see zombies on the server, however they can attack me.
    I see zombies when i host. I divided the lobby and gaming scene.
     
  46. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    I recommend going through a 'Unity Mecanim' tutorial to learn how the animation system works.


    Doesn't sound like anything obvious so far. Sorry but if you modify something and it breaks, then you are on your own. It would be very difficult for me to walk everyone through their custom modifications otherwise.
     
  47. johnlanz

    johnlanz

    Joined:
    Sep 2, 2016
    Posts:
    37
    I like the projectile system but changing animation is a bit hard like how to implement full body animations. This is really important for casting projectiles.
     
  48. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    You can drag other animations into the state machine as long as they are humanoid.
     
  49. johnlanz

    johnlanz

    Joined:
    Sep 2, 2016
    Posts:
    37
    Did you tried to modified the animations? because is not working. I've already created a layer on full body. The idle animation is working and works on full body but the attack animation is limited to upperbody. I try it using sword and shield animations from mixamo.
     
  50. ParadoxSolutions

    ParadoxSolutions

    Joined:
    Jul 27, 2015
    Posts:
    325
    It is your job to replace the stock animations of an asset you purchased, I wouldn't bother the asset creator unless your issue is directly related to their asset (in this case mirror's netcode) take a look at this tutorial on avatar masks: https://unity3d.com/learn/tutorials/topics/animation/avatar-masks
     
    SirTwistedStorm likes this.