Search Unity

Malbers Animals

Discussion in 'Assets and Asset Store' started by Malbers, Nov 12, 2016.

  1. Talio202

    Talio202

    Joined:
    Aug 27, 2018
    Posts:
    3
    I just wanted to say your assets are great, however I am having one small problem. The elemental dragon are reacting to the sleep prefab location and it’s working and playing the animation. However the eat and drink and roar prefabs are not working. If you could give me an idea of where I’m going wrong or let me know if you need more information that would be great. :)
     
  2. Malbers

    Malbers

    Joined:
    Aug 7, 2015
    Posts:
    1,479
    Here's a copy of the new animal Controller for you guys play around w
    Try Checking the Action ID on those prefabs.. it should have assigned the right Action ID on those zones..
    upload_2019-7-30_12-1-47.png

    But! if the Dragon does not have those animations (drink, Roar) then the Dragon/Animal will complete ignore the Zone
    and I believe in the case of the Elemental Dragon ... it does not have those animations :(
     
  3. Malbers

    Malbers

    Joined:
    Aug 7, 2015
    Posts:
    1,479
    mandisaw, KeithBrown and Rowlan like this.
  4. Talio202

    Talio202

    Joined:
    Aug 27, 2018
    Posts:
    3
    Thank you! I’ll check it out. I didn’t realize the dragon didn’t have a roar. XD
     
    Malbers likes this.
  5. HeyBishop

    HeyBishop

    Joined:
    Jun 22, 2017
    Posts:
    109
    Is there a way to set the next waypoint through code?

    I want to instantiate a new waypoint, and on the previously instantiated waypoint, set its next waypoint to be the new one.

    Code (CSharp):
    1. GameObject newWayPoint = Instantiate(wayPointPrefab,newWayPointPosition, Quaternion.Euler(Vector3.forward));
    2. lastWayPoint.GetComponent<IWayPoint>().NextTarget = newWayPoint.transform;
    Alas the .NextTarget property is read only.
     
  6. Malbers

    Malbers

    Joined:
    Aug 7, 2015
    Posts:
    1,479
    <IWayPoint>().NextTarget gets a random Transform from the list Next Targets.... if you want to assign a new Next Target for the way points
    Try this instead:
    Code (CSharp):
    1.  
    2. GameObject newWayPoint = Instantiate(wayPointPrefab, newWayPointPosition, Quaternion.Euler(Vector3.forward));
    3. lastWayPoint.GetComponent<MWayPoint>().NextTargets = new List<Transform>(1) { newWayPoint.transform };
     
  7. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    840
    I found a perfect combination of 2 assets :)



    @Malbers Need more realistic animals, like seriously :D
     
  8. brettj

    brettj

    Joined:
    Feb 9, 2015
    Posts:
    30
    In AnimalCallBacks.cs, IsTakingDamageTime() is prevents an animal from taking damage more than once per frame, even when the damage delay is set to 0. The change below fixed this for me.

    Code (CSharp):
    1.         IEnumerator IsTakingDamageTime(float time)
    2.         {
    3.             isTakingDamage = time > 0;
    4.             yield return new WaitForSeconds(time);
    5.             isTakingDamage = false;
    6.         }
     
  9. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    840
    I only tried the flying mechanics so far, but the new controller is awesome :)



    Thank you very much for your help!
     
    ftejada and Malbers like this.
  10. MostHated

    MostHated

    Joined:
    Nov 29, 2015
    Posts:
    813
    Heya @Malbers I saw you released the source of the original animal controller, does that mean perhaps something new is coming finally? :D
     
  11. Malbers

    Malbers

    Joined:
    Aug 7, 2015
    Posts:
    1,479
    Yes!... now actually I'm migrating all the animals to the new controller which is a bit slow... but after that is full production!!


    A bit of warning... that new controller is not compatible with the old one :) so please wait until I release the new version of all the animals already working with this new controller
     
  12. MostHated

    MostHated

    Joined:
    Nov 29, 2015
    Posts:
    813
    This is great news, I am quite excited about it. Does this also mean a new version of HAP?

    Shoot, it sounds like this might mean I have to rebuy all the animals again with the new system?
     
  13. Malbers

    Malbers

    Joined:
    Aug 7, 2015
    Posts:
    1,479
    Yes new HAP with new animations!!! and new features.. and the Animal Controller Included..

    Not at all..

    Now the animals will not have the controller include in their assets.... just the Models, textures and animations... and a folder with all the prefabs and the demos already set with the New controller ( that you can remove if you do not want to use my controller)..

    That is why the Animal Controller(AC) is now a separated assets ( and it will be free for 2 months) so all my faithful users can download the controller with no cost at all ;)

    It is easier for me now to update the controller alone, and fix bugs... without having to update all the 20 assets every time I add a new variable ;)
     
  14. MostHated

    MostHated

    Joined:
    Nov 29, 2015
    Posts:
    813
    Oh! So the controller that you just released *is* the new one? I had misunderstood. I thought that the one that was just released (since it was free) was the base controller for the original one, and since you were coming out with a newer one you were giving the old one away free.

    I didn't realize that the newly released one is the actual new controller. I will definitely have to check it out then. : D

    I agree it will be way easier now, lol. Probably less chance for things to get goofy when trying to import multiple things at once as well.

    Well congrats on being close to the finish line, I have been looking forward to seewhat you have done / are doing with the new stuff!
     
  15. Dawar

    Dawar

    Joined:
    Dec 7, 2014
    Posts:
    122
    hi Marbler's.
    I recently download animal controller. and import to Unity 2018.2.8f1
    its throw so much bugs. can you please tell me how to fix it.

    1.
    Assets/Malbers Animations/Common/Scripts/Events/MalbersEvents.cs(18,47): error CS1070: The type `UnityEngine.RaycastHit' has been forwarded to an assembly that is not referenced. Enable the built in package 'Physics' in the Package Manager window to fix this error.

    2.
    Assets/Malbers Animations/Common/Scripts/Events/MalbersEvents.cs(49,45): error CS1070: The type `UnityEngine.Collider' has been forwarded to an assembly that is not referenced. Enable the built in package 'Physics' in the Package Manager window to fix this error.
    3.
    Assets/Malbers Animations/Common/Scripts/Animal Controller/Behaviours/AttackTriggerBehaviour.cs(18,43): error CS1070: The type `UnityEngine.Animator' has been forwarded to an assembly that is not referenced. Enable the built in package 'Animation' in the Package Manager window to fix this error.
    4.
    Assets/Malbers Animations/Common/Scripts/Animal Controller/Behaviours/ModeBehaviour.cs(22,30): error CS0115: `MalbersAnimations.Controller.ModeBehaviour.OnStateEnter(UnityEngine.Animator, UnityEngine.AnimatorStateInfo, int)' is marked as an override but no suitable method found to override
     
  16. Dawar

    Dawar

    Joined:
    Dec 7, 2014
    Posts:
    122
    I fix this problem myself. just delete the last most packages Folder. it will solve the problem thanks
     
    Malbers likes this.
  17. Malbers

    Malbers

    Joined:
    Aug 7, 2015
    Posts:
    1,479
    I thought that was the problem ;)
     
    Dawar likes this.
  18. Malbers

    Malbers

    Joined:
    Aug 7, 2015
    Posts:
    1,479
    Try this new version:
    https://drive.google.com/open?id=1J0UAotdGfbU101Qa6gDkHAK4H37Pwg4m
    Is the one I sent yesterday to Unity
    it has a lot of bug fixed
     
    Rowlan and Dawar like this.
  19. Dawar

    Dawar

    Joined:
    Dec 7, 2014
    Posts:
    122
  20. mandisaw

    mandisaw

    Joined:
    Jan 4, 2018
    Posts:
    15
    Apologies if this came up earlier, but will there be any significant documentation/manual updates with the new controller, or is the overall framework structure basically the same? I've been holding off on doing the integration until the new AC (+HAP) updates, and I just want to know if it's okay to mostly work with the old manual & new assets (when they're all pushed).

    I think the main external integration points I'm worried about for now are navigation (NavMesh/point & click), triggers/states, and tying HAP into Ootii Motion Controller. (I can ask that last bit over on the HAP forum, if that's better.)
     
  21. tredpro

    tredpro

    Joined:
    Nov 18, 2013
    Posts:
    403
    would it be possible to get an emerald ai integration?
     
  22. tredpro

    tredpro

    Joined:
    Nov 18, 2013
    Posts:
    403
    also any idea when this can be installed with HAP?
     
  23. gearedgeek

    gearedgeek

    Joined:
    Jun 19, 2015
    Posts:
    119
    How do you fly in the asset?
     
  24. Malbers

    Malbers

    Joined:
    Aug 7, 2015
    Posts:
    1,479
    Apologies to all for the late reply I just saw this messages on the Animal forum.

    I'm working on migrating all the animals to the new Animal Controller (AC) ... all the dragons are already migrated after so I will work on all the animals ..

    After that I will update all the current integrations with the animals and HAP (Invector, Ootii, Opsive) and then I will work on the new ones like emerald ,

    emerald Every animal/ creature takes 2 days to migrate correclty .. so I really appreciate your patience guys...
    is just a One man job...

    I'm also will work on Update the documentation and create new tutorials for the new HAP and AC..

    When they get updated they will be automatically be rideable with the new HAP

    you can fly the animals pressing Q (the ones who can fly.. like the ravens)
     
  25. MangeyD

    MangeyD

    Joined:
    Mar 11, 2014
    Posts:
    71
    I downloaded your new AC today and I love it!! Great job!

    Will you eventually have a wizard or a step by step guide for using other animals and humans with your new controller?
     
  26. Malbers

    Malbers

    Joined:
    Aug 7, 2015
    Posts:
    1,479
  27. MangeyD

    MangeyD

    Joined:
    Mar 11, 2014
    Posts:
    71
    Sounds awesome. I am looking forward to the tutorials, although I will try to work it out for myself while I wait :)
     
    Last edited: Sep 20, 2019 at 11:54 PM
    Malbers likes this.