This repository was archived by the owner on Mar 13, 2023. It is now read-only.
forked from teverse/teverse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate.lua
More file actions
44 lines (30 loc) · 1.56 KB
/
Copy pathcreate.lua
File metadata and controls
44 lines (30 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--[[
create.lua
Copyright (c) 2019 teverse.com
This script is ran when the user loads create mode,
it is given workshop level sandboxing permissions.
However, scripts required from this script will not inherit workshop apis.
We overcome this by manually passing a reference to the workshop object to the required "main.lua" script.
------------------------------------------------
-- SETTING UP A LOCAL DEVELOPMENT CREATE MODE --
------------------------------------------------
1) Make sure you're looking at your local version
of this script and not the git version.
On Windows, this script can be found at "%localappdata%/teverse/create.lua"
2) Clone the Teverse Repo from Github anywhere on your PC e.g. your Desktop,
preferably away from the Teverse directory.
>> git clone https://github.com/teverse/teverse.git
3) Uncomment LINE 42 below,
making sure to include the FULL PATH to your newly cloned repo.
(!) You must include a following forward slash (!)
(!) Do not use backslashes (!)
VALID examples:
>> engine.workshop:setTevGit("C:/Users/YOURNAME/Desktop/teverse/")
>> engine.workshop:setTevGit("C:/teverse/")
>> engine.workshop:setTevGit("C:/Users/YOURNAME/Documents/teverse/")
(!) BAD examples:
(!) >> engine.workshop:setTevGit("C:/Users/YOURNAME/Desktop/teverse") -- missing slash on the end
(!) >> engine.workshop:setTevGit("C:\Users\YOURNAME\Desktop\teverse\") -- backslashes
]]
--engine.workshop:setTevGit('C:/Users/YOURNAME/Desktop/teverse/')
require("tevgit:create/main.lua")(engine.workshop)