This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CCTech's profile picture

"loader:12: attempt to inder ? (a nil value)" While there is no error

Started by CCTech, 26 December 2018 - 08:22 PM
CCTech #1
Posted 26 December 2018 - 09:22 PM
Hello dear Community, :D/>

I am experiencing following while working on a new (don't ask why I am doing many projects at a time) project:

When I want to test my project I'm getting the error seen in the title. I also tried the "fix" in the pinned topic but resultless..

I don't know why or what is causing that error. This is my program that causes the error:


function startupmenu()
local time = 0
  while time == 0 do
	term.clear()
	term.setBackgroundColor(colors.black)


	local event, key = os.pullEvent("key")
	if key == keys.f then
	  shell.run("/.menu/menu.dll")
	break
	end
	sleep(1)
	time=time+1
	end
end

As you can see line 12 is "shell.run()" I don't know why it won't work. I hope that you can help me :P/>
Edited on 26 December 2018 - 08:24 PM
Lupus590 #2
Posted 27 December 2018 - 12:21 AM
are you making an API? if so, the shell API doesn't exist in the API enviroment
CCTech #3
Posted 28 December 2018 - 09:45 PM
are you making an API? if so, the shell API doesn't exist in the API enviroment

Indeed. That was my problem… :P/> Thanks! I didn't know that, and sorry for the late answer I was a bit busy.