@Bomb Bloke Thanks that was the case I don't know why Tekkit-Legends disable that?
Is it posible to load dynamic programs like website so they can be acsessed from remote computers?
I have simple mfsu checking program that uses OpenPeripherals to check MFSU Power it works fine on computer but if I rename it to index and copy to fw_servers/windows.nt (my domain) and i try to acsess it from remote computer I get
The Website crashed!
/:17 attempt to cal nil
Please report this error to the website creator
program that I've slightly modified is here: (I didn't create this program I've just modified it so it won't use monitors original is here:
http://www.computerc...9-mfsu-monitor/)
local function padLeft(str, w)
return string.rep(" ", w - #str) .. str
end
local function findPeripheral(_type)
for _,name in pairs(peripheral.getNames()) do
if peripheral.getType(name) == _type then
return peripheral.wrap(name)
end
end
end
local mfsu = findPeripheral("mfsu")
local batbox = findPeripheral("batbox")
if not mfsu and not batbox then
error("Cannot find mfsu attached to this computer", 0)
end
local w, h = term.getSize()
local total = 0
if mfsu then
total = mfsu.getEUCapacity()
elseif batbox then
total = batbox.getCapacity()
end
os.startTimer(1)
while true do
local stored = 0
if mfsu then
stored = mfsu.getEUStored()
elseif batbox then
stored = batbox.getStored()
end
term.clear()
term.setCursorPos(1, 2)
term.setTextColour(colours.orange)
term.write("Energy:")
term.setTextColour(colours.white)
term.write(padLeft(tostring(stored), w - 7))
term.setCursorPos(1, 4)
term.setTextColour(colours.orange)
term.write("Total:")
term.setTextColour(colours.white)
term.write(padLeft(tostring(total), w - 6))
local p = (w-2) * stored / total
term.setBackgroundColour(colours.lightGrey)
term.setCursorPos(2, 8)
term.write(string.rep(" ", w-2))
term.setBackgroundColour(colours.grey)
term.setCursorPos(2, 8)
term.write(string.rep(" ", p))
term.setBackgroundColour(colours.black)
os.pullEvent("timer")
os.startTimer(1)
end