Posted 08 March 2013 - 04:32 PM
I think there need to be more programs allowing for mods, or plugins. I have created a simple script; it has a main function and then loops through the mods that are all loaded in a folder and runs them, but of course I am not that good and complex stuff n' things. So, I am opening the idea of something we need more of, customization. The 'OS'es that exist could have plugins and stuff, firewolf adds and more.
Here is my basic script:
Here is my basic script:
Spoiler
http://pastebin.com/nrdxqFaS
modFolder = "/mods"
mods = {}
function main()
print("hello")
end
for k, v in pairs(fs.list(modFolder)) do
local f = fs.open(modFolder.."/"..v, "r")
if f then
mods[v] = loadstring(f.readAll())
end
f.close()
end
while true do
main()
for k, v in pairs(mods) do
mods[k]()
end
end