Timeline
Last Updated on 2024-09-14 12:49:37 UTC
A Minecraft Mod Which Could Show Image In Chat Line
Home Page: https://chatimage.kituin.fun
可能与 #38 有关
全部模组均为默认设置
只测试了 MC 1.21
服务端和客户端:Fabric API + ChatImage
Log
[18:20:21] [Server thread/INFO]: Xujiayao joined the game
[18:20:43] [Server thread/INFO]: <Xujiayao> https://blog.xujiayao.com/file/avatar.png
[18:21:46] [Server thread/INFO]: <Xujiayao> [[CICode,url=file:///C:\Users\Xujiayao\Desktop\文件\signature.png]]
[18:21:46] [Server thread/INFO]: [FileChannel->Server:1/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:3/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:4/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:5/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:6/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:7/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:8/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:9/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:10/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:11/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:12/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:13/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:14/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:2/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:15/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:16/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:17/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:18/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:19/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:20/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:21/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:22/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:23/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:24/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:25/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:26/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:28/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:27/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:29/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:30/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:31/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:33/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:32/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:34/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:35/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server:36/36]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:21:46] [Server thread/INFO]: [FileChannel->Server]C:\Users\Xujiayao\Desktop\文件\signature.png
[18:23:24] [Server thread/INFO]: <Xujiayao> [[CICode,name=Test,url=https://blog.xujiayao.com/file/background.jpg]]
/say https://blog.xujiayao.com/file/avatar.png
[18:27:24] [Server thread/INFO]: [Not Secure] [Server] https://blog.xujiayao.com/file/avatar.png
服务端:Fabric API + ChatImage + No Chat Reports
客户端:Fabric API + ChatImage
客户端安装不安装 NCR 都一样
Log
[18:29:15] [Server thread/INFO]: Xujiayao joined the game
[18:30:38] [Server thread/INFO]: <Xujiayao> https://blog.xujiayao.com/file/avatar.png
[18:30:56] [Server thread/INFO]: <Xujiayao> [[CICode,url=file:///C:\Users\Xujiayao\Desktop\文件\signature.png]]
[18:31:07] [Server thread/INFO]: <Xujiayao> [[CICode,name=Test,url=https://blog.xujiayao.com/file/background.jpg]]
/say https://blog.xujiayao.com/file/avatar.png
[18:31:16] [Server thread/INFO]: [Server] https://blog.xujiayao.com/file/avatar.png
Test 1 & Test 2
/chatimage send Test https://blog.xujiayao.com/file/background.jpg
命令/say https://blog.xujiayao.com/file/avatar.png
命令Test 2
latest.log
Fabric
1.21
ChatImage-1.2.4+1.21+fabric on Modrinth
21.0.3
No response
No response
No response
When I saw that there was a 1.1.9 for 1.19.2 on Fabric I went looking for the Forge Version, sadly I couldn't find in neither CurseForge or Modrinth, only the 1.1.8
but here on GitHub releases we have the 1.1.9 for said version, did you forget to upload the 1.19 version on the websites?
Please fix if that's the reason, I want to update the mod on my modpack on CF and the application (CurseForge Launcher) needs the file be uploaded onto CF to be considered a valid version.
Side Note:
On CurseForge the latest file name for 1.19 is indeed 1.1.8
Maybe you uploaded the wrong file onto CurseForge? or something? please check! ❤🥰
网络图片无法加载
发送 `[[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]]`
[22:26:17] [OkHttp Dispatcher/ERROR] (FabricLoader) Uncaught exception in thread "OkHttp Dispatcher"
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 4 out of bounds for byte[0]
at java.lang.System.arraycopy(Native Method) ~[?:?]
at com.github.chatimagecode.ChatImageHandler.getPicType(ChatImageHandler.java:138) ~[ChatImageCode-0.5.0.jar:?]
at com.github.chatimagecode.ChatImageHandler.loadFile(ChatImageHandler.java:96) ~[ChatImageCode-0.5.0.jar:?]
at com.github.chatimagecode.ChatImageHandler.loadFile(ChatImageHandler.java:117) ~[ChatImageCode-0.5.0.jar:?]
at com.github.chatimagecode.ChatImageHttpHandler$1.onResponse(ChatImageHttpHandler.java:45) ~[ChatImageCode-0.5.0.jar:?]
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174) ~[ChatImageCode-0.5.0.jar:?]
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[ChatImageCode-0.5.0.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Fabric
1.20.x
1.1.11+1.20.2+fabric
Win11,java 17
No response
No response
如题
版本:1.16.5-Forge-1.2.3
JAVA: Zulu java 8u281
OS: Windows 10 & Arch Linux
另一个bug是你issue的模版没了(
如题,似乎1.20并未对相应方面进行大改,适配应当不需要太多更改,可否考虑更新?
forge 1.19.4,模组版本1.1.5
在聊天栏中使用部分原始JSON文本时,某些元素会在聊天消息的最后被重复,卸载这个模组是不会发生这种情况。
1. 安装模组,载入一个世界
2. 放置一个结构方块,调到数据模式,在里面输入"消息"
3. 站在结构方块上运行命令/tellraw @a [{"color":"#ffffff","text":"[SERVER] "},{"nbt":"metadata","block":"~ ~-1 ~","interpret":true}]
4. 得到的聊天消息是[SERVER] 消息消息
5. 卸载模组时得到的聊天消息是[SERVER] 消息
mod1.1.5
mc1.19.4
forge45.0.43
android12/pojav9939093/pojav专用java17.0.7
No response
如题,希望能添加对1.16.5forge的支持!!!谢谢!!!
无
不需要日志
不需要填写这里
java1.8.0_281
No response
No response
麻将在1.20.3+版本大改了一些代码 Codec
等待钻研完毕后支持
在1.20.1客户端使用Mod时接收比较多的图片消息会导致材质出错
貌似Fabric和forge都有这个情况
1.进入服务器
2.服务器同步QQ群消息 并使用[[CICode,url=]]方式同步给玩家群消息的图片
3.长时间游玩服务器后会突然材质包错误或字体乱码(可能是由于接收图片过多导致的问题?)
4.有时候重载材质包可以解决,也有时候需要重启客户端
目前有两个猜测,一个是BUG、一个是接收图片多了会这样(?)
Fabric
1.20.1
ChatImage-1.2.0+1.20.1+fabric
Windows、Java17
No response
No response
No response
Forge 1.19.2 43.2.21
ChatImage 1.1.6
Installed on both Client and Server
If I play single player there will be /chatimage command but when I join server there is no /chatimage command
在使用Spigot使用TextComponent构建消息或在Rcon发送命令展示图片时,会出现 literal([Image])
[[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]]
也不会显示literal([Image]),而是正确地显示[Image]
# 构建Component
msgComponent.setText("[[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]]");
# rcon命令
/tellraw @a ["","[[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]]"]
# 构建Component
msgComponent.setText("[[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]]");
# rcon命令
/tellraw @a ["","[[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]]"]
无需日志
Forge
1.20.1
1.1.12
(个人认为理论上所有版本都会这样)
openjdk-17
No response
上传GIF时游戏内存占用异常
1.进入一个新世界
2.拖入GIF并发送
3.内存占用异常导致游戏崩溃
crash-2023-07-04_00.12.11-server.txt
latest.log
1.1.7 1.20.1 fabric
windows11 java18 内存分配8GB
1.19.3 Fabric中黏贴快捷键(Ctrl+V)导致游戏奔溃
“Signature is missing from textures payload”
I noticed there is support for Fabric 1.20 & 1.20.1+ but no support for forge.
Please add forge support. Thank you!
Q群发送图片,客户端有几率会如图所示。我也不清楚是不是您的mod出现的bug但我这很多人都有这种情况)。我是自己写的velocity插件,直接转发Q群的消息链。
Fabric
1.20.1
ChatImage-1.2.3+1.20.1+fabric
zulu_17
No response
No response
No response
在其他人开放的局域网游戏(可能也包括vanilla
服务器)发送超过32767字节(约32KB)的图片会被踢出,即使服务器并没有安装ChatImage
1. 进入服务器
2. 发送超过33KB的图片
Fabric
1.20.4
1.2.3+1.20.4+fabric
Windows 11
Zulu 21
vanilla 1.20.4(内置服务端)
在单人游戏或自己开启的局域网游戏不受此限制
在 Bukkit 服务器上也没有问题
已使用最新版
问题①:发送本地文件时,如果文件名为纯英文gif则发送后以文本显示cicode全内容,不显示图片,暂不知url图片和其他格式是否有此问题
问题②:发送一个新的未在服务器缓存的gif时,会与服务器断开连接,显示:
Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException:
Payload may not be larger than 32767 bytes
*问题发生在整合包上,未在单mod端上尝试*
整合包客户端地址:https://www.123pan.com/s/LyQUjv-wVLN.html
整合包服务端地址:https://www.123pan.com/s/LyQUjv-gVLN.html
*注:这是直接打包的versions文件夹下的版本,不要用启动器安装,没用,全部解压放versions下面开版本隔离就行*
*服务端解压后,点击start.bat即可开服*
1、开一个该整合包的服务器
2、启动客户端,连接进服务器
3.1、发送纯英文名的gif,你会看到纯CIcode文本,而不是图片
3.2、发送一个中文名gif,与服务器断开连接,payload不可大于32767bytes
latest - client.log
latest - server.log
Forge
1.16.x
最新版
Windows 10 专业工作站版
Azul zulu 8u282
forge-1.16.5-36.2.41
截图可能不能提供太大帮助,描述中已经详细解释
无
Relates to Xujiayao/Discord-MC-Chat#211.
Hi. Writing in English here to facilitate language internationalization.
Please take a look at the referenced issue to get an understanding of the case. Several problems are mentioned there, and I would like to request if anything could be done on the ChatImage side.
Thank you.
我在我的1.18.2服务器使用此mod,将其与allmusic mod一起启动后发生冲突
1:启动服务器
2:服务器启动后加载allmusic
3:报错后自动关服
:[22:24:21] [Server thread/INFO]: Done (6.359s)! For help, type "help"
[22:24:21] [Server thread/INFO]: §d[AllMusic]§e正在初始化网络爬虫
[22:24:22] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NoSuchFieldError: okio/Options.Companion
at okhttp3.internal.Util.(Util.kt:70) ~[com_squareup_okhttp3_okhttp-4.10.0-f0ad7a2a4fa6af51.jar:?]
at okhttp3.internal.concurrent.TaskRunner.(TaskRunner.kt:309) ~[com_squareup_okhttp3_okhttp-4.10.0-f0ad7a2a4fa6af51.jar:?]
at okhttp3.ConnectionPool.(ConnectionPool.kt:41) ~[com_squareup_okhttp3_okhttp-4.10.0-f0ad7a2a4fa6af51.jar:?]
at okhttp3.ConnectionPool.(ConnectionPool.kt:47) ~[com_squareup_okhttp3_okhttp-4.10.0-f0ad7a2a4fa6af51.jar:?]
at okhttp3.OkHttpClient$Builder.(OkHttpClient.kt:471) ~[com_squareup_okhttp3_okhttp-4.10.0-f0ad7a2a4fa6af51.jar:?]
at coloryr.allmusic.core.music.api.HttpClientUtil.init(HttpClientUtil.java:30) ~[%5BFabric1.18.2%5DAllMusic_Server-2.19.4.jar:?]
at coloryr.allmusic.core.music.api.APIMain.(APIMain.java:34) ~[%5BFabric1.18.2%5DAllMusic_Server-2.19.4.jar:?]
at coloryr.allmusic.core.AllMusic.start(AllMusic.java:337) ~[%5BFabric1.18.2%5DAllMusic_Server-2.19.4.jar:?]
at coloryr.allmusic.AllMusicFabric.lambda$onInitialize$1(AllMusicFabric.java:45) ~[%5BFabric1.18.2%5DAllMusic_Server-2.19.4.jar:?]
at net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$2(ServerLifecycleEvents.java:49) ~[fabric-lifecycle-events-v1-2.1.1+cc71601c60-9ad41f25ee9ba96b.jar:?]
at net.minecraft.server.MinecraftServer.handler$zod000$fabric-lifecycle-events-v1$afterSetupServer(MinecraftServer.java:5312) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:676) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:273) ~[server-intermediary.jar:?]
at java.lang.Thread.run(Thread.java:889) [?:?]
[22:24:22] [Server thread/ERROR]: This crash report has been saved to: D:\server.\crash-reports\crash-2024-01-26_22.24.22-server.txt
[22:24:22] [Server thread/INFO]: §d[AllMusic]§2§e已停止,感谢使用
Fabric
1.18.x
ChatImage-1.1.5+1.18.2+fabric
Windows 11 10.0.22621.2861
java:java version "20" 2023-03-21
Java(TM) SE Runtime Environment (build 20+36-2344)
Java HotSpot(TM) 64-Bit Server VM (build 20+36-2344, mixed mode, sharing)
fabric-server-mc.1.18.2-loader.0.15.6-launcher.1.0.0.jar
No response
No response
多名玩家在服务器上 其中一名玩家直接拉取本地图片到聊天窗口发送 之后其他玩家一起掉线
1.开启一个服务端
2.连接多名玩家
3.其中一个玩家直接发送本地图片
暂无
mod版本1.1.6 mc 版本1.19.2 forge版本 43.2.13
java17
No response
No response
在qq群发图片,这是原本的链接https://multimedia.nt.qq.com.cn/download?appid=1407&&fileid=CgozMTY2MzI2OTQ0EhSgy40K7R49J1QwWk6TVDnZcvDCjRjapQMg_wooitSD8b6ZhwNQgL2jAQ&&spec=0&&rkey=CAISKKSBekjVG1fMwnePyWN7SpUiYdgno34HLewhnzVBOCqsni7cPnFtNx4
是可以正常访问的
但是此模组识别出的链接是带;号的
https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgozMTY2MzI2OTQ0EhSgy40K7R49J1QwWk6TVDnZcvDCjRjapQMg_wooitSD8b6ZhwNQgL2jAQ&spec=0&rkey=CAISKKSBekjVG1fMwnePyWN7SpUiYdgno34HLewhnzVBOCqsni7cPnFtNx4
然后qq群发的图片就相当于无效链接
Qq群发送的图片,链接识别有问题
https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgozMTY2MzI2OTQ0EhSgy40K7R49J1QwWk6TVDnZcvDCjRjapQMg_wooitSD8b6ZhwNQgL2jAQ&spec=0&rkey=CAISKKSBekjVG1fMwnePyWN7SpUiYdgno34HLewhnzVBOCqsni7cPnFtNx4
会加上分号导致无法访问, 把分号改成&
可以正常访问。
无
Fabric
1.19.3/1.19.4
1.20.4 fabric
w11 17
No response
No response
No response
在发送本地图片时(发送者)会被踢出游戏
1.打开游戏(1.19.2Fabric)
2.进入一个服务器
3.发送本地图片
Fabric
1.19.2
1.2.3
Windos 10,Java 17
1.19.2 Fabric 0.15.10
No response
Doesn't show images in chat
Minecraft Fabric 1.20.6
Paste [[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]] in chat
Enter
Image doesn't show up but instead this:
Fabric
1.20.2
ChatImage-1.2.5+1.20.5+fabric
Windows 10 Pro
Java Version 8, Update 410
1.20.6
Include an English bug report form 🙏
在服务器中超过32767字节图片被踢出
1. 进入服务器
2. 发送超过33KB的图片
Forge
1.19.1/1.19.2
ChatImage-1.2.3+1.19.x+forge
win11
Jdk21
No response
No response
我看到了#39,但是forge没有1.2.4版本。另外我建议不要硬编码,生成配置文件让玩家自己配置。
已经更新到1.2.4版本任然出现
发送部分本地图片 客户端会显示连接丢失 服务端报错
在MC fabric 1.20.1客户端中 使用F2截图
正常发送所截图的图片
会提示连接丢失 而被踢出服务器
服务端
[Server] [17:39:02] [Server thread/INFO]: <IK_Maple_Star> [[CICode,url=file:///E:\Minecraft\纯净整合包\【1.20.1】IK-M 生电整合包 V.2.0\versions\1.20.1_Fabric_MOF-Server_IK-Maple\screenshots\2024-07-06_00.07.39.png]]
[Server] [17:39:02] [Server thread/INFO]: IK_Maple_Star lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IllegalArgumentException: Payload may not be larger than 32767 bytes
[Server] [17:39:02] [Server thread/INFO]: IK_Maple_Star left the game。
Fabric
1.20.1
1.2.4
win11 zulu22
fabric-server-launch-1.20.1
No response
Unable to launch the game when using ChatImage + It's the Little things because both export the same package...
1. Install Minecraft + Forge 43.2.23
2. Install ChatImage 1.1.6
3. Install ITLT (It's the little things) 2.2.0
4. Try to Launch the Game
5. Exception caught from launcher (check below for the logs)
Exception caught from launcher
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:58)
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:88)
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:126)
at org.prismlauncher.EntryPoint.main(EntryPoint.java:71)
Caused by: java.lang.module.ResolutionException: Modules itlt and chatimage export package net.sf.image4j.util to module forge
at java.base/java.lang.module.Resolver.resolveFail(Resolver.java:901)
at java.base/java.lang.module.Resolver.failTwoSuppliers(Resolver.java:815)
at java.base/java.lang.module.Resolver.checkExportSuppliers(Resolver.java:736)
at java.base/java.lang.module.Resolver.finish(Resolver.java:380)
at java.base/java.lang.module.Configuration.<init>(Configuration.java:140)
at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:494)
ChatImage 1.1.6 - Minecraft 1.19.2
Windows 10 + JAVA 17
如题
btw我向您的邮箱发送了一封邮件,如果您没收到请告诉我
单人模式可以展示图片,但是多人模式无法将链接转换成图片
1. 下载游戏:
- 1.20
- Fabric 0.15.3
- Fabric API 0.83.0+1.20
2. 下载mod
https://github.com/kitUIN/ChatImage/releases/tag/1.1.12
ChatImage-1.1.12+1.20+fabric.jar
3. 打开单人模式
输入并发送链接 [[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]]
——图片可正常展示
4. 连接任意服务器
输入并发送链接 [[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]]
——只显示白色文字,且鼠标移到上面时无法查看图片
in-server.log
in-single-player.log
Fabric
1.20
1.1.12
版本 Windows 11 专业版
版本 23H2
操作系统版本 22635.2921
体验 Windows Feature Experience Pack 1000.22684.1000.0
openjdk 17.0.8.1 2023-08-24 LTS
OpenJDK Runtime Environment Microsoft-8297089 (build 17.0.8.1+1-LTS)
OpenJDK 64-Bit Server VM Microsoft-8297089 (build 17.0.8.1+1-LTS, mixed mode)
No response
无法使用 /tellraw 正确解析 HoverEvent json
命令/tellraw @p [{"text":"[图片]","hoverEvent":{"action":"show_chatimage","value":"[[CICode,url=https://blog.kituin.fun/img/bg.png]]"}}]
结果
我使用的是Chatbridge实现qq和mc的消息互通
gocqhttp转发到游戏内大概长这样:
[CQ:image,file=6decc70d3a5e03ffa1aca403934fe0da.image,subType=1,url=https://gchat.qpic.cn/gchatpic_new/437687850/726315307-2800984320-6DECC70D3A5E03FFA1ACA403934FE0DA/0?term=2&is_origin=0]
url= 后边即为图片地址
McBot马上就要更新到1.20.2Fabric的版本了,请问聊天图片能跟进更新吗
在服务器中使用时 发送本地图片 客户端会显示连接丢失 服务端报错 玩家名 lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IllegalArgumentException: Payload may not be larger than 32767 bytes
在服务器中 发送本地图片(2M以上的
[16:31:03 INFO]: <IK_Maple_Star> [[CICode,url=file:///C:\Users\IK-Maple\OneDrive\桌面\WallpaperEngineLockOverride_randomRCFRNR.jpg]]
[16:31:04 INFO]: IK_Maple_Star lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IllegalArgumentException: Payload may not be larger than 32767 bytes
[16:31:04 INFO]: IK_Maple_Star left the game
Fabric
1.20.1
1.2.3
17
服务器mods与客户端一致
服务器为1.20.1 fabric 原版核心
No response
No response
1. Install modpack: https://legacy.curseforge.com/minecraft/modpacks/simplymc/files/4606168
2. Use /chatimage url command
3. Press enter then crash
ChatImage-1.1.6+1.20.1+fabric.jar
java 17
windows 10
crash-2023-06-24_01.57.12-client.txt
Description: keyPressed event handler
java.lang.NoClassDefFoundError: okio/Buffer
No response
目前该模组使用原始 json 文本
hoverEvent":{"action":"show_chatimage","contents":{"code":"[[CICode,url=https://blog.kituin.fun/img/bg.png,name=Image]]"}}
来显示图片,但在命令/tellraw和成书中并不支持该聊天组件。
希望可以让这个聊天组件支持更多用法,例如在命令/tellraw,甚至成书和告示牌中使用。
在如果服务端装有NoChatReports,则客户端发送的CICode等指令无法正常渲染为图片。
在如果服务端装有NoChatReports,则客户端发送的CICode等指令无法正常渲染为图片。
1
Fabric
1.20.2
1.2.3 fabric 1.20.4
java21
No response
No response
No response
只要把此mod放在服务端内,服务端就不能成功开启,也就是说 我把这个mod从服务端内删除服务端就会正常开启。
就是在服务端内添加或删除此mod
1.1.4+1.19.2+Forge
jdk-17.0.1
No response
No response
无法发送图片,在游戏中只能显示出对应的代码。可以确定服务器以及客户端都安装了相同版本的该模组。但是在单人游戏当中可以发出图片。
1.进入一个安装了该模组的服务器,拖入图片,可以看到显示出了代码,但发送出去之后仍然是代码
2打开一个单人存档,拖入图片,可以正常使用
1.1.7+1.20.1+0.14.22
win11 17.0.3
No response
The mod works fine in single-player, but on a Fabric 0.14.24 server, it does not. The commands work fine for formatting the command but all that appears in the chat is the CI code.
The server and client have the same version of the mod installed: 1.1.12+1.20.1+fabric.
Does this mod require any additional ports to be open (other than 25565udp/tcp)?
Q群发送图片,客户端有几率会如图所示。我也不清楚是不是您的mod出现的bug但我这很多人都有这种情况)。我是自己写的velocity插件,直接转发Q群的消息链。
Fabric
1.20.1
ChatImage-1.2.3+1.20.1+fabric
zulu_17
No response
No response
No response
Versions
Java 21
Minecraft Client + Server 1.20.6
Fabric Loader 0.15.11
ChatImage 1.2.4 for 1.20.5 (I assume it works on 1.20.6 as there is a 1.20.5-1.20.6 branch)
Steps to produce
Server Error
[18:13:03] [Netty Server IO #8/ERROR]: Error sending packet clientbound/minecraft:custom_payload
io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:custom_payload' (chatimage:file_info)
at net.minecraft.class_9136.handler$zel000$fabric-networking-api-v1$encode(class_9136.java:547) ~[server-intermediary.jar:?]
at net.minecraft.class_9136.method_56426(class_9136.java:55) ~[server-intermediary.jar:?]
at net.minecraft.class_9136.encode(class_9136.java:14) ~[server-intermediary.jar:?]
at net.minecraft.class_2545.method_10838(class_2545.java:26) ~[server-intermediary.jar:?]
at net.minecraft.class_2545.encode(class_2545.java:12) ~[server-intermediary.jar:?]
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) ~[netty-codec-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:881) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:863) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:968) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:856) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:113) ~[netty-codec-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:881) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:863) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:968) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:856) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.ChannelOutboundHandlerAdapter.write(ChannelOutboundHandlerAdapter.java:113) ~[netty-transport-4.1.97.Final.jar:?]
at net.minecraft.class_2535$2.write(class_2535.java:518) ~[server-intermediary.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:881) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:940) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:966) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:934) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:984) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1025) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:306) ~[netty-transport-4.1.97.Final.jar:?]
at net.minecraft.class_2535.method_36942(class_2535.java:342) ~[server-intermediary.jar:?]
at net.minecraft.class_2535.method_52917(class_2535.java:337) ~[server-intermediary.jar:?]
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.97.Final.jar:?]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) ~[netty-common-4.1.97.Final.jar:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[netty-common-4.1.97.Final.jar:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) ~[netty-transport-4.1.97.Final.jar:?]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.97.Final.jar:?]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.97.Final.jar:?]
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.lang.ClassCastException: class io.github.kituin.chatimage.network.FileInfoChannelPacket cannot be cast to class net.minecraft.class_8711 (io.github.kituin.chatimage.network.FileInfoChannelPacket and net.minecraft.class_8711 are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @1ce92674)
at net.minecraft.class_9139$6.encode(class_9139.java:42) ~[server-intermediary.jar:?]
at net.minecraft.class_8710$1.method_56489(class_8710.java:52) ~[server-intermediary.jar:?]
at net.minecraft.class_8710$1.method_56490(class_8710.java:57) ~[server-intermediary.jar:?]
at net.minecraft.class_8710$1.encode(class_8710.java:39) ~[server-intermediary.jar:?]
at net.minecraft.class_9139$8.encode(class_9139.java:81) ~[server-intermediary.jar:?]
at net.minecraft.class_9139$9.method_56442(class_9139.java:97) ~[server-intermediary.jar:?]
at net.minecraft.class_9139$9.encode(class_9139.java:87) ~[server-intermediary.jar:?]
at net.minecraft.class_9136.method_56426(class_9136.java:53) ~[server-intermediary.jar:?]
... 31 more
举一例使用场景:
服务器没有强制所有人安装ChatImage mod,
从服务器交流群同步图片到服务器内(带有很长一段url),使用hoverEvent中show_text
来兼顾使用mod玩家(显示图片)
以及未使用mod玩家(显示文本"[[CICode,url=图片url]]")
避免因CICode过长而影响阅读
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.