Jump to content


Ikkalyzte's Content

There have been 58 items by Ikkalyzte (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#73060 GPS Excavate

Posted by Ikkalyzte on 12 January 2013 - 11:38 AM in Turtle Programs

Update:

Added small tree chopping utility. Hopefully you guys find it useful.

On a related topic, I am still working on a rednet manager; but my plans of having a full program suite are gone. I think I will simply continue to upload these small utilities... I don't really have time to spend on keeping up a bunch of programs anymore. On the other hand, my brother is learning lua, so he may take these over.

The position file thing, I don't really plan on adding - it seems to have too much possibility of error.



#69474 GPS Excavate

Posted by Ikkalyzte on 05 January 2013 - 02:55 PM in Turtle Programs

Still working on the rednet manager guys. Got the main menu done, working on the buttons (it will use mouse navigation!).
Anyway, is anyone interested in a redwood/fir/large tree chopper? That was about the first thing I made in my new world, because I hate chopping the stupid giant trees. It should work on all girths of tree.



#68119 Dance 2.0

Posted by Ikkalyzte on 03 January 2013 - 08:23 AM in Turtle Programs

Oh my eyes. Loops, they are useful. No offence, I had code like that once. But please, keep learning, so that can be cleaned up.



#66695 GPS Excavate

Posted by Ikkalyzte on 31 December 2012 - 10:29 AM in Turtle Programs

Update:

Version 1.56
  • Quick fix for GPSExcavate; declaring functions before calling them is always a smart idea

Fixed your issue, Atukaski. Kravyn, your idea is coming, right now I'm working on a manager for my programs. Should be cool, but it's taking a while :P
All the issues you mentioned should be fixed now, so go ahead and update. Any reason to have http api off? I can't think of one, but it's always off by default in singleplayer.



#66690 Gps Goto Program

Posted by Ikkalyzte on 31 December 2012 - 10:23 AM in Turtle Programs

I figured because you knew functions, you could know return. What tutorial are you using?



#66343 GPS Excavate

Posted by Ikkalyzte on 30 December 2012 - 03:20 PM in Turtle Programs

Update:

Version 1.55
  • Fixed a weird bug in GPSExcavate, where the turtle would go at molasses pace once it dropped its unwanted items
  • Also fixed dropping items even if that wasn't required (!)

DZ, I actually wrote up a sorting system made of turtles; but it was very inefficient, and a royal pain for the user to set up. Your idea is much more workable, and I might just make a quick implementation. Of course, it would be made fairly simple with GPS :)
The only thing I don't understand is the "marking" of chests; did you mean with coordinates? Because turtles cannot yet "mark their territory"... ;)



#66338 Gps Goto Program

Posted by Ikkalyzte on 30 December 2012 - 03:00 PM in Turtle Programs

I made a program similar to this, they are very useful. It looks fairly good, except for a couple minor things:
  • The initial declaration "local dir, disx, disy, disz = 0" will not work as I think is intended; 0 will be assigned to dir, but not the other variables. To do that you would have to do something similar to "local dir, disx, disy, disz = 0, 0, 0, 0"
  • So many if - elses! Not really an issue, but some use of "return" in your functions could help. Do you know how that works?
  • Finally, I agree: reading it is a little bit of a chore. I totally understand, as my programs can have the same issues. Maybe having variable names more descriptive than dnx, doz, mdirs, and the like? Also, comments on what the variables are (when you declare them) could help
Good luck in your bugfixing. It's always the most tedious part :P



#66330 Bridge building turtle!

Posted by Ikkalyzte on 30 December 2012 - 02:46 PM in Turtle Programs

Budman's right, your first stairDown() doesn't have a closing "end". But the error message doesn't make any sense: There are only 82 lines in the program??



#65722 GPS Excavate

Posted by Ikkalyzte on 29 December 2012 - 09:23 AM in Turtle Programs

Update:

Version 1.54
  • Bugfixes to goto and GPSExcavate, fixed fatal error in excavate
  • Same pastebin links: I may release an installer for further convenience

Thanks for the bug reports. It doesn't change much, but I did find a large error in excavate while I was testing.



#64199 GPS Excavate

Posted by Ikkalyzte on 25 December 2012 - 05:06 PM in Turtle Programs

What kind of tree are you trying now? I think the reason that the rubber trees don't always work properly is that the turtle compares to the wood, so that it doesn't dig leaves. The block id of resin-containing wood is different from that of normal rubber wood, so it won't think that there is wood there. If you want, the solution to this would be to replace the turtle.compareUp() on line 80 with turtle.detectUp(), so it mines the entire tree. That shouldn't introduce any major bugs, but it will take longer to cut down the trees.



#64138 GPS Excavate

Posted by Ikkalyzte on 25 December 2012 - 11:33 AM in Turtle Programs

Update!

Version 1.53
  • Catch for proper farm now included in FarmTree
  • Excavation will now not waste time dropping materials
  • Pastebin links now permanent: this will facilitate future rednet systems

Apologies for the terrible treefarmer, Jaruca. It was made when I was very new to lua, and I could do it much better now, but I really don't feel like re-writing it. It needs to be started with saplings already planted; I've now made that clear in the OP. It should work if you plant the saplings first, but if it doesn't let me know.



#64096 GPS Excavate

Posted by Ikkalyzte on 25 December 2012 - 07:58 AM in Turtle Programs

Haha that's what it's supposed to do. Let me check the code :)



#61219 GPS Excavate

Posted by Ikkalyzte on 18 December 2012 - 10:09 AM in Turtle Programs

I haven't seen the first problem in a while; water should be fine afaik. The second problem, yes, it needs to have an empty inventory when starting other than the saplings. I will look at the code tonight



#60805 GPS Excavate

Posted by Ikkalyzte on 17 December 2012 - 12:53 PM in Turtle Programs

Update!

Version 1.52
  • Tiny update to FarmTree to fix failed function

Thanks, sorry for the fails. It should work now... I hope :P



#60743 GPS Excavate

Posted by Ikkalyzte on 17 December 2012 - 11:10 AM in Turtle Programs

Update!

Version 1.51
  • Tiny update to FarmTree to fix misnamed function

Thanks for the bug report. That was probably the smallest bug I've ever fixed :)
Hopefully everything's working well for everyone else. Progress on rednet control is slow, but once it gets to the holidays I'll have lots of time.



#59953 Sphere and Dome Builder

Posted by Ikkalyzte on 15 December 2012 - 08:06 PM in Turtle Programs

Did you remember to use fuel? Sounds like that's what happened :)
Nice program, btw. I've looked at it, and have yet to find a use for it, but it looks awesome.



#59920 GPS Excavate

Posted by Ikkalyzte on 15 December 2012 - 05:06 PM in Turtle Programs

Update!

Version 1.5
  • GPSExcavate can now accept blocks not to collect! No more walls of boxes of cobble
  • Also saves its position very frequently, so no big deal if the chunk is accidentally unloaded
  • See new excavate instructions; no changes to other programs

I ended up making the turtle save every movement, because it seemed to be glitching out half the time otherwise. Just remember to start it from its "base" position when restarting.

I will add the functionality of sending it back to its base automatically, but only once I've created the rednet control system. For now, just set a goto location at the base to make it easier on yourself.



#59593 GPS Excavate

Posted by Ikkalyzte on 14 December 2012 - 07:28 PM in Turtle Programs

That's a smart idea. I will implement that now.
As well, I have added a functionality to not collect certain blocks. This is not useful to me (I use IC2 recyclers), but it seemed like something that would save fuel and time if you didn't want the cobble/dirt etc. However, I do not have time to test this right now; will probably release in a couple days.

Edit: I currently have it saving each time it reaches the edge. Is this often enough? I could easily make it every movement, but that seemed unnecessary.



#58504 GPS Excavate

Posted by Ikkalyzte on 11 December 2012 - 06:54 AM in Turtle Programs

Pastebin links are in the names, just click on them. I will add them more explicitly when I get off mobile



#58316 GPS Excavate

Posted by Ikkalyzte on 10 December 2012 - 01:35 PM in Turtle Programs

Update:

Version 1.43
  • Small update to goto to be able to go through gravel
  • Should fix excavation issues with gravel
  • No changes to other programs
Hopefully this fixes your problem, DZ. My turtle didn't miss a layer, but it just stopped, so I knew something was wrong. Let me know if it doesn't.



#57867 GPS Excavate

Posted by Ikkalyzte on 09 December 2012 - 08:44 AM in Turtle Programs

Update:

Version 1.42
  • Comments to GPSExcavate! Finally, Loki can rest :)
  • Bugfixes: Unlimited fuel catch now works properly, small fixes around excavation program
  • No changes to other programs
There you go, Loki. I didn't forget, I swear...
DZ, thanks for the fuel bug report. I may work on the batch thing anyway, I just don't see why it would be more useful. Not sure about the gravel thing either; will do some testing.
Now to work on rednet controller...



#57434 GPS Excavate

Posted by Ikkalyzte on 07 December 2012 - 06:52 PM in Turtle Programs

Found the bug; just forgot to edit the part in the actual refueling. Haven't uploaded the new version, I'm just going to wait a bit to make sure no other bugs turn up and I don't come up with any simple implementations.

Also, about the batch thing: Couldn't you just start it lower? There are no limits on side length, as well. I might make an implementation anyway, but I just don't see the usage myself.



#57146 GPS Excavate

Posted by Ikkalyzte on 06 December 2012 - 04:59 PM in Turtle Programs

Update:

Version 1.41
  • Bugfixes: GPSExcavate no longer digs staircase pattern: simple fail in starting up digging
  • Small fix for calculation of fuel levels
  • No changes to other programs
I had figured the bug out, I just was on mobile and so couldn't actually edit the program, pastebin, etc. And peewee, I had tested it, and apparently the small change I made afterwards was just a huge derp of a change. Lesson learned: test again after any changes :P

DZ, this would be possible, but why wouldn't you just have the turtle dig a 64 by 64 instead of four 16 by 16s? Or am I misunderstanding your idea?...



#57079 GPS Excavate

Posted by Ikkalyzte on 06 December 2012 - 11:05 AM in Turtle Programs

Frostmaul, it looks like you haven't entered numbers as your dimensions. Can you post how you activated the program?

Peewee, when I tested it in my world it seemed to work, so I will try it again when I get a chance tonight with your numbers. Hopefully it's a simple fix :(

Edit: Nevermind, I found the staircase problem. It was introduced when I made the digging more efficient. Should have it fixed today. Yay!



#56876 GPS Excavate

Posted by Ikkalyzte on 05 December 2012 - 07:44 PM in Turtle Programs

Yeah, it will not work without goto. I will make that more clear in the op; sorry about the damage.

Edit: It doesn't need gps, in case you were wondering... just goto.