Tag: Pterodactyl

  • Pterodactyl File Manager increase 250 file limit

    Pterodactyl File Manager increase 250 file limit

    Pterodactyl is an open-source game control panel. When you view game server files, the file manager only lists 250 files per directory.

    pterodactyl file manager 250 files limit

    This is done to improve page loading performance, but if you have many files, you may want to disable the 250 file limit. To do this, edit file

    cd /var/www/pterodactyl
    vi resources/scripts/components/server/files/FileManagerContainer.tsx

    Find

    <div>{files.length &gt; 250 &amp;&amp; (
    <div>
    <p>This directory is too large to display in the browser, limiting the output to the first 250 files.</p>
    </div>
    )} {sortFiles(files.slice(0, 250)).map((file) =&gt; ( ))}</div>
     

    Replace with

    <div>{sortFiles(files).map((file) =&gt; ( ))}</div>
     

    Another way is just to change the number 250 to a higher number.

    Now rebuild the files

    yarn build:production

    Create Laravel template cache

    php artisan view:clear

    Change permissions for files. This command depends on the web server and OS you use. On RHEL-based OS with Nginx web server, I used

    chown -R nginx:nginx /var/www/pterodactyl/

    Back to pterodactyl

  • Create CS:GO Server in Pterodactyl

    Go to Admin > Servers

    Pterodactyl Game Servers

    Click “Create New” button. On next screen

    pterodactyl create game server

    Most of the settings are self explanatory, here are some of the important settings.

    Server Owner = select a existing user from drop down.
    Default Allocation = this is server IP:Port combination. If nothing shows for you, you need to add allocation under your Node settings. Admin > Nodes > Allocation
    Memory = 4000 MB
    Swap = 4000 MB
    Disk Space = 20000 MB (game use 16 GB disk space, so give it 20 GB to be safe, if you don’t give enough disk space, game won’t start).
    CPU Limit = 0

    Service Configuration

    Service = Source Engine
    Option = Custom Source Engine Game

    Startup Configuration

    Game ID = 740
    Game Name = csgo

    Click “Create Server”

    This take sever minutes depending on your internet speed as it need to download 16 GB of files. You can see logs for download in folder.

    /srv/daemon/config/servers/RANDOM_FOLDER_NAME/install.log
    

    You can determine RANDOM_FOLDER_NAME by checking the date, so you know correct folder name for the newly created server.

    One game server is started, it won’t allow you to join as it is in LAN mode. Before anyone can join, you need to create Token at

    https://steamcommunity.com/dev/managegameservers

    Add it to your csgo/cfg/game.cfg file, this can be done in file manager.

    This need to be done as user (not admin, click exit admin button on right-top menu). Now restart game sever, you will be able to connect.

    Back to Pterodactyl