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

[MC 1.7] [CC 1.74] Chunky Peripherals: Turtle chunkloaders! Mining chunkloaders! (CRMod)

Started by _CR_, 16 April 2014 - 09:54 PM
_CR_ #1
Posted 16 April 2014 - 11:54 PM



Chunky Peripherals(previously known as CRMod) is a computercraft addon that focuses on chunkloaders!



CHUNKY MODULE:

This is the basic chunkloader module, it's crafted this way:



Every turtle that has this upgrade equipped will keep it's chunk loaded.
(technically it keeps loaded the turtle's chunk, the one behind it, and the one in front of it)

MINY CHUNKY MODULE:



This turtle upgrade keeps the chunks loaded like the chunky module and also mines
like a diamond pickaxe.
To mine you have to use the peripheral's methods dig, digUp and digDown.
To call them you have to wrap the peripheral:


p=peripheral.wrap("left")
or

p=peripheral.wrap("right")

and then you can call the method on the p object:


p.dig()
p.digUp()
p.digDown()


CHUNKY PERIPHERAL



This is a computer peripheral that acts as a chunk loader. By default (even if not attached to a computer) it will keep loaded the chunk it's in. By connecting it to a computer you can change the shape of the loaded area. The possible shapes are: a circle centered on the peripheral, a square centered on the peripheral a rectangle centered on the peripheral and a generic rectangle around the peripheral. The shapes sizes are expressed in blocks not chunks, so if you set for example a circle of radius 19 all the blocks that are less than 20 blocks away from the peripheral will be kept loaded.
Here's peripheral's methods documentation:
Spoiler
  • getShape()
  • returns a string descripting the current shape.
  • setShapeCircle(int radius)
  • sets the shape to a circle of the defined radius centered on the peripheral Arguments: radius: radius of the circle, has to be positive. Non-integer values will be rounded up to the next integer
  • setShapeSquare(int sideLength)
  • sets the shape to a square of the defined size centered on the peripheral. Arguments: sideLength: length of the side of the square. has to be positive. Non-integer values will be rounded up to the next integer. If odd will be rounded up to the next even number.
  • setShapeRectangle(int sideLength)
  • equivalent to setShapeSquare(int sideLength)
  • setShapeRectangle(int sideXLength, int sideZLength)
  • sets the shape to a rectangle of the defined size centered on the peripheral. All arguments have to be positive. Non-integer values will be rounded up to the next integer. If odd will be rounded up to the next even number Arguments: sideXLength: length of the side aligned to the X axis (west-east) sideYLength: length of the side aligned to the Z axis (north-south)
  • setShapeRectangle(int north, int east, int south, int west)
  • sets the shape to a rectangle of the defined size. The parameters define the distances of the sides from the peripheral. All arguments have to be positive. Non-integer values will be rounded up to the next integer. - north: direction of the decreasing z - east: direction of the increasing x - south: direction of the increasing z - west: direction of the decreasing x Also, the south direction is indicated by the face with the red thing Arguments: north: distance of the north side. east: distance of the east side. south: distance of the south side. west: distance of the west side.
  • getChunksNumber()
  • returns the number of chunks the peripheral is keeping loaded.
  • getChunksList()
  • returns a list of the chunks the peripheral is keeping loaded.
  • disable()
  • disables the peripheral, it wont keep loaded any chunk. To re-enable it you have to set a new shape.
  • help(command_name, arg1type, arg2type, …)
  • returns the documentation of the methods. Arguments: command_name: string representing the name of the command. argNtype: string representing the type of the argument N.
Remember you can use the peripheral's help command to get the documentation of a method in-game.


WIRELESS CHUNKY MODEM


This upgrade is a wireless modem that keeps the chunks loaded like the chunky module.
peripheral.getType(…) will return "modem" like the wireless modem, you can distinguish it from the wireless modem by the presence the method isChunky() (that will return true)



CHUNKY DETECTOR



The chunky detector is a handheld tool to chek if a specific block is kept loaded by Chunky Peripherals. By right-clicking on a block you will see on the chat if it's loaded or not.





SERVER COMMANDS
The command /CRModListLoadedChunks will print on the console the list of the chunks loaded by this mod. Each ticket corresponds to a turtle, it'll print between square brackets the chunk's coordinates and then the corresponding normal world coordinates at which the chunk starts.

The command /CRModToggleInfoLogging enables or disables the logging of debugging information messages on the console

CONFIG
In the config file you can change the item ids, the upgrade ids, enabling an alternative recipe for the chunky module that uses a diamond instead of the ender pearl, and activate the debug logging.
The most important config is maxChunkLoadingRadiusInBlocks: it indicates the max size of the shapes of the chunky peripheral. Circles will have at most that radius, Squares will have at most a side double the radius. Rectangles will have at most the area of the max square ((north+south)*(east+west)<(maxChunkLoadingRadiusInBlocks*2)^2)



LICENSE &amp; MODPACKS
Chunky Peripherals is released under the MIT license, you can use it freely and put it in all the modpacks you want. Only thing: if it's a public mod pack please tell me, there's no particular reason for this but I'd like to know it :)/>


SOURCES
The sources can be found on gitHub:
https://github.com/9...unkyPeripherals



DOWNLOADS
The latest version can be downloaded at:
https://github.com/9...releases/latest

All versions since 1.1.0.9 are hosted on gitHub at:
https://github.com/9...herals/releases

The last release for minecraft 1.6.4, CRMod v1.1.0.6 is at:
https://github.com/9...es/tag/v1.1.0.6
Edited on 28 April 2017 - 08:49 PM
apemanzilla #2
Posted 17 April 2014 - 01:35 PM
Ooh, nice! Would it be possible for you to make a second peripheral that takes a chunky loader and wireless modem to make a chunk loading turtle modem? That way I don't have to sacrafice a peripheral slot for my wireless mining turtles :P/>
_CR_ #3
Posted 17 April 2014 - 07:57 PM
I already thought of doing that but honestly I don't know how to do it. In the computercraft's api i don't see anything about wireless so it isn't be simple to interact with it. A solution is that with computercraft 1.63 you should be able to switch the attached peripheral using the turtle.equipLeft() and turtle.equipRight() methods.
apemanzilla #4
Posted 17 April 2014 - 08:35 PM
I already thought of doing that but honestly I don't know how to do it. In the computercraft's api i don't see anything about wireless so it isn't be simple to interact with it. A solution is that with computercraft 1.63 you should be able to switch the attached peripheral using the turtle.equipLeft() and turtle.equipRight() methods.
True, but it seems a bit clunky and wasteful…

I'll figure something out :P/>
Sebra #5
Posted 18 April 2014 - 04:49 PM
It seems unequip chunky module would be risky.
And modem's function quite restricted if unequipped.
_CR_ #6
Posted 18 April 2014 - 05:38 PM
that's true. I'll think about it but without a something in the apis to interface to computercraft network I'm not sure it's possible to recreate a wireless modem. I'll try to understand how it works
ninnghazad #7
Posted 26 May 2014 - 11:45 AM
thanks for you work CR.
writing rather extensive turtle-progs i have been looking for a good chunkloading-solution for quite a while.
while i am happy that someone has taken another approach at this, i have to agree with Sebra, in that
a chunk-loading-peripheral is kinda dangerous, and with apemanzilla in that having to drop another peripheral for
a chunkloading one is unpractical too.
so i wanted to ask you if you might consider changing your chunky-peripheral into a chunky-upgrade, or replacement-turtle,
so that there would be advanced-chunky-turtles which would be able to function exactly like the advanced turtles but
with chunkloading built in. can't say if development would be easier then chunky-wireless-modem, i would however
appreciate if you thought about it.
good chunk loading is one of the last few puzzle-pieces towards finishing my turtle-swarm-progs, which feature client/server-model
with distributed/shared-pathfinding, memory-mapping, turtle-awareness, reentrant system for crash safety, efficient quarrying functions…
sadly, without chunk-loading, turtles which can go anywhere by themselfes are quite restricted by players placing a ton of static loaders,
which at 20 turtles and up becomes rather unmanagable. especially as players tend to forget the loaders on the finished digging sites.
_CR_ #8
Posted 01 June 2014 - 07:38 PM
the problem is that, from what I understand, the only way to extend the turtles the api provides is creating turtle upgrades (so I can't create a new type of turtle with two free slots) and I can't extend the existing modem upgrade because it isn't included in the api. So I would have to make my module capable of using the wireless, but also this isn't in the api. Not following the apis would be a big mess.
I was thinking making a method that sets the radius of the loaded area, so you could use a single turtle to load the mining area for all the turtles
Anyway if I do this I'll probabily do it at the end of june because now I have to study for some exams…
sci4me #9
Posted 14 June 2014 - 10:01 AM
This mod has a HUGE bug which is causing me EXTREME lag. My console is getting uberspammed with
"[SEVERE] [ForgeModLoader] The mod CRMod attempted to force load a chunk with an invalid ticket. This is not permitted."
Your tickets aren't valid…
_CR_ #10
Posted 14 June 2014 - 11:03 AM
That's strange, it never happened to me and I tested it a lot… Which version are you using? It happened after some time you installed the mod or from the first time? It's only a turtle that do this or it's all of them?
ninnghazad #11
Posted 16 June 2014 - 10:35 AM
heho again,
i gave it some more thought and looked into some CC-mods' sources. how about making chunk-loading pickaxes (aso) instead of re-implementing modems or turtles. it seemed to me that the standard tools that turtles can use would be the simplest form of peripheral, their workings are known. may sound a bit silly to have a chunkyloading-pickaxe, and i got no clue if behaviour of a pickaxe for players and turtles could conflict. but it would take away that 'closed-source'-problem with modem/turtle-chunkloaders.
for recipes your chunky-modules and a diamond tool would give diamond-chunky-tool, maybe with a nice texture like the module's one as a bonus.
_CR_ #12
Posted 17 June 2014 - 06:17 PM
nice, nice, I didn't think of that! simple and useful! I'll work on that!
gronkdamage #13
Posted 19 June 2014 - 02:48 PM
Have you done any work with 1.64 (MC 1.7.2) as of yet? I was just looking around for something like this and was very pleased to see it. :)/>
_CR_ #14
Posted 19 June 2014 - 03:39 PM
No, nothing yet. Now I'm working on the mining chunkloader (miny chunky module), and solving some bugs. Then I'll probably start working on the upgrade to mc1.7.2 and cc1.64. I expect to finish the new version in a few days! :)/>
Edited on 19 June 2014 - 01:58 PM
gronkdamage #15
Posted 19 June 2014 - 04:01 PM
Sweet! I'll keep my eyes open :)/>
Sebra #16
Posted 27 June 2014 - 10:37 AM
I was thinking making a method that sets the radius of the loaded area, so you could use a single turtle to load the mining area for all the turtles
Set chunkloading range in meters with corresponding fuel demand.
…Then I'll probably start working on the upgrade to mc1.7.2 and cc1.64. I expect to finish the new version in a few days! :)/>
I'm waiting for 1.72 version. Good luck.
ninnghazad #17
Posted 27 June 2014 - 01:33 PM
Hey _CR_,
you just made my day. Well, in fact, you probably just made my whole weekend. After some updating, the mod works smoothly on my server, which is a 1.6.4 cauldron-server with about 120 mods.
I had to update Cauldron, Mobius and Waila to latest version to have the chunky module not detach upon player leaving the circumference.
(I don't think that was a problem with your mod - other stuff was behaving weird too).

Upon first tests everything works as expected, the wrapped peri digs nicely, and the test-turtle has moved through unloaded terrain a ton of times without incidents.
I will spend some time this weekend making the LUA of my turtle-system a bit more presentable, and see if it works well enough to publish.

Thank you!


PS0: Found a problem, when disconnecting the owning player, the miny-module will still detach (and stop working):
Spoiler

15:32:47 [INFO] PLAYER left the game.
15:32:47 [INFO] detaching turtle peripheral at 655, 31, -3948

On rejoin:
Spoiler

15:40:20 [INFO] Sending serverside check to: PLAYER

15:40:20 [INFO] attaching turtle peripheral at 655, 31, -3948
15:40:20 [INFO] creating new ticket at 655, 31, -3948
15:40:20 [INFO] loading chunks for turtle at 655,31,-3948

Other chunkloaders will continue to work at that point. MinyMod will not detach if player just moves away but is still online.
ChickenChunks allowOffline is set:
Spoiler


allowoffline
{
		DEFAULT=true
		OP=true
}
However it seems the MinyModule does not really use ChickenChunks tickets (however those work), as /chunkloaders shows the chunks with miny-turtle in it as loaded, but not as forced/ticketed - as it is with all other chunkloaders i have available.
Edited on 04 July 2014 - 08:15 AM
_CR_ #18
Posted 27 June 2014 - 06:06 PM
Thanks to you! :)/>

About the bug:
That doesn't happen on my test server (its a simple server with only computercraft and my mod so it could be quite different from a 120 mods server…). I don't use chickenChunks I directly use the forgeChunkManager from the forge api (that uses forgeChunkLoading.cfg in the config folder). It's strange the peripheral gets detached because the ticket shouldn't be bound to the player. The turtle was in the area loaded by the player when you rejoined? it re-attaches also if you are far from it?
ninnghazad #19
Posted 29 June 2014 - 08:09 PM
Heho _CR_,
after trying some more i can say the problem is pretty random so it's hard to figure out whats actually going on.
it happens upon disconnecting and porting away, most of the time, sometimes not. I can't say if it is dependend
on distance, it seems to make no difference how far i am when dis/reconnecting, or if another player is around.
however, after enabling some more logging-functionality i receive a *lot* of these:
Spoiler

java.lang.Throwable
2014-06-29 20:31:29 [SEVERE]	at net.minecraftforge.cauldron.CauldronHooks.logStack(CauldronHooks.java:89)
2014-06-29 20:31:29 [SEVERE]	at net.minecraftforge.cauldron.CauldronHooks.logChunkLoad(CauldronHooks.java:134)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.gen.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:177)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:162)
2014-06-29 20:31:29 [SEVERE]	at org.bukkit.craftbukkit.v1_6_R3.CraftWorld.getChunkAt(CraftWorld.java:114)
2014-06-29 20:31:29 [SEVERE]	at org.bukkit.craftbukkit.v1_6_R3.CraftWorld.getBlockAt(CraftWorld.java:78)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72821_m(World.java:1193)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72898_h(World.java:1130)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72851_f(World.java:1084)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.markAndNotifyBlock(World.java:911)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72832_d(World.java:889)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleBrain.teleportTo(TurtleBrain.java:320)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleMoveCommand.execute(TurtleMoveCommand.java:71)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleBrain.updateCommands(TurtleBrain.java:776)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleBrain.update(TurtleBrain.java:92)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.blocks.TileTurtle.func_70316_g(TileTurtle.java:255)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72939_s(World.java:2790)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:879)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:330)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:773)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:655)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
2014-06-29 20:31:29 [SEVERE] java.lang.Throwable
2014-06-29 20:31:29 [SEVERE]	at net.minecraftforge.cauldron.CauldronHooks.logStack(CauldronHooks.java:89)
2014-06-29 20:31:29 [SEVERE]	at net.minecraftforge.cauldron.CauldronHooks.logChunkLoad(CauldronHooks.java:134)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.gen.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:177)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:162)
2014-06-29 20:31:29 [SEVERE]	at org.bukkit.craftbukkit.v1_6_R3.CraftWorld.getChunkAt(CraftWorld.java:114)
2014-06-29 20:31:29 [SEVERE]	at org.bukkit.craftbukkit.v1_6_R3.CraftWorld.getBlockAt(CraftWorld.java:78)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72821_m(World.java:1193)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.util.RedstoneUtil.propogateRedstoneOutput(RedstoneUtil.java:85)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.blocks.TileTurtle.destroy(TileTurtle.java:142)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.common.BlockGeneric.func_71852_a(BlockGeneric.java:122)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.chunk.Chunk.func_76592_a(Chunk.java:733)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72832_d(World.java:874)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_94571_i(World.java:1031)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleBrain.teleportTo(TurtleBrain.java:334)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleMoveCommand.execute(TurtleMoveCommand.java:71)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleBrain.updateCommands(TurtleBrain.java:776)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleBrain.update(TurtleBrain.java:92)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.blocks.TileTurtle.func_70316_g(TileTurtle.java:255)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72939_s(World.java:2790)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:879)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:330)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:773)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:655)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
2014-06-29 20:31:29 [SEVERE] java.lang.Throwable
2014-06-29 20:31:29 [SEVERE]	at net.minecraftforge.cauldron.CauldronHooks.logStack(CauldronHooks.java:89)
2014-06-29 20:31:29 [SEVERE]	at net.minecraftforge.cauldron.CauldronHooks.logChunkLoad(CauldronHooks.java:134)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.gen.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:177)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:162)
2014-06-29 20:31:29 [SEVERE]	at org.bukkit.craftbukkit.v1_6_R3.CraftWorld.getChunkAt(CraftWorld.java:114)
2014-06-29 20:31:29 [SEVERE]	at org.bukkit.craftbukkit.v1_6_R3.CraftWorld.getBlockAt(CraftWorld.java:78)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72821_m(World.java:1193)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72898_h(World.java:1129)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72851_f(World.java:1084)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.markAndNotifyBlock(World.java:911)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72832_d(World.java:889)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_94571_i(World.java:1031)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleBrain.teleportTo(TurtleBrain.java:334)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleMoveCommand.execute(TurtleMoveCommand.java:71)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleBrain.updateCommands(TurtleBrain.java:776)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.core.TurtleBrain.update(TurtleBrain.java:92)
2014-06-29 20:31:29 [SEVERE]	at dan200.computercraft.shared.turtle.blocks.TileTurtle.func_70316_g(TileTurtle.java:255)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.world.World.func_72939_s(World.java:2790)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:879)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:330)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:773)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:655)
2014-06-29 20:31:29 [SEVERE]	at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
can't say if actually related or comorbidity though. if working, the turtle leaves a trail of loaded chunks, which stay loaded as far as i can see.
i fear i might have something installed that messes with the fml-chunking, maybe trying to provide improved unloading, that won't go along with the minys.
will keep trying to get it to work correctly.
Edited on 04 July 2014 - 08:12 AM
_CR_ #20
Posted 06 July 2014 - 11:51 AM
the fact is that the ticket that keeps the chunks loaded isn't in any way bound to the player, it doesn't have an owner. So when the player disconnect it shouldn't change anything. I asked about the distance to understand if the turtle gets loaded because it's in the chunks loaded by the player or because it's bound to him in some way. And those errors… I don't know what they are, java.lang.Throwable is the most generic error possible, it could be anything and I can't find anythig about those cauldronhooks classes (googling it I find this same thread….). also the stacktrace doesn't even pass through my mod classes. So, I'm sorry but I don't know.
ps: From what I see that error is generated by computercraft, when the turtle moves
Edited on 06 July 2014 - 10:54 AM
theoriginalbit #21
Posted 06 July 2014 - 11:57 AM
why are you not cleaning the tickets when the peripherals are disconnected?
_CR_ #22
Posted 06 July 2014 - 12:53 PM
uh, no, wait that was the old version. If the server isn't stopping the tickets are released and the chunks unloaded. I don't remember my own code…. :rolleyes:/> (now I correct the post)
_CR_ #23
Posted 07 July 2014 - 08:52 AM
new version! fixed a little important bug that probably caused to load the wrong chunks… :rolleyes:/> :(/>
Also added the /CRModListLoadedChunks command!
kinl_89 #24
Posted 15 July 2014 - 03:20 AM
Is there a recipe for the miny chunky module? if so, i still cannot craft it
_CR_ #25
Posted 20 July 2014 - 11:27 PM
a diamond pickaxe and a chunky module
hamzaarbeed #26
Posted 25 July 2014 - 12:10 PM
Thank you,

I have CRMOD 1.1.0.2 and Computercraft 1.63.
If I create a world and use the mod the mod works fine, but when I exit minecraft, and try to play the same world again it gives this crash report


---- Minecraft Crash Report ----
// Who set us up the TNT?
Time: 7/25/14 6:07 AM
Description: Exception in server tick loop
java.lang.NullPointerException
at cr.crmod.utils.TicketManager.deleteTicket(TicketManager.java:28)
at cr.crmod.ChunkLoadingCallback.ticketsLoaded(ChunkLoadingCallback.java:63)
at net.minecraftforge.common.ForgeChunkManager.loadWorld(ForgeChunkManager.java:521)
at net.minecraftforge.common.ForgeInternalHandler.onDimensionLoad(ForgeInternalHandler.java:64)
at net.minecraftforge.event.ASMEventHandler_1_ForgeInternalHandler_onDimensionLoad_Load.invoke(.dynamic)
at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
at net.minecraftforge.event.EventBus.post(EventBus.java:108)
at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:85)
at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:107)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.6.4
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 169271768 bytes (161 MB) / 435159040 bytes (415 MB) up to 2863661056 bytes (2731 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx3G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 18, tcache: 0, allocated: 3, tallocated: 63
FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 7 mods loaded, 7 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
FML{6.4.49.965} [Forge Mod Loader] (minecraftforge-9.11.1.965.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Forge{9.11.1.965} [Minecraft Forge] (minecraftforge-9.11.1.965.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
CodeChickenCore{0.9.0.9} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
NotEnoughItems{1.6.1.9} [Not Enough Items] (NotEnoughItems 1.6.1.9.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
ComputerCraft{1.63} [ComputerCraft] (ComputerCraft1.63.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
CRMod{1.1.0.2} [CRMod] (CRMod-v1.1.0.2.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 0 / 8; []
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
_CR_ #27
Posted 29 July 2014 - 12:44 AM
Hi, thanks to you! :)/>
I made a little correction, the new version (1.1.0.3) should solve your problem :)/>. Anyway it's strange that part of code has been executed, it means there is a ticket referring to a location without a turtle. If there is any other problem let me know!
Edited on 28 July 2014 - 10:44 PM
_CR_ #28
Posted 01 August 2014 - 09:47 PM
New version out! With an important bugfix!
_CR_ #29
Posted 10 August 2014 - 09:14 PM
new version! no more lag when using the minychunky module! (I hope)
_CR_ #30
Posted 25 October 2014 - 12:35 AM
New version!!
Updated to 1.7.10 :D/>
Granik24 #31
Posted 29 October 2014 - 09:00 AM
Hello CR!
I have question. Is this mod open for modpack?
If I can add you mod to my ModPack, I will be very happy. Thanks for reply :)/>

P.S.: Here is modlist: https://docs.google.com/spreadsheet/ccc?key=0AuXER2V87dv7dHZKMUFxOFRicEJqOGVJNnJFSHo3M1E
_CR_ #32
Posted 29 October 2014 - 04:07 PM
Yes, absolutely! Everyone can use it freely :)/>
Granik24 #33
Posted 30 October 2014 - 03:51 PM
Hi CR.
I have crash with ChickenChunks.
Here is it: http://pastebin.com/LDKW2j1t
I'm trying to load world..
Thanks for reply.
_CR_ #34
Posted 30 October 2014 - 10:10 PM
It shouldn't be caused by my mod, it doesn't use chickenChunks. no, wait… uhm, now I check :)/>
Edited on 30 October 2014 - 09:11 PM
_CR_ #35
Posted 30 October 2014 - 11:10 PM
I made a little fix to the mod, try the new version (1.1.0.8). It's a wild guess but maybe it works.
If it doesn't work:
which version of chickenchunks and codeChickenCore are you using? I just tried with the latest ones and it worked (Using only my mod, computercraft, codechicken and chickenchunks).
You're trying to load a new world or it's already created? could you activate the info logging from the config file of the mod and send me the console output?
Granik24 #36
Posted 31 October 2014 - 03:46 PM
Now, it's fine. Server finally loaded our world. Thanks very much :)/>
(We are using latest ChickenCore and ChickecnChunks)
Melnick #37
Posted 29 November 2014 - 02:29 PM
Hey,
first of all great work, this is the best peripheral for turtles in my eyes!

But there is one thing i would like to suggest:
What do you think about adding a .attack() function to the miny chunky module, just like the one a turtle would have with a pickaxe?
I'm not quite into the API, but alternatively maybe it could be possible to add the module to the "any tool" list a turtle can attack with.

It would be great if you are able to add this, because animals and monsters keep bullying my turtle :(/>
farenheit #38
Posted 03 January 2015 - 08:02 PM
Hey there,
Thanks a lot for this mod, it's the only one I could find for MC 1.7.10 that adds chunkloading functionality to turtles.
Unfortunately I'm having troubles with .dig() method. It's not behaving exactly like native turtle.dig() would. For example: if I break a T. Expansion's Tesseract with regular mining turtle's turtle.dig() it retains it's settings (frequency, i/o settings) when I place it back from turtle's inventory, but with MinyChunky one everything is being reset. I need both modem and chunkloader on a single turtle so your mod looked like my only hope for avoiding complex contraptions with multiple turtles moving RC chunkloaders along… Is there any chance to have .dig() fixed in future updates?
_CR_ #39
Posted 04 January 2015 - 04:18 PM
I fixed the .dig() method bug and added the .attack() method :)/>
farenheit #40
Posted 05 January 2015 - 10:02 PM
I fixed the .dig() method bug and added the .attack() method :)/>
Maaan, everything works now!
Thank you so much!
Granik24 #41
Posted 28 February 2015 - 06:51 PM
Thank you for your mod! Now, it's in my modapck "ModFire" on FeedTheBeast :)/>
The Lone Wolfling #42
Posted 06 March 2015 - 04:35 PM
What's the license for this mod?

Also, could you add a chunkloader block? Seems a mite overkill to have a turtle sitting there just to load a chunk.
_CR_ #43
Posted 13 March 2015 - 05:31 PM
New version! v1.1.1.0
Added the chunky peripheral and the chunky detector.
Also defined a license, it's MIT! sources uploaded to github :)/>
The Lone Wolfling #44
Posted 14 March 2015 - 12:14 PM
New version! v1.1.1.0
Added the chunky peripheral and the chunky detector.
Also defined a license, it's MIT! sources uploaded to github :)/>
And there was great rejoicing!
apemanzilla #45
Posted 29 March 2015 - 03:14 AM
Btw - for a wireless modem chunkloader it (should) be very simple. Change this:

public class ChunkyPeripheral implements IPeripheral
{
to this:

public class ChunkyPeripheral extends WirelessModemPeripheral
{
You'll also need to add this import:

import dan200.computercraft.shared.peripheral.modem.WirelessModemPeripheral;

I haven't tested this yet but it should make it work as a chunkloader and a wireless modem.

I think that would be more convenient for people than a digging peripheral as it wouldn't require you to change your turtle.dig calls to peripheral.dig

Edit: You should also include the (full) CC jar in your IDE so you actually have those files…
Edited by
_CR_ #46
Posted 30 March 2015 - 03:10 PM
Yes, I'll try making something like that, thanks :)/>
Maybe it could be even possible to make a generic peripheral that can be crafted with a generic upgrade and adds to it the chunk loading functionality… Maybe, maybe, I don't know when but I'll try to do it :)/>

Edit: my upgrades are peripherals instead of tools because in CC1.58 update() was called only on the peripherals. But from what I understand from the api and the sources now it's called also on tools… So I could simplify the code…
Edited on 30 March 2015 - 01:40 PM
apemanzilla #47
Posted 30 March 2015 - 09:02 PM
Yes, I'll try making something like that, thanks :)/>/>
Maybe it could be even possible to make a generic peripheral that can be crafted with a generic upgrade and adds to it the chunk loading functionality… Maybe, maybe, I don't know when but I'll try to do it :)/>/>

Edit: my upgrades are peripherals instead of tools because in CC1.58 update() was called only on the peripherals. But from what I understand from the api and the sources now it's called also on tools… So I could simplify the code…

Hmm, not so sure about the generic peripheral idea. It could work but that's already sort of implemented by the peripheral system itself - no need to add a new way to use them.
kukeiko #48
Posted 16 April 2015 - 11:49 AM
Thanks a lot for this mod, it eliminates all the hassle of stationary chunk loaders!

Btw - for a wireless modem chunkloader it (should) be very simple. Change this:

I took the freedom to try this out, but i failed to find the full computercraft source jar. Do you know where we can get it? Dan200 points to the api being shipped with the mod itself, but that only seems to contain the required classes to make custom peripherals, not extend from existing ones.

I would love to have the chunk loader in a wireless modem, since the modem is the one peripheral i'd love to never unequip, since then i wouldn't have serious delays between requests/responses to turtles that temporarily equip another peripheral in its slot.
Edited on 16 April 2015 - 02:01 PM
_CR_ #49
Posted 17 April 2015 - 12:00 AM
I think the only way to get the sources is by decompiling. To avoid this I was thinking of getting a wireless peripheral object through reflection and use it in cascade (and maybe extending this system to use a generic peripheral). I'll probably start working on it in a week.

Ps: I don't know if it's possible to do it this way, it's just an idea
Edited on 16 April 2015 - 10:03 PM
_CR_ #50
Posted 18 April 2015 - 01:44 AM
I said I would have started in a week… But I've already done it! version 1.1.2.0 is out! :)/>
theoriginalbit #51
Posted 18 April 2015 - 02:52 AM
i failed to find the full computercraft source jar. Do you know where we can get it?
This is because ComputerCraft is closed source. Dan hasn't released the source at all.

To avoid this I was thinking of getting a wireless peripheral object through reflection and use it in cascade (and maybe extending this system to use a generic peripheral).
Since your mod is always dependent on ComputerCraft you could always import ComputerCraft as a library in your project and then you get direct access to the ComputerCraft classes. Compiling and running won't cause any issues because your mod always requires ComputerCraft anyway. For example if you use IntelliJ you could put the CC jar in the 'libs' folder right-click it and select "Use as library".
Edited on 18 April 2015 - 12:53 AM
flaghacker #52
Posted 18 April 2015 - 08:25 AM
i failed to find the full computercraft source jar. Do you know where we can get it?
This is because ComputerCraft is closed source. Dan hasn't released the source at all.

To avoid this I was thinking of getting a wireless peripheral object through reflection and use it in cascade (and maybe extending this system to use a generic peripheral).
Since your mod is always dependent on ComputerCraft you could always import ComputerCraft as a library in your project and then you get direct access to the ComputerCraft classes. Compiling and running won't cause any issues because your mod always requires ComputerCraft anyway. For example if you use IntelliJ you could put the CC jar in the 'libs' folder right-click it and select "Use as library".

Don't you have to deobvusticate it first?
theoriginalbit #53
Posted 18 April 2015 - 08:46 AM
Don't you have to deobvusticate it first?
nope
flaghacker #54
Posted 18 April 2015 - 09:02 AM
Don't you have to deobvusticate it first?
nope

That works too of course. But then you're indirectly deobvuscating…
theoriginalbit #55
Posted 18 April 2015 - 10:37 AM
That works too of course. But then you're indirectly deobvuscating…
without the effort of actually having to deobfuscate
flaghacker #56
Posted 18 April 2015 - 10:45 AM
That works too of course. But then you're indirectly deobvuscating…
without the effort of actually having to deobfuscate

*pffff* fine, you win… *pffff* :P/>
kukeiko #57
Posted 18 April 2015 - 12:31 PM
I said I would have started in a week… But I've already done it! version 1.1.2.0 is out! :)/>

You will forever have a place in my heart <3
EconBrony #58
Posted 07 May 2015 - 11:34 PM
Just wanted to let you know I will be using your awesome mod chunky peripherals in the unlisted public mod pack PokeTech. Thanks for all your hard work!
MrMoriarty #59
Posted 18 August 2015 - 04:19 PM
Hey _CR_, this mod looks awesome and is *exactly* what I need for my turtles to work on a giant dig I'm doing (even QuarryPlus can't adequately deal with this without major agro). I'm using 1.6.4 (triple checked I'd got the right version :D/>), no errors but it doesn't show up at all in my game. I'm using FTB Monster 1.6.4 and there's a possible problem where the recipe for the chunk loader turtle add-on has the same recipe as something in buildcraft. Not sure how to change this or if this is even what causing the problem.
Any ideas on what might be the problem, I desperately need this mod so I can set the turtle to dig a 2000 x 2000 area and leave it, cos the quarries are doing my head in! If this is the wrong thread, please let me know and I'll post this elsewhere :)/>
HPWebcamAble #60
Posted 18 August 2015 - 06:40 PM
there's a possible problem where the recipe for the chunk loader turtle add-on has the same recipe as something in buildcraft

If there does turn out to be a recipe conflict, you can use MineTweaker to change one of the recipes
MrMoriarty #61
Posted 18 August 2015 - 08:18 PM
Thanks HP, I have NEI installed so usually can see everything I have installed/every available block and I've searched Chunk/Chunky/CRMod etc and can't find it at all. Would that happen if the recipe was identical to something else? I could change. I could change the ender pearl to a nether pearl so it's still pricey (and I have auto-spawners that are grinding so many endermen and blazes now that it's not really a big cost anyway).
HPWebcamAble #62
Posted 19 August 2015 - 12:50 AM
I've searched Chunk/Chunky/CRMod etc and can't find it at all. Would that happen if the recipe was identical to something else?

No, it shouldn't. You might double check the versions of your mods are compatible with your version of MC.
In the main menu, you could look through the 'Mods' list, to make sure its there. In any case, you can check you MC log to make sure nothing is erroring during load.

Other than that, you'll need to wait to see what _CR_ has to say about it :P/>
MrMoriarty #63
Posted 19 August 2015 - 02:21 PM
Ok, checked the version, definitely right, shows up in the modpack and the main menu, spotted an error in the logs though >.<
[CRMod] Mod CRMod is missing a pack.mcmeta file, things may not work well.

Definitely got v1.1.06 for 1.6.4. Just wanted to triple check. I'm so desperate for the mod so I can leave my massive dig going and get on with other things while it inevitably takes 1-2 weeks to dig >.<
MrMoriarty #64
Posted 19 August 2015 - 08:13 PM
Never mind >.< Did a fresh install (had some problems with my other mods and this sorted it) and it worked, no errors at all. Thanks for your input though HP, I'm gonna have to check out your RE program at some point very soon :D/>
_CR_ #65
Posted 27 August 2015 - 07:38 PM
Hi! sorry I didn't see your posts in time :(/>, due to some forum's bug I can't receive notifications for posts on this thread.
Fortunately in the end it worked :D/>
logoth #66
Posted 06 December 2015 - 12:39 PM
It looks like it won't, but I want to be sure. Would this mod still work if I remove chicken chunks from my pack?
_CR_ #67
Posted 07 December 2015 - 02:42 PM
Yes, it will :)/>
flaunting #68
Posted 25 April 2016 - 06:51 PM
Any chance of 1.8.9 update
_CR_ #69
Posted 29 April 2016 - 09:59 PM
In this period I'm quite busy, so not anytime soon. Maybe someday I'll do it, but I'm not certain. Sorry
vico #70
Posted 31 May 2016 - 07:49 AM
We understand! Good luck there! And again, thank you so much for this mod!