local event = require('event')
event.listen('init', function()
-- Put your code here
end)
This should fix you're problems. It listens for the 'init' event which is pushed when the components are ready.
I've stopped working on my emulator a while ago but while writing it, I was able to use a few bits of OC's source code to write the emulator. I used things such as, NativeLuaArchitecture and components' code.
The reason why I stopped working on the emulator is because, since OC 1.3 was coming out with breaking changes, I would have to redo a lot of the emulator. But since OC 1.3 changes are starting to show in commits, I might start working on the emulator again.
Please use code tags next time when posting code.
Colored text:
local component = require('component')
local gpu = component.gpu
gpu.setForeground(0x00FF00)
gpu.set(1, 1, 'Hello, world!')
The previous forms used IP.Board but the guy that had the license key for it and was helping us host it is busy with things so we had to resort to PhpBB.