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

[1.4.3][SSP][Solved] Turtles ignores turtlesNeedFuel/turtleNeedsFuel

Started by JonCB, 15 October 2012 - 01:04 PM
JonCB #1
Posted 15 October 2012 - 03:04 PM
ComputerCraft Version Information: 1.4.3
Description of Bug:

I've been trying to play around with Turtles in MC1.3.2 and i prefer to turn fuel off. However i've tried turning it off in 1.4.3 and it doesn't seem to do anything. In trying to get it to work i've tried using both the documented config value (turtleNeedsFuel) and what seems to be the value it wants to set (turtlesNeedFuel) and i've tried using both the documented value (0) and the opposite of what it defaults to (false).

My tests have been both trying to back up the turtle (turtle.back() returns false with nothing behind it) and checking getFuelLevel (should return "unlimited" but returns 0).

Steps to Reproduce Bug:
  1. Set appropriate config var in %APPDATA%\.minecraft\config\CCTurtle.cfg
  2. Start minecraft, create/load creative world
  3. place turtle (i have tried a base turtle, mining turtle and wireless mining turtle) ensure it has space to move behind.
  4. right click turtle to open console, enter lua
  5. call turtle.back(). note that return value is false, this should say true (assuming the space behind is free, if you ensure space behind is free you can replace with turtle.forward() to same effect).
  6. call turtle.getFuelLevel(). note that return value is 0 this should be "unlimited"
Other numbers that might be useful…

Minecraft v1.3.2
FML v3.1.35.394
Minecraft Forge 4.2.5.303

Note that i do know that computercraft is running and at least reading the computercraft config file… i created a quick rednet distancing script that initially cut out at 64 and then 128 when i increased the regular range to 128. Pretty good chance that i'm not setting the right config field, I'm relatively sure that the config value that worked in 1.4.1 didn't work.

Regards,
Jon
dan200 #2
Posted 15 October 2012 - 11:26 PM
The value is in config/CCTurtle.cfg, near the bottom, and looks like this:


general {
   # Enable hardcore mode (turtles require fuel to move)
   turtlesNeedFuel=true
}

You need to change it to:


general {
   # Enable hardcore mode (turtles require fuel to move)
   turtlesNeedFuel=false
}

I've tested this, and it's all working as expected.
JonCB #3
Posted 16 October 2012 - 09:45 AM
I've tested this, and it's all working as expected.

I'm sure i did that and yet now it works and it didn't then. Maybe it had a space or something else that thawted me.

At any rate, i concur that this has worked.
Thanks for your help. :D/>/>