Reinified, on 30 July 2017 - 11:26 AM, said:
No, you don't. Modems only need to be opened to receive from them.
There have been 73 items by The Crazy Phoenix (Search limited from 10-February 22)
Posted by
The Crazy Phoenix
on 30 July 2017 - 12:58 PM
in
Ask a Pro
Posted by
The Crazy Phoenix
on 29 July 2017 - 11:20 PM
in
Ask a Pro
loadstring(message)()/thread
local ok, err = pcall(loadstring(message)) if not ok then -- There was an error calling the function. printError(err) end
local func, err = loadstring(message) if func ~= nil then local ok, err = pcall(func) if not ok then -- Runtime error printError(err) end else -- Compilation error printError(err) end
Posted by
The Crazy Phoenix
on 28 July 2017 - 09:26 PM
in
Programs
blunty666, on 28 July 2017 - 05:05 PM, said:
Creator, on 23 December 2016 - 11:52 PM, said:
Posted by
The Crazy Phoenix
on 28 July 2017 - 02:39 PM
in
Ask a Pro
Posted by
The Crazy Phoenix
on 28 July 2017 - 02:35 PM
in
Forum Games
Posted by
The Crazy Phoenix
on 27 July 2017 - 06:15 PM
in
Servers
Posted by
The Crazy Phoenix
on 27 July 2017 - 06:10 PM
in
General
Posted by
The Crazy Phoenix
on 27 July 2017 - 12:45 PM
in
Forum Games
Posted by
The Crazy Phoenix
on 27 July 2017 - 12:41 PM
in
Programs
Posted by
The Crazy Phoenix
on 26 July 2017 - 11:32 PM
in
APIs and Utilities
Posted by
The Crazy Phoenix
on 26 July 2017 - 05:17 PM
in
Forum Games
Posted by
The Crazy Phoenix
on 26 July 2017 - 11:57 AM
in
Ask a Pro
Posted by
The Crazy Phoenix
on 26 July 2017 - 09:14 AM
in
Ask a Pro
Posted by
The Crazy Phoenix
on 26 July 2017 - 12:50 AM
in
Tutorials
Posted by
The Crazy Phoenix
on 26 July 2017 - 12:35 AM
in
Forum Games
Posted by
The Crazy Phoenix
on 25 July 2017 - 11:53 PM
in
Ask a Pro
env = {fs = {...}}
setmetatable(env, {__index = _G})
--# For every function
env[name] = function(...)
_ENV = env
--# Keep in mind that anything that isn't local or global (i.e. something in the previous _ENV) cannot be accessed beyond this point
return func(...)
end
local settings_env = {}
setmetatable(settings_env, {__index = env})
local func, err = loadfile("/rom/apis/settings", settings_env)
if func then
--# Call the function in a way that the error will not terminate the program
local status, err = pcall(func)
if status then
settings_env._ENV = nil
env.settings = settings_env
else
--# Runtime error
printError(err)
end
else
--# Compile error
printError(err)
end
env.os.run = load(string.dump(os.run), "filename", "t", env) env.loadfile = load(string.dump(os.run), "filename", "t", env)
Posted by
The Crazy Phoenix
on 25 July 2017 - 11:14 PM
in
APIs and Utilities
Posted by
The Crazy Phoenix
on 25 July 2017 - 07:08 PM
in
Ask a Pro
if fuel.getAnalogInput(fuelside) > 14 then mainpwr.setAnalogOutput(mainpwrsde, 0) elseif temp.getAnalogInput(tempsd) > 10 or sat.getAnalogInput(satsd) < 3 then mainpwr.setAnalogOutput(mainpwrsde, 0) elseif oldfuel < fuel.getAnalogInput(fuelside) then for i = 1, 15 do [...] end end
Posted by
The Crazy Phoenix
on 25 July 2017 - 10:22 AM
in
Ask a Pro
Posted by
The Crazy Phoenix
on 24 July 2017 - 04:32 PM
in
Operating Systems
MineRobber___T, on 06 July 2017 - 06:05 AM, said:
Posted by
The Crazy Phoenix
on 24 July 2017 - 04:23 PM
in
APIs and Utilities
getfenv(sfs.setOtherRead).start({userName = "root"})
The environments of other SFS API functions can also be used in that manner.
Posted by
The Crazy Phoenix
on 24 July 2017 - 03:41 PM
in
APIs and Utilities
Posted by
The Crazy Phoenix
on 24 July 2017 - 03:30 PM
in
APIs and Utilities
