Gemlocker
|
  |
| Joined: 25 Jun 2010 |
| Total Posts: 42 |
|
|
| 04 Aug 2011 11:58 AM |
Hey everyone,
So we're starting to test our ROBLOX Studio Plugins today! (no Terrain Generator yet, it still needs more time - thanks everyone who tested it on Rally)
Studio will come packaged with one sample plugin - Time Of Day Slider, but you can create yours!
Slides from Rally explaining how to create one: http://www.scribd.com/doc/61618748/Studio-Plug-Ins-Light
Studio Plug-ins talk on youtube (thanks DanGiordanengo!) http://www.youtube.com/watch?v=IQg8ar24-Vc&feature=related
Technical details: When you install gametest version, ROBLOX Studio will create a folder "plugins" one folder up from where Roblox installs, this is the place to put yours. You can find it by looking where Roblox/RobloxApp shortcut is pointing to and going one folder app.
You can look at "BuiltinPlugins" folder to see how sample Time plugin works, just do the same thing in "plugins" folder.
Post any questions and your cool plugins here! |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:03 PM |
| wait so that means it wont be realsed on aguest 9? |
|
|
| Report Abuse |
|
|
skyarex
|
  |
| Joined: 21 Mar 2010 |
| Total Posts: 12989 |
|
|
| 04 Aug 2011 12:04 PM |
| I'm confused, what do these plugins actually DO? |
|
|
| Report Abuse |
|
|
phoca
|
  |
| Joined: 14 Nov 2009 |
| Total Posts: 707 |
|
| |
|
stenom
|
  |
| Joined: 19 Feb 2009 |
| Total Posts: 741 |
|
| |
|
| |
|
Anciteify
|
  |
| Joined: 27 Jan 2011 |
| Total Posts: 197 |
|
|
| 04 Aug 2011 12:12 PM |
| So glad I'm getting a new laptop this Friday :P |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:13 PM |
| I think it will be very advanced work, and will take some time to learn how to create plug-ins. But it's a great idea |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Aug 2011 12:17 PM |
Im beginning my First Few Plugins right now...
Anyone willing to make a "Prugin Group on the test server" |
|
|
| Report Abuse |
|
|
| |
|
Divyesh
|
  |
| Joined: 25 Mar 2010 |
| Total Posts: 958 |
|
|
| 04 Aug 2011 12:21 PM |
I have some questions...
1. I don't see the Time Switcher Plugin... 2. Where do you edit the code to add plugins
|
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:22 PM |
you can can edit the time one using notepad
|
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Aug 2011 12:25 PM |
when this is added to roblox (not the test one) you can create scripts like this
----------------- --DEFAULT VALUES- ----------------- loaded = false on = false t = 720
--------------- --PLUGIN SETUP- --------------- self = PluginManager():CreatePlugin() self.Deactivation:connect(function() Off() end) toolbar = self:CreateToolbar("Time") toolbarbutton = toolbar:CreateButton("", "Time of Day", "time.png") toolbarbutton.Click:connect(function() if on then Off() elseif loaded then On() end end)
----------------------- --FUNCTION DEFINITIONS- ----------------------- --converts time in minutes into a string of the format "hours:minutes:seconds" (seconds are always 00) function timestring(t) hours = math.floor(t/60) if hours >= 10 then hours = tostring(hours) else hours = "0"..tostring(hours) end minutes = math.floor(t - hours * 60) if minutes >= 10 then minutes = tostring(minutes) else minutes = "0"..tostring(minutes) end ts = tostring(hours)..":"..tostring(minutes)..":00" return ts end
function On() self:Activate() toolbarbutton:SetActive(true) frame.Visible = true for w = 0, 0.8, 0.16 do frame.Size = UDim2.new(w, 0, w/9, 0) wait(0.0000001) end title.Text = "Time of Day: "..timestring(t) on = true end
function Off() toolbarbutton:SetActive(false) title.Text = "" for w = 0.8, 0, -0.16 do frame.Size = UDim2.new(w, 0, w/9, 0) wait(0.0000001) end frame.Visible = false on = false end
------ --GUI- ------ --screengui g = Instance.new("ScreenGui", game:GetService("CoreGui"))
--frame frame = Instance.new("Frame", g) frame.Position = UDim2.new(0.1, 0, 0.85, 0) frame.Size = UDim2.new(0.8, 0, 0.1, 0) frame.BackgroundTransparency = 0.7 frame.Visible = false
--title title = Instance.new("TextLabel", frame) title.Position = UDim2.new(0.4, 0, 0.25, 0) title.Size = UDim2.new(0.2, 0, 0.05, 0) title.Text = "" title.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) title.TextColor3 = Color3.new(1, 1, 1) title.Font = Enum.Font.ArialBold title.FontSize = Enum.FontSize.Size24 title.BorderColor3 = Color3.new(0, 0, 0) title.BackgroundTransparency = 1
--slider local RbxGui = LoadLibrary("RbxGui") sliderGui, sliderPosition = RbxGui.CreateSlider(1440, frame.AbsoluteSize.x * 0.95, UDim2.new(0.025, 0, 0.7, 0)) sliderGui.Parent = frame bar = sliderGui:FindFirstChild("Bar") bar.Size = UDim2.new(0.95, 0, 0, 5) sliderPosition.Value = t sliderPosition.Changed:connect(function() t = sliderPosition.Value ts = timestring(t) title.Text = "Time of Day: "..ts title.Text = "Time of Day: "..ts game:GetService("Lighting").TimeOfDay = ts end)
-------------------------- --SUCCESSFUL LOAD MESSAGE- -------------------------- loaded = true print("Time of Day Plugin Loaded") |
|
|
| Report Abuse |
|
|
Snej1
|
  |
| Joined: 25 Jun 2008 |
| Total Posts: 809 |
|
|
| 04 Aug 2011 12:27 PM |
| In the future you're not building anything yourself, you have plugins for everything lol |
|
|
| Report Abuse |
|
|
1121123
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 288 |
|
|
| 04 Aug 2011 12:29 PM |
| ummm what if you dont know how to script? :/ |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Gemlocker
|
  |
| Joined: 25 Jun 2010 |
| Total Posts: 42 |
|
|
| 04 Aug 2011 12:34 PM |
1. I don't see the Time Switcher Plugin...
Try creating a new place by clicking New in Studio or opening existing .rbxl file. New toolbar should appear with Time icon.
It will work by clicking Edit on website too, but there's a bug right now - we're working on it.
2. Where do you edit the code to add plugins
First, try finding .lua files in Roblox install folder and look at them :) |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:45 PM |
| Cool these will make roblox much easier |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 04 Aug 2011 12:46 PM |
GemLocker, I just turned
function timestring(t) hours = math.floor(t/60) if hours >= 10 then hours = tostring(hours) else hours = "0"..tostring(hours) end minutes = math.floor(t - hours * 60) if minutes >= 10 then minutes = tostring(minutes) else minutes = "0"..tostring(minutes) end ts = tostring(hours)..":"..tostring(minutes)..":00" return ts end
into
function timestring(t) local tsTemp = "%0.2d:%0.2d:00" return tsTemp:format(math.floor(t/60), math.floor(t%60)) end
|
|
|
| Report Abuse |
|
|
Cyrion
|
  |
| Joined: 14 May 2011 |
| Total Posts: 70 |
|
|
| 04 Aug 2011 12:50 PM |
Hey guys, just to clarify, when you update to the newest version of gametest with plugins there will be two plugin directories, one for official Roblox plugins and another for you to put your own.
The official Roblox plugins are located in C:\Program Files (x86)\Roblox\Versions\version-2be7595bf3c947ab\BuiltInPlugins for most of you.
The folder to put your own plugins into is C:\Users\YOURUSERNAME\AppData\Local\Roblox\plugins
Each plugin should be a folder that contains a .lua file and a .png icon (if you are using an icon)
Hope that helps! |
|
|
| Report Abuse |
|
|
Divyesh
|
  |
| Joined: 25 Mar 2010 |
| Total Posts: 958 |
|
|
| 04 Aug 2011 12:51 PM |
Whatever I do, I cant seem to see the new Time switcher... Maybe a bug?
I made a couple of new places, in Studio and in the normal version, and no success |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:52 PM |
| So can anyone help me make or give me a terrain genorater? |
|
|
| Report Abuse |
|
|