|
老外的原文:
Shit is 23:14 and I'm writing this shit.But hey good thing Red Bull was invented.Ok so lets start.In this guide I will show you the basics on how to get a server up and running.I'm not a big programmer myself but don't worry is not that hard like most people say.In fact is very easy.And you only need a couple of tools do this.Bellow i will write what tools you need.I suggest you don't skip any parts of this tutorial.I don't want you to ask me how to do that how to do this if its already included.
Tools Needed
Notepad++
Turtoise SVN 32 bit or 64 bit
And again a BRAIN
Step 1 Downloading server with Turtoise SVN:
1.Make a new folder on your Desktop or anywhere on your disk, dosen't matter.Call it SERVER or whatever.
2.Right click on the folder you created and then click on SVN Checkout.Then a windows should pop up.
3.In the URL of repository insert the code provided bellow.
Quote
http://svn2.xp-dev.com/svn/fonline_sdk/
(Copy and paste it in URL of repository.Sorry but you must be cristal clear for some idiots)
4.In the Checkout directory you select the folder you created earlier.
5.Click ok and another window will pop up this means the server files will start the download.It will take
about 30 mins to finnish but this depends on your interned connectioni i suggest 8 mbs or more to get a decent speed.The
server when its finnished downloaded is about 350 mb.If you did all this then you finnished the first step.Now read the second
Preparing Server:
I assume the download is finnished if you are reading this step.
1.First go to the folder you just made and execute SvnClear.
2.After that is done got to the Client folder and execute ZipPatch.
3.After that is finnished an archive of about 170 mb called fonline should appear.Assuming you already have Winrar.
4.Now go back and enter the folder called Server.
5.Open FOnlineServer.cfg with wordpad or Notepad ++.
6.In the line Port=4000 change it your desired port.
example
Quote
# Listening port
Port=2100
(Again cristal clear for idiots)
7.Wait you are not finnished!Got back to Client folder and open FOnline.cfg just like you did for the FOnlineServer.cfg.Edit the following lines with your information.
Quote
RemoteHost=your ip
RemotePort=your port that you set up in FOnlineServer.cfg
.8In order for you and others to connect to the server you need 2 IP's.To do that open RUN and type in "cmd" no brackets.Then a black window should show up there type this "ipconfig" . Then you should get 3 IP's.What you are interested in is the first one IP Adress copy the IP in front of it to notepad or a piece of paper.Then go to FOnline.cfg and paste in in front of RemoteHost=.
example
Quote
RemoteHost=192.168.1.9
9.This is the IP you will connect with.Now for the second IP which you will need to give to the others go to Google and type in my ip.Pick the first link and there should be the website that will show your IP adress.Thats the ip you need to give to poeple that want to join your server.They must put the port and ip you gave them in FOnline.cfg replacing the following lines.
example
Quote
RemoteHost=192.168.1.9
RemotePort=2100
Starting Server & Configuring admin:
Last step and final is starting up your server and adding you as an admin.
1.Adding yourself as an admin you must go in the Server folder and open FOnlineServer.cfg and find these lines:
Quote
# Keys for accesses
# Aviable four access mode: client (default on login), tester, moder, admin
Access_client=000000 00000000
Access_tester=
Access_moder=
Access_admin=
example
Quote
# Keys for accesses
# Aviable four access mode: client (default on login), tester, moder, admin
Access_client=000000 00000000
Access_tester=
Access_moder=
Access_admin=Umbra
The name you just added must be the exact name you will register outherwise it will not work.
2.After you made your account login.Then in the chat box enter the following command:
Quote
~getaccess admin Umbra
You should get a message in log box that will confirm that to you.To be shure it worked type this:
Quote
~myinfo
But all this assuming you started the server and did this.This is basically it.
Questions and answers:
Q:Why my friend's can't connect to my server?
Arobably you have a dynamic and ip and you need to make a DNS adress or you have a router and that needs port forwading.In that case port forward the port you put in FOnlineServer.cfg.
Q:How do i spawn items or change my stats?
A:You can do this with the following commands:
Skills
Quote
~param 0 200 300 - You get 300 to Small Guns change to 201 to get for Big guns and so on.
Specials
Quote
~param 0 0 3000 - From 0 to 6 you get can change your specials like ~param 0 6 3000 adds 3000 to luck
Other Commads
Quote
~param 0 72 xxx - Heal yourself
~additemself 349 1 - First vallue is the code of the item and the second is the number.You can find more item codes in Server/data/ItemsNames.ist open it with Notepad++ in front of each item is the code.
More commads here
Second part of the tutorial is here.Click me
So thats it! Hope you enjoyed and don't forget to say thanks
FOnline: Apocalypse website |
|