TIE [Turtle Inventory Emulator] - Is it useful?
#1
Posted 12 June 2013 - 02:46 PM
Now I want to know if it's useful in any way!
So, have you a use for it?
If it isn't useful in any way, I won't make it more complex.
Thanks for reading
-Freack100-
Edit :
Yes, I know that I haven't uploaded it yet.
#2
Posted 12 June 2013 - 05:53 PM
#3
Posted 15 June 2013 - 01:48 PM
It might be useful for testing turtle programs without doing stuff
#4
Posted 15 June 2013 - 06:44 PM
#5
Posted 15 June 2013 - 06:56 PM
electrodude512, on 15 June 2013 - 06:44 PM, said:
I hope you know how the "OOP" in the API works />
Examplecode:
os.loadAPI("TIE") Inv1 = TIE.Inventory.create() Inv1:select(4):setItem("Stone"):setAmount(30) print(Inv1:getInformation()) --[[ this code would print "Slot 4 contais 30 Stone" :D/>/> ]]--
#6
Posted 16 June 2013 - 09:00 AM
#7
Posted 16 June 2013 - 11:19 AM
http://www.computerc...n-cc-emu-kinda/
#8
Posted 16 June 2013 - 11:34 AM
theoriginalbit, on 16 June 2013 - 11:19 AM, said:
http://www.computerc...n-cc-emu-kinda/
But I don't think I can use it because your API works very differently than mine ^^
yours overrides the native turtle commands.
Mine uses two tables (one for the name, one for the amount) and edits it ^^
On-Topic:
Now I'm working on a Movement emulation!
In this moment it has a limitation of the area (6*16) but I will add the normal area of the computer (19*51)
#9
Posted 16 June 2013 - 11:39 AM
Freack100, on 16 June 2013 - 11:34 AM, said:
But I don't think I can use it because your API works very differently than mine ^^
yours overrides the native turtle commands.
Mine uses two tables (one for the name, one for the amount) and edits it ^^
#10
Posted 16 June 2013 - 11:44 AM
#11
Posted 16 June 2013 - 11:48 AM
Sorroko, on 16 June 2013 - 11:44 AM, said:
Some people in their scripts do use turtle.native in their scripts, so if you're going to make a script to allow testing of turtle code in CC-Emu then you need to allow for all variables.
#12
Posted 16 June 2013 - 11:49 AM
#13
Posted 16 June 2013 - 03:44 PM
| |
thats right!
I've got an idea!
This API is quite useful for games
(It has working Invetorys and some Movement)
#14
Posted 18 June 2013 - 04:25 PM
This would be useful if you send the info to a computer and then displayed the inventory, but on the turtle it's totally useless.
#15
Posted 18 June 2013 - 05:00 PM
Icanbreathecode, on 18 June 2013 - 04:25 PM, said:
This would be useful if you send the info to a computer and then displayed the inventory, but on the turtle it's totally useless.
The system behind my API is quite simple.
1. You create a new Inventory
2. You can set/drop/select/whatever the inventory
(3.) Print out informations about the slot
This don't get real data, it creates Virtual Inventorys.
#16
Posted 18 January 2017 - 03:53 AM
#18
Posted 20 January 2017 - 03:02 AM
If you really want an explanation of what I'm doing... I'm not really sure enough about any specifics to explain it to you. Sorry.
#19
Posted 20 January 2017 - 01:47 PM
As for the inventory-api.lua, I don't know anything of that (another project member wrote it). It's licensed as MIT so if it's useful to you then just credit the Hive Development Team (or whetever we named ourselves in the License file at the root of the repo)
You may want to look at the inventory management code of this project: http://www.computerc...ers-turtle-api/
Also, why Object-Oriented (OO)? OO in Lua slows down the code.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users