Code Monkey home page Code Monkey logo

Comments (5)

Greymerk avatar Greymerk commented on July 28, 2024

What were you doing? Based on the place where the index error happened it looks like the "roguelike" command was being called with no arguments.

from minecraft-roguelike.

keenerb avatar keenerb commented on July 28, 2024

That is correct. I simply typed /roguelike and it generated that error. I was attempting to view usage for the command.

from minecraft-roguelike.

Greymerk avatar Greymerk commented on July 28, 2024

Thanks for letting me know. I didn't spend a lot of time rigorously testing the command, and it's not as well made as it could be.

The command help page is here:
https://github.com/Greymerk/minecraft-roguelike/wiki/Commands

from minecraft-roguelike.

Claycorp avatar Claycorp commented on July 28, 2024

To build on this if you do "/roguelike dungeon" It throws

[03:03:01] [Server thread/ERROR]: Couldn't process command: 'roguelike dungeon'
java.lang.ArrayIndexOutOfBoundsException: 1
    at greymerk.roguelike.util.CommandSpawnDungeon.func_71515_b(CommandSpawnDungeon.java:57) ~[CommandSpawnDungeon.class:?]
    at net.minecraft.command.CommandHandler.func_71556_a(CommandHandler.java:94) [z.class:?]
    at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:739) [nh.class:?]
    at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:718) [nh.class:?]
    at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:37) [ir.class:?]
    at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:9) [ir.class:?]
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [ej.class:?]
    at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165) [nc.class:?]
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) [MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:111) [bsx.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [?:?]

Some options you could do with these is doing /roguelike will list off the options. Doing /roguelike dungeon will use the player's x/z to create a dungeon.

from minecraft-roguelike.

Greymerk avatar Greymerk commented on July 28, 2024

I've implemented most of these ideas, including the ability to type "roguelike dungoen here" to spawn a dungeon on top of the player's position. I didn't want to make it "roguelike dungeon" because I figured that was expected to show the usage.

Should be no more out of bounds exceptions, regardless of what's typed.

These changes will be included in 1.8+ versions going forward. I'm probably not going to release any more 1.7 versions.

from minecraft-roguelike.

Related Issues (20)

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.