Bug Closed · Resolved

Models spawned with ModelEngine API disappearing

#4516 opened by Unknown 2 years ago

Unknownreported this bug

I am having a number of issues with spawning models via the API, everything worked in Meg3, these issues arose once I upgraded to Meg4.

The first of which is to do with the models flat out disappearing once I spawn them as shown in the below video. This occurrence is seemingly random (I cannot discern a pattern) and produces no errors in the console. I can, however, say that this issue does not occur if I do not use mountManager.setCanDrive(true), preventing me from driving. [Legacy attachment omitted]

As shown in the next video, when not being allowed to mount the vehicles, they do not disappear, however, when I kill them, they become invincible ghosts (I have set the base entity to invisible hence why you cannot see them) but when they are visible, they will continue to fly around as regular phantoms, unable to be hit. [Legacy attachment omitted]

Finally, as shown in the final two videos, when mounting the vehicle, it has the seemingly stranger tendency to occasionally teleport me 0, 0, 0, with or without the vehicle (if it disappears according to the initial issue). [Legacy attachment omitted]

[Legacy attachment omitted]

The plugin list is provided here, CometMechanics is the plugin we are using for this and it has been tested without NoCheatPlus (to no effect) [Legacy attachment omitted]

We are using Purpur 1.20.1 build 2053.

Here is the code we are using to spawn the entities https://paste.learnspigot.com/xetubileru.kotlin It should also be noted that all videos above were recorded using the default movement controllers.

On a final note, I didn't get much of a chance to test this with multiple people, but for what I did, there were times when I could not see certain models which the other member could and vice versa.

Hopefully that covers everything, thank you.

Unknowncommented

Yea, I've got the exact same issue. If any developers can estimate an ETA that would be wonderful. Thank you.

Unknowncommented

We have confirmed that this is in base model engine, and has nothing to do with our plugin utilizing the model engine API, spawned models will sometimes not be visible, however you can still hear the mob, additionally relogging allows you to see the base entity but not the model, finally leaving the render distance of the ghost models and returning allows you to see their base entity as if you relogged but the model is still not initialized on the entity, we have switched from purpur to regular paper 1.20.1 (196) and are using model engine 4.0.4 In this example you can see me spawning 5 ghost models afterward SuperPenguin runs the /kill @e command showing 5 phantoms have spawned but the model has not initialized. https://gyazo.com/fd7b359d3eadcc29653ea4f20acf59db

Next example I spawn 5 "ghost models" and relog, which then allows me to see the base entity https://gyazo.com/bb60a9c26161f35744b7808474833d4a It is important to note that not all summoned models are invisible some are actually visible however it is very inconsistent as opposed to how many ghost models appear in this example 1 out of 20 models managed to spawn correctly: https://gyazo.com/a23bde888cf05b98df1210482859355e https://gyazo.com/7edc5da753d9bb0f19f2c296826a420f Plugin list: https://gyazo.com/d39b9bd42c4850c7d5ccdd1c7dd828a9

Sign in to join the discussion.