Code Monkey home page Code Monkey logo

minecraft-console's Issues

Clicking in the history box can cause a crash

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)

When minecraft wraps text, it messes up text wrapping in the console

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.

Screenshots:

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.)

Client crash

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 ----------


StringIndexOutOfBoundsException when tabbing nothing

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 ----------

Add a buttons to open the settings files

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.

Degrading preformance

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.

1.2.3 compability

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 :)

Better configuration options

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.

Tabcompletion for a name after a command makes cursor jump to wrong position

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.

Pasting over a highlighted section of the input crashes the game sometimes

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)

Tab completion and colored nicks

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.

Sometimes server output isn't shown

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.

Line wrapping can cause a line to dissappear

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.

Cannot get console to work when zombe mod pack is installed

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.

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.