Skip to content

Commit

Permalink
Terrain:Clear() and task.wait between chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
ari-party committed Oct 13, 2024
1 parent c2eee21 commit a37658d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 47 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# terrain-region-plugin

Alternative to [@sleitnick's terrain save and load plugin](https://create.roblox.com/store/asset/148042198/Terrain-Save-and-Load). Saves terrain into multiple regions.

For the Luau module, see [load.luau](https://github.com/grand-hawk/terrain-region-plugin/blob/main/src/shared/load.luau).

See [releases](https://github.com/grand-hawk/terrain-region-plugin/releases) tab or install from [the creator hub](https://create.roblox.com/store/asset/91863372715067).

![RobloxStudioBeta_vXqEP1ws2f](https://github.com/user-attachments/assets/ad2fcbd8-7cbd-4c66-a25b-180c1f8927b2)
![image](https://github.com/user-attachments/assets/b9a7a545-2add-4f09-8c0a-07f3c2e05c82)
# terrain-region-plugin

Alternative to [@sleitnick's terrain save and load plugin](https://create.roblox.com/store/asset/148042198/Terrain-Save-and-Load). Saves terrain into multiple regions.

For the Luau module, see [load.luau](https://github.com/grand-hawk/terrain-region-plugin/blob/main/src/shared/load.luau).

See [releases](https://github.com/grand-hawk/terrain-region-plugin/releases) tab or install from [the creator hub](https://create.roblox.com/store/asset/91863372715067).

![RobloxStudioBeta_vXqEP1ws2f](https://github.com/user-attachments/assets/ad2fcbd8-7cbd-4c66-a25b-180c1f8927b2)
![image](https://github.com/user-attachments/assets/b9a7a545-2add-4f09-8c0a-07f3c2e05c82)
74 changes: 37 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{
"name": "terrain-region-plugin",
"version": "0.2.0",
"license": "MIT",
"scripts": {
"build": "rbxtsc",
"build:rbxm": "rojo build -o plugin.rbxm",
"build:plugin": "rojo build -p terrain-region-plugin.rbxm",
"watch": "npm run build -- -w",
"format": "prettier -w .",
"lint": "eslint ."
},
"author": "Astrid <git@astrid.email>",
"devDependencies": {
"@rbxts/compiler-types": "2.3.0-types.1",
"@rbxts/types": "^1.0.809",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-roblox-ts": "^0.0.36",
"prettier": "^3.3.3",
"prettier-eslint": "^16.3.0",
"roblox-ts": "3.0.0-dev-371f97c",
"typescript": "^5.6.2"
},
"dependencies": {
"@grand-hawk/ui-components": "^0.3.0",
"@rbxts/react": "^0.4.0",
"@rbxts/react-roblox": "^0.4.0",
"@rbxts/services": "^1.5.5"
}
}
{
"name": "terrain-region-plugin",
"version": "0.2.1",
"license": "MIT",
"scripts": {
"build": "rbxtsc",
"build:rbxm": "rojo build -o plugin.rbxm",
"build:plugin": "rojo build -p terrain-region-plugin.rbxm",
"watch": "npm run build -- -w",
"format": "prettier -w .",
"lint": "eslint ."
},
"author": "Astrid <git@astrid.email>",
"devDependencies": {
"@rbxts/compiler-types": "2.3.0-types.1",
"@rbxts/types": "^1.0.809",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-roblox-ts": "^0.0.36",
"prettier": "^3.3.3",
"prettier-eslint": "^16.3.0",
"roblox-ts": "3.0.0-dev-371f97c",
"typescript": "^5.6.2"
},
"dependencies": {
"@grand-hawk/ui-components": "^0.3.0",
"@rbxts/react": "^0.4.0",
"@rbxts/react-roblox": "^0.4.0",
"@rbxts/services": "^1.5.5"
}
}
4 changes: 4 additions & 0 deletions src/shared/load.luau
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ function module.load(folder: Folder)
end
end

workspace.Terrain:Clear()

for _, terrainRegion in terrainRegions do
module.loadRegion(terrainRegion)

task.wait()
end
end

Expand Down

0 comments on commit a37658d

Please sign in to comment.