merlinlikethewizard / Mastermine

A fully automated strip mining network for ComputerCraft turtles!
MIT License
83 stars 20 forks source link

Turtles get stuck in Halt mode #3

Open gamecocks08 opened 3 years ago

gamecocks08 commented 3 years ago

So, someone before me had a similar problem but mine is that the turtles are stuck in halt mode and even when I tell them to do anything, they always return to halt. When they start, they move one block and then move back. When I turn on the power, nothing happens. The hub is constantly sending go_to_home directives. They also wont go home. any ideas?

merlinlikethewizard commented 3 years ago

Sounds to me like they don't know their way home. So either they're too far away from the mine entrance (further than 8 blocks), or they're somehow below the mine entrance (entrance y value should be the same as the turtle on the ground). If neither of those things are true then lemme know and I'll think some more.

gamecocks08 commented 3 years ago

yeah, the y value is the same as the turtle and they aren't far at all from the mine entrance, if you need screenshots let me know.

merlinlikethewizard commented 3 years ago

Dang, okay. Yeah, screenshots would be great (also cuz I'll get to see someone else having set it up). If you could send some of the layout, of the map screen, of the hub "whosmine" tab, and of the turtle "mastermine" tab, hopefully I'll be able to see something. I don't know if you're on a server or not but I'd also be happy to come on and take a gander. I'm really curious whats up, it sounds like it should be working...

gamecocks08 commented 3 years ago

Yeah, I'm hosting a LAN world for some of my friends with logmein hamachi and using curseforge for the mods (and added the peripheralsplusone mod manually). If you have discord then I can send you the mods. I also am not home atm so I will get you the screenshots soon.

gamecocks08 commented 3 years ago

Here are the Screenshots.

merlinlikethewizard commented 3 years ago

Thanks! Sad to say though I'm stumped. Next thing to do would be to properly debug with print statements etc.

If you want a minecraft home visit my discord is MerlinLikeTheWizard#9300, I'd love to take a look :)

TheUnknown4004 commented 3 years ago

i have the same problem but mine doesnt say go_to_home directives the y value is correct its 6 blocks away from the mine entrance it calibrated to 84,65,-255 but its supposed to be 83,65,-259 how can i fix this?

merlinlikethewizard commented 3 years ago

@TheUnknown4004 Well if it's calibrated wrong then probably the issue is with the gps setup. If even one coordinate is wrong on the gps host then all the gps requests will be off. You can check quickly on any wireless computer by using "gps locate". Lemme know if that's the issue or not. Come to think of it, @gamecocks08 you should probably check the same thing.

TheUnknown4004 commented 3 years ago

i have check every coordinate there all correct i even did the gps host again i have dubble check the coordinates and it still calibrated to 84,65,-255

gamecocks08 commented 3 years ago

@TheUnknown4004 just going to throw this out there, try moving the computer to a different position and try again, see if it's still off.

XxInvictus commented 3 years ago

Did you make sure to edit the floppy disk max allowed size? That will cause the turtles to get just enough to go to home but not start mining.

Easy way to check and how I discovered it was by running "update" from the Terminal computer

PanGeo-Code commented 3 years ago

i found that if the turtles are stuck in halt a update command on the turtle fixes it at least update on the turtle worked for me

Edit: it worked on a few, also moving it forward with the controls and then reset worken for some of em too

http403 commented 2 years ago

I'm on 1.16 and have similar problem. The turtle will just stuck next to the disk drive after the calibration, except driving it manually. I can confirm the GPS works perfectly with the pocket computer but the calibration always report one block ahead. I tried two different orientations and none work (north and east facing, one with hub facing north result in the turtle calibrate in the opposite direction). I tried manually move them away the disk drive and commend it go home but it just stuck in the same spot.

PanGeo-Code commented 2 years ago

I'm on 1.16 and have similar problem. The turtle will just stuck next to the disk drive after the calibration, except driving it manually. I can confirm the GPS works perfectly with the pocket computer but the calibration always report one block ahead. I tried two different orientations and none work (north and east facing, one with hub facing north result in the turtle calibrate in the opposite direction). I tried manually move them away the disk drive and commend it go home but it just stuck in the same spot. Untitled

see picture: arrows indicate wich way the turtle is facing Grey is the monitor Red is the advanced computer or the controll unit yellow is how you place the turtle to set it up

and green is how you could tory to fix your halt problem

i had this too my monitor and computer where 1 block outside of the default 8x8 area that the turtles see as a appowed area so it would not move

http403 commented 2 years ago

@PanGeo-Code Thanks for the quick reply. Your graph is really useful to dial in the setup. Now the turtle indeed moved around rather got stuck, but new problem appears. Now, turtles dive a very far away from the designated mining area (30 block+) and looping around the "prepare" directive (chunky) or "pass" (miner) (similar to #20) . I was in a flat snow biome, don't know if that affect the operations.

PanGeo-Code commented 2 years ago

@PanGeo-Code Thanks for the quick reply. Your graph is really useful to dial in the setup. Now the turtle indeed moved around rather got stuck, but new problem appears. Now, turtles dive a very far away from the designated mining area (30 block+) and looping around the "prepare" directive (chunky) or "pass" (miner). I was in a flat snow biome, don't know if that affect the operations.

Then i do not Know, Maybe @merlinlikethewizard Know what your problem here is.

http403 commented 2 years ago

I found the problem. It is due to the GPS setup. It wants one block above than what reported by the F3 debug window.