simo415 / minecraft-console Goto Github PK
View Code? Open in Web Editor NEWA minecraft mod which adds a new console type GUI to the game
A minecraft mod which adds a new console type GUI to the game
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 4
at java.util.Vector.get(Vector.java:694)
at com.sijobe.console.GuiConsole.mouseClicked(GuiConsole.java:1586)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:165)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:151)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1642)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:891)
at net.minecraft.client.Minecraft.run(Minecraft.java:799)
at java.lang.Thread.run(Thread.java:662)
From Turtizzle
Some 2nd lines are being cut off pretty early.
I suppose that, additionally to the "new" early cap at the end of a word, it also adopts minecraft's default chat window's message-wrapping.In other words: If minecraft's chat decides to cap a word somewhere, the console will also do that, even though there's only >4 characters displayed on the current line so far.
Minecraft's default text-wrapping in this case:
(I wonder why it wraps incoming text like this anyway, since its width is much larger than minecraft's default chat.)
Tried latest build, and I have had the client crashed a couple of times now (I think when I opening the console window):
Mods loaded: 3
ModLoader 1.2.3
mod_Console 1.2
mod_TooManyItems 1.2.2/1.2.3 2012-03-03
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT b8321e8c --------
Generated 3/16/12 8:22 PM
Minecraft: Minecraft 1.2.3
OS: Linux (amd64) version 3.1.0-1-amd64
Java: 1.7.0_04-ea, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTS 450/PCI/SSE2 version 4.2.0 NVIDIA 290.10, NVIDIA Corporation
java.util.ConcurrentModificationException
at java.util.Vector$Itr.checkForComodification(Unknown Source)
at java.util.Vector$Itr.next(Unknown Source)
at com.sijobe.console.GuiConsole.buildLines(GuiConsole.java:321)
at com.sijobe.console.GuiConsole.a(GuiConsole.java:1272)
at lo.b(EntityRenderer.java:1095)
at ZER.b(ZER.java:15)
at net.minecraft.client.Minecraft.x(SourceFile:757)
at net.minecraft.client.Minecraft.run(SourceFile:664)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT b522de7b ----------
I was stupid to use TAB when I didn't have anything to be tabbled; and I then got following error:
Mods loaded: 3
ModLoader 1.2.3
mod_Console 1.2
mod_TooManyItems 1.2.2/1.2.3 2012-03-03
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT b8321e8c --------
Generated 3/16/12 10:41 PM
Minecraft: Minecraft 1.2.3
OS: Linux (amd64) version 3.1.0-1-amd64
Java: 1.7.0_04-ea, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTS 450/PCI/SSE2 version 4.2.0 NVIDIA 290.10, NVIDIA Corporation
java.lang.StringIndexOutOfBoundsException: String index out of range: -8
at java.lang.String.substring(Unknown Source)
at com.sijobe.console.GuiConsole.a(GuiConsole.java:795)
at vl.j(SourceFile:130)
at vl.i(SourceFile:108)
at net.minecraft.client.Minecraft.k(SourceFile:1386)
at hn.k(MinecraftImpl.java:40)
at net.minecraft.client.Minecraft.x(SourceFile:724)
at net.minecraft.client.Minecraft.run(SourceFile:664)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 1897f950 ----------
Like in (Inventory Tweaks)[http://www.minecraftforum.net/topic/323444-11spsmp-inventory-tweaks-138-feb-14/], a button that opens the config file in notepad for easy editing would make it so users don't have to find the config files anymore.
We would have to also include a reload button or periodically check the file for modifications. Inventory tweaks checks for modification periodically but I'm not sure I like the resource strain.
As time passes the cpu load increases at a steady rate until it hits the thread's peak cpu usage. There's also possibly a memory leak.
This was with the mod installed on top of Technic Pack so it might just be some sort of weird incompatibility. Further testing on it's own is required.
Though I didn't expected it to work, but I went ahead and tried to launch minecraft-console 1.2 using modloader 1.2.3, and I got following error:
Mods loaded: 1
ModLoader 1.2.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT bf8dd11a --------
Generated 3/4/12 4:40 PM
Minecraft: Minecraft 1.2.3
OS: Linux (amd64) version 3.1.0-1-amd64
Java: 1.7.0_04-ea, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTS 450/PCI/SSE2 version 4.2.0 NVIDIA 290.10, NVIDIA Corporation
java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at ModLoader.setupProperties(ModLoader.java:1720)
at ModLoader.addMod(ModLoader.java:292)
at ModLoader.readFromClassPath(ModLoader.java:1217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at magic.launcher.Launcher.a(Unknown Source)
at magic.launcher.j.a(Unknown Source)
at magic.launcher.p.println(Unknown Source)
at ModLoader.init(ModLoader.java:882)
at ModLoader.addAllRenderers(ModLoader.java:186)
at aho.<init>(aho.java:79)
at aho.<clinit>(aho.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:267)
at net.minecraft.client.Minecraft.run(SourceFile:650)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 46828ef1 ----------
I've no idea how to update and rebuild these sources sadly, thus I hope an new version is going to be released soon :)
Once the input text gets longer than the input box and it starts to scroll the highlight background is no longer the correct width and a single click put the cursor at the wrong position.
We should provide some sort of GUI for configuration.
As well as the current options we should add the ability to customize, or at least disable, keyboard shortcuts (closing the console, all of the copy/paste commands, tab completion etc.). Some users have complained about them already.
If I say want to kick someone, I would type /kick foo<tab>
; While this work if there is only one person whom has "foo" as prefix. But if more than one person has this prefix, and I want to press tab a second time, the cursor has jumped to the first position on the row, and the next nick is placed over the /kick
, i.e. if the first nick is FooBar and second is FooBaz, it ends up as FooBazobar
instead of /kick FooBaz
.
Occurs when pasting a string over a highlighted section pushes the cursor out the input string's bounds
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at com.sijobe.console.GuiConsole.keyTyped(GuiConsole.java:480)
at net.minecraft.src.GuiScreen.handleKeyboardInput(GuiScreen.java:137)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:109)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1328)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:694)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Thread.java:662)
On the server I hang out, we use a chat plugin that will color the nick names in the user list depending on the rank. Sadly this will interfere with the tab completion feature; I can't tabcomplete names, and if I just tab without any initial characters, it will complete the full colored name.
If the console window is closed too quickly, for instance if CLOSE_ON_SUBMIT is true, after entering a message or a command (Even with SPC locally) the output from that command doesn't appear.
From Turtizzle
I now had the situation that a line completely disappeared in console:
(The 2nd part of Wanda's sentence.)
I have no idea what caused this (I had MineCraft minimized), and this was the first and only time it happened so far.
The history field needs highlighting and copy+paste just as much as the input field does.
From Turtizzle
if your text is too long for the input-cell, some pixels don't fit into it and will be displayed outside.
(It also happens with minecraft's default font.)
After some testing, I've concluded that when I have zombe mod pack (6.0y) activated, I cannot any more access the minecraft console at all. I've tried to load it before or after eachother without any success. I've not though modified zombe anything by removing any of the classes.
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.