Jump to content




[1.3] turtle.isInLoadedChunk()


  • You cannot reply to this topic
22 replies to this topic

#1 matejdro

  • Members
  • 324 posts

Posted 02 June 2012 - 11:30 PM

I guess it would save a lot of headaches. Simple check that would prevent turtles from wandering of into unloaded chunks.

#2 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 02 June 2012 - 11:40 PM

This bug is fixed in the next version - if turtles hit an unloaded chunk they just won't move into it. Better than providing that function.

#3 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 03 June 2012 - 12:24 AM

I think it would just be best to just have them load the chunks, or work in unloaded chunks. Buildcraft and IC2 machines keep running when you leave the chunks, it shouldnt be to hard to do it with CC too.

It defeats the purpose of using the turtles to automate certain functions. One of the main benefits of using the turtle is to automate it so you can do something else. Its kind of hard to do that though if when you get to far away they stop working. You pretty much have to baby sit them so they keep working.

I've also had problems with request systems where the main computer that receives the request ends up with the chunk unloading and ends up not receiving the request. It was fairly simple to work around but you really shouldn't have to.

My computer at home stays on with the programs working if I'm a block away, a mile away, a state away, I can even be in another country and it doesn't matter, why do CC computer shut down?

#4 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 03 June 2012 - 12:39 AM

if you load the chunk then you could have a turtle going on forever using up alot of memory

#5 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 03 June 2012 - 12:54 AM

View Postabc, on 03 June 2012 - 12:39 AM, said:

if you load the chunk then you could have a turtle going on forever using up alot of memory

The chunks the turtle leaves would unload, only the chunk the turtle/computer is in would be loaded which is allot less then what one player loads.

#6 kazagistar

  • Members
  • 365 posts

Posted 03 June 2012 - 01:39 AM

Turtles can automatically collect the materials to make more turtles. You could just leave one turtle and a turtle factory running on a server, and the whole server would grind to a standstill in days as the turtles multiplied until the factory was constantly running at max capactity, then run off exploring in various random directions.

#7 D3matt

  • Members
  • 830 posts

Posted 03 June 2012 - 05:17 AM

View Postkazagistar, on 03 June 2012 - 01:39 AM, said:

Turtles can automatically collect the materials to make more turtles. You could just leave one turtle and a turtle factory running on a server, and the whole server would grind to a standstill in days as the turtles multiplied until the factory was constantly running at max capactity, then run off exploring in various random directions.
If crashing a server is your goal, there are a lot easier (and less obvious) ways to do so. I'd be more concerned about the CPU and RAM usage of the turtles themselves than the chunks being loaded by them, anyway. At least make it an OPTION.

#8 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 03 June 2012 - 06:58 AM

I just thought I'd point out that IC2 and BC machines do not keep running when the chunks are unloaded.

I will look into turtles loading chunks as they go, and computers staying active - but it will be a configuration option. Not every server owner will want that behavior.

#9 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 03 June 2012 - 10:44 AM

You sure they dont? I move liquids through unloaded chunks and my bc engine generator seems to produce power even though I'm far enough away that its in an unloaded chunk. I work from pretty far locations sometimes especially when I'm "drilling" for oil.

Maybe it's just part of the "magic" portion of those mods that Dan doesn't want to implement into CC not sure...

#10 matejdro

  • Members
  • 324 posts

Posted 03 June 2012 - 10:44 AM

View PostCloudy, on 02 June 2012 - 11:40 PM, said:

This bug is fixed in the next version - if turtles hit an unloaded chunk they just won't move into it. Better than providing that function.

Good to hear that.

I have lost way too many turtles (and diamonds) when there was a bug in my script and turtle just wandered off into random direction and then disappeared when chunk was unloaded.

#11 Pinkishu

  • Members
  • 484 posts

Posted 03 June 2012 - 12:26 PM

View Postluanub, on 03 June 2012 - 10:44 AM, said:

You sure they dont? I move liquids through unloaded chunks and my bc engine generator seems to produce power even though I'm far enough away that its in an unloaded chunk. I work from pretty far locations sometimes especially when I'm "drilling" for oil.

Maybe it's just part of the "magic" portion of those mods that Dan doesn't want to implement into CC not sure...

Quite sure at that, thats why the BC pipes Addon has a Chunkloading block for example
And servers warn you about that your engine might not get cooling water if the pumps are in an unloaded chunk

#12 Teraminer

  • New Members
  • 175 posts
  • LocationDon't look behind you..

Posted 03 June 2012 - 01:08 PM

Turtle + Teleport Tether = Mobile Chunk Loader

#13 matejdro

  • Members
  • 324 posts

Posted 03 June 2012 - 01:22 PM

View PostTeraminer, on 03 June 2012 - 01:08 PM, said:

Turtle + Teleport Tether = Mobile Chunk Loader

You still have to place teleport tether every 45 or so blocks, which adds quite complexity to your program.

#14 Pinkishu

  • Members
  • 484 posts

Posted 03 June 2012 - 01:34 PM

View Postmatejdro, on 03 June 2012 - 01:22 PM, said:

View PostTeraminer, on 03 June 2012 - 01:08 PM, said:

Turtle + Teleport Tether = Mobile Chunk Loader

You still have to place teleport tether every 45 or so blocks, which adds quite complexity to your program.

if you call that complex xD

#15 matejdro

  • Members
  • 324 posts

Posted 03 June 2012 - 01:50 PM

Not complex in terms of programming but in terms of usage (you have to keep supplying it with teleport tethers). Or maybe complex was not proper word. Maybe "not as convenient" would be better :)/>

But main point of this post is when your script is buggy and turtle decides to go into random direction in straight line. Then it would eventually run out of teleport tethers and wander into unloaded chunk.

#16 D3matt

  • Members
  • 830 posts

Posted 04 June 2012 - 09:02 AM

[derp]

#17 Teraminer

  • New Members
  • 175 posts
  • LocationDon't look behind you..

Posted 04 June 2012 - 05:17 PM

I ment the turtle is a teleport tether ( loads chunks ) would be distractive

#18 matejdro

  • Members
  • 324 posts

Posted 05 June 2012 - 07:58 PM

After some testing, I have found out that even with teleport tethers, turtle will still reboot when I disconnect (so chunk near me will unload). Not sure if this is bug in Bukkit port, but teleport tethers appears to work fine otherwise (I have IC2 factory in nether and it's producing matter even when nobody is in the nether)

#19 Teraminer

  • New Members
  • 175 posts
  • LocationDon't look behind you..

Posted 06 June 2012 - 10:36 AM

Nobody in the Nether and it works (SSP or SMP)?

#20 matejdro

  • Members
  • 324 posts

Posted 06 June 2012 - 03:56 PM

smp - bukkit.

But only IC2 and BC machines works. Turtles don't.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users