How To: PalWorld Dedicated Server AWS with Auto Crash Restarter

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi guys I'm s brood and today I'm going be running you through how to set up a dedicated server for power world using ads light sale so one of the main reasons you might want to set up a dedicated servers for you and your mates to play on without having to one one of them to host it you know on the local machine and it hinder their CPU Ram you know all that sort of stuff so and another one with this specific game is it has a four player C limit so if you got five players you're pretty stuffed so this is probably uh the main reason you're going to be here looking at this so without further Ado let's just jump straight into it so to actually start setting this up you're going to want an AWS account right so you simply go to AWS sign in uh or create your account and you should be greeted with this page so to actually access light sale type in light sale here it'll pop up as the top search and it'll bring you to this beautiful page now you won't have these here these are just this one's one I'm using and this is a test one we're actually going to create a new instance now this new instance can be based anywhere in the world where you're most local to so you want to pick a a region that's closest to you because this will determine the Ping and how much latency and rubber banding you're going to experience during the game I'm going to leave it as us East currently um the platform is going to be Linux select OS only and then you bu to and it's perfectly fine any more than that increase the your you know your CPU and um amount of memory available do not go lower than four I dve with two server crashes so um definitely four as a minimum I'm going to run with eight um just for the sake of this video and then the last step is just the name the the server so it's going to powerd this isn't the name that people going to see in the game um once you've created that it's going to take about a minute to actually set up um but it gives us time to actually get some other software installed so there's two pieces you're going to need you're going to need putty and puty gen um if you know how to SSH into a server don't worry about the step you can just follow along I'm assuming you already have the knowledge uh of actually accessing a Linux server so this is just for the people that don't actually know how to do it um so we're going to use putty so again links will be in the description so putty is the tool that we're going to use to actually SSH or access the the server itself the the console and putty gen um this is a a piece of software that allows you to convert um the key that like s gives you into a key the part you can use um don't worry what that means I'll explain it as we get to it once you got them installed come back to your light sale page there we go serers up and running if you don't want to download putty you can use the in in browser terminal console I'm not a big fan of it it's a bit clunky copy and paste is a bit pain in the ass so I prefer to use putty just something I'm more comfortable with um I'm going to close that click on the three dots and go to manage now this is where you control the actual server instances itself don't worry too much about everything here all you need to know is the IP address this is what you give out to your friends for them to join this is the name you're going to use to access actually access the server itself and then this is the key I was talking about so you're going to want to download that key make sure you remember where it is I'm going to open the file location and then the next step is to actually open Party gen so we need to convert that key to something that party can actually use so you're going to click load and then drag in that key you just downloaded don't worry that disappears it's just simply a file type it's not expecting so click all files you'll see it's shown up there click Open click okay and then we want to save Private key so make sure you save at private key don't worry about the past phrase you can set it if you want I'm not going to um name it whatever you want to name it so I'm just going to power power on vid and then XX because this is unknown amount of times I've done this video open up putty once that's open I go over copy this ipv4 address open up party again paste in the host name IP address leave ports 22 open up SSH or credentials select your private key dis named and then click open it's going to open up a black box here with a security alert you can read that it's perfectly fine click except it's just basically could you connected to this connection first this is your first time now you want to paste in or type in this username so it's fun to there we go now it's opened up so this is your actual service this is exact same thing you saw a minute ago when I clicked on the in browser console so the first thing we going to want to do is actually install Steam CMD so steam CMD is what allows you to download the file or the server files from Steam so we're going to go to the steam CMD valve developer um docs and we're going to scroll to Ubuntu this will be in the description um copy the commands here go back to partty uh right click and click enter and this is going to install Steam CMD to this um This Server so click enter you're probably going to have a few prompts pop up so there we go it's terms of conditions so if you want to read it press the AR keys to go down or page up and page down to read them once youve read it press tab okay then uh sorry AR key and then enter and then this final step is just going to ask you to restart or it's going to restart some services for ccmd to actually initialize so don't worry about what it does is press tab okay there we go so now we can actually get started with the um the install so first thing you want to do is you'll notice we're under the account you B to so we're going to want to create a sub account called or whatever you want to call it um for my case I'm going to call it steam um this is basically needed because I forget if it's steam or if it's the how World server but it needs to be running off a separate account that's not called ubu so the way we do that is we're going to need you to give you B two permission to actually create the account um so we're going to type in Pudo s and that basically gives zip admin permission for this session so once you if you close this and come back you're going to have to type this in again because it it won't be active so once you've typed that then we're going to actually want to create the user so type in user ad um hyphen M and then steam so steam is the account I'm going to that's the name of the account I'm going to I'm going to give it you can name it whatever you want for the sake of the video I'm just going to say follow why I do um but feel free to change the name just make sure you in further steps you you know sub that name out for whatever I've got so type that then you're want to set the password so just type in pass WD and whatever password you're going to want I'm going to use the same there's the name so steam there steam again cool now that's done we're going to actually want to log into that account because you'll still see now we've created that account we're still logged in the route so to do that type in P sudo hyph U then the account name then hyph s and then you'll see it changes it to steam so now we're actually logged in as that account we just created so we need to navigate to our home so currently we're not on our home you'll see we typ in LS information for this folder because we're under the old account that we just did so to do that to navigate out this type sorry CD home and you'll Now find we're at the roote for the both accounts so steam is the account we just created we onu was the original account so now to we need to navigate to our our account files so type in CD Steam and now we're actually in our Steam folder so this should be empty to start off with now the first thing we're actually going to want to do here is install the server package so copy and paste the server um install command I've got here you don't want to type it out you might mess it up it's easier to copy it again it'll be in the description Okay cool so now you've got that fully installed um I'm going to just run you through quickly um feel free to skip ahead this is bit I don't want you to follow along I just want to explain uh some of the what we're going to do right now because if you have no idea what Linux is or what you know the commands are it was going to look a bit cryptic to you um and this may actually be valid for other servers if you're getting the S so if you tried to if you followed say there's a lot of up tutorials out there say you followed a um a Debian tutorial it's it's fairly s it's all Linux it's all similar commands H it won't work for L for Ubuntu because of this issue now the server doesn't run because there's two AR to pop up it can't find SDK 32 and SDK 64 now I don't know if this is poor um export settings on the developers part or it's an issue of unreal um but it's trying to basically find a file that it's looking at a directory that doesn't exist okay so I'm going to show you where the directory Is So currently um we're in you know our base home directory for the account so if you type in LS you're just going to see Steam but if you type in LS hyphen La that's going to list every file including the hidden files so you remember when we installed steam CMD that is in here but it's in it's it's hidden in a separate file separate directory so if we CD into local and Ty in LS you'll see share okay so it is within the share folder so you see it into share H us again you'll see there's another Steam folder now bear with me because I know there's a lot of steam steam steam popping up everywhere but um like I said don't follow along with this just just hear me out so if we CD into the steam directory here in LS you see we got steam CMD CD into steam CMD LS and here we have Linux 32 and Linux 64 now like I say if you get any issue of where it can't find steam so Linux 32 or SDK 32 or you know SDK 64 this is how we're going to solve it so because we now know where these are located we can create a thing called a system link now if you are a programmer you know um hopefully you know what pointers are so this is effectively a pointer or a reference um to these two folders okay so when we create it it's basically going to say hey here's a file when you access this go to this place instead um and that should solve any issues you're having in regards to SDK 32 and SDK 64 so if I have CMD sorry CD we'll go back to our our base directory um now this is where we continue on from okay so to solve this issue we need to create a new directory called steam okay so type in MK D and then steam now dot before it basically means it's going to be a hidden directory um and if we typ in LS hyph La you'll see Steam is now in there so we want to navigate to that directory so type in cd. Steam and you see it's CMC directory so this is where we're going to solve the issue so this here this command is what you're going to want to type so Ln h s blah blah blah blah blah Okay so we've got this one to do LS you see it's in there make sure it's is teal blue if you're using puty if you're not I'm I can't really help you too much I don't know what the colors on your um terminal are going to be but if it's red it basically means it hasn't linked properly if it's blue that means it's linked correctly okay and there's a way to check to see if it has linked and the way is type that in and this shows you the system links between um the directories so you can see here SDK 32 which is this is pointing to that local share steam Steam L to okay so now we got do it for the 64 so simply paste in the 64 version and there we go LS again and they're both linked cool so now that's the issues with the server sword type in CD go back to that base directory um so the next step we need to do is basically we're all done in effect you could go into CD into steam make sure you have the capitalization um LS and then CD steam apps SL common LS in and you'll see we've got a new folder in called Power server and that's the actual server files itself so we CD into that power server LS to show the files and this is all the files for the server so what you do is you actually run this script and this points to a executable within power binaries uh and there's another sub folder and I forget the name of it um so to basically run the server if we just paste this command in here you'll see it runs and then once you get this last succeed here that's just over running so if you just wanted to leave it at that and give out this IP to your friends um that's pretty much all you have to do bar one last step okay so servers are running last thing you need to do is go to network in on light um light sale and then we need to add the port of the game so the port of the game we just double check is8 211 now I can't I'm not 100% sure what um protocol you're using I have a feeling it's I'm right 9% sure it's going to be UDP um most games are we're going to add TCP as well just to be safe so uh 8211 uh TCP click create then 8211 for UDP click create now that's okay it should be pretty instant if not give it a minute you know wait a little bit um and then you can head to the game and then at the bottom you go to join mplayer game at the bottom there's an IP address you just paste in the IP address make sure the ports the same and then click connect and it should directly connect you to the game now we've got a few more steps because we want to create a Auto restar on Crash and we also want to change say the server name or add an admin password and change some of the you know some of the rates so maybe like a harvest rate or um a power Health regenerate so we're going to close the server the way you do that is control C okay we type in clear this clear this console up and then we Ty in LS just to show the um server directory so the I'm going to go ahead and edit the in file first okay so this is what you're going to use to basically change the rates and everything like that so you're going to type in this command here and then followed by this command now this command is going to open up a thing called Vim uh it's basically a command text editor it's a bit confusing when you first but try not to borrow I'll explain everything for you so uh you where you navigate this is using an arrow key so we're going to Arrow key all the way down here if you press end it's going to take you to the end of the file and the reason we do that is because the stuff we need to edit is pretty much right at the end of the file um so we're going to skip through all of this don't set a server password yet as of the 22nd of January server passwords are a bit broken um if you try and direct connect it doesn't bring up the password window so you your friends can't connect um we're going to set admin password just to 9999 set a description say uh my co server you don't have to do that but and then we're going to move across and change the name to say uh Brad's power power server um here you can change the max player limit um and then let's go change the uh death rate uh what happens on death so basically well at the minute if you die you drop a drop all your gear your poers and all that it's a bit of a pain in the ass um so we're going to set it so that way you don't drop anything now it was a bit of a pain trying to figure out how you do that because the doc there's no documentation for the server stuff um there's a bit of a tri trial and error on my part um the way you do it is you head over to death penelty here get rid of all and type in none I'm assuming this is any num on the server side code side um so yeah if you don't want to drop any of your gear type in none here doesn't have to be in um speech marks which is why I'm assuming it's um then once you've done your stuff we've changed everything you want all the drop rates make sure you follow the pattern that they're following um press control and x and then press yes Y and then click enter now that saves that any F any changes you've made are now saved um and now the last step is we're going to actually create a auto restart so clear the console again so when the server crashes obviously it's not going to come back up unless you come back in and type in um this command here now if you're not at your computer all the time which who is it you know it's going to be a bit of a pain in the ass your friends are going to be waiting it's just easy to have an auto restart so this is going to be a bash script so it's I'm not an expert in bash script so if you know a better way of doing it feel free to post in the comments and I'll pin it for everyone else to um you know to to use but this is just a simple bash script so the way you create a bash script or a file in Linux is you want to type in the command touch and followed by the name of the file so we're going to name it restarter and then sh s is the uh extension for the exq or script basically type in LS and you'll see we have restarted there now currently it's it's why because it doesn't have permission to run so we need need to give it permission to actually run so the way we do that is Type in ch mod plus x uh followed by the name of the file you've got so we're going to call it restarter I can type sh and I'll give permission so now we type in LS it should be green cool so now we need to open it up so type in Nano again and then name of the file restarter sh and open up Nano and it should be blank um and then what you want to type in is while uh colon sorry colon semicolon dop binaries slash Linux slash power server server python Linux Pyon test semicolon space done okay so I'll P this in the comments or in the description sorry but that's what you need to do okay press control x a save y enter and that's all done for you so now that's all done all we have to do is run the server with it aut to resign is run this command but sub out where it says power server. sh for um restarter sh and then you'll see it restarts a server it starts ser and then it crashes it restart so we're going to close that by pressing control C again I'm going to clear the console and load the file directory up again now I just want to explain where we got that um all the all that information here from okay so this is basically here is the exq for the server this is the directory path for the server so if I just show you where that's from LS if we CD into this directory here so CD power you'll see what we typed in mirrors this directory so we're going to go to CD binaries LS CD Linux LS and you'll see Power server Linux test and that's the actual server we're running so just in case you're curious that's where it's from so to get back type in cdash LS and here we back in the CD uh the directory again for the server clear that again now if you should just run the server it'll be fine until you close this console or the webp console so the way we get around that is we're want to create a thing called a screen now in Linux a screen is effectively a new tab like in a browser so it's like me opening up this light S Tab and then going to another Tab and doing something else that light cell tab is still running in the background that's effectively what we want to emulate on This Server the way you do that is you type in screen okay bring this prompt press enter and there you go so what that basically means is it's now created that tab so the way we exit that tab just so I can show you is you press you hold control press a and okay and you'll see it say detached and now you're probably wondering how do you get back to that screen so if I just show you um how you see all your screens because you can create multiple of these you typed in screen and screen and screen screen you can just create keep creating them as many as you want so now we've gone back we we've exited that tab we're back on our main Tab and you can see this is the ID for the screen and it says detach basically means it's in the background okay we swapped away from it to reattach it which is what it's called type screen hyen R for reattach and then that code here so we want to type in 37 oh sorry 3782 it reattaches that tab okay and then you want to exit again control a d so here we going to open up that directory now your commands won't be in here because we're a new screen the commands are a screen based okay so to run the server we're going to paste that command back in Click enter watch it start up everything once you get to succeed it's all good press contrl a d and then your screen running in the background so we screen LS yep still up and it's detached now you can safely close this window and then head to your game and it's going to be up indefinitely until you know the server maybe updates then you'll need to come in and update your server um but that's basically the same way the same thing we just did a minute ago with the um with that command okay so that's all good that's all you need to do you can close partty now close a session copy your ipv4 address here and then we'll swap to the game okay so now we're in the game go to join multiplayer game um and all you need to do is join the game is paste your IP address down here and then leave the port that now there's a bit of a bug at the minute with servers showing up on the community server list so if you can't find it using your the name you you've given the server don't worry just use this down here hoping they fix it in you know a further patch but for the minute this is the way you'll connect so if we click connect you should see this appear disappear for a second and then appear again and that basically means as far as I can work out you've connected to the server so we'll just wait a few seconds wait for it to connect and there we go now we're in so I hope that answered um any of your questions on how you start Linux server is the most affordable way of doing it um it's a lot cheaper than if you were to get a you know game server host they tend to charge quite a bit more you're very limited using the C panel it's I mean it's perfectly great tool but you don't have like access to the actual server like if you wanted to create your own scripts or you know create your own mods and customize it in how you want um you can you can do that you know to your to your heart's content yeah I hope that that solves all your issues if you have any issues feel free to ask below and I'll try my best to get to them and you know anyone else that's more that's experienced with saying up servers please you know feel free to help everyone that's in there um so yeah I'll catch you in the next video cheers
Info
Channel: Cyrex Brood
Views: 4,779
Rating: undefined out of 5
Keywords:
Id: yHUaoZmCvok
Channel Id: undefined
Length: 23min 29sec (1409 seconds)
Published: Mon Jan 22 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.