[mc 1.6.x] Openperipheral
#1161
Posted 19 March 2014 - 10:58 AM
How about an enchantment version of the terminal glasses with an activate keybinding? Going along the same lines of the convenience of the reading glasses / reading I enchant from bibliocraft.
Thanks
#1162
Posted 19 March 2014 - 02:19 PM
theoriginalbit, on 19 March 2014 - 04:57 AM, said:
Pharap, on 19 March 2014 - 03:57 AM, said:
Is that because it's just a wrapper for another API or because it uses reflection to investigate other mods or something?
Surely using peripheral.getMethods() would be enough to tell you what methods are exposed and then you can just list them along with what they do and what parameters/returns are involved in calling them.
#1163
Posted 19 March 2014 - 04:09 PM
(Do not bother asking for the Code as its privite at this time due to a lot of specific back end code).
https://www.youtube....h?v=I7Z4b_aHi3U
#1164
Posted 19 March 2014 - 04:12 PM
Pharap, on 19 March 2014 - 02:19 PM, said:
theoriginalbit, on 19 March 2014 - 04:57 AM, said:
Pharap, on 19 March 2014 - 03:57 AM, said:
Is that because it's just a wrapper for another API or because it uses reflection to investigate other mods or something?
Surely using peripheral.getMethods() would be enough to tell you what methods are exposed and then you can just list them along with what they do and what parameters/returns are involved in calling them.
#1165
Posted 19 March 2014 - 08:26 PM
Engineer, on 19 March 2014 - 04:12 PM, said:
Pharap, on 19 March 2014 - 02:19 PM, said:
theoriginalbit, on 19 March 2014 - 04:57 AM, said:
Pharap, on 19 March 2014 - 03:57 AM, said:
Is that because it's just a wrapper for another API or because it uses reflection to investigate other mods or something?
Surely using peripheral.getMethods() would be enough to tell you what methods are exposed and then you can just list them along with what they do and what parameters/returns are involved in calling them.
Looking at the 'documentation script' all open peripherals are guaranteed to have the getAdvancedMethodsData() function.
Instead of just providing a script that people have to read through to figure out which function(s) all open peripherals expose, it would be nice if there was a list of the functions with their parameters/returns on this thread.
I'm not saying get rid of the script or list all the tile entity exposed functions, nor am I saying get rid of the mod's internal documentation.
What I am saying is that it would be good to have clearer documentation without having to download the mod first or having to sit and watch a 17 minute video.
Also, the first post in the thread doesn't actually say what the mod does (discounting the videos).
#1166
Posted 19 March 2014 - 10:36 PM
Pharap, on 19 March 2014 - 02:19 PM, said:
Pharap, on 19 March 2014 - 08:26 PM, said:
Yes they are, that function provides a list of all the methods, a small description of the methods purpose, the arguments it needs, and a small description for each argument.
Pharap, on 19 March 2014 - 08:26 PM, said:
No, nothing will be added to this thread, Mikee isn't active enough, it'd have the same problem as previously, it'd get outdated and be the cause of massive headaches. As for providing "a list of functions" I've said it before and I'll say it again, this is impossible. Why? Well it is because we look for interfaces that are present in Mods APIs, meaning that any mod can inherit these; for example, we look for Buildcrafts IPowerReceptor, which allows machines to interact with a BuildCraft power network. What machines use this interface? we have no clue! I know there's machines in Buildcraft that use it and theres machines and storage in ThermalExpansion that use it, but what about all those other mods out there that use the Buildcraft API? we simply do not have the time to go through every single possible mod and all its items each time we add a new interface to see if we now support it or not, not to mention the we had problems with keeping the last website up-to-date! If you want this magical list of everything our open-ended mod supports, feel free to go ahead and make it, you won't go unappreciated. but one thing is for sure, we won't be doing it any time in the foreseeable future.
Pharap, on 19 March 2014 - 08:26 PM, said:
well that's good, 'cause we wouldn't anyway, that documentation is there for us, which has the other effect of being there for you guys through the getAdvancedMethodData function
Pharap, on 19 March 2014 - 08:26 PM, said:
Pharap, on 19 March 2014 - 08:26 PM, said:
#1167
Posted 19 March 2014 - 11:41 PM
Test 1:
Initial Conditions: Minecraft with addtional mods installed, apart from computercraft; open peripherals
Parameters:
- Forge: forge-1.6.4-9.11.1.965
- OpenModsLib: OpenModsLib-0.3.jar
- OpenPeripheralCore: OpenPeripheralCore-0.3.2.jar
- OpenPeripheral-Addons: OpenPeripheralAddons-0.1.2.jar
Double chest; forestry Apiarists Chest
Results:
Failed for the double chest as mentioned earlier, however it was successful for the Apiarists chest. The apiarists chest has an inventory of 125 slots, and returned items without errors for the slots which i tested ( 25, 27,60,125)
---------------------
Test 2:
Initial Conditions: Minecraft with addtional mods installed, apart from computercraft; open peripherals
Parameters:
- Forge: forge-1.6.4-9.11.1.965
- OpenModsLib: OpenModsLib-0.4b.jar
- OpenPeripheralCore: OpenPeripheralCore-0.3.3.jar
- OpenPeripheral-Addons: OpenPeripheralAddons-0.1.3.jar
Double chest; forestry Apiarists Chest
Results:
Same as above
---------------------
Test 3:
Initial Conditions: Clean version of Minecraft with only computercraft; open peripherals
Parameters:
- Forge: forge-1.6.4-9.11.1.965
- OpenModsLib: OpenModsLib-0.3.jar
- OpenPeripheralCore: OpenPeripheralCore-0.3.2.jar
- OpenPeripheral-Addons: OpenPeripheralAddons-0.1.2.jar
Double chest.
Results:
Failed for the double chest, and does not appear to be an issue created by another mod.
---------------------
Test 4:
Initial Conditions: Minecraft with addtional mods installed, apart from computercraft; open peripherals
Parameters:
- Forge: forge-1.6.4-9.11.1.965
- OpenModsLib: OpenModsLib-0.2.jar
- OpenPeripheralCore: OpenPeripheralCore-0.3.1.jar
- OpenPeripheral-Addons: OpenPeripheralAddons-0.1.1.jar
Double chest; forestry Apiarists Chest
Results:
Successful for both inventories tested.
-------------
As a side question. For the latest version using OpenModsLib 0.4b, how is the new feature below intended to work?
I called the method using the in game documentation and it displayed 2 new arguments using strings both of which state -(string)from: direction. Is it supposed to display a to string?
-
Feature: added InventoryUtils.swapStack (normal and sided inventory version)
#1168
Posted 19 March 2014 - 11:50 PM
MechE_, on 19 March 2014 - 11:41 PM, said:
MechE_, on 19 March 2014 - 11:41 PM, said:
MechE_, on 19 March 2014 - 11:41 PM, said:
#1169
Posted 20 March 2014 - 06:01 PM
theoriginalbit, on 19 March 2014 - 10:36 PM, said:
No, nothing will be added to this thread, Mikee isn't active enough.
theoriginalbit, on 19 March 2014 - 10:36 PM, said:
If there are absolutely no functions that are exposed by all TileEntity-Peripherals then there is nothing to document other than the mod's functionality.
theoriginalbit, on 19 March 2014 - 10:36 PM, said:
theoriginalbit, on 19 March 2014 - 10:36 PM, said:
theoriginalbit, on 19 March 2014 - 10:36 PM, said:
theoriginalbit, on 19 March 2014 - 10:36 PM, said:
Edited by Pharap, 20 March 2014 - 06:01 PM.
#1170
Posted 20 March 2014 - 06:47 PM
The solution would seem to be to document your support for the interfaces. Formatted comments in the code supporting those interfaces (unless you expose them directly somehow? That would kill this idea) that could be used to generate the documentation. It wouldn't be quite as user-friendly as a machine-by-machine breakdown, but something like, "All tile entities with Fluid tanks support these peripheral methods:" might be nice.
#1171
Posted 21 March 2014 - 11:58 PM
theoriginalbit, on 12 December 2013 - 07:35 PM, said:
dariys, on 12 December 2013 - 09:54 AM, said:
Also what version of OpenPeripheral do you have, I'll run my own tests.
I'm having the same issue. A call (to getAllStacks on a player interface/chest, presumable other as well) is working fine in the main thread, but is returning the error '1' when called from a coroutine.
I've tested this on both SMP and SSP.
I'm running FTB Monster 1.1.0, which uses:
MC 1.6.4
FML 6.4.49.965
Forge 9.11.1.965
CC 1.5.8
OpenMods 0.2
OpenPeripheralCore 0.3.1
OpenPeripheralAddons 0.1.1
No relevant error messages are shown on the server/client.
I've also tried the latest versions from jenkins, but this made my MC crash. I guess they need 1.7.4? Or I did something wrong, I honestly didn't spend all that long trying.
If there is anything relevant that I missed, or anything I can do to test this/work around this, let me know.
#1172
Posted 22 March 2014 - 05:05 PM
theoriginalbit, on 19 March 2014 - 11:50 PM, said:
MechE_, on 19 March 2014 - 11:41 PM, said:
MechE_, on 19 March 2014 - 11:41 PM, said:
MechE_, on 19 March 2014 - 11:41 PM, said:
Hopefully its not too hard to track down.
Ill have to play around with that feature. I was hoping it was a fix to another issue i have been having with the method pushItemIntoSlot, although it was a strecth since its swapStacks method...,at any rate, I cannot push into Invenotries on the short side of double chests.
There's a font bug? what font bug?
Lol Normally I dont play with the bug, but I was just testing so I didnt bother with the extra step.
#1173
Posted 22 March 2014 - 10:04 PM
MechE_, on 22 March 2014 - 05:05 PM, said:
#1174
Posted 22 March 2014 - 10:08 PM
#1176
Posted 22 March 2014 - 10:10 PM
theoriginalbit, on 22 March 2014 - 10:04 PM, said:
MechE_, on 22 March 2014 - 05:05 PM, said:
Hoozah! Thanks
#1177
Posted 22 March 2014 - 10:25 PM
theoriginalbit, on 22 March 2014 - 10:09 PM, said:
Yeah. Still looking for a more permanent solution, but as you know.....other things tend to keep one busy, and semi broken things get pushed to the bottom of the to do list. Ive got a whole week off though, so its time for me to tackle those things; i also have to figure out how to get back into my server, i locked myself out of ssh. I accidentally changed the passwords from within samba.... apparently the server didn't like that. By accidentally i mean i didnt know any better. lol >< Oh the list goes on. lol
#1178
Posted 23 March 2014 - 07:11 AM
For example, you give out up to 16 Wireless Glasses to two players. One is tagged either with a number or colour, let's say black, and the other is tagged with white. From the glasses we could read the black ones from the linked modem into the computer and determine things like X, Y Z (decimal cords, not just integer), chunk cords, player name, item ID's in armour slots, and item ID's in the hotbar slots, health, armour level, etc.
This would make mini-game creation a dream.
#1179
Posted 23 March 2014 - 08:33 PM
#1180
Posted 23 March 2014 - 09:24 PM
CometWolf, on 23 March 2014 - 08:33 PM, said:
Where exactly should I be looking? http://www.openperipheral.info/ has nothing but download links and change logs. Computercraft.info doesn't provide anything for openperipherals in the Peripherals and AddOns, FTB wiki has a stub page for the entire mod. The only info I have is from NEI and it doesn't tell you how to use it.
Google search for OpenPeripherals provides a couple of forum threads for the general mod, some youtube videos, and a link to openperipheral.info. For someone coming in new, there isn't a lot of easily identifiable sources of info.
Maybe I didn't look hard enough, I don't know, but if you can point me to somewhere I can read up on this, I'd be happy to do so.
Edited by mckerrnel, 23 March 2014 - 11:13 PM.
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users