Git Product home page Git Product logo

craftstudioapi's Introduction

Important Note About CraftStudio Software from the creator of this beautiful soft !

Click on the image to see the post on x.com

Official repository of the CraftStudio API

(We are not affiliated with Mojang, CraftStudio or SparklinLabs)

Full wiki documentation

If you use this API, please contact me, (and credits) and send me somes cool screenshots of your work !

craftstudioapi's People

Contributors

jibaymcs avatar phenix246 avatar tompiron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

craftstudioapi's Issues

Random CME when rendering lot's of entities

Expected Behavior

The entities should render without exception.

Current Behavior

A ConcurentModificationException can be raised, when rendering entities.

Steps to Reproduce

  1. Summon a lot of custom entities.
  2. Wait.

Crash Report

https://pastebin.com/f4XbcCGr

Your Environment

  • Version of the api used: 1.0.0.93-alpha

(Thanks to mcpecommander for repporting it on discord)

Support of size for animations

Support of Size in animation may be implemented later if it's requested. For now, we will leave it ignored. Post a comment if you are interested in this feature ๐Ÿ˜‰

Repare texture for mirrored block

Texture for mirrored block in CraftStudio won't be fixed as Craftstudio doesn't export this information in the .csjsmodel. Try to modify your texture :/

[Question] Resource packs

Hello, I am only asking a question, this is not an issue. I was just wondering if I could add animations in a resource pack, or if animations could only be applied to modded in mobs.

Custom Animation Channel

Really need to correctly implements custom channel for "living animations" like lookAt, walk, etc

Server side CME causing player disconnection

Expected Behavior

Player don't get disconnected from the server.

Current Behavior

A CME is reported, causing the player to get quicked.

Possible Solution

Never access the entity list outside the main thread.
https://github.com/Leviathan-Studio/CraftStudioAPI/blob/master/src/main/java/com/leviathanstudio/craftstudio/common/network/ServerIAnimatedEventMessage.java#L71

Consider using EntityID with world.getEntityByID() instead of its permanent ID: it's smaller (1 int instead of 2 long) and sufficient for an animation (it can reset whenever chunk get saved/reloaded).

Steps to Reproduce

(unknown at this time)

Context

I died and got kicked.

Crash Report

[16:48:53] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: LemADEC was killed by Witch using magic
[16:49:01] [Netty Epoll Server IO #4/ERROR] [FML]: SimpleChannelHandlerWrapper exception
java.util.ConcurrentModificationException: null
	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) ~[?:1.8.0_171]
	at java.util.ArrayList$Itr.next(ArrayList.java:859) ~[?:1.8.0_171]
	at com.leviathanstudio.craftstudio.common.network.ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.getEntityByUUID(ServerIAnimatedEventMessage.java:71) ~[ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.class:?]
	at com.leviathanstudio.craftstudio.common.network.IAnimatedEventMessage$IAnimatedEventHandler.onMessage(IAnimatedEventMessage.java:157) ~[IAnimatedEventMessage$IAnimatedEventHandler.class:?]
	at com.leviathanstudio.craftstudio.common.network.ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.onMessage(ServerIAnimatedEventMessage.java:58) ~[ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.class:?]
	at com.leviathanstudio.craftstudio.common.network.ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.onMessage(ServerIAnimatedEventMessage.java:53) ~[ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.class:?]
	at net.minecraftforge.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:56) ~[SimpleChannelHandlerWrapper.class:?]
	at net.minecraftforge.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:36) ~[SimpleChannelHandlerWrapper.class:?]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:274) [minecraft_server.1.12.2.jar:?]
	at net.minecraftforge.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:99) [FMLProxyPacket.class:?]
	at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:147) [gw.class:?]
	at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:49) [gw.class:?]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleServerSideCustomPacket(NetworkDispatcher.java:453) [NetworkDispatcher.class:?]
	at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:265) [NetworkDispatcher.class:?]
	at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:72) [NetworkDispatcher.class:?]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:287) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:1017) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:394) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:299) [minecraft_server.1.12.2.jar:?]
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [minecraft_server.1.12.2.jar:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]
[16:49:01] [Netty Epoll Server IO #4/ERROR] [FML]: There was a critical exception handling a packet on channel craftstudioapi
java.util.ConcurrentModificationException: null
	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) ~[?:1.8.0_171]
	at java.util.ArrayList$Itr.next(ArrayList.java:859) ~[?:1.8.0_171]
	at com.leviathanstudio.craftstudio.common.network.ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.getEntityByUUID(ServerIAnimatedEventMessage.java:71) ~[ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.class:?]
	at com.leviathanstudio.craftstudio.common.network.IAnimatedEventMessage$IAnimatedEventHandler.onMessage(IAnimatedEventMessage.java:157) ~[IAnimatedEventMessage$IAnimatedEventHandler.class:?]
	at com.leviathanstudio.craftstudio.common.network.ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.onMessage(ServerIAnimatedEventMessage.java:58) ~[ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.class:?]
	at com.leviathanstudio.craftstudio.common.network.ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.onMessage(ServerIAnimatedEventMessage.java:53) ~[ServerIAnimatedEventMessage$ServerIAnimatedEventHandler.class:?]
	at net.minecraftforge.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:56) ~[SimpleChannelHandlerWrapper.class:?]
	at net.minecraftforge.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:36) ~[SimpleChannelHandlerWrapper.class:?]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) ~[minecraft_server.1.12.2.jar:?]
	at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:274) ~[minecraft_server.1.12.2.jar:?]
	at net.minecraftforge.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:99) [FMLProxyPacket.class:?]
	at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:147) [gw.class:?]
	at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:49) [gw.class:?]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleServerSideCustomPacket(NetworkDispatcher.java:453) [NetworkDispatcher.class:?]
	at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:265) [NetworkDispatcher.class:?]
	at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:72) [NetworkDispatcher.class:?]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:287) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:1017) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:394) [minecraft_server.1.12.2.jar:?]
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:299) [minecraft_server.1.12.2.jar:?]
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [minecraft_server.1.12.2.jar:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]
[16:49:01] [Netty Epoll Server IO #4/ERROR] [FML]: Network Disconnect: A fatal error has occurred, this connection is terminated
[16:49:01] [Server thread/INFO] [net.minecraft.network.NetHandlerPlayServer]: LemADEC lost connection: A fatal error has occurred, this connection is terminated

Your Environment

HOLD animationMode

Add an HOLD animationMode to replace LINEAR which would stay but change behavior to not holding the last key Frame

Maven is down

I have been trying to update my own mod's version of forge, but it appears the maven is down, which prevents travis from working right for me.

Crashes when loading

Expected Behavior

It should get through all the loading stuff, then get to the Minecraft title screen.

Current Behavior

At first, it seems to load normally, but when it gets to "Initializing mods phase 1 part 2/7", loads a bunch of other mods, then tries to load Craft Studio API, it crashes.

Steps to Reproduce

https://pastebin.com/Ucs4iiS6

Context

It stopped me from playing entirely (or, at least, playing with Craft Studio API and, by extension, Animania).

Crash Report

https://pastebin.com/Ucs4iiS6

Your Environment

  • Version of the api used:
    CraftStudioAPI-universal-1.0.1.95-mc1.12-alpha
  • Version of forge used:
    forge-1.12.2-14.23.5.2838.jar
  • Link to your project:

Conflict with decocraft 2

Expected Behavior

The game should load

Current Behavior

The game crashes while trying to load with the error :
java.lang.NoClassDefFoundError: com/mia/craftstudio/IPackReaderCallback

Possible Solution

dunno. I'm just trying to play with the mod.

Steps to Reproduce

  1. install version 2.6.0 of decocraft2 for mc version 1.12.2
  2. install versions of stuff from below
  3. attempt to launch game

Context

Trying to load game.

Crash Report

https://pastebin.com/sNABJV6T

Your Environment

  • Version of the api used: 1.0.0.93-mc1.12-alpha
  • Version of forge used: 14.23.4.2707
  • Link to your project: N/A

Javadoc

Make a fully beautiful javadoc

KeyFrame transformations becoming corrupted

Current Behavior

This occurs in all of the getNextXXX() or getPreviousXXX() functions inside ClientChannel.
getPreviousRotationKeyFrameForBox, getNextRotationKeyFrameForBox, etc

It seems "fake" KeyFrames are being cloned (possibly with negative positions) so that interpolation remains consistent. However, cloning a full keyframe which might contain multiple types of transformations (ie: rotation and translation) is incorrect since only the desired transformation type should be copied.

The "this.keyFrames.put" lines are potentially causing multiple issues.

  1. There might already be a keyframe at the new index being inserted that contains transformation data other than the type being searched for. This will cause all existing keyframe data in that index to be lost.
  2. Cloning a full KeyFrame structure is incorrect since it might contain transformations other than the type being searched for.

Possible Solution

Don't clone the entire KeyFrame with potentially all 4 types of transformations. Instead create a new KeyFrame and only copy over the relevant translation, rotation, offset, or stretch data.

Also, be careful not to stomp existing KeyFrame data in the keyFrames map by using a put() on an index that already exists. This can happen in the existing code which causes data to be lost.

[1.12.2] Craft Studio Crashes While Loading Forge (1/7)

Expected Behavior

I expected the mod to load normally in the forge loading screen in phase 1/7.

Current Behavior

What happens instead is that Forge crashes instead of loading to the Minecraft title screen.

Possible Solution

I am not an java or mod expert, but it could be another mod that is interfering or conflicting with this mod. Removal of this mod may result in a fix, but I do not know what that mod is.

Context

The issue prevented me from loading my 500+ modpack.

Crash Report

Crash Report: https://paste.dimdev.org/ozofemuqoz.mccrash

(Is it fine if I use hastebin? It is a similar website like pastebin.

Your Environment

The error happened in 1.12.2 Forge while loading in Phase 1/7

Craft Studio Version: 1.0.0.93-mc1.12-alpha
Forge Version: 14.23.4.2759
My project isn't open source, however, the crash report should provide enough information for all the mods loaded and errors.

Other Notes: I was installing the mod Animania but it requires this mod here.

[Misc] Possible illegal use of your mod as a coremod by two other mods

CTst bug

.93 and .95 get generated in the com in memory_repo folder, as well as the 1.12.2 folder, forge cannot load two coremod files at the same time

This DOES indeed occur with version .95

I DID delete the memory_repo and 1.12.2 folders before testing

Also occurs on 93 even after deleting:

93

New version icon

In the mod list menu, the icon of the new version is constantly blinking.
2020-05-15_01 00 25

Memory leak

Expected Behavior

Regular memory usage, characters/strings/variables/integers should be using up the most memory

Current Behavior

com.mia.craftstudioapi.libgdx.Vector3 is constantly making copies of itself without deleting the previous vector 3s (on a side note, there is another memory leak but I'm not sure what's causing it so if you can tell me which mod is causing it so I can report it to that mod author or remove the mod, that would be great)

Possible Solution

Maybe make the vector 3s delete themselves after a while? I'm not sure.

Steps to Reproduce

  1. I think it's something in my world but I'm not sure what it is. I did try to make a new world and the tps was fine (a bit high) but fine

Context

Anything that puts any form of pressure on the server (builder from rf tools) causes me or anyone else on to time out.
Makes multiple people joining nearly unplayable.
Heavily built in world which I can send if needed along with all of the mods.

Crash Report

I have a link to a heap dump, if that isn't good enough let me know what else you need.
https://drive.google.com/open?id=1HaSvpqTcDMszEhvnHmh7YiJ5psBiqjg9

Your Environment

  • Version of the api used:
    0.3.0.87
  • Version of forge used:
    12.18.3.2511
  • Link to your project:

Animania and Binnie's Mods Hive Animation Issue

Expected Behavior

Animania and Binnie's Mods (Extra Bees, Extra Trees, Gendustry) shouldn't have any conflicts, but the error report is citing Craftstudio. Animania has no "hive" object.

Current Behavior

Server crashes when loading.

Steps to Reproduce

Running CraftStudio-1.0.0.93-mc1.12, which is a dependent for Animania 1.12.2 1.6.2, with Binnie's Mods 2.5.1.188

Context

I'm only trying to run these two mods which should have no conflict together.

Crash Report

https://pastebin.com/DjFsnR9n

Your Environment

  • Version of the api used:
    CraftStudio-1.0.0.93-mc1.12-alpha-dev
  • Version of forge used:
    forge-1.12.2-14.23.5.2814-universal
  • Link to your project:

Import model as block model

Expected Behavior

The api should be able to load CraftStutio model like the model json system of minecraft, without the use of a TESR.

Current Behavior

Currently to import a CraftStudio model you must create a tile entity, and bind it to a TESR. With this system if your block isn't animated you could import the model for your block directly, without this Tile Entity stuff.

Possible Solution

Using the model registry system with IModel and IBakedModel.

Animation of armor

Does this API have support for animating armor? Say, what if I want a hat that wobbles, does the API support animations created for armor?

Fix maven repository (error 500)

The recommended maven repository in the Wiki is broken. It gives a 500 error code.

Expected Behavior

The maven repository should be up and running fine, delivering CraftStudioApi's artifacts.

Current Behavior

Browsing http://maven.leviathan-studio.com/artifactory/leviathan/com/leviathanstudio/CraftStudio/ gives this JSON response :

{
  "errors" : [ {
    "status" : 500,
    "message" : "HTTP response status 500:Failed on executing /api/v1/auth/login, with response: {\n  \"errors\" : [ {\n    \"code\" : \"INTERNAL_SERVER_ERROR\",\n    \"message\" : \"Could not update login details for user 'anonymous'\",\n    \"detail\" : \"An SQL data change is not permitted for a read-only connection, user or database.\"\n  } ]\n}"
  } ]
}

Using the provided build.gradle dependency code doesn't resolve it.

Possible Solution

An alternative could be recommanding the use of the jitpack.io maven repository.
(See https://jitpack.io/#Leviathan-Studio/CraftStudioAPI)

Steps to Reproduce

Just follow https://github.com/Leviathan-Studio/CraftStudioAPI/wiki/Add-the-API-to-your-project

Your Environment

  • Version of the api used: 0.3.0.86-mc1.11.2-beta-dev
  • Version of forge used: 1.12.2-14.23.2.2611

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.