PluginBugs / Issues-CosmeticsCore

Repository used to keep track of issues of my plugin CosmeticsCore
https://lonedev.gitbook.io/cosmeticscore/
0 stars 0 forks source link

Render ModelEngine Balloons #239

Closed PanHaskins closed 2 months ago

PanHaskins commented 5 months ago

Terms

Discord tag (optional)

panhaskins

What happened?

Problem with balloon rendering. As you can see in the video, the balloon is really only displayed for a very short distance (a couple of blocks).

This happens when I have a server view-distance of 5 and a simulation distance of 4-6.

It's so weird, since modelengine shows the other models from mythicmobs etc correctly as it does in the video, only the balloons don't. Due to this, the modelengine may be lagging probably because it's somehow working badly with their API and it's throwing "invisible" errores and only Spark is catching it. But that may just be my guess.

Steps to reproduce the issue

  1. Add CosmeticsCore and MEG 4
  2. Set view-distance to 5 and simulation-distance to 4
  3. Log on and equipt any type MEG balloon

Server version

git-Purpur-2176 (MC: 1.20.4)

CosmeticsCore Version

CosmeticsCore 1.2.3d

ProtocolLib Version

ProtocolLib 5.2.0-SNAPSHOT-679

LoneLibs Version

LoneLibs 1.0.45

FULL server log

Any errors

Error (optional)

No response

CosmeticsCore config.yml

No response

Problematic items yml configuration file (optional)

No response

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

https://github.com/PluginBugs/Issues-CosmeticsCore/assets/58113388/d009dd8a-20ee-4f35-8411-cc498fae03bd

image

LoneDev6 commented 5 months ago

This probably has to do with MEG api itself. Anyway please provide your report URL and the MEG version.

PanHaskins commented 4 months ago

ModelEngine R4.0.6.1 and I'd rather send you a spark report privately.

SrMonsterYT commented 3 months ago

same problem here: https://youtu.be/K2ATErblMak

server: git-Pufferfish-47 MC: 1.20.4 CosmeticsCore_1.3.0-release-1 ModelEngine-4.0.6.1 ProtocolLib 5.3.0-SNAPSHOT-699 LoneLibs 1.0.54

LoneDev6 commented 2 months ago

@PanHaskins This is my code, anyway I think it's an issue of MEG not my plugin.

        ModelBlueprint blueprint = ModelEngineAPI.getBlueprint(customEntityKey);
        megModel = ModelEngineAPI.createActiveModel(blueprint);

        fakeMegEntity = new Dummy();
        fakeMegEntity.setLocation(loc);
        megEntity = ModelEngineAPI.createModeledEntity(fakeMegEntity);

        if (megEntity == null)
        {
            Msg.error("Failed to spawn custom entity '" + customEntityKey + "'! megEntity is null.");
            return;
        }

        megEntity.addModel(megModel, false);
        megEntity.setBaseEntityVisible(false);
        fakeMegEntity.setRenderRadius(loc.getWorld().getViewDistance());