New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hunters and vampires don't show up on journeymap #190
Comments
This is not intentional by Vampirism. Does this affect singleplayer as well? I remember some there were some settings required server side to allow mobs to be shown (not sure which minimap mod it was). Are they not showing up at all or is a generic icon showing? To show the actual icons, some work is needed: http://journeymap.info/Custom_Mob_Icon_Sets |
not sure. Let me check |
@maxanier yes it affects a single player. As far as the settings to show mobs, these appear to already enabled, as I can see other mobs, both hostile and passive. |
they are not showing up at all. I don't even see a dot |
If mobs of other mods are showing, but Vampirism's ones are not showing, there must be a strange bug. I will contact the author of JourneyMap maybe he has an idea |
I've talked to the creator of JourneyMap. This problem is caused by the fact that Vampirism's entities are codewise different from Vanilla mobs (as they are neither always a hostile mob nor a friendly animal). |
@maxanier well maybe you can borrow from vanilla's playbook. Spiders have a similar functionality. I'm not sure how they do it exactly, but maybe you could try to figure it out next time you find yourself rewriting a significant portion of your entity code? In the meantime, could you give me a link to the issue so I can see if I can talk JM's author into extending an API or otherwise trying to help the issue? Personally, I don't understand why they wouldn't be displayed if JM were programmed to display all "living" entities (you apparently consider vampires living enough to not be considered "undead" for the purpose of instant health/damage potions, something I disagree with by the way), and I don't understand why JM wouldn't do that way already (I can't think of a vanilla living entity that isn't displayed), so that kind of has me scratching my head as to which of you dropped the ball there... though I suspect it's JM |
Did not create an issue, but talked to him on his Discord. I will try to explain the entity problem (not sure how familiar you are with programming): Thereby I did decide to not make them IMobs. This solution is far from perfect, but I did not find something better yet. One solution for your problem might be, JM creating a interface that other mods could copy to their code and implement it for creatures that should be displayed, but are neither of the classes above. |
I'm familiar enough with programming to understand class inheritance, so I understand what you said. It still doesn't change the fact that, as far as I understand, there is no reason JM should not be displaying anything that's considered a "living" entity. I'm not sure the exact details about what's considered "living" and what's not, but if I'm not mistaken, it's a superclass to IMob and the other vanilla classes you mentioned.... and I'm pretty sure Minecarts are not considered living 😛. If I'm correct, perhaps you should change your code to inherit from that if it doesn't already, and if it does, then JM needs to fix its shit |
I'm extending a class that clearly states that it is a living entity (EntityCreature). Many mods respect that and consider Vampirism mods as living entities. |
ah, well that's unfortunate... |
I guess I'll just deal with it for now, and then use a different minimap when I rebuild the modpack (which I was planning on doing anyway) |
@maxanier something you may have missed on the Discord, as it appears you had already left the server: at any rate, I'm going to see if I can talk TechBrew into adding a more compatibility-friendly means of making entities visible on the map, such as an API as you suggested, Maybe he could at least add a blacklist/whitelist config which would allow people to manually add entities by un-localized name. IDK, but there's got to be a mutually agreeable solution somewhere here |
We have an API.. @maxanier You can draw things on the map with the api. |
I don't think the JM API is called for in this case. Simply add "implements IMob" to the class declaration and you're covered. |
Maybe I will try to suggest/PR some kind of isHostileTo method into Forge, but I don't think this will be successful. One posibility might be to add some kind of "IEntityToShow" interface (empty) to the API, which I can then add to my classes (and let FML strip it if JM is not installed), but I can understand if you do not like this idea. |
Oh, I just found out there is a |
IAnimal is also supported by JM. The isHostile() method on EntityCreature is checked to determine whether to show the creature as passive or hostile on the mob radar. |
Ok, then I'm sorry, I always assumed that IAnimals was reserved for animals, so I didn't really think about it when you said that JM supports it. However, I'm not sure which EntityCreature#isHostile() method you are referring to (can't find any at MC 1.11) |
I am on my phone and AFK, sorry, was going from memory. It might be just a field, or on EntityLivingCreature. |
ok, np |
Looks like we just check if the entity's attack target is the player to see if it is hostile. It is not a method on any entity class. |
Yeah, I could well be remembering something from MC 1.0 or anything since. It's been abstracted in JM code for a long time. Thanks Mystic. |
Thx, that works perfectly |
@techbrew-mc I've added the |
Fixed creature types (cherry picked from commit e962b12)
If you need a test mod, the latest 1.11 beta of Vampirism includes these changes: https://minecraft.curseforge.com/projects/vampirism-become-a-vampire/files/2443231 |
@macks2008 Did you use JourneyMap and Vampirism together lately. |
Going to close this. I added a wiki entry to summarize this issue |
Maybe they will show up on JourneyMap now #190
I have marked vampires and hunters as INPC according to JourneyMap Wiki that should make them show up. (Maybe hostile, maybe not). |
ok, not sure when I will get around to updating but I'll definitely let you know if it didn't work 😉 |
Maybe they will show up on JourneyMap now TeamLapen#190
Maybe they will show up on JourneyMap now #190
Versions
Issue Description
vampires and hunters do not show on my preferred minimap, JourneyMap. I realize this might be intentional to make inter-faction combat harder, but if it is, it should be optional.
Reproduce Steps
It may have something to do with the server I am playing on running SpongeForge, but if it is, it's still my responsibility to report since it's my own server.
Otherwise, as far as I know, the only reproduction step to see the issue in action is install JourneyMap 5.4.6 and Vampirism. then walk up to a hunter or vampire and check the minimap
Additional Information
The text was updated successfully, but these errors were encountered: