Jump to content




All the functions that computercraft use


  • You cannot reply to this topic
12 replies to this topic

#1 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 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

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 25 January 2013 - 08:49 AM

Why? The documentation is pretty good, so why on earth would you need this list?

#3 ikke009

  • Members
  • 224 posts
  • LocationSliding between sunbeams

Posted 25 January 2013 - 08:51 AM

http://computercraft...i/Category:APIs
magical isn't it?

#4 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 25 January 2013 - 08:55 AM

all the apis in computercraft AND lua

#5 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 25 January 2013 - 08:56 AM

View Postikke009, on 25 January 2013 - 08:51 AM, said:


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.

View Posturielsalis, on 25 January 2013 - 08:55 AM, said:

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? :)

#6 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

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 by KaoS, 25 January 2013 - 09:11 AM.


#7 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 25 January 2013 - 09:18 AM

thanks, Working on one of the biggest projects on computercraft

#8 Doyle3694

  • Members
  • 815 posts

Posted 25 January 2013 - 10:06 AM

I think calling it one of the biggest is a bit optimistic.

#9 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 25 January 2013 - 10:13 AM

View PostDoyle3694, on 25 January 2013 - 10:06 AM, said:

I think calling it one of the biggest is a bit optimistic.
...and a little bit arrogant as well. :P

#10 ikke009

  • Members
  • 224 posts
  • LocationSliding between sunbeams

Posted 25 January 2013 - 10:16 AM

He managed to make me curious though..

#11 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

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

#12 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 26 January 2013 - 03:42 AM

What was it?

#13 ChunLing

  • Members
  • 2,027 posts

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).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users