Turtle/computercraft

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

EternalDensity

New Member
Jul 29, 2019
1,428
2
0
Actually, their carefully balanced to set my brain on fire and make my eyes leak rage lava. I googled around for a popular turtle quarry program to see what CC Lua looked like. I found this and wept blood. I punched the wall and cried about coroutines incoherently for about 20 minutes.

Oh the humanity. Oh the tragedy. Truly, Turing is turning in his grave with such force as to provide infinite electricity for all.
Their carefully balanced what?

I'll admit that code is a little annoying to read due to the lack of indentation.
 

Abdiel

New Member
Jul 29, 2019
1,062
0
0
When you have 14 trillion chunks in a Minecraft world, does it matter if you only get 14 trillion diamond and not 28 trillion diamond? For reference, that's 2 billion diamond chests full of diamond blocks.

Automated mining chunkloader turtle.
When I have a turtle mining for, say, 12 hours - I'd rather get extra diamonds, diamond dusts, redstone, plutonium, glowstone, gemstones, 3.5x more coal (which means more diamonds), etc. It would take maybe 5 minutes to run through all the shafts and gather all the resources, in which time I'd be increasing my output per unit of time 2-3 times (not to mention getting resources I wouldn't otherwise get at all).
 

DoctorOr

New Member
Jul 29, 2019
1,735
0
0
When you have 14 trillion chunks in a Minecraft world, does it matter if you only get 14 trillion diamond and not 28 trillion diamond? For reference, that's 2 billion diamond chests full of diamond blocks.

Automated mining chunkloader turtle.

Obsessive behavior. I feel bad everytime I accidentally hit coal with a normal pickaxe instead of a fortune. That's why my turtles go around and mine all the normal ores as well as dirt, stone, etc but leave things I want to fortune or silktouch. (And also, largely, why I don't publish my code)

Also, not running mystcraft and not wanting to leave huge holes in my area makes me not want to spread voracious turtles like a plague.

Finally: Lua is a hack language, written entirely so that programmers high on a 72 hour bender and 12 liters of redbull can program indistinguishably from sober, well slept, ones. It was also designed by those same programmers.
 

EternalDensity

New Member
Jul 29, 2019
1,428
2
0
Finally: Lua is a hack language, written entirely so that programmers high on a 72 hour bender and 12 liters of redbull can program indistinguishably from sober, well slept, ones. It was also designed by those same programmers.
That's how I got the only 100% for my Games Programming Techniques final assignment back in my university days (about 5 or 6 years ago, I'm losing track already): everyone else was using the C++ framework while I had access to the Lua framework on top of it. No redbull was involved though.
 

IBurn36360

Member
Jul 29, 2019
57
0
16
Obsessive behavior. I feel bad everytime I accidentally hit coal with a normal pickaxe instead of a fortune. That's why my turtles go around and mine all the normal ores as well as dirt, stone, etc but leave things I want to fortune or silktouch. (And also, largely, why I don't publish my code)

Also, not running mystcraft and not wanting to leave huge holes in my area makes me not want to spread voracious turtles like a plague.

Finally: Lua is a hack language, written entirely so that programmers high on a 72 hour bender and 12 liters of redbull can program indistinguishably from sober, well slept, ones. It was also designed by those same programmers.

LUA is a scripting language something akin to Javascript. Calling it something like a hack language is not only disrespectful to those who even attempt to utilize it, but also disrespects the creator for choosing the language as a whole. The ease of entry into scripting languages is naturally lower due to the straight forward syntax, and the lack of type safety allows basic coders to not need to worry about weather or not they are trying to perform an operation on a bool or an int of 1 or 0. The primary limitations of a scripting language like LUA stem from that inherent danger of the simple syntax and type insafety in this case.

As to the balance of ComputerCraft versus other mining alternatives. The primary aspect of the turtle is the coder behind it. Without any intelligent code behind the turtle, as well as enough forethought to deal with all occurrences of problems, such as unloading, loss of position and even getting mined and moved, the turtle is absolutely useless and serves merely as a way to make a block attack people when they stand perfectly still in front of it. Even with the programs that many of the people who use the mod have written, there is no guarantee that the code itself will even work, or in an even worse case, is mis-flagged as a mining program and only serves to drop servers by spawning LUA threads.
 

KirinDave

New Member
Jul 29, 2019
3,086
0
0
LUA is a scripting language something akin to Javascript. Calling it something like a hack language is not only disrespectful to those who even attempt to utilize it, but also disrespects the creator for choosing the language as a whole.

Sorta. Lua is a deliberately austere, low-tech language because it's designed to be embeddable with low cost. It's definitely not designed with writing reusable software in mind.[/quote]

sadly, it's not that easy. I tried to learn how to code before, but I wasn't able to learn it, it's not that easy to just say "I'll go learn it" and you can.

Sadly, the research on the subject suggests that there are some people who simply don't have the neurology to be comfortable with symbolic indirection at multiple levels. This isn't saying anyone is "worse" or "better" than anyone else, just noting that in the same way that some people have the capacity to be so good at newtonian physics that they can throw a pseudoleather oblong object in a spiral into a runner's outstretched arms , some people can write software.
 
  • Like
Reactions: EternalDensity