08-17-2017, 02:45 PM
After reading the query regarding this topic, I decided to revisit and finish this tutorial. It has been a while since I've had to do this as its all setup so don't hesitate to correct any mistakes I may make. Feedback is, as always, appreciated.
Getting Your Server to Run:
The baseline requirements for a discovery server to run and be able to allow inbound connections, while also running FLHook are the following:
https://www.microsoft.com/en-us/download...x?id=48145 - Both Packages are required for FLHook to load.
https://www.whatismyip.com/ - You'll need your public IP from here.
You'll need to forward your ports from your router (the ports are 2302-2304).
The only requirement to run the server is both packages from the Microsoft link, but the other two are required for allowing access to the internet.
Open up your router#s control panel, and you should be greeted by something akin to this, but it will be different depending on what router you have. For that reason, the process could be slightly different - when in doubt, google.
For me, I have to go to the Security tab and then into services.
Here I add the port range 2302-2304 and give it a name, let's call it Freelancer. Hit ok and continue. From then I go into Firewall Rules and add an ipv4 service, and point it to the service we just created. As mentioned previously this is different from router to router so this section may need a google for help.
This part is simple. Go to whatismyip.com linked above and grab the IP it reads to you. Give the IP address to whoever you want to connect in the following format. -sip:2302 . Replace ip with the ip you get from the website and then give it to someone to put in their launcher's optional arguments.
(In this bit here.) Now, launch your server and - if it went well - you should be able to see a black box when you launch FLServer.exe. If done correctly, the other person and yourself should be able to see the server.
I'll list some of the default admin commands here. Note there is a lot more commands here than I'm actually listing, but most of them I doubt you'll bother with. You can always use .help to get a full list of default FLHook commands. Note: This doesn't include plugins.
To gain access to admin commands in game type the following in the flhook console:
setadmin {charname} superadmin
Alley.cfg:
By adding the line "id = name" you can add the ability for more IDs to use the nodock function.
Alley_npc.cfg - The commands are as follows:
You can configure the AI that you can spawn by editing that cfg, the instructions are inside it.
.pull {charname}
example: .pull laz - this will teleport laz to the admin ship
.chase {charanme}
example: .chase Laz - this will teleport you to Laz.
.smiteall [die]
example: .smiteall - all ships undocked around you will lose their shields and music will play that is defined in playerctrl.cfg
example2: .smiteall die - all ships undocked are killed and music is played.
.playsound {soundname}
example: .playsound dx_s004x_0401_trent - trent will say "You Jun'ko Zane?" in system.
There are far more commands and configs, but it will take me to go through them all. Should it be desired, I'll create a video tutorial on all of this for ease.
DSAM can be used to modify ships and characters, among other things, without going into the game directly. Its how the admins move ships and such. The program is rather simple and easy to grasp.
This means that your IPV 6 is still enabled. This is an easy fix. Simple go to your network adapter settings in the network sharing centre and toggle this:
After that is done, use this tool.
The baseline requirements for a discovery server to run and be able to allow inbound connections, while also running FLHook are the following:
https://www.microsoft.com/en-us/download...x?id=48145 - Both Packages are required for FLHook to load.
https://www.whatismyip.com/ - You'll need your public IP from here.
You'll need to forward your ports from your router (the ports are 2302-2304).
The only requirement to run the server is both packages from the Microsoft link, but the other two are required for allowing access to the internet.
Forwarding the ports:
Open up your router#s control panel, and you should be greeted by something akin to this, but it will be different depending on what router you have. For that reason, the process could be slightly different - when in doubt, google.
For me, I have to go to the Security tab and then into services.
Here I add the port range 2302-2304 and give it a name, let's call it Freelancer. Hit ok and continue. From then I go into Firewall Rules and add an ipv4 service, and point it to the service we just created. As mentioned previously this is different from router to router so this section may need a google for help.
Getting Friends to Connect:
This part is simple. Go to whatismyip.com linked above and grab the IP it reads to you. Give the IP address to whoever you want to connect in the following format. -sip:2302 . Replace ip with the ip you get from the website and then give it to someone to put in their launcher's optional arguments.
(In this bit here.) Now, launch your server and - if it went well - you should be able to see a black box when you launch FLServer.exe. If done correctly, the other person and yourself should be able to see the server.
Default Admin Commands
I'll list some of the default admin commands here. Note there is a lot more commands here than I'm actually listing, but most of them I doubt you'll bother with. You can always use .help to get a full list of default FLHook commands. Note: This doesn't include plugins.
To gain access to admin commands in game type the following in the flhook console:
setadmin {charname} superadmin
.beam {charname} {location}
example: .beam Laz Montbard - The character Laz is now at the Montbard Station
.setcash {charname} {ammount}
example: .setcash Laz 1999999999 - Laz now has 1.999... billion. Note: If you set this value to over 2 bill it will default it to 0 credits. DO NOT go over 2 Billion on a single character.
.setrep {charname} {rep} {value}
example: .setrep Laz fc_n_grp 1 - Laz is now Full Green on nomads.
.addcargo {charname} {cargo} {amount}
.move x x x
example: .move 1000 2000 2000 - moves your ship to that pos in space.
.rename {charname} {newname}
example: .rename lazy laz-y - lazy is now called laz-y
Message Commands:
.msg {charname} {msg}
example: .msg laz Hi - Laz gets a message from the console saying "Hi"
.msgs {system} {msg}
example: .msgs li01 Sup - Everyone in NY gets a message of "sup" from the console.
.msgu {msg}
example: .msgu Hi everyone - everyone in the game is given that message.
---------------------
.ban {charname}
example: .ban laz - the account that has the ship Laz on it is banned.
(unban with .unban)
.kill {charname}
example: .kill laz - laz is killed.
.testbot {system} {testime}
example: .testbot li01 0 - warps ship to new york
example: .beam Laz Montbard - The character Laz is now at the Montbard Station
.setcash {charname} {ammount}
example: .setcash Laz 1999999999 - Laz now has 1.999... billion. Note: If you set this value to over 2 bill it will default it to 0 credits. DO NOT go over 2 Billion on a single character.
.setrep {charname} {rep} {value}
example: .setrep Laz fc_n_grp 1 - Laz is now Full Green on nomads.
.addcargo {charname} {cargo} {amount}
.move x x x
example: .move 1000 2000 2000 - moves your ship to that pos in space.
.rename {charname} {newname}
example: .rename lazy laz-y - lazy is now called laz-y
Message Commands:
.msg {charname} {msg}
example: .msg laz Hi - Laz gets a message from the console saying "Hi"
.msgs {system} {msg}
example: .msgs li01 Sup - Everyone in NY gets a message of "sup" from the console.
.msgu {msg}
example: .msgu Hi everyone - everyone in the game is given that message.
---------------------
.ban {charname}
example: .ban laz - the account that has the ship Laz on it is banned.
(unban with .unban)
.kill {charname}
example: .kill laz - laz is killed.
.testbot {system} {testime}
example: .testbot li01 0 - warps ship to new york
Configuring Your Server (and plugin commands)
There are many different ways the server can be changed and configured. Here I'll list some of the simple ones that you may want to change.Alley.cfg:
By adding the line "id = name" you can add the ability for more IDs to use the nodock function.
Alley_npc.cfg - The commands are as follows:
.aicreate {amount} {ainame}
example: .aicreate 1 lndread - this will create 1 lib dread
.aifollow - this causes the current ai spawned to follow you in formation
.aievade - this causes the ai to cancel other options and return to default
.aidestroy 0/1 - this destroys all ai. if a 0 is used instead of a 1, the ai don't drop any loot.
example: .aicreate 1 lndread - this will create 1 lib dread
.aifollow - this causes the current ai spawned to follow you in formation
.aievade - this causes the ai to cancel other options and return to default
.aidestroy 0/1 - this destroys all ai. if a 0 is used instead of a 1, the ai don't drop any loot.
You can configure the AI that you can spawn by editing that cfg, the instructions are inside it.
.pull {charname}
example: .pull laz - this will teleport laz to the admin ship
.chase {charanme}
example: .chase Laz - this will teleport you to Laz.
.smiteall [die]
example: .smiteall - all ships undocked around you will lose their shields and music will play that is defined in playerctrl.cfg
example2: .smiteall die - all ships undocked are killed and music is played.
.playsound {soundname}
example: .playsound dx_s004x_0401_trent - trent will say "You Jun'ko Zane?" in system.
There are far more commands and configs, but it will take me to go through them all. Should it be desired, I'll create a video tutorial on all of this for ease.
External Tools
The main tool you'll be wanting is the DSAM, or Discovery Account Manager. Thankfully, Alley released a 64bit version of this on the starport so its easy to get working.Make sure to send Alley pictures of cats.DSAM can be used to modify ships and characters, among other things, without going into the game directly. Its how the admins move ships and such. The program is rather simple and easy to grasp.
Troubleshooting:
HELP: MY IP LOOKS LIKE THIS:
HELP: MY IP LOOKS LIKE THIS:
This means that your IPV 6 is still enabled. This is an easy fix. Simple go to your network adapter settings in the network sharing centre and toggle this:
After that is done, use this tool.
Footer Notes
I hope this tutorial is of some use to people and if you have any questions please don't hesitate to ask. This tutorial is still a little WIP so there is room for expansion, but I'll probably create a couple hour video tutorial of it, should people desire such, as that will allow me to cover a lot more and be much clearer on the subject.