Jump to content




[CC1.53][MC1.5.2] MiscPeripherals 3.3

turtle peripheral help peripheral

  • This topic is locked This topic is locked
1238 replies to this topic

#861 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 24 April 2013 - 01:55 AM

View PostRichardG867, on 23 April 2013 - 01:49 PM, said:

No longer a coremod too.
Does that mean it has lost functionality?

#862 Ville Saari

  • Members
  • 14 posts

Posted 24 April 2013 - 05:51 AM

Documentation in original post says that the third return value of GetAuraNode() of Thaum Scanner Upgrade is supposed to be "Aura level" but what I'm getting is the base size of the node (number that never changes unless nodes merge), not the current aura level.

#863 eyeonus

  • Members
  • 13 posts

Posted 30 April 2013 - 09:14 PM

Doesn't work with IC2 anymore, as the IC2 API has changed as of industrialcraft-2_1.115.301-lf

(For example, IC2Reactor is now at "ic2/api/reactor/IC2Reactor.class")

#864 Anon

  • New Members
  • 1 posts

Posted 01 May 2013 - 07:21 AM

View Posteyeonus, on 30 April 2013 - 09:14 PM, said:

Doesn't work with IC2 anymore, as the IC2 API has changed as of industrialcraft-2_1.115.301-lf

(For example, IC2Reactor is now at "ic2/api/reactor/IC2Reactor.class")

Yep, the IC2 api has updated. I am also getting the same crash.

#865 raydeejay

  • New Members
  • 1 posts

Posted 02 May 2013 - 07:25 AM

When using an interactive sorter, I have to add some delay between method calls, or else it sort of freezes MC.

I´m connecting it with 6 blocks of network cable, in case it matters. Here´s the code that I use now, if I remove the sleep(), it freezes:

   sorter.extract(SPAWNER, SAFARI_NET, BLAZE_CHEST, 1)
   print("Mob extracted.")
   os.sleep(0.5)
   sorter.extract(SLIME_CHEST, SAFARI_NET, SPAWNER, 1)


#866 asdaarg

  • Members
  • 3 posts

Posted 02 May 2013 - 09:18 AM

I'm using this for my sorters:
function Extract(from,i,to,q)
local x=Sorter.list(from)[i]
if x==nil then
print("1. Missing Items "..(q).. " of "..i)
Send("CE")
return true
end
if x<q then
print("2. Missing Items "..(q-x).. " of "..i)
Send("CE")
return true
end
local x=Sorter.list(to)[i]
if x~=nil then
print("3. Items of same type in chest"..to.. " of type"..i..". Aborting to avoid Item loss.")
Send("CE")
return true
end
local r=Sorter.extract(from,i,to,q)
if r~=q then
print("4. Failed moving items. Missing Items "..(q-r).. " of "..i)
Send("CE")
return true
end
local x=Sorter.list(to)[i]
if x==nil then
print("5. Extraction failed with items lost: "..(q).. " of "..i)
Send("CE")
return true
end
if x~=q then
print("6. Extraction failed with items lost: "..(q-x).. " of "..i)
Send("CE")
return true
end
return false
end
It is safer than using extract directly, but it is still not completely safe. If you extract more items than a full stack, then some items can get overwritten still. Ignore the Send thing btw, that's just some rednet stuff.

#867 RichardG867

  • Members
  • 196 posts

Posted 02 May 2013 - 03:42 PM

This will hopefully be the last beta. Didn't manage to get tank rendering working again, and recipes still don't use CC items (due to an issue on their side), also time is precious.

Get it!

If you're from the future, don't worry about that, but once again I hurried and didn't even test if the thing boots.

Also, if your bug reports got wiped by the forum rollback, please repost!

EDIT: 3.2b4r2 fixes a crash bug, so much for untesting

#868 Meni

  • Members
  • 59 posts

Posted 02 May 2013 - 07:58 PM

Any idea about when the version for CC1.52 will be released?

#869 Smurf_Tech

  • New Members
  • 1 posts

Posted 02 May 2013 - 08:16 PM

For the tank turtles the suckDown(1) is providing with false, this may be due to the fact that I'm trying to pick up lava...

Any ideas on how I could get my little tank turtle to suck up the lava for me?

*Edit some hideous spellings that needed fixin

#870 eyeonus

  • Members
  • 13 posts

Posted 02 May 2013 - 09:28 PM

The new beta didn't crash at loading, so that's good news. No idea if it actually works yet, however.

#871 Nathan1852

  • Members
  • 30 posts

Posted 03 May 2013 - 10:54 AM

I found a bug wich was in the old beta and still exist in the new one.
It occurs every time i've tried to connect a Redstone Energy Cell with Redstone Energy Conduits to an Charge Station.
http://pastebin.com/5xqUyHQe

Edit: It also won't work with the newest Thermal Expansion

#872 Roachy

  • Members
  • 8 posts

Posted 04 May 2013 - 12:14 AM

I'm having problems with the Tank Turtle's API functions. Specifically I can't tell what getLiquid() is supposed to return. I'm trying to pull the amount, but getLiquid() returns both the type and amount in an unspecified format. I can't figure out if I'm supposed to split it as a string, if so what delimiter to use, or if it returns a table, or what.

What's more confusing however, is that while testing to figure out what it's actually returning, I'm getting inconsistent results. WIth 1000 mB of water in the turtle, the following code:
p = peripheral.wrap("right")

function level()
	local liquid = p.getLiquid()
	print(p.getLiquid())
	print(liquid)
	return liquid
end

print(level())

outputs:
91000
9
9
which makes no sense.

Now, I'm good with various scripting langauges, but a newbie to Lua. I don't know how Lua types or typecasting works, but I looked up how to output a variable's type and the following code:
p = peripheral.wrap("right")

function level()
	local liquid = p.getLiquid()
	print(type(p.getLiquid()))
	print(type(liquid))
	return liquid
end

level()

outputs:
number
number

and to further confound things, loading the lua prompt and entering:
peripheral.wrap("right").getLiquid()

outputs:
9
1000

So I'm totally stumped. I have no idea how to pull the liquid amount out of whatever weird thing is being returned by getLiquid(). Can you please clarify how the Tank turtle's functions are supposed to work?

Thanks,
== Roachy

#873 RichardG867

  • Members
  • 196 posts

Posted 04 May 2013 - 08:03 AM

liquid, amount = p.getLiquid()


#874 RichardG867

  • Members
  • 196 posts

Posted 04 May 2013 - 11:14 AM

3.2 released. It'll be a two-part update since I needed it out right now, but have a feature to add. Look out for the special surprise.

If peripherals render funny, it's not my fault.

#875 KingDarkLord

  • Members
  • 7 posts
  • LocationSecret Lair of KDL

Posted 04 May 2013 - 11:34 AM

You added Voices =)

#876 RichardG867

  • Members
  • 196 posts

Posted 04 May 2013 - 11:35 AM

Congratulations, you won, wow so quick.

I need your Minecraft username

#877 KingDarkLord

  • Members
  • 7 posts
  • LocationSecret Lair of KDL

Posted 04 May 2013 - 11:36 AM

Its the same as my username here

#878 RichardG867

  • Members
  • 196 posts

Posted 04 May 2013 - 12:14 PM

Documentation updated, have fun.

#879 Roachy

  • Members
  • 8 posts

Posted 04 May 2013 - 01:32 PM

View PostRichardG867, on 04 May 2013 - 08:03 AM, said:

liquid, amount = p.getLiquid()

Thank you kind sir. I had no idea you could return multiple values like that.

#880 Nathan1852

  • Members
  • 30 posts

Posted 04 May 2013 - 01:58 PM

It seems like there is a bug with the Charge Station.
When it's internal Storage is full of (Buildcraft-) Power and you place a Turtle next to it, the Turtle will not be charged.
This can be fixed by breaking the Charge Station and place it again.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users