Coder Social home page Coder Social logo

Comments (13)

Storyyeller avatar Storyyeller commented on June 14, 2024

The problem is the line
iload 5

You're loading a value from local 5 without storing anything in it first.

from krakatau.

 avatar commented on June 14, 2024

Is that how you load up arguments being passed in though?

from krakatau.

Storyyeller avatar Storyyeller commented on June 14, 2024

Well setOwner is a virtual method, so it has 6 arguments, passed in through slots 0-5. So there actually is a value in slot 5, but it's the wrong type. The last argument is a string, but you're trying to load an int out of it.

from krakatau.

 avatar commented on June 14, 2024

Yea I figured it out and fixed it but now I have a new error! This is done w/o any major modifications, I just disassembled and removed the LocalVariableTable & LineNumberTable.

java.lang.VerifyError: (class: dan200/turtle/shared/TileEntityTurtle, method: createTurtlePlayer signature: (Lyc;IIII)Ldan200/turtle/shared/TurtlePlayer;) Inconsistent stack height 1 != 0

https://dl.dropbox.com/u/7231478/TileEntityTurtle.class

from krakatau.

 avatar commented on June 14, 2024

https://dl.dropbox.com/u/7231478/computercraft.zip These ones?

Arg, keep clicking the close button

from krakatau.

Storyyeller avatar Storyyeller commented on June 14, 2024

Where is the 'any' class that TitleEntityTurtle is inheriting from? It's not in the zip you gave me.

from krakatau.

 avatar commented on June 14, 2024

https://dl.dropbox.com/u/7231478/mcpc-plus.jar Somewhere in there

from krakatau.

Storyyeller avatar Storyyeller commented on June 14, 2024

Are you sure that zip contains the original TitleEntityTurtle? It looks like the tableswitch entries are messed up, so it should have never been runnable in the first place.

from krakatau.

 avatar commented on June 14, 2024

https://dl.dropbox.com/u/7231478/computercraft.zip I reuploaded it, might of done the wrong one by accident

from krakatau.

 avatar commented on June 14, 2024

I will retry it later, very weird bug.

from krakatau.

Storyyeller avatar Storyyeller commented on June 14, 2024

Ok, I found the problem. Due to a stupid mistake, the parser discards all the jump offsets when reassembling a tableswitch. And due to the way the code is written, it still runs without error, it just produces incorrect bytecode, so I didn't notice the problem during test

from krakatau.

 avatar commented on June 14, 2024

Lol, alright

from krakatau.

Storyyeller avatar Storyyeller commented on June 14, 2024

Ok, try it now. It should be fixed.

from krakatau.

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.