Hytale Prefab Manager for Pterodactyl
Sarthak2 min read

Hytale Prefab Manager for Pterodactyl

Welcome

Thank you for purchasing Hytale Prefab Manager for Pterodactyl! If you encounter any issues or have questions, feel free to reach out on our Support Server.

Installation

Using an SFTP client of your choice, upload all of the files from the UploadFiles directory into your Pterodactyl directory (usually located at /var/www/pterodactyl)

Frontend Routes

Open the file: resources/scripts/routers/routes.ts

Find this code:

import ServerActivityLogContainer from '@/components/server/ServerActivityLogContainer';

Add this code below it:

import HytalePrefabManagerRoutes from '@/routers/extensions/hytaleprefabmanager';

Find this code:

{
    path: '/files',
    permission: 'file.*',
    name: 'Files',
    component: FileManagerContainer,
},

Add this code below it:

...HytalePrefabManagerRoutes,

Hytale Prefab Manager Help-1

Admin Sidebar

Open the file: resources/views/layouts/admin.blade.php

Find this code:

<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.nests') ?: 'active' }}">
    <a href="{{ route('admin.nests') }}">
        <i class="fa fa-th-large"></i> <span>Nests</span>
    </a>
</li>

Add this code below it:

@include('layouts.extensions.hytaleprefabmanager')

Hytale Prefab Manager Help-2

Client API Routes

Open the file: routes/api-client.php

Add this code at the end of the file:

Route::prefix('/extensions/hytaleprefabmanager')->group(base_path('routes/hytaleprefabmanager/api-client.php'));

Hytale Prefab Manager Help-3

Admin Routes

Open the file: routes/admin.php

Add this code at the end of the file:

include 'hytaleprefabmanager/admin.php';

Hytale Prefab Manager Help-4

Install Node.js

If you're using Debian-based or Ubuntu-based distributions, run the following commands:

curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs
corepack enable

On other distributions, install Node.js using the distribution's package manager.

Build panel assets

Now, it's time to clean caches, download Node dependencies, and build the panel assets:

php artisan optimize:clear
yarn install
NODE_OPTIONS=--openssl-legacy-provider yarn build:production

Configure CurseForge

Hytale Prefab Manager uses CurseForge API to provide access to a large library of Hytale prefabs. To obtain your key follow the steps below:

Create a account at CurseForge Console

Generate an API key and paste it in the extension's settings.