This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
All the functions that computercraft use
Started by FuuuAInfiniteLoop(F.A.I.L), 25 January 2013 - 07:42 AMPosted 25 January 2013 - 08:42 AM
as the title says i need a list of all the apis and functions that are included in computercraft, im making a project and i need that list
Posted 25 January 2013 - 08:49 AM
Why? The documentation is pretty good, so why on earth would you need this list?
Posted 25 January 2013 - 08:51 AM
http://computercraft.info/wiki/Category:APIs
magical isn't it?
magical isn't it?
Posted 25 January 2013 - 08:55 AM
all the apis in computercraft AND lua
Posted 25 January 2013 - 08:56 AM
http://computercraft.info/wiki/Category:APIs
magical isn't it?
That does cover the things ComputerCraft adds, but the wiki doesn't generally duplicate documentation for the normal Lua functions, so it is not exhaustive.
all the apis in computercraft AND lua
I don't think anyone has put a comprehensive list like that together, mostly because it's unnecessary. Why don't you go ahead and assemble it? :)/>
Posted 25 January 2013 - 09:02 AM
local function tList(t,path)
for k,v in pairs(t) do
if type(v)=="table" and v~=_G then
tList(v,(path or "").."->"..k)
elseif type(v)=="function" then
print((path or "").."->"..k)
end
end
end
tList(_G)
that will give you a list of all functions that are global
EDIT: please note that if there are any global, recursive tables it will crash… I can make a way around that easily but will only do so if you need it
Edited on 25 January 2013 - 08:11 AM
Posted 25 January 2013 - 09:18 AM
thanks, Working on one of the biggest projects on computercraft
Posted 25 January 2013 - 10:06 AM
I think calling it one of the biggest is a bit optimistic.
Posted 25 January 2013 - 10:13 AM
…and a little bit arrogant as well. :P/>I think calling it one of the biggest is a bit optimistic.
Posted 25 January 2013 - 10:16 AM
He managed to make me curious though..
Posted 25 January 2013 - 03:38 PM
it dowsnt matter project cancelled, MP if you want to know what the project was
EDIT: due to technical difficulties on how lua works
EDIT: due to technical difficulties on how lua works
Posted 26 January 2013 - 03:42 AM
What was it?
Posted 26 January 2013 - 11:48 AM
Was it bigger than that universe simulator someone proposed a while back? Which also was scrapped due to the limitations of Lua?
I'm not saying that dreaming big isn't a good thing. Just that you need to be careful not to appear as someone who doesn't believe that other people are also dreaming big dreams.
I dreamed of writing a program that would save the world. But it proved more difficult and less lucrative than siding with those planning to destroy it. So I know how it feels, to give up on a big dream. Don't let it get you down, at least not all the time (I have wistful moments myself, from time to time).
I'm not saying that dreaming big isn't a good thing. Just that you need to be careful not to appear as someone who doesn't believe that other people are also dreaming big dreams.
I dreamed of writing a program that would save the world. But it proved more difficult and less lucrative than siding with those planning to destroy it. So I know how it feels, to give up on a big dream. Don't let it get you down, at least not all the time (I have wistful moments myself, from time to time).