Jump to content


grand_mind1's Content

There have been 11 items by grand_mind1 (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#248950 [MC 1.7.10][CC 1.75] Peripherals++ v1.3.6, MiscPeripherals reimagined! In...

Posted by grand_mind1 on 27 March 2016 - 01:03 AM in Peripherals and Turtle Upgrades

View Postmalistaticy, on 23 March 2016 - 04:31 PM, said:

I hate to be that guy, but are you planning to update to newer mc versions? running on 1.8.9 and hate not being able to leave the house without my turtles stopping :(/>

Scratch that, just realized there are a couple alternatives haha
Development for 1.8.9 is in progress. There's not a whole lot right now, but you can track it here.



#247645 [MC 1.7.10][CC 1.75] Peripherals++ v1.3.6, MiscPeripherals reimagined! In...

Posted by grand_mind1 on 09 March 2016 - 04:10 AM in Peripherals and Turtle Upgrades

I've just released 1.3.6. It includes numerous bug fixes over the past couple of months.
Once it's approved, you can download it here.



#247498 [MC 1.7.10][CC 1.75] Peripherals++ v1.3.6, MiscPeripherals reimagined! In...

Posted by grand_mind1 on 07 March 2016 - 03:58 AM in Peripherals and Turtle Upgrades

Oh, sorry, I misread your question. This seems to be a bug. I'll look into it.



#247452 [MC 1.7.10][CC 1.75] Peripherals++ v1.3.6, MiscPeripherals reimagined! In...

Posted by grand_mind1 on 06 March 2016 - 09:25 PM in Peripherals and Turtle Upgrades

I don't have any examples with buttons right now. To answer your other question, you need to call obj.sync() to sync the render stack. Until the stack is updated, nothing will be drawn.



#243890 [MC 1.7.10][CC 1.75] Peripherals++ v1.3.6, MiscPeripherals reimagined! In...

Posted by grand_mind1 on 22 January 2016 - 04:24 AM in Peripherals and Turtle Upgrades

I just released version 1.3.5. Once it's approved on curseforge, you can download it here.
It's a pretty small update, but I couldn't wait to push the rewritten chunk loading turtle. It should work perfectly in other dimensions now.



#242764 [MC 1.7.10][CC 1.75] Peripherals++ v1.3.6, MiscPeripherals reimagined! In...

Posted by grand_mind1 on 10 January 2016 - 01:30 AM in Peripherals and Turtle Upgrades

Version 1.3.4 has just been released. You can grab it here.
You can see the full changelog here, but the most important change is that the CPU usage problems should be fixed.



#228663 Having problems with tables

Posted by grand_mind1 on 02 August 2015 - 04:25 AM in Ask a Pro

I think you can loop through the turbine table and add the energy of each turbine to the total like this:
for i, turbine in pairs(turbines) do
	Total = Total + T[i].getEnergyProducedLastTick()
end
To get rid of the decimal, you can round the total using either math.floor() or math.ceil().



Bomb Bloke has a better loop and more info on the roudning below



#227961 [MC 1.7.10][CC 1.75] Peripherals++ v1.3.6, MiscPeripherals reimagined! In...

Posted by grand_mind1 on 27 July 2015 - 11:01 PM in Peripherals and Turtle Upgrades

The ME Bridge listAll() function returns tables within a table. Each table within the overall items table contains information about a different item. For example, if I have coal and iron in my ME system, the listAll() funcion might print something like this:
Posted Image
The overall table contains two tables: One for coal and one for iron. If I had 200 different items in my ME, it would have 200 tables, one for each item. Each item table contains 4 pieces of information:
1. The unlocalized name
2. The metadata of the item
3. How much of that item is in the system
4. The localized name

With that out of the way, we can get back to your question. The reason you can't do something like
p.listAll()[265]
Is because this is going to get the 265th item in the ME system, which you don't have. It doesn't work by item ID. Instead you need to loop through every item in the ME system and find the one you want. In your case, this is iron. So, to loop through a table, we do
for k,v in pairs(p.listAll()) do
  --stuff
end
So now, 'v' is every individual item table in the overall items table. To get information out of individual item tables, we access each piece of information as a table index like I listed above. So v[1] would be the unlocalized name, v[2] the metadata, etc. From here, it's fairly simple to get the amount of iron like you wanted. You could something like this:
for k,v in pairs(p.listAll()) do
  name = v[1]
  amount = v[3]
  if name == "minecraft:iron_ingot" then
	print("You have "..amount.." iron ingots.")
  end
end

Hope this helped, and feel free to ask more questions!
Also, the Ask A Pro section on the forums is very helpful and friendly to new people.



#227824 [MC 1.7.10][CC 1.75] Peripherals++ v1.3.6, MiscPeripherals reimagined! In...

Posted by grand_mind1 on 27 July 2015 - 07:26 AM in Peripherals and Turtle Upgrades

View Postgearpenguin, on 25 July 2015 - 07:05 PM, said:

I am trying to find a way to connect nano swarms to the antenna and have searched the wiki for something like .getEntity() so that it can be controlled similar to the .getHUD in smart helmets. I have also searched for a program in the dynamic mount with no avail. if anyone knows how to link the nano swarms to the antenna it would be greatly appreciated.

Also I have tried upgrading the pocket computers by combining with the peripheral container like stated on the wiki and I cant get it to work. http://prntscr.com/7wx2w4
You link them by right clicking on an antenna. This is described on the wiki.
I just tested and couldn't get the container to work either, but I don't know much about the pocket computer upgrades so we might be doing soemthing wrong.

View PostTolarn, on 27 July 2015 - 06:33 AM, said:

Trying to setup a display for my ME network. so I can have a monitor display differen't item levels.

in lua to test im trying.

local p = peripheral.wrap("bottom")
p.listAll()[265]

This returns value nil even though I have 193 iron ingots in my ME system. using 1.3.0 for peripherals++ and using AE2 rv2 stable 10. am i doing something wrong?


Also PPP is empty for my programs for this device. I assume no programs have been added yet? or did I miss something.
That's not how you get specific items. Run p.listAll() in a lua prompt and you can see how the array is structured.
Not sure about the missing example programs. They might've failed to download, but I don't know why they would. You can view them here if you'd like.



#226739 [MC 1.7.10][CC 1.75] Peripherals++ v1.3.6, MiscPeripherals reimagined! In...

Posted by grand_mind1 on 21 July 2015 - 04:00 AM in Peripherals and Turtle Upgrades

View Postgearpenguin, on 18 July 2015 - 09:24 PM, said:

Been trying to get the smart helmets function to work. havent been able to. can someone post an example on how this works?? anything I try says "Failure: Attempt to call nil"

For some reason I can do "getPlayers" and "getHUD" but nothing listed under the antenna page. is there any way for me to 'connect' the devices in the code that I have missed. I have right clicked the smart helmet on the antenna

EDIT: NVM figured it out. If anyone has this trouble make sure an antenna is connected and type 'edit ppp/antenna/helmet'
For future reference, there are many helpful example programs like that for many peripherals in the mod.

View PostDaniel_Edits, on 20 July 2015 - 12:51 PM, said:

My friend and I have been messing around with smart helmets but we can't get the GUI/HUD to display for both of us. Is there something special we have to do? Any help would be great!
Hi, without looking at your code, it's almost impossible to determine what could be wrong. Do you mean that you can't get the same antenna to work for two helmets?



#214400 Help! Getting an error I don't how to fix.

Posted by grand_mind1 on 18 April 2015 - 05:00 AM in Ask a Pro

In your movement function, you can check if the position the user has moved to is a valid spot. Perhaps add the positions of walls to a table when they are created and loop through that to check in your movement function.