Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArg = {...}
- local Path = fs.combine(tArg[1],"Paradise.cpf")
- function SetupFolder()
- fs.makeDir(Path)
- fs.makeDir(fs.combine(Path,"Images"))
- fs.makeDir(fs.combine(Path,"Images/Objects"))
- fs.makeDir(fs.combine(Path,"Images/Entities"))
- fs.makeDir(fs.combine(Path,"Images/Icons"))
- fs.makeDir(fs.combine(Path,"Images/Events"))
- fs.makeDir(fs.combine(Path,"Images/Other"))
- fs.makeDir(fs.combine(Path,"Islands"))
- fs.makeDir(fs.combine(Path,"Saves"))
- fs.makeDir(fs.combine(Path,"Objects"))
- fs.makeDir(fs.combine(Path,"Objects/Buildings"))
- fs.makeDir(fs.combine(Path,"Objects/Resources"))
- fs.makeDir(fs.combine(Path,"Groups"))
- fs.makeDir(fs.combine(Path,"AppData"))
- end
- function DownloadImages()
- --Buildings
- local B1 = fs.open(fs.combine(Path,"Images/Buildings/Dock1.nfp"),"w")
- B1.writeLine("88888")
- B1.writeLine("88877")
- B1.writeLine("cc")
- B1.writeLine("cc")
- B1.close()
- --Entities
- --Icons
- --Events
- --other
- end
- function DownloadObjects()
- end
- function DownloadIslands()
- end
- function DownloadCore()
- end
- function Finalize()
- local Options = {"Version" = "1.0", "InstDate" = os.date(), "filePath" = Path}
- local file = fs.open(fs.combine(Path,"ParadiseConfig.txt"),"w")
- file.write(textutils.serialize(Options))
- file.close()
- end
- SetupFolder()
- DownloadImages()
Add Comment
Please, Sign In to add comment