B
Blueprint10mo ago
Simba

help on getting started with blueprint

heyy uhh im tryna make a credit addon for pterodactyl but cant find a way to start using blueprint like do u just make the changes to the panels files and blueprint recognizes it or do u have to copy the panel directly into the blueprint folder and then modify it there or just make the files u wanna edit there? idk pls help
30 Replies
Simba
SimbaOP10mo ago
i did direct edits to the panel but now i wanna make them into a addon i used a migration file to create the mariadb column for each user
Emma
Emma10mo ago
I'm working on extension APIs that allow admin panel edits like these, but right now they require scripts to work.
ℓєzєтнσ
ℓєzєтнσ10mo ago
this looks really cool ngl
Simba
SimbaOP10mo ago
thx
Simba
SimbaOP10mo ago
im also working on this
No description
Simba
SimbaOP10mo ago
its basically betterfeatures for pterodactyl @Emma any suggestiong how do i make the plugin for this i didnt understand
Emma
Emma10mo ago
You'll need to make use of Blueprint's install/remove script API to search and replace these changes on the fly.
Simba
SimbaOP10mo ago
and where is that pls help
Emma
Emma10mo ago
blueprint.zip
Powerful, fast and developer-friendly extension framework for Pterodactyl. Utilize extension APIs, inject HTML, modify stylesheets, package extensions and so much more.
Emma
Emma10mo ago
No description
Emma
Emma10mo ago
Script documentation is not fully ready yet and requires vast Linux knowledge to utilize.
Simba
SimbaOP10mo ago
dont worry i know linux very well im a sysadmin myself thx 15:57:17 INFO: Starting developer extension installation.. 15:57:17 INFO: Searching and validating framework dependencies.. 15:57:17 INFO: Reading and assigning extension flags.. 15:57:17 INFO: Writing extension placeholders.. 15:57:17 WARNING: Mclogs does not come with an icon, consider adding one. 15:57:17 FATAL: Extension configuration points towards one or more files that do not exist.
Simba
SimbaOP10mo ago
No description
Simba
SimbaOP10mo ago
pls help
0x7d8
0x7d810mo ago
set components to src/components
Simba
SimbaOP10mo ago
done
Simba
SimbaOP10mo ago
still its the same
No description
Simba
SimbaOP10mo ago
conf.yml
info:
name: "MCLogsAddon"
identifier: "mclogs"
description: "Addon to upload Minecraft server logs to MCLogs API."
flags: "" # Optional flags to modify behavior
version: "0.1" # Version of the add-on
target: "beta-2024-08" # The Pterodactyl version this addon targets
author: "javadev"
icon: "" # URL or path to an icon image (optional)
website: "" # URL to the add-on documentation or homepage (optional)

admin:
view: "view.blade.php" # Path to the Blade template for the admin panel view
controller: "" # Optional controller for handling backend logic
css: "" # Path to custom CSS for the admin panel (optional)
wrapper: "" # Wrapper class or layout for the admin view (optional)

dashboard:
css: "" # Path to custom CSS for the dashboard (optional)
wrapper: "" # Layout wrapper for the dashboard (optional)
components: "src/components" # Folder containing React/JS components or Vue components for the dashboard

data:
directory: "" # Path to where the addon stores its data (e.g., logs, configuration files)
public: "" # Public-facing files or resources (optional)
console: "" # Path to console log files (optional)

requests:
views: "views" # Path to request views, if applicable
controllers: "" # Path to controllers for handling API requests
routers:
application: "" # Router file for handling application routes
client: "" # Router for handling client-specific routes
web: "" # Router for web-based routes (UI-related)

database:
migrations: "" # Path to migration files for database changes (optional)
info:
name: "MCLogsAddon"
identifier: "mclogs"
description: "Addon to upload Minecraft server logs to MCLogs API."
flags: "" # Optional flags to modify behavior
version: "0.1" # Version of the add-on
target: "beta-2024-08" # The Pterodactyl version this addon targets
author: "javadev"
icon: "" # URL or path to an icon image (optional)
website: "" # URL to the add-on documentation or homepage (optional)

admin:
view: "view.blade.php" # Path to the Blade template for the admin panel view
controller: "" # Optional controller for handling backend logic
css: "" # Path to custom CSS for the admin panel (optional)
wrapper: "" # Wrapper class or layout for the admin view (optional)

dashboard:
css: "" # Path to custom CSS for the dashboard (optional)
wrapper: "" # Layout wrapper for the dashboard (optional)
components: "src/components" # Folder containing React/JS components or Vue components for the dashboard

data:
directory: "" # Path to where the addon stores its data (e.g., logs, configuration files)
public: "" # Public-facing files or resources (optional)
console: "" # Path to console log files (optional)

requests:
views: "views" # Path to request views, if applicable
controllers: "" # Path to controllers for handling API requests
routers:
application: "" # Router file for handling application routes
client: "" # Router for handling client-specific routes
web: "" # Router for web-based routes (UI-related)

database:
migrations: "" # Path to migration files for database changes (optional)
Simba
SimbaOP10mo ago
components.yml
Navigation:
NavigationBar:
BeforeNavigation: ""
AdditionalItems: "components/MCLogsButton"
AfterNavigation: ""
SubNavigation:
BeforeSubNavigation: ""
AdditionalServerItems: ""
AdditionalAccountItems: ""
AfterSubNavigation: ""
Routes:
- { Name: "Upload Logs", Path: "/upload-logs", Type: "server", Component: "components/UploadLogs", AdminOnly: "false" }

Dashboard:
Global:
BeforeSection: ""
AfterSection: ""
Serverlist:
BeforeContent: ""
AfterContent: ""
ServerRow:
BeforeEntryName: ""
AfterEntryName: ""
BeforeEntryDescription: ""
AfterEntryDescription: ""
ResourceLimits: "elements/MCLogsResourceLimit"

Server:
Terminal:
BeforeContent: ""
AdditionalPowerButtons: "components/MCLogsUploadButton"
BeforeInformation: ""
AfterInformation: ""
CommandRow: ""
AfterContent: ""
Files:
Browse:
BeforeContent: ""
FileButtons: ""
DropdownItems: ""
AfterContent: ""
Edit:
BeforeEdit: ""
AfterEdit: ""
Databases:
BeforeContent: ""
AfterContent: ""
Schedules:
List:
BeforeContent: ""
AfterContent: ""
Edit:
BeforeEdit: ""
AfterEdit: ""
Users:
BeforeContent: ""
AfterContent: ""
Backups:
BeforeContent: ""
DropdownItems: ""
AfterContent: ""
Network:
BeforeContent: ""
AfterContent: ""
Startup:
BeforeContent: ""
AfterContent: ""
Settings:
BeforeContent: ""
AfterContent: ""

Authentication:
Container:
AfterContent: "elements/MCLogsUploadButton" # Optionally, you can add upload-related content after authentication
Navigation:
NavigationBar:
BeforeNavigation: ""
AdditionalItems: "components/MCLogsButton"
AfterNavigation: ""
SubNavigation:
BeforeSubNavigation: ""
AdditionalServerItems: ""
AdditionalAccountItems: ""
AfterSubNavigation: ""
Routes:
- { Name: "Upload Logs", Path: "/upload-logs", Type: "server", Component: "components/UploadLogs", AdminOnly: "false" }

Dashboard:
Global:
BeforeSection: ""
AfterSection: ""
Serverlist:
BeforeContent: ""
AfterContent: ""
ServerRow:
BeforeEntryName: ""
AfterEntryName: ""
BeforeEntryDescription: ""
AfterEntryDescription: ""
ResourceLimits: "elements/MCLogsResourceLimit"

Server:
Terminal:
BeforeContent: ""
AdditionalPowerButtons: "components/MCLogsUploadButton"
BeforeInformation: ""
AfterInformation: ""
CommandRow: ""
AfterContent: ""
Files:
Browse:
BeforeContent: ""
FileButtons: ""
DropdownItems: ""
AfterContent: ""
Edit:
BeforeEdit: ""
AfterEdit: ""
Databases:
BeforeContent: ""
AfterContent: ""
Schedules:
List:
BeforeContent: ""
AfterContent: ""
Edit:
BeforeEdit: ""
AfterEdit: ""
Users:
BeforeContent: ""
AfterContent: ""
Backups:
BeforeContent: ""
DropdownItems: ""
AfterContent: ""
Network:
BeforeContent: ""
AfterContent: ""
Startup:
BeforeContent: ""
AfterContent: ""
Settings:
BeforeContent: ""
AfterContent: ""

Authentication:
Container:
AfterContent: "elements/MCLogsUploadButton" # Optionally, you can add upload-related content after authentication
Simba
SimbaOP10mo ago
pls help
0x7d8
0x7d810mo ago
the paths in components.yml are relative to the file location
Simba
SimbaOP10mo ago
ok
Emma
Emma10mo ago
Try getting rid of your comments.
Simba
SimbaOP10mo ago
i did should i upload the code to git and let u check it
Emma
Emma10mo ago
Feels like this is largely generated by chatgpt
Simba
SimbaOP10mo ago
yea i was trying to fix it using cgpt turns out it didnt do shit
Emma
Emma10mo ago
yeah because chatgpt doesnt know about blueprint ai's just "guess" and confidently lie
Simba
SimbaOP10mo ago
wow fck ai tbh
Simba
SimbaOP10mo ago
No description
Simba
SimbaOP10mo ago
16:21:43 INFO: Starting developer extension installation.. 16:21:44 INFO: Searching and validating framework dependencies.. 16:21:44 INFO: Switching to update process as extension has already been installed. 16:21:44 FATAL: Upgrading extension has failed due to missing essential .store files.

Did you find this page helpful?