This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Somin's profile picture

Turtle can't Kill Cow.. Bounding box issue?

Started by Somin, 16 June 2013 - 05:37 AM
Somin #1
Posted 16 June 2013 - 07:37 AM
I have a turtle that is at height 66… A cow is sitting on height 65.. so the turtle is right at the cow's head level, not at the cows feet level…

Screenshot is here: http://www.supercars.net/minebug/cow.png


The turtle tries to move forward but it can't, the cow's head stops it… So I try to attack() in a loop but the turtle cannot attack the cow, so it just sits there. it can't move forward because it detects the cow, but it doesn't detect it well enough to attack.

Is this because the turtle is occupying the block but is outside of the attack range?


So I modified the code to try moving down one block and attacking the cows legs.. That worked better.. But, sometimes, the turtle is still unable to attack the cows legs… the turtle tries to attack at height 65 (leg level) doesnt make contact after a few tries, then moves up, and tries to move forward, but the cow is still blocking it..


So how can I get past these damned cows?


http://www.supercars.net/minebug/cow.png
Goof #2
Posted 16 June 2013 - 07:39 AM
post your code, please.
Engineer #3
Posted 16 June 2013 - 07:40 AM
This is a bug, because Im assuming you are playing on minecraft 1.4.7
If you really want to get past these cows, move one up :P/>

post your code, please.
There is no way that thats going to help…
Somin #4
Posted 16 June 2013 - 07:41 AM
Ah. Yes, I am on Minecraft 1.4.7 .. And yes, moving up is a brilliant idea~~ Up and over the cow..

Can you point me to anywhere where this bug has been acknowledged and discussed?

Has it been addressed in some version of MC or CC since?
Engineer #5
Posted 16 June 2013 - 07:43 AM
http://www.computerc.../wiki/Changelog

This is the only thing I can really show you; take a look at version 1.51 (ps: on the right is the minecraft version)
Somin #6
Posted 16 June 2013 - 07:51 AM
Aha~ 1.51

Interesting. So, now this is a noob question but if I am on Minecraft 1.4.7 (doing MindCrack ftb pack) am I able to upgrade computercraft? I know how to update the zip files etc.. But are 1.51 and newer versions compatible with Minecraft 1.4.7?

Thanks a lot~
Engineer #7
Posted 16 June 2013 - 08:18 AM
I would think it isnt, but you could always try. Actually, Im pretty sure it isnt possible, because in 1.5+ mojang updated the texture binding, at least I think it was something critical
Bubba #8
Posted 16 June 2013 - 06:49 PM
I would think it isnt, but you could always try. Actually, Im pretty sure it isnt possible, because in 1.5+ mojang updated the texture binding, at least I think it was something critical

Yeah it usually isn't possible to change from version to version. What happens is Mojang obfuscates their Java code (they change the names of their classes, methods, and variables to nonsense essentially), and then MCP reverts it back to the best estimate allowing modders to do things. Then MCP reobfuscates the mod classes to match Minecraft's code and bam, you have your working mod.

At least, that is how I believe it works.
Engineer #9
Posted 16 June 2013 - 08:15 PM
Really, it is silly how mojang does that. I mean really, I get why you dont want to give away your source code, but changing class names and variables etc. Is just to annoy us. Im glad MCP exists, but it is never 100% reliable.

If they only would keep their names, and use actual names (not things like func_0983€82293€2 ) it would make things a lot better.

I cant really see from their perspective why they dont release the source code directly. They can give back on the modding community by doing that. They will keep the API anyway,.

Im starting to ramble :P/>