axeryok / cocoainput Goto Github PK
View Code? Open in Web Editor NEWA best way to input characters with native mac IM in Minecraft
Home Page: https://minecraft.curseforge.com/projects/cocoainput
License: Other
A best way to input characters with native mac IM in Minecraft
Home Page: https://minecraft.curseforge.com/projects/cocoainput
License: Other
nvm, just realised this is a mac only plugin
im using manjaro linux, and my main ime is hime
but it can't type properly
i tweaked some setting but it still not working
Hi there, I would like if this mod would get some updates for older versions, currently, it's only for macOS. Versions like 1.8.9 and 1.12.2 are still very popular, each because of their PvP mechanic and their mods. I hope to see updates on older versions since it's impossible to quickly communicate on those versions. Even if it's only one-time upgrade to make it compatible with Windows and Linux, I would appreciate it.
** Describe the bug **
** Describe the environment **
To Reproduce
Steps to reproduce the behavior:
Run 2 Minecraft with the mod applied
Logs(URL)
crash-2022-10-21_10.08.05-fml.txt
Additional context
Add any other context about the problem here.
Thanks! 谢谢!
** Describe the bug **
Game crashes when I try to type
** Describe the environment **
To Reproduce
Steps to reproduce the behavior:
Logs(URL)
2022-08-01-3.log.gz
Additional context
CocoaInput-NEI compat doesn't have a issue tracker so I guess I'll post this here ;)
The crash occurs when you enable and click on the NEI search box with CocoaInput-NEI installed.
Crash log here
using Minecraft 1.12
CocoaInput mod of 1.15.2 is only supported on lower versions of Forge and not applicable on versions like 31.2.50. Could you please update it?
After installing cocoainput, chatting works fine, but typing in the search bar of JEI in the inventory GUI does not work at all, no punctuation or any English character even after I turned off the IME. Deleting the cocoainput fixes this problem.
Environments:
Minecraft 1.16.5 with Forge 36.1.31
CocoaInput-1.16.5-forge-4.0.2.jar
jei-1.16.5-7.7.0.106.jar
macOS 11.4 (20F71) on Intel-based Mac
First of all, thank you for this great Mod, but I encountered some problems while using it.
The only thing that seems to work normally is typing in the chat box.
macOS: 10.13.3
Minecraft: 1.12.2
Java: 1.8.0_151-b12
Here's a crash dump from the console.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fff75349ea9, pid=4806, tid=0x0000000000000307
#
# JRE version: Java(TM) SE Runtime Environment (8.0_151-b12) (build 1.8.0_151-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.151-b12 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libobjc.A.dylib+0x6ea9] objc_msgSend+0x29
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/Admin/Library/Application Support/minecraft/hs_err_pid4806.log
Compiled method (c1) 110111 12937 3 net.minecraft.client.particle.Particle::func_187110_a (292 bytes)
total in heap [0x000000010be7e150,0x000000010be80db8] = 11368
relocation [0x000000010be7e278,0x000000010be7e460] = 488
main code [0x000000010be7e460,0x000000010be7ffc0] = 7008
stub code [0x000000010be7ffc0,0x000000010be80188] = 456
oops [0x000000010be80188,0x000000010be80190] = 8
metadata [0x000000010be80190,0x000000010be801c0] = 48
scopes data [0x000000010be801c0,0x000000010be80a38] = 2168
scopes pcs [0x000000010be80a38,0x000000010be80d38] = 768
dependencies [0x000000010be80d38,0x000000010be80d48] = 16
nul chk table [0x000000010be80d48,0x000000010be80db8] = 112
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#```
update 1.19 plz~ love your mod!
Simply, when typing a command, they are all white unlike in vanilla Minecraft where they are color coded.
I'd like to play a private 1.12.2 mod server, and I'm using the wrapper provided by https://github.com/r58Playz/m1-multimc-hack to make Minecraft running natively on my M1 Mac.
But I can not using any IME to input CJK characters without this mod, I recompile the cocoainput
module and replace it inside the existing jar, and it block the further startup progress.
Click the game window does not work at all.
Could you please make a fix?
Thanks.
Please push the latest version source code of CocoaInput to the repository. I would like to port this mod to fabric. It is hard for me to do works on such old version.
After Ctrl+A selecting all text , entering new text will not delete the selected text.
P.S:
Try in win10 win11 Zhuyin(Taiwan) input method
The same symptom with #10, but with Roughly Enough Items.
Environment:
macOS 12.0.1 on MacBook Pro 2019 (which is Intel-based)
Minecraft 1.17.1 (with fabric loader 0.12.8)
CocoaInput: CocoaInput-1.17-fabric-4.0.4
Roughly Enough Items: RoughlyEnoughItems-6.2.335
Full Mod List:
RebornCore-5.0.11-beta
RoughlyEnoughItems-6.2.335
TechReborn-5.0.11-beta
Xaeros_Minimap_21.22.3_Forge_1.17.1
appleskin-fabric-mc1.17.1-2.2.0
appliedenergistics2-9.0.0-beta.2
architectury-2.6.35
breakprogress-1.0.1
cc-restiched-1.97.2
cloth-config-5.1.40-fabric
fabric-api-0.44.0+1.17
hydrogen-fabric-mc1.17.1-0.3
indium-1.0.1+mc1.17.1
krypton-0.1.4
lazydfu-0.1.2
light-overlay-6.0.1-fabric
lithium-fabric-mc1.17.1-0.7.5
megane-5.6.0
modmenu-2.0.14
rer-2.2.0
sodium-fabric-mc1.17.1-0.3.3+build.8
starlight-1.0.0+fabric.73f6d37
wthit-fabric-3.11.2
https://paste.ee/p/TRCJx
-- log
https://gist.github.com/KyleUltimate/6502fade7623ebebe31afc1b6e1c873f
-- crash report
what I have tried
turning advancedpreedit Draw to false
hope this helps!
When I installed this mod on minecraft 1.17, the game simply goes crashed.
If you want to know that:
I'm using Archlinux (x86_64), cocoainput is loaded by fabric-loader 0.11.6 and there's no other mods installed.
Crash Report:
[Render thread/INFO]: CocoaInput has copied library to native directory.
[Render thread/INFO]: Call clang initializer
[Render thread/INFO]: CocoaInput X11 Clang Initializer start. library compiled at Jun 16 2021 21:05:38
[Render thread/INFO]: Window ptr:0x4c00009
[Render thread/INFO]: GLFWwindow ptr:0x7f5256ac1910
[Render thread/INFO]: Searching _GLFWwindowx11 from GLFWwindow ptr...
[Render thread/INFO]: Found offset:832 ,_GLFWwindowX11(0x7f5256ac1c50)=GLFWwindow(0x7f5256ac1910)+832
[Render thread/INFO]: XIC mem address:0x7f5256b5aa30
/usr/bin/java: symbol lookup error: /home/meow/.local/share/multimc/instances/1.17/.minecraft/native/libx11cocoainput.so: undefined symbol: XIMOfIC
Java crashes with a fatal error when I try to type anything in chat in Korean.
Input method: IBus
OS: Arch Linux
Minecraft version: 1.17
This is all the information I can provide since it is a java fatal error and it contains some critical information.
M1CPU用のJava(Azul Systemsが提供しているJava)だと、
Cocoainput encountered an error during the common_setup event phase
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
と表示され、タイトル画面に到達できません。
以下クラッシュレポートです。
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
Stacktrace:
at jp.axer.cocoainput.arch.darwin.Handle.<clinit>(Handle.java:9) ~[cocoainput:4.0.3] {re:classloading}
at jp.axer.cocoainput.arch.darwin.DarwinController.<init>(DarwinController.java:15) ~[cocoainput:4.0.3] {re:classloading}
at jp.axer.cocoainput.CocoaInput.<init>(CocoaInput.java:33) ~[cocoainput:4.0.3] {re:classloading}
at jp.axer.cocoainput.loader.ForgeLoader.setup(ForgeLoader.java:23) ~[cocoainput:4.0.3] {re:classloading}
at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-4.0.0.jar:?] {}
at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-4.0.0.jar:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}
at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120) ~[forge:36.2] {re:classloading}
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:121) ~[forge:?] {re:classloading}
at java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source) ~[?:?] {}
at java.util.concurrent.CompletableFuture$AsyncRun.exec(Unknown Source) ~[?:?] {}
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:?] {}
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) ~[?:?] {}
at java.util.concurrent.ForkJoinPool.scan(Unknown Source) ~[?:?] {re:computing_frames}
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[?:?] {re:computing_frames}
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[?:?] {}
Modrinth is a good alternative to CurseForge. It would be great to see this mod in Modrinth too.
I try to load this mod by fabric on M1 Mac but crash, here is the log:
---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.
Time: 2022-11-29 13:30:16
Description: Initializing game
java.lang.UnsatisfiedLinkError: dlopen(/Users/hetao/Library/Caches/JNA/temp/jna829423482123790649.tmp, 0x0009): tried: '/Users/hetao/Library/Caches/JNA/temp/jna829423482123790649.tmp' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/hetao/Library/Caches/JNA/temp/jna829423482123790649.tmp' (no such file), '/Users/hetao/Library/Caches/JNA/temp/jna829423482123790649.tmp' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:277)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:461)
at com.sun.jna.Library$Handler.(Library.java:192)
at com.sun.jna.Native.loadLibrary(Native.java:672)
at com.sun.jna.Native.loadLibrary(Native.java:656)
at jp.axer.cocoainput.arch.darwin.Handle.(Handle.java:9)
at jp.axer.cocoainput.arch.darwin.DarwinController.(DarwinController.java:15)
at jp.axer.cocoainput.CocoaInput.(CocoaInput.java:35)
at jp.axer.cocoainput.loader.FabricLoader.onWindowLaunched(FabricLoader.java:18)
at jp.axer.cocoainput.loader.FabricLoader.onChangeScreen(FabricLoader.java:28)
at net.minecraft.class_310.handler$zze000$setScreen(class_310.java:3448)
at net.minecraft.class_310.method_1507(class_310.java)
at net.minecraft.class_310.(class_310.java:668)
at net.minecraft.client.main.Main.method_44604(Main.java:205)
at net.minecraft.client.main.Main.main(Main.java:51)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
-- Head --
Thread: Render thread
Stacktrace:
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:277)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:461)
at com.sun.jna.Library$Handler.(Library.java:192)
at com.sun.jna.Native.loadLibrary(Native.java:672)
at com.sun.jna.Native.loadLibrary(Native.java:656)
at jp.axer.cocoainput.arch.darwin.Handle.(Handle.java:9)
at jp.axer.cocoainput.arch.darwin.DarwinController.(DarwinController.java:15)
at jp.axer.cocoainput.CocoaInput.(CocoaInput.java:35)
at jp.axer.cocoainput.loader.FabricLoader.onWindowLaunched(FabricLoader.java:18)
at jp.axer.cocoainput.loader.FabricLoader.onChangeScreen(FabricLoader.java:28)
at net.minecraft.class_310.handler$zze000$setScreen(class_310.java:3448)
at net.minecraft.class_310.method_1507(class_310.java)
at net.minecraft.class_310.(class_310.java:668)
-- Initialization --
Details:
Modules:
Stacktrace:
at net.minecraft.client.main.Main.method_44604(Main.java:205)
at net.minecraft.client.main.Main.main(Main.java:51)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
-- System Details --
Details:
Minecraft Version: 1.19.2
Minecraft Version ID: 1.19.2
Operating System: Mac OS X (aarch64) version 13.0.1
Java Version: 17.0.2, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
Memory: 1364998096 bytes (1301 MiB) / 1839202304 bytes (1754 MiB) up to 4294967296 bytes (4096 MiB)
CPUs: 8
Processor Vendor: Apple Inc.
Processor Name: Apple M1
Identifier: Apple Inc. Family 0x1b588bb3 Model 0 Stepping 0
Microarchitecture: unknown
Frequency (GHz): 24.00
Number of physical packages: 1
Number of physical CPUs: 8
Number of logical CPUs: 8
Graphics card #0 name: Apple M1
Graphics card #0 vendor: Apple (0x106b)
Graphics card #0 VRAM (MB): 0.00
Graphics card #0 deviceId: unknown
Graphics card #0 versionInfo: unknown
Memory slot #0 capacity (MB): 0.00
Memory slot #0 clockSpeed (GHz): 0.00
Memory slot #0 type: unknown
Virtual memory max (MB): 23552.00
Virtual memory used (MB): 18234.67
Swap memory total (MB): 7168.00
Swap memory used (MB): 5765.25
JVM Flags: 0 total;
Fabric Mods:
betterpingdisplay: Better Ping Display 1.1.1
cocoainput: CocoaInput 4.0.4
dynamicfps: Dynamic FPS 2.2.0
com_moandjiezana_toml_toml4j: toml4j 0.7.2
fabric-api: Fabric API 0.67.1+1.19.2
fabric-api-base: Fabric API Base 0.4.13+0d0f210290
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.12+93d8cb8290
fabric-biome-api-v1: Fabric Biome API (v1) 9.0.20+0d0f210290
fabric-block-api-v1: Fabric Block API (v1) 1.0.1+12bfe4ea90
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.22+c6af733c90
fabric-client-tags-api-v1: Fabric Client Tags 1.0.3+b35fea8390
fabric-command-api-v1: Fabric Command API (v1) 1.2.13+f71b366f90
fabric-command-api-v2: Fabric Command API (v2) 2.1.9+93d8cb8290
fabric-commands-v0: Fabric Commands (v0) 0.2.30+df3654b390
fabric-containers-v0: Fabric Containers (v0) 0.1.37+df3654b390
fabric-content-registries-v0: Fabric Content Registries (v0) 3.4.3+6064db2a90
fabric-convention-tags-v1: Fabric Convention Tags 1.1.3+93d8cb8290
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.7+aeb40ebe90
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 5.3.1+ad31814d90
fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.33+0d0f210290
fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.2+9244241690
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.30+c6af733c90
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.31+df3654b390
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.23+c6af733c90
fabric-item-api-v1: Fabric Item API (v1) 1.6.1+fa140d5990
fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.35+9244241690
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.23+aaaf9d3390
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.21+df3654b390
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.2+9244241690
fabric-loot-api-v2: Fabric Loot API (v2) 1.1.9+83a8659290
fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.12+9e7660c690
fabric-message-api-v1: Fabric Message API (v1) 5.0.5+93d8cb8290
fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.20+33fbc73890
fabric-models-v0: Fabric Models (v0) 0.3.19+c6af733c90
fabric-networking-api-v1: Fabric Networking API (v1) 1.2.7+9244241690
fabric-networking-v0: Fabric Networking (v0) 0.3.24+df3654b390
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 4.1.2+06e0e25190
fabric-particles-v1: Fabric Particles (v1) 1.0.12+79adfe0a90
fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.9.28+9244241690
fabric-renderer-api-v1: Fabric Renderer API (v1) 1.0.14+12bfe4ea90
fabric-renderer-indigo: Fabric Renderer - Indigo 0.6.16+aeb40ebe90
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.22+df3654b390
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.17+0d0f210290
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.9+c6af733c90
fabric-rendering-v0: Fabric Rendering (v0) 1.1.25+df3654b390
fabric-rendering-v1: Fabric Rendering (v1) 1.11.1+73145abb90
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.1.1+aae9039d90
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.8.1+0d0f210290
fabric-screen-api-v1: Fabric Screen API (v1) 1.0.29+0d0f210290
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.3+1cc24b1b90
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.1+c4f28df590
fabric-textures-v0: Fabric Textures (v0) 1.0.22+aeb40ebe90
fabric-transfer-api-v1: Fabric Transfer API (v1) 2.1.3+9d081d6490
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 1.3.2+42d99c3290
fabricloader: Fabric Loader 0.14.10
itemscroller: Item Scroller 0.17.1
java: Java HotSpot(TM) 64-Bit Server VM 17
malilib: MaLiLib 0.13.0
minecraft: Minecraft 1.19.2
minihud: MiniHUD 0.23.3
optifabric: OptiFabric 1.13.16
mm: Manningham Mills 2.3
phosphor: Phosphor 0.8.1
tweakeroo: Tweakeroo 0.14.3
Launched Version: 1.19.2-fabric0.14.10
Backend library: LWJGL version 3.3.1 SNAPSHOT
Backend API: Apple M1 GL version 4.1 Metal - 83, Apple
Window size:
GL Caps: Using framebuffer using OpenGL 3.2
GL debug messages:
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'fabric'
Type: Client (map_client.txt)
CPU: 8x Apple M1
OptiFine Version: OptiFine_1.19.2_HD_U_H9
OptiFine Build: 20220820-230904
Render Distance Chunks: 8
Mipmaps: 4
Anisotropic Filtering: 1
Antialiasing: 0
Multitexture: false
Shaders: null
OpenGlVersion: 4.1 Metal - 83
OpenGlRenderer: Apple M1
OpenGlVendor: Apple
CpuCount: 8
-- OptiFabric --
Details:
OptiFine jar designed for: 1.19.2
OptiFine jar version: OptiFine_1.19.2_HD_U_H9
OptiFine jar status: Valid OptiFine installer
OptiFine remapped jar: /Users/hetao/.xmcl/instances/1.19.2 Fabric/.optifine/OptiFine_1.19.2_HD_U_H9/Optifine-mapped.jar
OptiFabric error:
Versions such as 1.7.10, 1.8.9, and 1.12.2 are still used often for various reasons.
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.