Jump to content


civilwargeeky's Content

There have been 12 items by civilwargeeky (Search limited from 26-November 19)


By content type

See this member's

Sort by                Order  

#260920 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 22 October 2016 - 05:03 PM in Turtle Programs

View PostFunkDooBiesT, on 22 October 2016 - 01:53 PM, said:

-snip-

Went back and checked, turns out that I was specifically checking for "oldOreQuarry" for whether or not to accept the dumpCompareItems switch. I just removed that restriction, so it should work fine now :)
Please redownload



#260825 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 20 October 2016 - 04:13 AM in Turtle Programs

View PostFunkDooBiesT, on 19 October 2016 - 10:51 AM, said:

-snip-

Wow! Its been a long time since I've coded lua :P
I stopped adding computercraft to my mod packs awhile ago, and haven't been playing minecraft significantly in a long time, but I still remembered most important things about my code! (and then disregarded some systems anyway :P)

So I took the "hacked" version that you showed me, and I added in some logic to make it better. So first, whenever it plugs the holes, instead of doing a complicated inventory checking thing with types and slots and assumptions and things, it just checks directly against the blacklist and uses unwanted blocks. It should also be very efficient, as it only looks for a new slot when it runs out of blocks in that slot. The only way it could fail is if there is ore directly in front of it and it uses its last piece of filler :\ . NOTE: This requires that you are using at least Computercraft 1.64 and will not work with older versions. If that's a problem for you, let me know.
The second thing I did is go into the drop function. When it is dropping off things, it tries to keep 32 filler material in its inventory for filling purposes (this applies to every time it drops stuff off, including mid-run without going to a chest, just fyi) (also this only applies if plug holes is on).

To stop it from dropping gravel, or add mod blocks to its blacklist, go to line 919 and take out gravel, add mod blocks, etc. To find out what the name of the mod block you want to add is, there are a few ways I know. First, there is a setting in NEI you can turn on. Second, if you have bspkrs core, there is an output file in your config file that has a list of all blocks installed. Third, if you have bibliocraft, there is a debug book you can give yourself that tells you the name of item stacks you put in it. Just add them to the blacklist in a way similar to the other ones

If you want to change the amount of filler material it tries to keep in its inventory, go to line 2237 and change the number there. It will keep it in multiple slots if necessary.

Anyway, now that I have talked you to death, here's the program: http://pastebin.com/wS5dv0Ax
Tested it on my machine. Can't guarantee it will always work. Hope it is an improvement. Thank you so much for sticking with my program for so long. It makes me happy to know all of my effort is still appreciated :D



#260762 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 18 October 2016 - 05:59 PM in Turtle Programs

View PostFunkDooBiesT, on 17 October 2016 - 12:54 PM, said:

Howdy again, I'd simply like to point out that I'm missing the -plugHoles parameter big time.

I'm going to attemp to hack it into the new version you have updated.

Thanks!
By "-plugHoles parameter", do you mean it should cover up a quarry hole it made? That was never a part of this program. If you want I could also try to hack it in and post it here, but the program really wasn't designed with placing blocks in mind. I suppose it could conditionally work on an oreQuarry after the last run was done... Maybe it could check if it has enough "filler" blocks to cover the top section, and then do it if it has enough, otherwise don't bother.

That's what you meant, right?



#251931 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 23 May 2016 - 12:45 AM in Turtle Programs

View PostABLukas, on 22 May 2016 - 02:03 AM, said:

so i set up a quary to remove a bunch of obsidian a previous owner left on his plot but when i set it to run i get found bedrock at these coridinates
Uhh... Is there more context? If its says it found bedrock, it probably tried mining bedrock (or some other material it can't break). Make sure it is set to mine the exact dimensions of the unwanted obsidian so it doesn't go and try mining nearby bedrock or something.

If these steps did not get you want you want, I will need more information.



#249655 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 08 April 2016 - 05:29 AM in Turtle Programs

View PostSyberSmoke, on 06 April 2016 - 07:35 AM, said:

-snip-

Well you know what, since you asked so nicely, I decided to take like an hour and a half and code something up. It's a touch hacky, but it should work alright. Let me know how it goes! (very slightly tested)

http://pastebin.com/NFYUgsLJ

Recommended usage:
quarry -basicFuelChest [side the fuel chest will be on] -doCheckFuel false -maxFuel [maximum fuel to fuel it to]
The doCheckFuel false is so it doesn't ask for large amounts of fuel at the start.

Happy Trails!



#249537 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 06 April 2016 - 02:03 AM in Turtle Programs

View Postelektronemulo, on 19 March 2016 - 02:55 PM, said:

-snip-

Hi! Sorry but that is not a bug. The way that inverted works is literally by switching the move up and move down commands. If you want, you could poke around the code and make some changes.
At line 2210 of the most recent release is where the program adds all the downs for startDown. You could probably do some sort of logic there, but I don't have the time to add something into a release.

View PostSyberSmoke, on 05 April 2016 - 07:38 PM, said:

-snip-
@Civilwargeeky Thank you for the excellent programs. I do have a question though. Is there a parameter to define a refuel chest, but one that is placed by the dump chest instead of an ender chest? I am in FTB Infinity Evolved also, but playing in expert and well ender chests are WAY pricy. So a wood chest stuffed with charcoal would be excellent for this situation as I kind of need the coal to make steel.

I could have sworn I added this feature so I looked back through and I sort of did. Same for above, I don't have time to code it myself, but if you want to look into it, look for functions "emergencyRefuel" at 1448 and this section at 1758
if not outOfPath and (checkFuel() <= xPos + zPos + yPos + 5) then --If the turtle can just barely get back to the start, we need to get it there. We don't want this to activate coming back though...
    local continueEvac = false --It will be set true unless at start
    if xPos ~= 0 then
	  continueEvac = emergencyRefuel() --This is a huge list of things to do in an emergency
    end
    if continueEvac then
	  eventClear() --Clear any annoying events for evac
	  local currPos = yPos
	  endingProcedure() --End the program
	  print("Turtle ran low on fuel so was brought back to start for you :)/>\n\nTo resume where you left off, use '-startDown "..tostring(currPos-1).."' when you start")
	  error("",0)
    end
  end
and functions "drop" and "dropOff" at 2017 and 2080 respectively. If you also look at how to add a parameter around 630, you should be well on your way to making something that can do what you intend :)



#246955 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 29 February 2016 - 01:35 AM in Turtle Programs

View PostRancordian, on 28 February 2016 - 09:06 PM, said:

-snip-

You are right. Now line 19 is the error
If i understand it right i can enable lua5.1 in the cinfig and it should be fixed?
Oh wow. I didn't even know that was a thing. Yes. In your Computercraft config there should be a line
	# Set this to true to disable Lua 5.1 functions that will be removed in a future update. Useful for ensuring forward compatibility of your programs now.
	B:disable_lua51_features=false
And setting this to false should allow my program to work.
Lua 5.1 has altered the concept of environment so I can no longer get a function's environment or set it through a function.

I don't know if this would also allow my program to work with ComputercraftEdu as well or not. I guess they had different defaults.

I will add a note in the OP to warn people if they are having trouble in the newer versions of CC. Thanks HPWebcamAble!



#245132 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 08 February 2016 - 06:50 PM in Turtle Programs

View Postiambob1012, on 07 February 2016 - 04:46 AM, said:

hi mate is there anyway to get the rednet reciever program to work on the wireless handheld computer?
Uhm, it does?
http://imgur.com/a/hWzHu



#244054 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 23 January 2016 - 09:42 PM in Turtle Programs

Hi all! Sorry it has taken me so long to respond to all of these, but alas, I'm here now :)

View Postego003, on 01 January 2016 - 09:56 PM, said:

-snip-

View PostHeroCC, on 22 January 2016 - 09:18 PM, said:

-snip-
So for you two, at first I thought I had an issue with the 1.8.9 versions of minecraft, so I went and downloaded that and checked, and it worked fine... So then I actually looked up what Tekkit Legends was and tested it out. Apparently, Tekkit Legends does not use Computercraft, but ComputerCraftEdu, which removes several functions related to tables and environments that are essential to many parts of my program. I could make extra logic to implement those functions myself, but I don't want to add in all that logic to the main program for everyone, and I don't really to make a specialty version for Tekkit Legends right now.
I'm sorry, but for now you cannot use my program with that mod pack :(

View PostPlebbian, on 22 January 2016 - 04:18 AM, said:

-snip-
As for you, I went and did some testing and discovered that when the turtle attempts to consolidate its inventory before going back to chest, it would take the bucket out of its protected slot 16, and just move it somewhere towards the top. I am uploading 3.6.4 bugfix 5 which fixes that issue. Please redownload :)



#238406 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 19 November 2015 - 05:44 PM in Turtle Programs

View Postdkittrell, on 18 November 2015 - 04:59 PM, said:

-snip-

You need to use "-" before parameters. So you would write "quarry -oreQuarry true -doRefuel true"



#237163 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 05 November 2015 - 05:43 PM in Turtle Programs

View PostJonnhycraft, on 05 November 2015 - 12:43 PM, said:

Is there anyway to whitelist coal some how? Because it seems to be dropping coal for some reason.

Thanks in advance!
Hmm. Well, I looked at the code for awhile, trying to figure out what could be going wrong, then I tried to test my program, but my outdated minecraft setup apparently doesn't work with pastebin anymore... so I looked at more code for awhile... And I have no idea why it isn't working. Unless "turtle.refuel(0)" no longer returns true for a fuel item, I can't see any reason why it would count the fuel as a junk block. Possibly try "-doRefuel true" to see if that fixes it? I don't think it will but it might...

I'm sorry I can't reproduce or fix your problem immediately :(



#236952 Variable Size Quarry (now with Super Ore Quarry™)

Posted by civilwargeeky on 03 November 2015 - 05:19 AM in Turtle Programs

View PostGantradiesDracos, on 30 October 2015 - 05:06 PM, said:

-snip-

View PostAdirelle, on 01 November 2015 - 11:38 AM, said:

-snip-

Hi! With any issues you guys are having, feel free to make your own modifications (my license allows modification with attribution) but I am fairly swamped with schoolwork and probably will be until Christmas break. I probably won't be hunting bugs with the new MC versions any time soon. I myself haven't touched minecraft to play in over half a year now :\

As for documentation with the repeater, I think there was some in the post where I released it, but there's not much to it. Place the repeater down, add the channel the turtle says, and then it works (or doesn't work) as its intended to :)

Sorry I can't help more. Thanks for sticking with my program! :D