Posted 02 May 2012 - 06:59 AM
A short backstory….
I've had VERY limited, very basic knowledge in the past using Java (via Android programming), as well as C# (Windows Phone programming), but never went beyond the very basics. The primary reason was because if I wanted to do something with a smartphone, chances were it either wasn't possible or was already done. So I got lazy and never went further. When I stumbled on CC I was excited, since I'd never heard of Lua, but figured it'd be a great place to start getting more advanced, since a lot of the basics learned through Lua will apply to other programming languages.
Now, I've successfully learned (or brushed-up) a bit using Casper's in-game tutorial, and have made a little password-locked door for my personal server's "Machine Shop", which is where I have my IC2 "factory" of sorts, and sell items to my 3 other friends who play on my server with me. One thing we previously did was use a chest full of signs to leave notes when one of us wasn't on the server. When I stumbled upon NitrogenFingers' email server & client, I couldn't pass up trying it out. It turned out to be a FANTASTIC solution for us. Unfortunately, I'm hitting the common limitation with CC on servers: the wireless modem just doesn't go very far.
So I've looked into skynetapi, and have downloaded code from all over this forum related to a ton of projects I so desperately want to do. The big problem I'm experiencing is my lack of advanced programming knowledge, which really comes back to an underlying problem with ADD. I can't seem to wrap my head around some things when I've still got a machine shop to run on the server. So i'm trying to dabble with the programs when I'm the sole person on the server. However, I'm still not getting the results I'm looking for. Those results are as follows…
I'd like to be able to implement NitrogenFingers' email client & server using skynet api calls. The problem is, wading through code has proved to give me a headache. So many functions I don't understand, so much to learn that I just can't cram all into my head… I'll admit, I've felt like I'm just being lazy by not trying harder. The other thing I'm dying to implement is the ability to control turtles remotely. Yes, I know this has been done, and I have used a few different applications to tinker with a turtle I have stationed on my roof, next to a BuildCraft obsidian pipe, which feeds into the receiving end of a teleport pipe system, that goes through a diamond filter, then separating objects for maceration & smelting. Fortunately I have BuildCraft & IndustrialCraft concepts under my belt. RedPower was my recent addition with ComputerCraft, so I haven't even touched it yet, though I know it has a lot of the same concepts of the other primary mods I use. But when it comes to the turtle, I want one thing I saw on YouTube, the ability to control the turtle directly, with a display of what is around the turtle. The video is on YouTube, trailing URL is /watch?v=vow9tQmaE0k. I saw that the code (which I did get copies of) isn't compatible with the most recent version of ComputerCraft, which is a shame, but hopefully I can cherry pick the parts I want, fix whatever isn't working, and implement THAT program, with something like the "Remote Turtle" program that Wolvan has posted (essentially the same, but I'm not sure how many controls are similar between the two). I also want to be able to enter an auto-mine mode, where I can give it coordinates, perhaps a depth, and a width, where it could fly off and mine on its own, but also have a display of where it is in relation to my base, along with an auto-dropoff provision, where it'd come back to my obsidian pipe to drop off when it's full.
A lot of the programming Cookiebal has made available with object avoidance and waypoints is stunning (I ran it with a proof-of-concept on the server, doing a run back and forth between my shop & one of my friends' houses). But again, these are all separate programs. I'd like to try and get this all working together, and it may just be over my head as a true noob. Doesn't mean I'm not willing to try, I just need some guidance in understanding what each of these functions in the more advanced applications are doing, and how I can swap out something like rednet's calls, with skynet's api, in order to use repeaters. Ultimately, I'd love to be able to deploy a wireless turtle, carrying a chunkloader block, and have it fly to a set distance, go up into the sky, and place the chunkloader with it, so that it can remain as a repeater. Then have that program be able to be run again, to place further ones, in whichever direction I need them, so that I can remain in contact with my wireless mining turtles while they're off mining somewhere 200+ blocks from where my shop is.
Of course, all of this is quite lofty goals for someone who has only been using ComputerCraft for 3 days. But since there are so many things I'd love to automate and have remote control of, it's a no-brainer to learn programming this way. The only problem is finding out where I'm going, what I'm doing. Because my friends on my server can't even figure out how to "/client/mailclient" just to get their email clients running to check/send email on their computers. So I can't expect them to help me… So I'm asking the CC community, if I point out which pieces of code I'm trying to adapt for my use, can anyone explain where I'd need to make changes to do whatever it is I need to? I realize a lot of these questions may have similars that have been asked before, but the answers in each of the couple dozen threads I've read don't even try to help someone really grasp what is going on behind the scenes.
Thanks in advance,
Matt
I've had VERY limited, very basic knowledge in the past using Java (via Android programming), as well as C# (Windows Phone programming), but never went beyond the very basics. The primary reason was because if I wanted to do something with a smartphone, chances were it either wasn't possible or was already done. So I got lazy and never went further. When I stumbled on CC I was excited, since I'd never heard of Lua, but figured it'd be a great place to start getting more advanced, since a lot of the basics learned through Lua will apply to other programming languages.
Now, I've successfully learned (or brushed-up) a bit using Casper's in-game tutorial, and have made a little password-locked door for my personal server's "Machine Shop", which is where I have my IC2 "factory" of sorts, and sell items to my 3 other friends who play on my server with me. One thing we previously did was use a chest full of signs to leave notes when one of us wasn't on the server. When I stumbled upon NitrogenFingers' email server & client, I couldn't pass up trying it out. It turned out to be a FANTASTIC solution for us. Unfortunately, I'm hitting the common limitation with CC on servers: the wireless modem just doesn't go very far.
So I've looked into skynetapi, and have downloaded code from all over this forum related to a ton of projects I so desperately want to do. The big problem I'm experiencing is my lack of advanced programming knowledge, which really comes back to an underlying problem with ADD. I can't seem to wrap my head around some things when I've still got a machine shop to run on the server. So i'm trying to dabble with the programs when I'm the sole person on the server. However, I'm still not getting the results I'm looking for. Those results are as follows…
I'd like to be able to implement NitrogenFingers' email client & server using skynet api calls. The problem is, wading through code has proved to give me a headache. So many functions I don't understand, so much to learn that I just can't cram all into my head… I'll admit, I've felt like I'm just being lazy by not trying harder. The other thing I'm dying to implement is the ability to control turtles remotely. Yes, I know this has been done, and I have used a few different applications to tinker with a turtle I have stationed on my roof, next to a BuildCraft obsidian pipe, which feeds into the receiving end of a teleport pipe system, that goes through a diamond filter, then separating objects for maceration & smelting. Fortunately I have BuildCraft & IndustrialCraft concepts under my belt. RedPower was my recent addition with ComputerCraft, so I haven't even touched it yet, though I know it has a lot of the same concepts of the other primary mods I use. But when it comes to the turtle, I want one thing I saw on YouTube, the ability to control the turtle directly, with a display of what is around the turtle. The video is on YouTube, trailing URL is /watch?v=vow9tQmaE0k. I saw that the code (which I did get copies of) isn't compatible with the most recent version of ComputerCraft, which is a shame, but hopefully I can cherry pick the parts I want, fix whatever isn't working, and implement THAT program, with something like the "Remote Turtle" program that Wolvan has posted (essentially the same, but I'm not sure how many controls are similar between the two). I also want to be able to enter an auto-mine mode, where I can give it coordinates, perhaps a depth, and a width, where it could fly off and mine on its own, but also have a display of where it is in relation to my base, along with an auto-dropoff provision, where it'd come back to my obsidian pipe to drop off when it's full.
A lot of the programming Cookiebal has made available with object avoidance and waypoints is stunning (I ran it with a proof-of-concept on the server, doing a run back and forth between my shop & one of my friends' houses). But again, these are all separate programs. I'd like to try and get this all working together, and it may just be over my head as a true noob. Doesn't mean I'm not willing to try, I just need some guidance in understanding what each of these functions in the more advanced applications are doing, and how I can swap out something like rednet's calls, with skynet's api, in order to use repeaters. Ultimately, I'd love to be able to deploy a wireless turtle, carrying a chunkloader block, and have it fly to a set distance, go up into the sky, and place the chunkloader with it, so that it can remain as a repeater. Then have that program be able to be run again, to place further ones, in whichever direction I need them, so that I can remain in contact with my wireless mining turtles while they're off mining somewhere 200+ blocks from where my shop is.
Of course, all of this is quite lofty goals for someone who has only been using ComputerCraft for 3 days. But since there are so many things I'd love to automate and have remote control of, it's a no-brainer to learn programming this way. The only problem is finding out where I'm going, what I'm doing. Because my friends on my server can't even figure out how to "/client/mailclient" just to get their email clients running to check/send email on their computers. So I can't expect them to help me… So I'm asking the CC community, if I point out which pieces of code I'm trying to adapt for my use, can anyone explain where I'd need to make changes to do whatever it is I need to? I realize a lot of these questions may have similars that have been asked before, but the answers in each of the couple dozen threads I've read don't even try to help someone really grasp what is going on behind the scenes.
Thanks in advance,
Matt