Hi,
I am trying to make a plugin and I was about to test it but when I saved it I got this error:
Failed to load plugin type=Local filepath=Here is the filepath in datamodel StudioGameStateType_Edit
Does someone maybe know what I am doing wrong?
Hi,
I am trying to make a plugin and I was about to test it but when I saved it I got this error:
Failed to load plugin type=Local filepath=Here is the filepath in datamodel StudioGameStateType_Edit
Does someone maybe know what I am doing wrong?
Hoping the fact that the stderr’s varabie for filepath is “Here is the filepath” is purposely censored. Normally the error you’ve provided suggests a problem with how the plugin was set up. Without any detailed logs or file references I’m not entirely sure what could be failing but the error code StudioGameStateType_Edit likely could be fixed by double checking the plugin is being created in edit mode, not play mode. Aside from that, try re-installing the plugin, running roblox studio with elevated permissions and double checking file extensions.
If your able too, may you provide more details such as the steps of what your doing, how your setting up the plugin and any internal studio logs.
The “Her is the filepath” is indeed purposely censored but I double checked and the filepath is right. I tried getting out of studio and back in but this also didnt solve the problem. i am trying to make 2 buttons is the toolbar and that when 1 of the 2 is pressed a widget pops up.
Code:
-- Variabels
local WidgetInfo = DockWidgetPluginGuiInfo.new(Enum.InitialDockState.Float, true, false, 1000, 700, 1000, 700)
-- Objects
local ToolBar = plugin:CreateToolBar("Plugin")
local EnterCodeButton = ToolBar:CreateButton("Button2", "Button2")
local SettingsButton = ToolBar:CreateButton("Button1", "Button1")
-- Functions
local function CreateWidget()
local Widget = plugin:CreateDockWidgetPluginGui("Widget", WidgetInfo)
Widget.Title = "Widget"
local Background = Instance.new("ImageLabel")
Background.Size = Vector2.new(1, 1)
Background.Image = "76606579092416"
end
-- Code
SettingsButton.Click:Connect(function()
CreateWidget()
end)
Unfortunately, I’m not experienced with plugin development so I cannot help you much. I suggest trying to find some sort of detailed log because they will most likely trace whats happening, if your unable to do that try using a different or alternative method or search online for documentation.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.