pterodactyl / whmcs

WHMCS Module for Pterodactyl (v0.7.3 and higher)
MIT License
185 stars 77 forks source link

Implement Additional Allocations #116

Open lstefan1520 opened 2 years ago

lstefan1520 commented 2 years ago

This allows for creating multiple allocations per server. Fixes #8 Useful for source games that require multiple ports

PR is not complete, still need to solve two issues. Any help is appreciated.

I should have time later this week to finish this up. Thanks.

ldev-coder commented 1 year ago

Olá o modulo já têm essa função implementada?

lstefan1520 commented 1 year ago

I’ll try to finish this up this week.

On Mon, Feb 13, 2023 at 7:32 PM LDEV @.***> wrote:

Olá o modulo já têm essa função implementada?

— Reply to this email directly, view it on GitHub https://github.com/pterodactyl/whmcs/pull/116#issuecomment-1428918271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSLRQX24YWL46C6DPOVHITWXLHCPANCNFSM5RGBDRUQ . You are receiving this because you authored the thread.Message ID: @.***>

NomadUK3 commented 1 year ago

I have tested and it seems to create the ports perfectly, i just need to find a way to automatically assign the allocations to the rcon and app ports in the egg, im new to this so learning as i go.

Planetaryauto60 commented 1 year ago

Is this now in the module and if so could someone point me in the direction of some sort of documentation? Looking to implement unturned servers which require 2 ports to run and could really use this feature

NomadUK3 commented 1 year ago

Is this now in the module and if so could someone point me in the direction of some sort of documentation? Looking to implement unturned servers which require 2 ports to run and could really use this feature

this is just added to this version (fork), not yet added to the master. i can get this to auto allocate ports in pterodactyl but not assign them to a server. as yet.

Planetaryauto60 commented 1 year ago

What do you mean by allocate but not assign to server apologies? May be me being silly but aren't they the same thing? as in when someone buys a server it allocates 2 ports? Could however be me being stupid haha

Is this now in the module and if so could someone point me in the direction of some sort of documentation? Looking to implement unturned servers which require 2 ports to run and could really use this feature

this is just added to this version (fork), not yet added to the master. i can get this to auto allocate ports in pterodactyl but not assign them to a server. as yet.

NomadUK3 commented 1 year ago

What do you mean by allocate but not assign to server apologies? May be me being silly but aren't they the same thing? as in when someone buys a server it allocates 2 ports? Could however be me being stupid haha

Is this now in the module and if so could someone point me in the direction of some sort of documentation? Looking to implement unturned servers which require 2 ports to run and could really use this feature

this is just added to this version (fork), not yet added to the master. i can get this to auto allocate ports in pterodactyl but not assign them to a server. as yet.

when you add the deployment settings to whmcs you say you want 4 ports to be allocated to this server.

it will create 4 ports in the pterodactyl panel and assign them to the server.

it wont however allocate what port does what. so you will have to assign the 3 ports you need manually. for example rcon, data etc.

lstefan1520 commented 1 year ago

I’ll work on this today. The goal was to give a port range and use ports within that range.

On Wed, Mar 8, 2023 at 9:48 AM NomadUK3 @.***> wrote:

What do you mean by allocate but not assign to server apologies? May be me being silly but aren't they the same thing? as in when someone buys a server it allocates 2 ports? Could however be me being stupid haha

Is this now in the module and if so could someone point me in the direction of some sort of documentation? Looking to implement unturned servers which require 2 ports to run and could really use this feature

this is just added to this version (fork), not yet added to the master. i can get this to auto allocate ports in pterodactyl but not assign them to a server. as yet.

when you add the deployment settings to whmcs you say you want 4 ports to be allocated to this server.

it will create 4 ports in the pterodactyl panel and assign them to the server.

it wont however allocate what port does what. so you will have to assign the 3 ports you need manually. for example rcon, data etc.

— Reply to this email directly, view it on GitHub https://github.com/pterodactyl/whmcs/pull/116#issuecomment-1460274862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSLRQW3ENRPZSBGVFKFJFTW3CL5BANCNFSM5RGBDRUQ . You are receiving this because you authored the thread.Message ID: @.***>

NomadUK3 commented 1 year ago

Let me know when updated and I will test is as soon as it becomes availiable, thanks :)

Planetaryauto60 commented 1 year ago

What do you mean by allocate but not assign to server apologies? May be me being silly but aren't they the same thing? as in when someone buys a server it allocates 2 ports? Could however be me being stupid haha

Is this now in the module and if so could someone point me in the direction of some sort of documentation? Looking to implement unturned servers which require 2 ports to run and could really use this feature

this is just added to this version (fork), not yet added to the master. i can get this to auto allocate ports in pterodactyl but not assign them to a server. as yet.

when you add the deployment settings to whmcs you say you want 4 ports to be allocated to this server.

it will create 4 ports in the pterodactyl panel and assign them to the server.

it wont however allocate what port does what. so you will have to assign the 3 ports you need manually. for example rcon, data etc.

That sounds like what im trying to do, tbh the ports dont need to be assigned to different things for the setup im using. How do I add this fork to the WHCMS integration as a pose to the main one?

NomadUK3 commented 1 year ago

Just download the files from this fork and replace the ones on your webserver.

You will need a new api that includes allocations.

serverkur commented 1 year ago

status?

AleXburnA commented 1 year ago

I would also be highly interested in this. Are you still developing this? Thanks in advance!