-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from max-bacon/dev
Dev
- Loading branch information
Showing
483 changed files
with
18,853 additions
and
219,606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,9 @@ temp/ | |
|
||
*.rbxlx.lock | ||
*.rbxl.lock | ||
|
||
BuildScripts/Build/* | ||
|
||
!BuildScripts/Build/.gitkeep | ||
|
||
!default.base.rbxl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"languageMode": "strict", | ||
"lint": { "*": true, "LocalUnused": false, "FunctionUnused": false, "ImportUnused": false}, | ||
"lintErrors": true, | ||
"typeErrors": true, | ||
"globals": [] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--[[ | ||
lune extract.luau | ||
]] | ||
|
||
local roblox = require("@lune/roblox") | ||
local fs = require("@lune/fs") | ||
|
||
local ignore = { | ||
"Camera", | ||
"Packages", | ||
"Terrain", | ||
} | ||
|
||
local restrict = {} | ||
|
||
local placeFile = fs.readFile(".lune/map.rbxl") | ||
local game = roblox.deserializePlace(placeFile) | ||
|
||
local function check(name, checkArr) | ||
for _, c in pairs(checkArr) do | ||
if c == name then | ||
return true | ||
end | ||
end | ||
return false | ||
end | ||
|
||
local function isFile(name: string) | ||
-- print(name) | ||
if fs.isFile(name .. ".rbxm") then | ||
return true | ||
else | ||
return false | ||
end | ||
end | ||
|
||
local function main(save: string, loc) | ||
local Models = loc | ||
fs.writeDir(save) | ||
|
||
for _, entryName in fs.readDir(save) do | ||
if fs.isFile(entryName) then | ||
fs.removeFile(entryName) | ||
end | ||
end | ||
|
||
for _, model in ipairs(Models:GetChildren()) do | ||
print(model.Name) | ||
if not check(model.Name, ignore) then | ||
if isFile(save .. model.Name) and not check(model.Name, restrict) then | ||
local i = 0 | ||
repeat | ||
i = i + 1 | ||
until not isFile(save .. model.Name .. i) | ||
|
||
fs.writeFile(save .. model.Name .. i .. ".rbxm", roblox.serializeModel({model})) | ||
else | ||
fs.writeFile(save .. model.Name .. ".rbxm", roblox.serializeModel({model})) | ||
end | ||
end | ||
end | ||
end | ||
|
||
main("assets/Workspace/", game.Workspace) | ||
main("assets/Lighting/", game.Lighting) | ||
main("assets/ServerStorage/", game.ServerStorage) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--[[ | ||
lune lighting-extract.luau | ||
]] | ||
|
||
local roblox = require("@lune/roblox") | ||
local fs = require("@lune/fs") | ||
|
||
local save = "assets/Lighting/" | ||
|
||
local placeFile = fs.readFile(".lune/map.rbxl") | ||
local game = roblox.deserializePlace(placeFile) | ||
|
||
local function isFile(name: string) | ||
if fs.isFile(name .. ".rbxm") then | ||
return true | ||
else | ||
return false | ||
end | ||
end | ||
|
||
local Models = game.Lighting | ||
fs.writeDir(save) | ||
|
||
for _, entryName in fs.readDir(save) do | ||
if fs.isFile(entryName) then | ||
fs.removeFile(entryName) | ||
end | ||
end | ||
|
||
for _, model in ipairs(Models:GetChildren()) do | ||
print(model.Name) | ||
if isFile(save .. model.Name) then | ||
local i = 0 | ||
repeat | ||
i = i + 1 | ||
until not isFile(save .. model.Name .. i) | ||
|
||
fs.writeFile(save .. model.Name .. i .. ".rbxm", roblox.serializeModel({ model })) | ||
else | ||
fs.writeFile(save .. model.Name .. ".rbxm", roblox.serializeModel({ model })) | ||
end | ||
end |
Binary file not shown.
Oops, something went wrong.