[LIB] [1.7] Remote entities - Next generation NPC library [No support]

Discussion in 'Resources' started by kumpelblase2, Nov 10, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    DreTaX

    Can you give that one to me? Can't find it on jenkins..
     
  2. Offline

    lordmampf

  3. Offline

    DreTaX

  4. Offline

    bobacadodl

    Use craftbukkit for 1_6_R3
     
  5. Offline

    DreTaX

    Yeah. I do use.

    Edit: Nvm, its minecraft launcher jar.
     
  6. Offline

    CrystalxNeth

    I am looking to basically clear all of the API features of a custom villager I created (remove all pathfinders, and behaviors), and this looks amazing but I really do not want to rely on public libraries due to updating issues, and I want to understand the code I am using. I have looked probably everywhere on bukkit.org for clearing the API of a mob, and have not come across anything that is of use to me. I am not the best with reflection but I believe I know enough to do what I need to. I have tried looking at your code for a while, but can't figure out where the code is that basically makes a mob just stand there. How would I clear the API of a mob?
     
  7. Offline

    bobacadodl

  8. Offline

    CrystalxNeth

    I would but I don't want to rely on another library/API because that means every update I need to wait for them as well as I want to understand the code I am using. I just have no idea where to start.
     
  9. Offline

    bobacadodl

    Well, remoteEntities is an API too.... I just suggested an alternative to it, which gets updated a bit faster.

    If you dont want to rely on an API, you will have to override the Entity classes yourself, which is a huge pain going through all that NMS :(
     
  10. Offline

    CrystalxNeth

    I already have my Custom Mob (A Villager), it works perfectly except for the fact I want it basically to do nothing but stand there. I have seen posts where people say to override the EntityMonster class or EntityAnimal but then I would need to make seperate EntityAgeable classes as well as a whole seperate EntityVillager. And in my post I said that I don't want to rely on any libraries xD
     
  11. Offline

    rcth

    Someone can help me please?
     
  12. Offline

    hallowhead1

    Any idea why this is happening, i am using the latest version, can't even get it started.


    Code:java
    1. 2:41] [Server thread/INFO]: Done (1.629s)! For help, type "help" or "?"
    2. [18:32:41] [Server thread/ERROR]: Encountered an unexpected exception
    3. net.minecraft.server.v1_7_R1.ReportedException: Ticking entity
    4. at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:641) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    5. at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    6. at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    7. at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    8. at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    9. Caused by: java.lang.IllegalArgumentException: Cannot measure distance to a null location
    10. at org.bukkit.Location.distanceSquared(Location.java:444) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    11. at de.kumpelblase2.remoteentities.api.thinking.goals.DesireMoveToLocation.shouldExecute(DesireMoveToLocation.java:37) ~[?:?]
    12. at de.kumpelblase2.remoteentities.api.thinking.DesireSelector.onUpdate(DesireSelector.java:49) ~[?:?]
    13. at de.kumpelblase2.remoteentities.api.thinking.Mind.tick(Mind.java:389) ~[?:?]
    14. at de.kumpelblase2.remoteentities.entities.RemoteZombieEntity.h(RemoteZombieEntity.java:60) ~[?:?]
    15. at net.minecraft.server.v1_7_R1.World.entityJoinedWorld(World.java:1338) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    16. at net.minecraft.server.v1_7_R1.World.playerJoinedWorld(World.java:1319) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    17. at net.minecraft.server.v1_7_R1.World.tickEntities(World.java:1207) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    18. at net.minecraft.server.v1_7_R1.WorldServer.tickEntities(WorldServer.java:480) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    19. at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:637) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks]
    20. ... 4 more
     
  13. Offline

    Bart

    You gave DesireMoveToLocation 'null' as a location argument?
     
  14. Offline

    MrMag518

    Does the latest dev build work correctly with 1.7? Because it seems that my entities have no mind.. They get spawned in with their name, but desires, behaviours etc isn't doing anything.

    Edit button seems to be glitched.
    So, edit: This only happens with Human entities.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  15. Offline

    kumpelblase2

    The mind does tick and the desires do get executed but the movement currently does not work, everything else is fine.
     
  16. Offline

    MrMag518

    Okay thanks! Any estimation when it will be fixed?
     
  17. Offline

    giuliom_95

    Where can I get Remote Entities v1.6 (I need it for a 1.5.2 server) ?
     
  18. Offline

    giuliom_95

  19. Offline

    kumpelblase2

  20. Offline

    giuliom_95

    Don' worry, the important thing is that you've answered. However, thanks a lot!
     
  21. Offline

    Nonces

    I'm using the remoteentities-1.7.jar for my server, my server is 1.7.2, and the plugin I have is said to be compatible with 1.7.2, but it just comes up that it's an invalid version:
    http://gyazo.com/f8230b90d314dd8519fe3d1d5e854fc8 (screenshot of log)

    Edit:
    It works now, but I'm using the remoteentities 1.8 snapshot tho
     
  22. Offline

    Monkey_Swag

  23. Offline

    kumpelblase2

    Nonces I never claimed that the 1.7 version of RE would work for 1.7.x .
    But as you found out, the snapshot for 1.8 does (also hint at Monkey_Swag )
     
    Scullyking and Monkey_Swag like this.
  24. Offline

    Scullyking

    @kumpelblase2

    Holy mother this is what I need. Haven't delved too deep into your documentation, but is it possible to create spawn zones where a custom entity spawns at a given rate. And how customisable are things like the name, health and attackDamage of custom entities? Either way, downloading this right now :D
     
  25. Offline

    kumpelblase2

    Scullyking The spawn zone is up to you, I only give you to the tools to handle custom entities, from spawn to death. In this timeframe I try to give you everything you would need or at least give you the ability to extend my library with the features you need.
     
    Wingzzz likes this.
  26. Offline

    Scullyking

  27. Offline

    hallowhead1



    Will the movement be working in the near future?
     
  28. Offline

    DevRosemberg

    I am using the Latest RemoteEntities Version and for some reason when i try to spawn a pet it is uber fast, dosent follow me and dosent teleport to me after i get far away.

    This is my code:

    Code:java
    1. PetManager.despawnCurrentPet(player);
    2.  
    3. RemoteEntity entity = PetManager.getEntityManager().createEntity(RemoteEntityType.Pig, player.getLocation(), false);
    4.  
    5. PetManager.setPet(player, entity);
    6.  
    7. entity.setStationary(false);
    8. entity.setSpeed(1.69F);
    9. entity.getMind().addMovementDesire(new DesireFollowSpecific(entity, player, 4F, 1000F), 10);
    10.  
    11.  
    12. entity.getBukkitEntity().setCustomNameVisible(true);
    13. entity.getBukkitEntity().setCustomName(player.getName() + " 's Piggy");
     
  29. Offline

    kumpelblase2

    Speed of 1.69 is really high, considering the default panic speed, for example is 1.25 (it scales ridiculous).
    And I guess 1000 is a distance you won't normally get and thus it won't teleport to you either. For the moving however, I have to check.
     
  30. Offline

    macguy8

    kumpelblase2
    Is there a specific place one could find the scaling and how fast it actually is? I've been looking for something like what I described for a long time now.
     
Thread Status:
Not open for further replies.

Share This Page