Darkflame LEGO Universe Server Setup with VM | (2021)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys today i'm going to be showing you all how to create a dark flame like a universe server this tutorial will be for both ubuntu and windows a couple days ago i made a tutorial on this with how to do it with windows uh i was installing it using wsl which worked but there were a lot of issues with it i saw a lot of the problems people were having in the comments and i also encountered some issues of my own later specifically with trying to get my friends to join the server that proved very difficult because i just how the networking works with wsl and so since then i learned a better way to do this which for windows at least is using a virtual machine for people doing ubuntu or linux natively this tutorial will be pretty much the same you're just gonna be skipping the virtual machine setup step so if you are on a windows machine then keep watching the video from here and i will show you guys how to install a virtual machine on your computer uh if you are using ubuntu or some other linux system natively then you can skip this step and move on later the video i'll have chapter set up so you guys know exactly where everything starts and ends so with that out of the way let's get started so the first we need to do if you're on windows is you need to download a virtual box and that is just a program that allows us to create a virtual machine on our computer so to do that just go to virtualbox.org and i will leave a link to this in description and then go to the downloads page and this is from windows we'll click windows hosts and then just click save file to download once it downloads just run the installer and then go through it's really simple i'm going to skip that because i've already installed virtualbox my machine hit cancel once you've installed it just go ahead and open the program and it should open up into the virtualbox manager and they want to go over here and click the new button to create a new virtual machine here you can type in a name for the machine it doesn't really matter what it is but i'm just going to call it uh dlu server and then you can choose a folder you want to put it in it's i just leave it default so for type this is where you choose the type of operating system you want the virtual machine to run so we want a linux operating system and then the specific version is we want ubuntu so you want to scroll down and choose ubuntu 64-bit now here is where you specify how much ram you want to allocate to your virtual machine for me personally i'm going to choose eight gigabytes but you guys could do less i just wouldn't just as a rule though i wouldn't go any less than two gigabytes so to figure out exactly how many megabytes that is you just want to type in 1024 times eight and that's how many megabytes the that size is so i'm just going to copy that and then paste it into my virtualbox here and then for here under hard disk you want to leave that to create a virtual hard disk now and let's go ahead and click click create and here is where we specifies uh how much storage space you want to allocate to our virtual machine so by default is 10 gigabytes i'm going to change mine to 50. you can do more or less i just wouldn't do i would just keep i wouldn't do any less than 20 gigabytes that's like a safe amount where you have enough room to store everything and then keep everything else default you want to keep vdi and then actually you want to change this one to fixed size so do that and once you've done that go ahead and click create and then you'll get this it'll probably take a you know a minute or two so just be patient and let that finish once that has finished setting up the virtualbox manager should look something like this you should see your new server right here on the left before we start it though we need to actually install ubuntu onto the machine so to do that we need to download an iso image which we can get directly from the ubuntu website so the specific kind of ubuntu system that we want is ubuntu server version 20.04 so do that just go here and type in ubuntu server 20.04 press enter and then just choose get ubuntu server right here and then you want to do manual server installation and then download ubuntu server lts and i will leave a link to this in the description as well and save file and then just let that go until it finishes when the download is finished we can go back into virtualbox select your virtual machine on the left and then click settings now we need to go into storage and then click this little thing right here that says empty this is a virtual optical disk then go over here and click this blue button and select choose a disk file and then choose the iso image that we just downloaded and click open now before we move on we need to configure a few more things for our virtual machine first thing we should do is go over to system uh and then go to processor and here you can specify how many processor cores from your pcs or cpu that you want to allocate to the virtual machine so i would go over to the where the green and the red meets you could do less but you know for best performance i would do something around here so after you've done that we want to go over to network and then by default the network adapter should be set to nat you want to click that and change it to bridged adapter if you don't do this then you will have a lot of problems later trying to get other people to connect to your server so once you've done all that select okay and then we should be ready to start up for the first time so just go ahead and click the start button and now it should be booting up and we'll be able to start the installation when it first turns on you're probably going to see a window like this it's going to say a bunch of stuff it'll probably take a minute or two to boot up for the first time but just let it just let it run let's do its thing and then when it's finished doing all that we actually start installing stuff when it's finished booting up it should look like this and now we can start installing ubuntu onto the virtual machine so just like your language i'm going to do english i just leave it at continue without updating right here and then this is just keyword layout i'm going to leave that how it is and this is just telling you how it's going to set up your ethernet adapter and just skip this click done done yes we want to use entire disks just scroll on down to the bottom and click done again and then let leave this as default yes i want to continue now here you just type in you're just setting up your account for the system so i'm just going to do westin and that's my name and then we type in the name of our server so i'm just going to say dlu server then pick a username so i'll just do that again and then set your password and then when you're finished setting it up just click done at the bottom and then right here it says install open ssh server you we do want that so just press enter there's an x and then just go down to the bottom and click done and this right here is asking you if you want any of these packages installed with your server we do not so just go all the way down to the bottom and click done and now it's actually installing ubuntu so this will probably take a couple minutes so just let it go and then we'll move on once it's finished when the installation is finished you should see an option at the bottom of your screen that says reboot now let's go ahead and select that and then you'll see a screen like this where it says failed a bunch of times that's okay we need to do is that you need to go uh exit the window and just choose the power off machine option and click ok and then we want to start the system again now the system is booting up again you'll see a bunch of text on the screen just need to wait for that to finish and then at the end it'll prompt you with a login screen when it's finished you should see a screen like this um all this text right here is like hiding the login screen so once all the text stops moving just press enter one more time and then it'll ask you to log in right here so i type in the login info that i specified when i was installing the system then i'll sign in and then cool now logged in now uh next thing we're going to do is we're going to install putty on our windows machine and putty is just a system or a program that lets you log in to systems like this remotely the reason why we're doing that is because the virtualbox like command line here i don't really like because to my knowledge i'm not even able to paste anything in here you know the typical control v or right clicking doesn't work on this thing and also it just doesn't always display things the right way and so it's usually just better to use putty instead so what we're going to do is keep this window open for now oops and then we want to go a new window in our browser and then do putty and then you want putty.org right here so click that and then click the download link and then since you're on windows you want to download uh right here 64-bit and then just click save and then follow the installation instructions it's really simple just like the virtualbox one i'm going to escape that because i already have putty installed so once you have a putty installed you're going to want to open it and so here you want to type in under hostname you want to type in the ip address of your virtual machine and to find that you want to go into back into virtualbox here and type hostname dash i it should see a single ip address and you want to take that ip address and type it right here so 192.168.254.120 and then leave the port as 22 and then click open and then you'll probably get some kind of security right here that's okay just click yes and then now you can log in like you were before so the same login info cool and now we're signed into the machine so we don't need this one anymore so we're just going to minimize it we need to keep this uh on because if we try to exit it'll power off the machine so we can leave that open for now and now that we have this all set up we can start installing the actual dark flame universe server so the first thing we need to do if we are going to install the server is set up some way that we can transfer files from our windows system into our virtual machine or if you're doing linux natively the answer to find some way to transfer files between them so for the windows users um we're going to install this thing called guest additions which is a package that virtualbox has supplied that allows us to actually set up a shared folder between windows and a virtual machine if you're using ubuntu natively you're going to want to use something called filezilla and i will put a link to the description or a link in the description on how to set that up to with your ubuntu system i'm not going to go over that in this video because there's many gear for windows users but i will leave a link to that tutorial in the description or that article so to install uh guest additions you want to go to your terminal here and you want to do sudo apt-get install virtualbox guest utils press enter and then it'll probably ask you for your password to prove your admin oops i got it wrong there we go and just let that install all right when that's finished you want to go back into the virtualbox manager and click select your machine and then choose settings and then here you want to go to shared folders and click the plus button here and then now we want to shoot right here we choose what folder on our windows machine we want to share with the ubuntu machine so i'm going to choose what i have here in desktop desktop i was going to do this shared vm folder i made this beforehand so just select folder and then click auto mount and make permanent i click ok and then ok again and now that folder should be shared with our machine so to test that we can go here and it should be mounted in our media folder so if we do uh ls which lists all the files and folders in a directory we can do ls slash media and then we should see it right here so they add an sf underscore to the front of it but this is our folder and if we were to uh add something to it if uh actually i file's not right now so if i were to uh ls media slash sf shared vm folder oh i think i need to be do this as pseudo solution and then we'll try that again do ls media there we go and now we can see the files that are in there now that our shared folder is set up we need to install all the dependencies that the server needs to run to make this easy i have created a bash script that will install everything we need for us so i will put a download link to this file in the description so you guys can just download that and put it into your shared folder like i have here and then you can run it from your terminal and it will just install everything that you need so what we can do is we can do let's go to the root folder here and then we can do dot slash and then type media slash and then the name of your shared folder so we'll do sf shared vm folder and then type the name of the file so server depths install sh and that will do its thing and start installing everything that we need this will probably take about a couple of minutes so just let go the next thing we need to do once the once the dependencies are finished installing is we need to download the source code for the server you can get the link to that by going to the dark theme universe github and then you can copy this uh command right here so we do that go back to the terminal and then let's clear everything and then paste that and that will start downloading it into the root folder once it's downloaded we need to build the server code and to do that we can change into the uh dark flame server repository or full directory security thing so it says here we need to create a build folder so let's do make dir dash p build and i need to change into that directory and then run the cmake command and then add two dots at the end of that and now i need to run make now this command uh will take some time because it's compiling the the entire source code so probably take like five or ten minutes if you have a machine with a lot of you know processors on it then you can tell the command to use those processors to speed up the to speed up the um the build so the way to do that is you dash j and you type in how many processors you want it to use so for me i'm going to do four you can you'll have a different number uh like if you have a six cores on your pc then you can use six if you have four then use four you know however many you want just know that the less cores that you use the longer it's going to take so to do that just press enter and it will start compiling you'll see some kind of screen like this um uh just let it run until it gets to the end if you see like the purple text like this or this kind of thing right here don't worry about it these are not errors they're just warnings if you see red text then that's a problem and that means you probably did something wrong if you get red text then just try the whole thing again and see if that fixes it so i'll be back once this is finished once the source code has finished compiling we can move on the next step is to set up a database for the server this database will be used to store like player data and that type of thing to do that we need to first clear the screen and then type mysql secure installation and so type in the password for your root user and so it's gonna ask you to change the root password no we don't need to do that we'll see how it is and then remove the anonymous users yes no uh yes and yes okay now that we've set that up we can log into mysql using a root user so just do my sql dash u for user name and then root and space do dash p and it'll ask you to type in your password so just type that in and now that we're in uh we need to create our database so to do that just type in in all capitals create database and then type in the name database for me i was going to do dlu don't forget to send my column at the end press enter and now i need to create a user that the server is going to use to make changes to the database so do that we need to type create user and then in quotes type the name of that user so i'm going to do dlu server and then at localhost i'm going to do identified by and then type the password you want that user to have so i'm just going to do dark flame and then do something cool and press enter and then our user should be created now uh now next we do is we need to give that user privileges to edit this table so we're going to do is uh grant all privileges on and then type the name of your database you just created so we'll do dlu and then do a dot star 2 and then type the name of your user again so you'll use server at localhost cool and now it should have all the permissions it needs so to make the permissions active we need to do flush privileges and now the user should be created and able to access the database so to test that we can actually log in with this new user we can exit and then we can try to log in again so we can do mysql dash u so typing root type the name of your user of your new user so dlu server and then dash p and then type the password for that user so for me that was dark flame all right now that i actually have this database created we need to actually make changes to it so that way it's in the format that the server wants it so if we scroll down here to the database section it has a link to a list of files sql files that we need to run on the database so we just go to this link open a new tab and we'll find that we need to run this file on the database and if you actually look at this files actually inside of the darkflame server folder that we have so what we can do is first you type the command to use and then type the name of your database so dlu from me and what that does is it tells uh this mysql command line that we want to make changes to this specific database so i'm going to do is going to need type source and then just write out the path to this file right here so we're going to do slash dark flame server and migrations slash dlu and then zero initial.sql and press enter so it works correctly you should see a bunch of these uh query okays being printed to the screen and now that database is all set up and ready to go for us so we are finished with that part of the tutorial so let's do exit and we can clear now we can go into the next step so now we need to create the resources folder for the server and the resources folder is as the name implies just a bunch of resources that it needs to run properly so if we scroll down here it says we are going to need the uh macros folder brick models this text file names and maps and this can all be found inside of your lego universe client so to do that just pull up your client uh from your computer and you need to make sure that it is an unpacked client the way you can tell if it's unpacked if you go to the res folder you should see a bunch of these folders inside of your client if these don't exist and that means you have the packed client and that is the wrong one so we have to make sure you get the packs unpacked client first and then come back to this step so what you do is you need to transfer a bunch of these folders specifically the ones listed here onto our virtual machine so do that we need to we need to utilize our shared folder like before so let's open up that folder i have it right here so this thing said that we needed the macros folder so i'm going to take that one first and also brick models let's just copy those and paste them in there and then let's see what was next we see that text file and names so it's a chat plus right there and then we'll take the names folder and copy that as well and then we also need the maps folder all right so let's check it over one last time make sure we got everything from one so we need macros and that's there we need brick models yep the chat plus yeah and the names right there and maps okay cool now if you look down here says one last thing to do is you download uh some nav meshes from this link and put them inside of our maps folder right here so if we just go to this link here and then just click download and then once that's completed you can go we can open up the zip file and then just unzip it to your maps folder so we can just do extract to and then just find your shared folder and do maps and then just select that and then click ok and then i've already have put my um i've already unzipped nav meshes to my thing before that's why this prompt is showing up so i'm going to say yes to all the replacements already have there and then click yes and then now you're good so if you look inside of your maps folder now you should see a folder named nav meshes should have a bunch of doping files inside of it once you've done that then you're good all right now let's go back over here that thing says to do is need to set up the locale folder so if you look inside of your uh like a universe client if you go to the main folder outside of res you just see a folder called locale click on that there's one file locate locale.xml so you need to copy that and put it inside of our shared folder so let's go back to desktop and then just paste that in there all right so now we're good for that step for now so uh one more thing for this next step here we need this uh other file called cdclientfdb so we're also going to copy that into our shared folder so let's um go to the universe and then res and then look for c decline to fdb and then copy that into the shared folder too okay so now we have all these in the shared folder we need to go back into our terminal and copy all of these onto our virtual machine let's do that back here so first let's change into our res directory so we're going to do dark flame server slash build slash res and that was clear so to copy the things we need over we need to run this cp command which is short for copy so first type in the path of the thing we want to copy so what we're going to do is we'll do slash media sf underscore and then type the name of your folder so shared vm folder and now we just type in what you want to copy over so first let's do brick models and then you do a space and then you type in the path of where you want it to be so we're already in the directory we want it to copy copied to so we just type in the name of the folder so brick models and press enter let's see uh whoops i need to add you need to add a dash r to the beginning since we're copying a folder so after cp just do dash r in the space and then run that again there and actually start copying it'll probably just take a couple seconds because the folder is kind of large just wait for that to finish all right when that's done we can do the next folder so just if you press the up arrow on your keyboard it will automatically fill in the last command you ran so we can do that to fill the most of the thing here let's delete the name and then type in the next thing we want to do so now let's do macros and press enter again let that copy and then let's do maps that'll part a kiloseconds and then student names okay now next we've got to do is copy over the cd client since that one is not a folder we can delete the dash r part and then let's go back and just change that the name so we can do cd client.fdb and then see client.fdb and then let that copy over all right oh and then we also need the chat plus forgot about that one so press upper again and then chat plus en us.txt all right cool now since we're going to cut we need to copy the locale xml file into the locale folder so that is in the next folder over so we do cd dot dot and then cd into locale and now we can run the copy command again to copy it into this directory so now just do locale.xml and then locale xml awesome now we've got all the files that we need uh transferred into our virtual machine and the res folder is finished the next thing we need to do is we need to set up another database so this message with the cd client file we just copied over earlier and basically what we're doing is that uh we are just converting this uh fdb file into an sqlite file using this uh python file here and we can download this file up here from this lcdr's utilities repository so the first thing we're going to do is we're going to download this repository so just go to this link and then we just need to copy this and now we need to go into the directory we want to download this into so we're going to go into the dark flame server repository suggest dot dot slash dot dot and that will clear and now just type git clone and then paste the link we copied from right here and that will download it into this folder all right so we got that so now we can go back here so we need to do we need to run that fdb to sqlite python file on this cd client file we downloaded earlier so let's go back into our res folder so we can do a cd build slash res let's clear again now do a space and then do two dashes and type sqlite underscore path another space and i would just type in the path that we want the resulting file to be in so it says here it needs to be named cdserver.sqlite so type that so we'll see the server.sqlite and press enter and then if it's working correctly you should see output like this it'll take like 10 seconds just let it run and do its thing all right cool when it's finished it should tell you this message right here and now like last time we need to run a few sql files on it which are listed right here at this link so just right click on that you have to run these three files on it on the database in order and they're also inside the dark frame server directory so let's clear the screen here and since this is a special type of database in sqlite database we need to run a different command so instead of mysql we're going to be using sqlite3 and then we need to type in the name of the database or we type in the the database we want to make these changes to so we'll do the cd server the sqlite file and after that do a space and then do that angle bracket and now we just type in the path to this sql file i want to run on it so that is in dark flame server slash migrations slash cd server slash zero nt footrace.sql and then if it works you should just move to the next line it won't say anything in the output i'll see the up arrow and do the next file so we do one fix overbuild mission.sql and then do the last one this will take a little bit longer because the files uh bigger than other ones components.sql oh whoops type the wrong name get rid of the s and there we go so now that database is all set up so we can move on to the next step just like that all these all right cool so the next step is we need to edit these four configuration files and what we're doing in there is we're just basically just going to be setting um we're going to be telling it our login information for our mysql database we set up earlier and that will give the server the login the login credentials that it needs to make changes to our database so this is located inside the build folder so we need to move up one directory and if you do ls you should be able to see those configuration files so there's four of them there's auth config chat config master config and world config so you should be able to hear this there's auth there's chat and then world and master so we need to edit all four of those to have our login information to do that just type nano and then type the name of the file you want to edit so we'll do auth config.ini should look something like this so right here under mysql host you want to change you want to enter localhost and for mysql database you type in the name of your database so we'll do dlu for me might be different for you for under username you want to type in the name of the mysql user that you created so for me that was dlu server and then type in the password for that user for me that was dark flame and then here for external ip you want to type in the ip address of your of your virtual machine so to check what that is uh let's do control o again real quick that'll save our current changes and then do control x and then let's type hostname dash i and then you can see that's my ip address right there so i'm going to go back and do nano so go down here delete localhost type 192.168.4.120 and then down here at dump folder um this is going to be the folder that this uh that the server will put crash logs into uh so we're gonna do for that we're gonna type uh crash logs slash auth and then uh we'll create these directories after we finish configuring these files but for now we're just going to say that once you're finished there's do ctrl o to save and then control x and now let's edit the next file so let's do nano chat config.ini and then basically do the same thing again so dlu and then oh sorry that's localhost dlu w server dark flame and the same thing here with external ip and then dump folder we're going to do crash logs slash chat then control o enter save and control x now do the next one so the next one is a world config so do the mysql stuff again w dlu server and then dark fine for dump folder we'll do crash logs slash world and then this one does not have the external ip um value so we're just gonna you'll need to type that in here just save it exit and then the last one is master config so localhost again dlu you server darkflame and then the localhost computeris and then the dump folder is a little farther down right there so crash logs slash master and now control o enter and exit and now we need to create those crash log folders we did earlier so first let's do make directory crash logs and that'll do the four we did in there so we'll actually do crash logs auth crash log slash chat crash logs uh world and crash logs master and now if you do ls crash logs it should show all four of those directories in there and there they are so that's good now we can move on to the next step so now we get to uh run our server for the first time kind of or actually we just create our admin account for the server so to do that we need to run this master server command and then add dash a and that will allow you to create your admin account so if we do dot slash master server dash a and then it should uh don't worry about this warning here that's not going to hurt anything it just wants us to enter usernames this will be so you're creating an account here so you can make the username whatever you want this will be what you use to log in uh when you play and this will also just be the admin account that has all the permissions for your server so for me i was going to do alicor and then type in the password you want for this account press enter and then you should get this successful message right here and i've created your account so next we need to do is need to create the account manager and the account manager is just a web application that developers made for us that makes it easy for people who want to play on your server to make an account for it so to do that we need to go to this link and just follow the instructions so the first thing it tells us to do is need to install requirements here but this is just a list of dependencies that this server needs but we already installed those at the beginning of the tutorial when i had you run that um that bash file that installed all the dependencies so that's already taken care of so what else we can do is um we need to download this repository into our dark flame server folder so let's go cd dot dot get into dark flame server and now let's do git clone and then paste the link to this repository and press enter and that will download it now let's change into that directory so see darkflame server slash account manager and that's clear so now we just need to create these uh two files right here so let's copy this one go back to our terminal now it says this file needs to be named credentials.pi so let's do a nano credentials dot pi and then just paste that text in there so here for a secret key it just needs to be a long random string that says right here so for this part you can just spam your keyboard it can be whatever you want it really doesn't matter just make sure it's long and down here for db url we just typed in a bunch of information from our database so for mysql user you just type in the name of the user that you created so dlu server for me and then type in your mysql password so that was a dark flame and then for host that is just a local host for us and then for mysql database you just type in the name of your database so dlu for me and i'll just do control o enter to save and exit so i'm going to do the second file which is resources so just copy that text and i need to do nano resources dot hi and paste that in there's nothing we need to edit here so you can just save this press enter and now our account manager should be created or should be ready to go so down here it has instructions of how you run it it's very simple we just run uh this python file called app so we can do python3 app.pi and then it should be looking like this don't need to worry about this red warning here it's not hurting anything and so it shows you right here where it's running at so if you actually copy this link and then you open a new window in your browser and paste it it should look like this so click down here says there's endpoints here there are two endpoints you can use there's login and activate so login is what you the administrator is going to use to view some information about the server and also create cd keys for your players to use when signing up so this is what we're at right now this is the login uh end point so if you sign in with that account you just created alicor and then uh type my password then do log in you should get something like this so here you can see activity uh like how many play sessions there are you see the play time and then i don't know what this graph is it's not labeled but then up here the this is more important part this lets you create keys so if i want to create a key right now just type in how many i want to generate so i'll just do one and generate keys and then here is a play key and this play key is what your uh the people that your friends that will join your server they will use this when they are signing up for an account so when your friends are signing up for your account they will go to this address here and then instead of slash login or dashboard they'll type activate and press enter and so here they'll paste the play key that they got from you so you can paste that right there and then just type in the username they want to have on your server so i can do elacore's friend and then you can just create a password and then agree to that and then create an account and then your friends will be able to use that account to sign in to your server and play such just how you use the account manager it's pretty useful tool if you didn't have this you would have to go into the mysql database manually and type in a bunch of command command uh commands in the command line to actually add their account all that kind of stuff and that's not convenient at all so now that we got the account manager created we can move on and now we get to actually run our server for the first time because now everything is ready to go so let's control c to end this part here and clear and if we go back into our build folder we should be able to run the command so let's do dot slash master server and that should print out a bunch of messages right here that's okay just if the service is telling you what it's doing and when it's ready to go at the very bottom it should say ready zone zero and that means it's ready to like accept players and stuff so what we can do now is we need to go to our client and edit our boot.cfg file to point to our server address and that will tell the client where to look to connect to the server so just go to boot.cfg right here right click and do edit with some kind of text editor so right here where it says auth server ip you want to copy the part or you want to remove the part that says localhost and replace that with ip address to your server so for me that was 192 168 254.120 and then save that and now your client should be ready to um actually log into your server so if you open your client file now and then now you can just sign in type in username and then use the password you set earlier and then sweet be logged in and now we can create a character and actually play the game so let's get a cool character going i'm sure it looks pretty cool and then you can choose name and everything i'll just say cool kid because he looks pretty cool and now it's loading in and we should get the cool cut scene in a second oh yeah nostalgic sweet and now we're actually in the starter area and we can play and walk around and do everything all right so that's cool we got this working now there's a few more things that i want to show you guys so right now the server is running so now i'm going to show you guys how you can start the server back up again if you like shut it down and you know all that kind of stuff so uh to shut down you just press ctrl c and it's kind of finicky it takes a while like it'll show this stuff it says trying to shut down the world i just have to wait a little it usually takes like you know a minute or two for actually fully shut down it's kind of annoying but basically just let it go and then you press you know control c a bunch of times it'll say destroy mysql connection it's okay just let it do its thing um and then when it's finished um i'm gonna end up prematurely right now uh but you can just do this so let's shut it down so shut down the virtual machine all that kind of stuff so we can start it back up again so power off okay and then we want to close the virtualbox uh window all right so now that if you just turn back turn on your computer and you want to start up the server all you got to do is just go to open virtualbox and then you need to click the start button here at least we got to open we got to open this because we need to check if the ip address for your um virtual machine has changed if you don't want it to change every time then you need to set a static ip address i'm not going to show you how to do that because that involves changing settings inside of your your network's router and since everyone's router most everyone has a different model of router and if you're a different service provider then this screen that you use to configure your router will be different and so most likely what i show you is not going to be directly applicable to you so if you want to set a static ip address for your device there's lots of you tutorials so how to do that and you can probably find one specifically for your router so if that's something you want to do then you should do it and i actually recommend that you do do that because um if your iphone changes every time you turn it on then you're going to have to edit your um you and your friends are going to have to edit your configuration file to match the new ip address every time so just keep that in mind so we need to do so we can uh start the server is we can log in and then let's go to our root sudo su basically everything and then to find the ip address just to host name dash i and then luckily rp address was the same so i don't know how to change anything but if your ipad just was different then you would have to go into your configuration files remember the the master config.ini the auth config.ini you have to change those ip addresses to match this new ip address and that's why i really recommend you guys set up a static ip address if you don't you have to edit files and stuff and that's just a really big hassle so just go up onto youtube and look up how to set a static ip address for a computer in your network something like that so now that we have our ip address you can just make the changes that you need if they're needed and then we need to go into our dark flame server folder here slash build and then do dot slash master server and that will start the server and then you can just leave it running and now since it's running we see radio zone zero now we can log into our server again with the client so now you can open up lego universe and join the store just like you did the first time so now there is one last thing that you need to do with your client and also your friends have to do this as well so there is a bug in all the clients where uh when you play the survival mini game which is the first mini game you encounter uh when you play through the story which is like you'll probably reach like 15 minutes into the game there's a bug will where once you load into the thing it'll just get stuck there and the game won't actually start and so then you'll just be stuck there and you can't get out without making a new character and so that's really annoying but uh lucky there's a very simple fix for that so if you open your lego universe client again so let me get to mine and then uh there's one line of code that you have to change in one file so it's not a big deal so if you go to res and then go to scripts and then do ai mini game and survival you want to edit the l zone survival client code today with notepad so the lineup to edit is line 617 which is way down at the bottom so you want to um right here it says player ready you want to change that to on player ready and then click save and then exit out of that if you try to edit this or you try to save the file and it tells you that you don't have permission to edit that that's probably because your file is currently set as read only so to change that you need to go to properties and then right here under attributes uh this will probably be checked so you want to uncheck that and then click apply and then okay and then now you're good so that bug should be fixed and you want to worry about it so make sure that you and all your friends that are on the server want to do that so right now uh your server is working but the way set up right now only people in your own home that are on your home network will be able to access it and play on it if you want people outside of your home network to be able to plan your server then you need to port forward your server so i'm also not going to show you how to do that because that is also somewhat dependent on what router you have and what your router interface looks like so just look up a tutorial on how to do that and it'll show you it's not a complicated process at all it's pretty simple but what i can show you is um you need to port forward uh these ports so you need to port forward port 1000 and 1001 and also the range of 2000 to 2000 or 2200 and also 3000 to 3200 the server uses port ports within this range so you want to make sure all these ports are open on your network so people can connect to them from the outside and also what you have to do is if you choose to port forward you will have to edit the configuration files in your server to point to your public ip address so the way you do that is if you go back into putty and then you change to your dark flame server slash build directory and then you edit the configuration files again so you have to edit like the off config and all those so right here an external ip you have to change this from your local ip address to your public ip address and you can find that by just going to google and typing in what's my ip and you'll find it there so you have to go into the off config the ini file and then change this to your public ip address you have to do the same with the um with the chat config and the master config files and then you'll also have to go back into your boot.cfg file in your client and change the um the auth server ip address to also points to your public ip address and your friends do that too and after you do all that then your friends outside of your home network will be able to join your server and play with you so that's all for this tutorial i hope it was helpful for you guys and i hope you're able to get all your friends to play this awesome game again
Info
Channel: Elocore
Views: 1,848
Rating: undefined out of 5
Keywords: DLU, Darkflame, Universe, Lego Universe
Id: 2vAjcw1KJF8
Channel Id: undefined
Length: 52min 10sec (3130 seconds)
Published: Mon Dec 13 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.