3 posts
Posted 04 December 2013 - 07:02 AM
Hi,
I'm running a server with, among other mods, CC. Naturally my players have taken advantage of it to do quarrying, upon which I discovered that there's some kind of performance problem with having large chunks of empty space - probably related to mixtures of lava and water.
It's not quite as big a problem as with buildcraft quarries, but I'd still like to avoid it; hunting down this type of lag is horrible. And while you might say I should ask them not to do it, doing so is somewhat akin to herding cats.
So, is there any way to stop mining turtles from being useful for.. well, mining? Without disabling them entirely? That is, can I stop them from grabbing the block they broke, just destroying it instead?
I can't find the source code for the dig function; presumably it's an intrinsic. I can't find the java source code, either…
7508 posts
Location
Australia
Posted 04 December 2013 - 07:54 AM
Not really, some servers (depending on CC version, MC version, whether its Bukkit, etc) can block certain "fake players" from destroying blocks. However this is becoming less the case, especially since the new ComputerCraft no longer has the "fake player" that works in this sense, its just there for death messages. Pretty much your only option is to disable the Mining Turtle all together, which honestly, is the better option over making the blocks it mines be destroyed. There is no point to a turtle that can dig if you get nothing from it.
I can't find the source code for the dig function;
The dig logic is Java-side.
I can't find the java source code, either…
That is because ComputerCraft is closed source.
7083 posts
Location
Tasmania (AU)
Posted 04 December 2013 - 08:06 AM
Haven't specifically tested for this, but if you ask eg a woodchopping turtle to excavate, doesn't it still make it to bedrock whilst destroying all the non-wood blocks it ploughes through?
I'm also kinda curious as to what kind of "performance problems" you're experiencing. Water/lava only tend to cause lag (specifically) when moving around the world (as opposed to "flowing while sitting in the one place"); I can see them effecting frame rates, maybe, but lag…? Shouldn't be a consistant thing.
Edited on 04 December 2013 - 07:16 AM
3 posts
Posted 04 December 2013 - 08:24 AM
I'll have to test the woodchopping turtles.
Anyway, you're right - it doesn't cause lag in a steady state, but it gets quite spectacular if someone (say) drops a bucket of water on top of a lavafall. I have enough players that this happens occasionally.
7508 posts
Location
Australia
Posted 04 December 2013 - 09:27 AM
I can see them effecting frame rates, maybe, but lag…?
People struggle to tell the difference between lag and frame rate drops. It was a constant problem I used to frequent, people used to scream lag, when really it was a frame rate problem, probably due to the fact that they were running 114 mods on 1GB of RAM :P/>
3 posts
Posted 04 December 2013 - 10:34 AM
Tasks: 237 total, 1 running, 236 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.2%sy, 0.2%ni, 99.5%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 24714748k total, 24443452k used, 271296k free, 87732k buffers
Swap: 0k total, 0k used, 0k free, 7220056k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31637 svein 25 5 16.2g 1.4g 19m S 0 145.8 1:50.52 java
910 root 0 -20 0 0 0 S 0 0.0 7:24.37 l2arc_feed
3968 svein 25 5 30488 8540 964 S 0 0.0 2:21.38 screen
4055 svein 25 5 272m 27m 4748 S 0 0.1 73:34.42 rtorrent
Not to worry, I can tell the difference.
7508 posts
Location
Australia
Posted 04 December 2013 - 06:25 PM
4055 svein 25 5 272m 27m 4748 S 0 0.1 73:34.42 rtorrent
…. No illegal activity going on here guys… ok?!… drop it… :P/>
Not to worry, I can tell the difference.
I'm not too sure what that's meant to be proving, but I wasn't saying that you couldn't anyway, normally its non-admin people on the server.
301 posts
Location
Whenever, Wherever!
Posted 04 December 2013 - 06:29 PM
*snip*
…. No illegal activity going on here guys… ok?!… drop it… :P/>
*snip
Torrents aren't always illegal… Look at clearbits or something
7508 posts
Location
Australia
Posted 04 December 2013 - 06:31 PM
Torrents aren't always illegal… Look at clearbits or something
Chances are tho….. but I said drop it :P/>