pelican-eggs / eggs

Service eggs for the pterodactyl panel
MIT License
2.86k stars 2.32k forks source link

[Egg BUG] Unable to assign a port other than 7777 on egg ark ascended #2534

Closed Knaox closed 12 months ago

Knaox commented 1 year ago

Panel Version

1.11.3

Wings Version

1.11.7

Service

Ark ascended EGG

Modified

No, I did not modify the egg

Expected Behavior

Unable to assign a port other than 7777 on egg ark ascended, making it impossible to configure multiple servers on 1 wings server.

Actual Behavior

When I created two servers on ark ascended, the first was on the main port 7777 and query 27015 and the second on another port 33019 and query 33020. Both servers were displayed in games, but when I joined server 2 I appeared on server 1. When I close port 7777, server 2, which is normally on port 33019, gives me a time-out error when I join it. This is normal, since in the config the port is always the default one, so it's impossible to change it manually.

Steps To Reproduce

Step 1 Create a server with port 7777 as main port Step 2 Create a second server with another port Step 3 connect to server 1 and perform actions such as retrieving resources Step 4 Connect to server 2 and find that the connection has been made to server 1 and not server 2 as it should be

Install logs

https://pteropaste.com/frexyf2wn060

QuintenQVD0 commented 1 year ago

You are only allowed 1 server an ip. As this is community only. You can not sell them

Knaox commented 1 year ago

You are only allowed 1 server an ip. As this is community only. You can not sell them

I'm not trying to sell them, I just want to have several ark servers for some of my friends. Which is possible with all the other eggs since port switching is possible.

QuintenQVD0 commented 1 year ago

You are only allowed 1 server an ip. As this is community only. You can not sell them

I'm not trying to sell them, I just want to have several ark servers for some of my friends. Which is possible with all the other eggs since port switching is possible.

I read somewhere it is max 1 server an ip, but the ports do get set correcly to the server. No idea what went wrong. This game is strange

QuintenQVD0 commented 1 year ago

@dagbs i guess this is something for you then

Knaox commented 1 year ago

@QuintenQVD0 are you going to investigate?

gOOvER commented 1 year ago

cant confirm. I use a different port as 7777

Knaox commented 1 year ago

cant confirm. I use a different port as 7777

Can you send me your egg so that I can try again with your egg? Maybe this is the new version of the egg?

What version of wings and pterodactyl do you have?

gOOvER commented 1 year ago

cant confirm. I use a different port as 7777

Can you send me your egg so that I can try again with your egg? Maybe this is the new version of the egg?

What version of wings and pterodactyl do you have?

i use the same as you and i have the latest ptero/wings

Knaox commented 1 year ago

cant confirm. I use a different port as 7777

Can you send me your egg so that I can try again with your egg? Maybe this is the new version of the egg?

What version of wings and pterodactyl do you have?

i use the same as you and i have the latest ptero/wings

Could you please provide me with your egg? Did you open port 7777 or not at all?

gOOvER commented 1 year ago

cant confirm. I use a different port as 7777

Can you send me your egg so that I can try again with your egg? Maybe this is the new version of the egg?

What version of wings and pterodactyl do you have?

i use the same as you and i have the latest ptero/wings

Could you please provide me with your egg? Did you open port 7777 or not at all?

i dont use 7777

Knaox commented 1 year ago

cant confirm. I use a different port as 7777

Can you send me your egg so that I can try again with your egg? Maybe this is the new version of the egg?

What version of wings and pterodactyl do you have?

i use the same as you and i have the latest ptero/wings

Could you please provide me with your egg? Did you open port 7777 or not at all?

i dont use 7777

Ok our version of the egg must be different... I don't see any other possibility. Can you send me your egg to this email: shou.shouri@hotmail.com I'll do some tests. Thanks

gOOvER commented 1 year ago

cant confirm. I use a different port as 7777

Can you send me your egg so that I can try again with your egg? Maybe this is the new version of the egg?

What version of wings and pterodactyl do you have?

i use the same as you and i have the latest ptero/wings

Could you please provide me with your egg? Did you open port 7777 or not at all?

i dont use 7777

Ok our version of the egg must be different... I don't see any other possibility. Can you send me your egg to this email: shou.shouri@hotmail.com I'll do some tests. Thanks

https://github.com/parkervcp/eggs/tree/master/game_eggs/steamcmd_servers/ark_survival_ascended

Knaox commented 1 year ago

cant confirm. I use a different port as 7777

Can you send me your egg so that I can try again with your egg? Maybe this is the new version of the egg?

What version of wings and pterodactyl do you have?

i use the same as you and i have the latest ptero/wings

Could you please provide me with your egg? Did you open port 7777 or not at all?

i dont use 7777

Ok our version of the egg must be different... I don't see any other possibility. Can you send me your egg to this email: shou.shouri@hotmail.com I'll do some tests. Thanks

https://github.com/parkervcp/eggs/tree/master/game_eggs/steamcmd_servers/ark_survival_ascended

Is it possible that egg is incompatible with panel version 1.11.3?

gOOvER commented 1 year ago

cant confirm. I use a different port as 7777

Can you send me your egg so that I can try again with your egg? Maybe this is the new version of the egg?

What version of wings and pterodactyl do you have?

i use the same as you and i have the latest ptero/wings

Could you please provide me with your egg? Did you open port 7777 or not at all?

i dont use 7777

Ok our version of the egg must be different... I don't see any other possibility. Can you send me your egg to this email: shou.shouri@hotmail.com I'll do some tests. Thanks

https://github.com/parkervcp/eggs/tree/master/game_eggs/steamcmd_servers/ark_survival_ascended

Is it possible that egg is incompatible with panel version 1.11.3?

no. there are not really changes in the last updates. but i would update to latest

Knaox commented 1 year ago

cant confirm. I use a different port as 7777

Can you send me your egg so that I can try again with your egg? Maybe this is the new version of the egg?

What version of wings and pterodactyl do you have?

i use the same as you and i have the latest ptero/wings

Could you please provide me with your egg? Did you open port 7777 or not at all?

i dont use 7777

Ok our version of the egg must be different... I don't see any other possibility. Can you send me your egg to this email: shou.shouri@hotmail.com I'll do some tests. Thanks

https://github.com/parkervcp/eggs/tree/master/game_eggs/steamcmd_servers/ark_survival_ascended

Is it possible that egg is incompatible with panel version 1.11.3?

no. there are not really changes in the last updates. but i would update to latest

Strange, apparently I'm not the only one with this problem, several ark ascended servers are inaccessible.

When you say you're going to update the latest version, are you talking about updating the egg?

Knaox commented 1 year ago

ok I found the solution, in the startup arguments when creating the server you must absolutely put the same port as the server itself.

if you don't add this argument, the server will continue to boot on port 7777.

I hope my contributions will help you patch this bug. image

gOOvER commented 1 year ago

ok I found the solution, in the startup arguments when creating the server you must absolutely put the same port as the server itself.

if you don't add this argument, the server will continue to boot on port 7777.

I hope my contributions will help you patch this bug. image

thats not correct; tehre is allready a Variable for this and it takes the PRIMARY Port

?Port={{SERVER_PORT}}

Knaox commented 1 year ago

ok I found the solution, in the startup arguments when creating the server you must absolutely put the same port as the server itself. if you don't add this argument, the server will continue to boot on port 7777. I hope my contributions will help you patch this bug. image

thats not correct; tehre is allready a Variable for this and it takes the PRIMARY Port

?Port={{SERVER_PORT}}

I take back what I just said, egg still doesn't take my different port into account...

gOOvER commented 1 year ago

ok I found the solution, in the startup arguments when creating the server you must absolutely put the same port as the server itself. if you don't add this argument, the server will continue to boot on port 7777. I hope my contributions will help you patch this bug. image

thats not correct; tehre is allready a Variable for this and it takes the PRIMARY Port ?Port={{SERVER_PORT}}

I take back what I just said, egg still doesn't take my different port into account...

As i know, you can only host 1 Server per ip. So its not an egg issue

Knaox commented 1 year ago

Why on windows is it possible to have 2 on the same ip but not Linux?

dagbs commented 1 year ago

Why on windows is it possible to have 2 on the same ip but not Linux?

Maybe it's a Proton bug? It's the only thing we can't change because Proton is the only way the servers will run without crashing.

As of now, it is a known bug with A:SA that multiple servers are not supported on the same IP.

Knaox commented 1 year ago

Why on windows is it possible to have 2 on the same ip but not Linux?

Maybe it's a Proton bug? It's the only thing we can't change because Proton is the only way the servers will run without crashing.

As of now, it is a known bug with A:SA that multiple servers are not supported on the same IP.

So let's hope the servers come out soon running linux.

MachinegunMarty commented 12 months ago

If you would want to run more servers: You just set your 2nd server's primary network port to 7779(+1), 3rd server to 7781(+1) etc. You can change the querry and rcon ports from the panel for each server.

Example:

Server 1: :7777 (Primary) :7778 :27015 :37015

Server 2: :7779 (Primary) :7780 :27016 :37016

Server 3: :7781 (Primary) :7782 :27017 :37017

I haven't tested if you add the servers to steams server list if you can connect. But the first server should work out of the box. Server 2: In Steam -> Servers -> Add: external ip:7779 Server 3: In Steam -> Servers -> Add: external ip:7781

Ark automatically uses the next adres to. So 7779 and 7780 for the 2nd server, 7781 and 7782 for the 3rd. Don't forget to add those adresses to your firewall to ! TCP and UDP.

Like i said i don't know if they show up in the listing if you add them to the server list in steam ?

I will test tonight when i'm at home.

gOOvER commented 12 months ago

If you would want to run more servers: You just set your 2nd server's primary network port to 7779(+1), 3rd server to 7781(+1) etc. You can change the querry and rcon ports from the panel for each server.

Example:

Server 1: :7777 (Primary) :7778 :27015 :37015

Server 2: :7779 (Primary) :7780 :27016 :37016

Server 3: :7781 (Primary) :7782 :27017 :37017

I haven't tested if you add the servers to steams server list if you can connect. But the first server should work out of the box. Server 2: In Steam -> Servers -> Add: external ip:7779 Server 3: In Steam -> Servers -> Add: external ip:7781

Ark automatically uses the next adres to. So 7779 and 7780 for the 2nd server, 7781 and 7782 for the 3rd. Don't forget to add those adresses to your firewall to ! TCP and UDP.

Like i said i don't know if they show up in the listing if you add them to the server list in steam ?

I will test tonight when i'm at home.

when they all on the same IP, this will not work. Last info was, that only 1 server per IP is allowed

MachinegunMarty commented 12 months ago

If you would want to run more servers: You just set your 2nd server's primary network port to 7779(+1), 3rd server to 7781(+1) etc. You can change the querry and rcon ports from the panel for each server. Example: Server 1: :7777 (Primary) :7778 :27015 :37015 Server 2: :7779 (Primary) :7780 :27016 :37016 Server 3: :7781 (Primary) :7782 :27017 :37017 I haven't tested if you add the servers to steams server list if you can connect. But the first server should work out of the box. Server 2: In Steam -> Servers -> Add: external ip:7779 Server 3: In Steam -> Servers -> Add: external ip:7781 Ark automatically uses the next adres to. So 7779 and 7780 for the 2nd server, 7781 and 7782 for the 3rd. Don't forget to add those adresses to your firewall to ! TCP and UDP. Like i said i don't know if they show up in the listing if you add them to the server list in steam ? I will test tonight when i'm at home.

when they all on the same IP, this will not work. Last info was, that only 1 server per IP is allowed

I know mate, i read that to.

I just tried to explain how things should work. Just trying to help people out.

But i haven't tested it, so i can't give an definitive answer if only1 server per ip is working.

I'm gonna test it now, so i will share my findings in here.

MachinegunMarty commented 12 months ago

Allright, did some testing...

I made 2 servers in the panel:

Server 1: :7777 (Primary) :7778 :27015 :37015 Password: 123

Server 2: :7779 (Primary) :7780 :27016 :37016 Password: 1234

I looked under startup and server 2 is using 7779 as port setting, so the egg is working. I also opened up the ports in my router. (7777-7780, 27015-27016)

Opened Ark, searched for the servers and both where in the listing!, but....

When i tried to login to Server 2 with password 1234 it said password invalid. When i tried to login to Server 2 with password 123 it went ahead and logged into Server 1 ?! It spawned me in my house on Server 1.

So i logged out and tried again, while watching my routers connection logs and wireshark. If i connect to Server 1, the ark client sends me to 7777 If i connect to Server 2, the Ark client sends me to 7777.

So to test some more, i turned off Server 1 and tried to login to Server 2 again . This time no matter what password i filled in it just kept spinning until Connection Timeout. Turned Server 1 on again.

Next test i can do is try to add them seperatly in steam so. In steam -> View -> Game Servers -> Favorites -> Add But no matter which port i tried, steam cannot find any server at the adress. I tried my dns name, external ip adress, internal ip adress and all the ports (7777,7778,27015).

I can still see my old entries of Ark Survival Evolved in there, external ip:27015 & 27016. Steam would find a server on there and you could add it, but because it cannot find a server i can't add the adresses ?

So it seems that the Ark Ascended client is only accepting 7777 as port, but does however show the 2nd server in the listing? That's one way to keep people from hosting more servers from 1 ip i guess, bottleneck the client ?

Just my 2 cents... any thoughts ?

Knaox commented 12 months ago

Allright, did some testing...

I made 2 servers in the panel:

Server 1: :7777 (Primary) :7778 :27015 :37015 Password: 123

Server 2: :7779 (Primary) :7780 :27016 :37016 Password: 1234

I looked under startup and server 2 is using 7779 as port setting, so the egg is working. I also opened up the ports in my router. (7777-7780, 27015-27016)

Opened Ark, searched for the servers and both where in the listing!, but....

When i tried to login to Server 2 with password 1234 it said password invalid. When i tried to login to Server 2 with password 123 it went ahead and logged into Server 1 ?! It spawned me in my house on Server 1.

So i logged out and tried again, while watching my routers connection logs and wireshark. If i connect to Server 1, the ark client sends me to 7777 If i connect to Server 2, the Ark client sends me to 7777.

So to test some more, i turned off Server 1 and tried to login to Server 2 again . This time no matter what password i filled in it just kept spinning until Connection Timeout. Turned Server 1 on again.

Next test i can do is try to add them seperatly in steam so. In steam -> View -> Game Servers -> Favorites -> Add But no matter which port i tried, steam cannot find any server at the adress. I tried my dns name, external ip adress, internal ip adress and all the ports (7777,7778,27015).

I can still see my old entries of Ark Survival Evolved in there, external ip:27015 & 27016. Steam would find a server on there and you could add it, but because it cannot find a server i can't add the adresses ?

So it seems that the Ark Ascended client is only accepting 7777 as port, but does however show the 2nd server in the listing? That's one way to keep people from hosting more servers from 1 ip i guess, bottleneck the client ?

Just my 2 cents... any thoughts ?

This is not a client problem.

Many people use several servers on the same ip, and this works very well on windows server, for example.

the bug must surely come from proton...

I'll say it again, but I tested having 3 servers running simultaneously on Windows, and it worked perfectly.

MachinegunMarty commented 12 months ago

Allright, did some testing... I made 2 servers in the panel: Server 1: :7777 (Primary) :7778 :27015 :37015 Password: 123 Server 2: :7779 (Primary) :7780 :27016 :37016 Password: 1234 I looked under startup and server 2 is using 7779 as port setting, so the egg is working. I also opened up the ports in my router. (7777-7780, 27015-27016) Opened Ark, searched for the servers and both where in the listing!, but.... When i tried to login to Server 2 with password 1234 it said password invalid. When i tried to login to Server 2 with password 123 it went ahead and logged into Server 1 ?! It spawned me in my house on Server 1. So i logged out and tried again, while watching my routers connection logs and wireshark. If i connect to Server 1, the ark client sends me to 7777 If i connect to Server 2, the Ark client sends me to 7777. So to test some more, i turned off Server 1 and tried to login to Server 2 again . This time no matter what password i filled in it just kept spinning until Connection Timeout. Turned Server 1 on again. Next test i can do is try to add them seperatly in steam so. In steam -> View -> Game Servers -> Favorites -> Add But no matter which port i tried, steam cannot find any server at the adress. I tried my dns name, external ip adress, internal ip adress and all the ports (7777,7778,27015). I can still see my old entries of Ark Survival Evolved in there, external ip:27015 & 27016. Steam would find a server on there and you could add it, but because it cannot find a server i can't add the adresses ? So it seems that the Ark Ascended client is only accepting 7777 as port, but does however show the 2nd server in the listing? That's one way to keep people from hosting more servers from 1 ip i guess, bottleneck the client ? Just my 2 cents... any thoughts ?

This is not a client problem.

Many people use several servers on the same ip, and this works very well on windows server, for example.

the bug must surely come from proton...

I'll say it again, but I tested having 3 servers running simultaneously on Windows, and it worked perfectly.

I'm not your enemy mate, just trying to help.

If you say it works on windows, it's indeed a different problem.

Knaox commented 12 months ago

I know, I'm just giving you my feedback. We must not make a mistake in analyzing the problem because if we do, it will take longer to patch.

I think the problem comes from Proton, which can't use any port other than 7777.

This is not an issue with the egg. Perhaps someone should create a new egg using something other than Proton, like Wine, for instance.

Allright, did some testing... I made 2 servers in the panel: Server 1: :7777 (Primary) :7778 :27015 :37015 Password: 123 Server 2: :7779 (Primary) :7780 :27016 :37016 Password: 1234 I looked under startup and server 2 is using 7779 as port setting, so the egg is working. I also opened up the ports in my router. (7777-7780, 27015-27016) Opened Ark, searched for the servers and both where in the listing!, but.... When i tried to login to Server 2 with password 1234 it said password invalid. When i tried to login to Server 2 with password 123 it went ahead and logged into Server 1 ?! It spawned me in my house on Server 1. So i logged out and tried again, while watching my routers connection logs and wireshark. If i connect to Server 1, the ark client sends me to 7777 If i connect to Server 2, the Ark client sends me to 7777. So to test some more, i turned off Server 1 and tried to login to Server 2 again . This time no matter what password i filled in it just kept spinning until Connection Timeout. Turned Server 1 on again. Next test i can do is try to add them seperatly in steam so. In steam -> View -> Game Servers -> Favorites -> Add But no matter which port i tried, steam cannot find any server at the adress. I tried my dns name, external ip adress, internal ip adress and all the ports (7777,7778,27015). I can still see my old entries of Ark Survival Evolved in there, external ip:27015 & 27016. Steam would find a server on there and you could add it, but because it cannot find a server i can't add the adresses ? So it seems that the Ark Ascended client is only accepting 7777 as port, but does however show the 2nd server in the listing? That's one way to keep people from hosting more servers from 1 ip i guess, bottleneck the client ? Just my 2 cents... any thoughts ?

This is not a client problem. Many people use several servers on the same ip, and this works very well on windows server, for example. the bug must surely come from proton... I'll say it again, but I tested having 3 servers running simultaneously on Windows, and it worked perfectly.

I'm not your enemy mate, just trying to help.

If you say it works on windows, it's indeed a different problem.

I know, I'm just giving you my feedback. We must not make a mistake in analyzing the problem because if we do, it will take longer to patch.

I think the problem comes from Proton, which can't use any port other than 7777.

This is not an issue with the egg. Perhaps someone should create a new egg using something other than Proton, like Wine, for instance.

gOOvER commented 12 months ago

Many people use several servers on the same ip, and this works very well on windows server, for example.

the bug must surely come from proton...

I'll say it again, but I tested having 3 servers running simultaneously on Windows, and it worked perfectly.

Windows dont care Here ;) Linux and Windows are 2 different Things.

The Game is Windows only and when its a proton Problem, then you must live with it.

And i CAN use other port than 7777 ;)

Btw: proton is wine ;)

Knaox commented 12 months ago

gOOvER

and I don't know how you do it, because it's impossible for me to use another port, and I'm not the only one.

and yes, I've done all the network openings. Goover could you republish your egg that you use?

Maybe there's a difference?

MachinegunMarty commented 12 months ago

There is a project that has a working docker image, on linux, with proton and multiple server support. https://github.com/mschnitzer/ark-survival-ascended-linux-container-image/tree/main

MachinegunMarty commented 12 months ago

I tried a piece of the startup command from the github i linked above and now i can acces the 2nd server.

I'm using this startup command now and it just works ?

rmv() { echo "stopping server"; rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD} DoExit && wait ${ARK_PID}; echo "Server Closed"; exit; }; trap rmv 15 2; proton run ./ShooterGame/Binaries/Win64/ArkAscendedServer.exe TheIsland_WP?listen?Port=7779?RCONPort=37016?RCONEnabled=True -WinLiveMaxPlayers=50 -NoBattlEye & ARK_PID=$! ; tail -c0 -F ./ShooterGame/Saved/Logs/ShooterGame.log --pid=$ARK_PID & until echo "waiting for rcon connection..."; (rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD})<&0 & wait $!; do sleep 5; done

According to them: In any case, you ONLY need to forward the following ports:

7777 (UDP only - This is the game port to allow players to connect to the server) 27020 (TCP only - This is the port to connect through RCON and is therefore optional to forward)

As of today, ASA does no longer offer a way to query the server, so there's no query port and you won't be able to find your server through the Steam server browser, only via the ingame browser.

They set the 2nd server to 7778 and 27021 and so on.

Knaox commented 12 months ago

I tried a piece of the startup command from the github i linked above and now i can acces the 2nd server.

I'm using this startup command now and it just works ?

rmv() { echo "stopping server"; rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD} DoExit && wait ${ARK_PID}; echo "Server Closed"; exit; }; trap rmv 15 2; proton run ./ShooterGame/Binaries/Win64/ArkAscendedServer.exe TheIsland_WP?listen?Port=7779?RCONPort=37016?RCONEnabled=True -WinLiveMaxPlayers=50 -NoBattlEye & ARK_PID=$! ; tail -c0 -F ./ShooterGame/Saved/Logs/ShooterGame.log --pid=$ARK_PID & until echo "waiting for rcon connection..."; (rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD})<&0 & wait $!; do sleep 5; done

According to them:

In any case, you ONLY need to forward the following ports:

7777 (UDP only - This is the game port to allow players to connect to the server)

27020 (TCP only - This is the port to connect through RCON and is therefore optional to forward)

As of today, ASA does no longer offer a way to query the server, so there's no query port and you won't be able to find your server through the Steam server browser, only via the ingame browser.

They set the 2nd server to 7778 and 27021 and so on.

Is there an egg for this github? I've tried to use this github, but since there's no egg I haven't succeeded.

Could you give me the egg you use?

All you have to do is export the egg that allows you to create a second server and share it.

QuintenQVD0 commented 12 months ago

I tried a piece of the startup command from the github i linked above and now i can acces the 2nd server. I'm using this startup command now and it just works ? rmv() { echo "stopping server"; rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD} DoExit && wait ${ARK_PID}; echo "Server Closed"; exit; }; trap rmv 15 2; proton run ./ShooterGame/Binaries/Win64/ArkAscendedServer.exe TheIsland_WP?listen?Port=7779?RCONPort=37016?RCONEnabled=True -WinLiveMaxPlayers=50 -NoBattlEye & ARK_PID=$! ; tail -c0 -F ./ShooterGame/Saved/Logs/ShooterGame.log --pid=$ARK_PID & until echo "waiting for rcon connection..."; (rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD})<&0 & wait $!; do sleep 5; done According to them: In any case, you ONLY need to forward the following ports: 7777 (UDP only - This is the game port to allow players to connect to the server) 27020 (TCP only - This is the port to connect through RCON and is therefore optional to forward) As of today, ASA does no longer offer a way to query the server, so there's no query port and you won't be able to find your server through the Steam server browser, only via the ingame browser. They set the 2nd server to 7778 and 27021 and so on.

Is there an egg for this github? I've tried to use this github, but since there's no egg I haven't succeeded.

Could you give me the egg you use?

All you have to do is export the egg that allows you to create a second server and share it.

Litterly the egg that is in this repo, please read the readme or use search.

Knaox commented 12 months ago

There is a project that has a working docker image, on linux, with proton and multiple server support. https://github.com/mschnitzer/ark-survival-ascended-linux-container-image/tree/main

what's the name of the egg I'm looking for?

Knaox commented 12 months ago

rmv() { echo "stopping server"; rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD} DoExit && wait ${ARK_PID}; echo "Server Closed"; exit; }; trap rmv 15 2; proton run ./ShooterGame/Binaries/Win64/ArkAscendedServer.exe TheIsland_WP?listen?Port=7779?RCONPort=37016?RCONEnabled=True -WinLiveMaxPlayers=50 -NoBattlEye & ARK_PID=$! ; tail -c0 -F ./ShooterGame/Saved/Logs/ShooterGame.log --pid=$ARK_PID & until echo "waiting for rcon connection..."; (rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD})<&0 & wait $!; do sleep 5; done

you just changed the startup command without modifying the egg? you're using the parkervcp egg?

MachinegunMarty commented 12 months ago

rmv() { echo "stopping server"; rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD} DoExit && wait ${ARK_PID}; echo "Server Closed"; exit; }; trap rmv 15 2; proton run ./ShooterGame/Binaries/Win64/ArkAscendedServer.exe TheIsland_WP?listen?Port=7779?RCONPort=37016?RCONEnabled=True -WinLiveMaxPlayers=50 -NoBattlEye & ARK_PID=$! ; tail -c0 -F ./ShooterGame/Saved/Logs/ShooterGame.log --pid=$ARK_PID & until echo "waiting for rcon connection..."; (rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p Misplaced &

    ${ARK_ADMIN_PASSWORD})&lt;&amp;0 &amp; wait $!; do sleep 5; done

you just changed the startup command without modifying the egg? you're using the parkervcp egg?

Correct:

I'm using the parkervcp egg and just changed the startup command.

Knaox commented 12 months ago

rmv() { echo "stopping server"; rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD} DoExit && wait ${ARK_PID}; echo "Server Closed"; exit; }; trap rmv 15 2; proton run ./ShooterGame/Binaries/Win64/ArkAscendedServer.exe TheIsland_WP?listen?Port=7779?RCONPort=37016?RCONEnabled=True -WinLiveMaxPlayers=50 -NoBattlEye & ARK_PID=$! ; tail -c0 -F ./ShooterGame/Saved/Logs/ShooterGame.log --pid=$ARK_PID & until echo "waiting for rcon connection..."; (rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p Misplaced &

    ${ARK_ADMIN_PASSWORD})&lt;&amp;0 &amp; wait $!; do sleep 5; done

you just changed the startup command without modifying the egg? you're using the parkervcp egg?

Correct:

I'm using the parkervcp egg and just changed the startup command.

for my part, using your startup command, I can't connect to the rcon, although the local rcon port is open, but I have a "connection refused".

MachinegunMarty commented 12 months ago

rmv() { echo "stopping server"; rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD} DoExit && wait ${ARK_PID}; echo "Server Closed"; exit; }; trap rmv 15 2; proton run ./ShooterGame/Binaries/Win64/ArkAscendedServer.exe TheIsland_WP?listen?Port=7779?RCONPort=37016?RCONEnabled=True -WinLiveMaxPlayers=50 -NoBattlEye & ARK_PID=$! ; tail -c0 -F ./ShooterGame/Saved/Logs/ShooterGame.log --pid=$ARK_PID & until echo "waiting for rcon connection..."; (rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD})<&0 & wait $!; do sleep 5; done

As you can see i use port 7779 and rcon 37016 for my 2nd server, you can change those t oyour likings

MachinegunMarty commented 12 months ago

rmv() { echo "stopping server"; rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD} DoExit && wait ${ARK_PID}; echo "Server Closed"; exit; }; trap rmv 15 2; proton run ./ShooterGame/Binaries/Win64/ArkAscendedServer.exe TheIsland_WP?listen?Port=7779?RCONPort=37016?RCONEnabled=True -WinLiveMaxPlayers=50 -NoBattlEye & ARK_PID=$! ; tail -c0 -F ./ShooterGame/Saved/Logs/ShooterGame.log --pid=$ARK_PID & until echo "waiting for rcon connection..."; (rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD})<&0 & wait $!; do sleep 5; done

As you can see i use port 7779 and rcon 37016 for my 2nd server, you can change those to your likings

The parts in gray are from parkervcp's egg, the part in between is what i copied from the other post.

Knaox commented 12 months ago

rmv() { echo "stopping server"; rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD} DoExit && wait ${ARK_PID}; echo "Server Closed"; exit; }; trap rmv 15 2; proton run ./ShooterGame/Binaries/Win64/ArkAscendedServer.exe TheIsland_WP?listen?Port=7779?RCONPort=37016?RCONEnabled=True -WinLiveMaxPlayers=50 -NoBattlEye & ARK_PID=$! ; tail -c0 -F ./ShooterGame/Saved/Logs/ShooterGame.log --pid=$ARK_PID & until echo "waiting for rcon connection..."; (rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD})<&0 & wait $!; do sleep 5; done As you can see i use port 7779 and rcon 37016 for my 2nd server, you can change those to your likings

The parts in gray are from parkervcp's egg, the part in between is what i copied from the other post.

can you confirm that we can now have 2 servers on the same ip thanks to your startup command? i'm not in a position to test, but here's my startup command :

rmv() { echo "stopping server"; rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD} DoExit && wait ${ARK_PID}; echo "Server Closed"; exit; }; trap rmv 15 2; proton run ./ShooterGame/Binaries/Win64/ArkAscendedServer.exe TheIsland_WP?listen?Port={{SERVER_PORT}}?RCONPort=37016?RCONEnabled=True?SessionName="{{SESSION_NAME}}" -WinLiveMaxPlayers={{MAX_PLAYERS}} -NoBattlEye & ARK_PID=$! ; tail -c0 -F ./ShooterGame/Saved/Logs/ShooterGame.log --pid=$ARK_PID & until (echo "waiting for rcon connection..." >&/dev/null); (rcon -t rcon -a 127.0.0.1:${RCON_PORT} -p ${ARK_ADMIN_PASSWORD}<&0 &>/dev/null) & wait $!; do sleep 5; done

This command allows you to change the default port (be careful to use port 7777, then 7778 etc. for a secondary server). It disables the RCON connection result, so you don't get "connection refused" every second in the console. this command also makes it possible to modify the server name and number of players directly when creating the server.

The RCON can also be modified when the server is created, by changing the RCON_PORT value. To make the server start up in pterodactyl, you need to modify the "Start Configuration" egg:

{
    "done": "has successfully started!"
}

can anyone test the connection to this server? testserver134 @MachinegunMarty could you try to connect?

Knaox commented 12 months ago

@parkervcp can you modify the README of the ARK Survival Ascended egg and possibly modify the egg? to tell people how to create multiple servers on their pterodactyl panels?

QuintenQVD0 commented 12 months ago

@parkervcp can you modify the README of the ARK Survival Ascended egg and possibly modify the egg? to tell people how to create multiple servers on their pterodactyl panels?

Make a pr, wr can not merge are own pr

Knaox commented 12 months ago

@parkervcp can you modify the README of the ARK Survival Ascended egg and possibly modify the egg? to tell people how to create multiple servers on their pterodactyl panels?

Make a pr, wr can not merge are own pr

What is a pr? Sorry I just arrived on github

MachinegunMarty commented 12 months ago

i'm trying to make an egg, but having trouble with the servername. If i use any character, other then letters and numbers it fails to log me in.

In the json it uses: SessionName=(backslash)"{{SESSION_NAME}}(backslash)" In the startup command it translates to: SessionName="{{SESSION_NAME}}" Github doesn't show backslah, that why the placeholder (backslash).

But if i manually add the backslashes on the same location in the startup command, it works with special chars.

I just don't seem to be able to pass down the \ backslashes from the json to the startup command.

I made some adjustments to the egg. I added the gameport and removed the querryport. Don't know if i'm allowed to post it here. Maybe someone has a fix for the SessionName problem ??

Knaox commented 12 months ago

i'm trying to make an egg, but having trouble with the servername. If i use any character, other then letters and numbers it fails to log me in.

In the json it uses: SessionName=(backslash)"{{SESSION_NAME}}(backslash)" In the startup command it translates to: SessionName="{{SESSION_NAME}}" Github doesn't show backslah, that why the placeholder (backslash).

But if i manually add the backslashes on the same location in the startup command, it works with special chars.

I just don't seem to be able to pass down the \ backslashes from the json to the startup command.

I made some adjustments to the egg. I added the gameport and removed the querryport. Don't know if i'm allowed to post it here. Maybe someone has a fix for the SessionName problem ??

Hey, I'm investigating because I have the same problem as you.

Are you crashing or just can't connect?

I think it was a bug that was fixed in the egg, you'll have to get in touch with the egg's creator.

Knaox commented 12 months ago

i'm trying to make an egg, but having trouble with the servername. If i use any character, other then letters and numbers it fails to log me in. In the json it uses: SessionName=(backslash)"{{SESSION_NAME}}(backslash)" In the startup command it translates to: SessionName="{{SESSION_NAME}}" Github doesn't show backslah, that why the placeholder (backslash). But if i manually add the backslashes on the same location in the startup command, it works with special chars. I just don't seem to be able to pass down the \ backslashes from the json to the startup command. I made some adjustments to the egg. I added the gameport and removed the querryport. Don't know if i'm allowed to post it here. Maybe someone has a fix for the SessionName problem ??

Hey, I'm investigating because I have the same problem as you.

Are you crashing or just can't connect?

I think it was a bug that was fixed in the egg, you'll have to get in touch with the egg's creator.

You don't have any problems with the RCON connection? Because I have a connection refused every time.

MachinegunMarty commented 12 months ago

I finally got it all working now !!!

Changes i made to the original egg:

Port setup: 7777 - Game Port (UDP) (Only port that has to be open to the outside) 27020 - RCON port (Can be changed to your likings, as long as you add it to the panel)

Server 1 running on: Game Port: 7777 RCON port: 27020

Server 2 running on: Game Port: 7778 RCON: 27021

I only got port: 7777-7778 UDP open in my router, and i can connect to both servers.

egg-ark--survival-ascended [Marty's Edit].json

Knaox commented 12 months ago

I finally got it all working now !!!

Changes i made to the original egg:

  • i removed the Querry Port
  • I added a Game Port (Default: 7777) to host multiple servers
  • Adjusted the startup parameters to accept any and all characters in the server name.

Port setup: 7777 - Game Port (UDP) (Only port that has to be open to the outside) 27020 - RCON port (Can be changed to your likings, as long as you add it to the panel)

Server 1 running on: Game Port: 7777 RCON port: 27020

Server 2 running on: Game Port: 7778 RCON: 27021

I only got port: 7777-7778 UDP open in my router, and i can connect to both servers.

egg-ark--survival-ascended [Marty's Edit].json

So you can connect to both servers separately? because when I connect to server 2 with your egg, I end up on server 1.