WARNING: The forum is now in read-only mode as we will soon be transitioning to different forum software. Feel free to join our Discord server in the meantime.
User avatar
NoFaTe
Blazin' your Brains!
Posts:520
Joined:Sun Dec 16, 2012 7:22 pm
Contact: Website
How to play Rome/host a server

Tue Dec 18, 2012 1:36 pm

How to play NexusBF: Rome

So, you want to play but you don't what how?
Here's some info for you!

Requirements:
  • An internet connection
  • Bad Company 2 installed
  • R11 (795745) Patch Installed (download)
  • An account on these forums (register)
  • Latest version of our client hook (download)

Instructions:
If you haven't done so already, apply the R11 (795745) patch to your game - alternatively you can launch BFBC2Updater.exe and let the game update itself.
Make sure to NOT use/apply any cracks as these would deem the game unusable.
After making sure that your game is fully updated and ready to go, download our client hook by clicking the link above.
Once you have downloaded it, open the archive (NexusBF.bXXX.zip) and extract dinput8.dll into your game directory, where BFBC2Game.exe resides.
Then you simply have to launch BFBC2Game.exe, login using your forum account and start playing!

If you have any problems and/or feedback feel free to post it in the corresponding forums.

Have fun playing!

Discussion: viewtopic.php?f=10&t=6014
[03:55:41] <~Bag> Yes, I can put things inside me when I need to

User avatar
NoFaTe
Blazin' your Brains!
Posts:520
Joined:Sun Dec 16, 2012 7:22 pm
Contact: Website

[Tutorial] How to setup your own server

Tue Dec 18, 2012 1:48 pm

How to set up a dedicated server:

So you want to setup your own dedicated server in which people can play on?
Here's how to do it.

Requirements:
  • An internet connection
  • BFBC2 R34 Server Files
  • Our latest client hook (download)

Instructions:
  • Create a folder called BFBC2 Server or similar at a location of your choice
  • In that folder, create folders called bin and instances (if you plan to use B3, also create a folder called b3)
  • Download the server files and extract them in the bin folder
  • Download our client hook and extract dinput8.dll from the archive (NexusBF.bXXX.zip) into the bin folder
  • Get a fresh instances folder and extract the content into the instances folder you created in step 1
  • After that you can modify the ServerOptions.ini file (in the instances folder, again) to change the name of the server, the remote administration password and configure other options. If you want to run your server in Vietnam mode, uncomment the last two lines (i.e. remove the #)
  • Now download the StartServer.bat and place it in the root folder (where the bin and instances folders are)

Have fun hosting!

Discussion: http://forums.emulatornexus.com/viewtop ... =10&t=6013
B3 tutorial: http://forums.emulatornexus.com/viewtop ... =10&t=6104

Helpful batches:

Tutorial reworked by MAGIC.
[03:55:41] <~Bag> Yes, I can put things inside me when I need to

User avatar
CactusPie
Posts:451
Joined:Mon Dec 17, 2012 4:48 pm
Location:Poland

[TUTORIAL] Hosting server on Linux

Tue Dec 18, 2012 6:40 pm

How to set up a dedicated server on Linux:

A little guide I made for another game, but after a few changes it still works with Bad Company 2 Server :) This will allow you to run 24/7 server on your headless (command line only) Linux. If you are running it on a system with a graphical desktop environment, you don't need to install Xvfb or x11vnc and you can skip steps 4 through 7.

REQUIREMENTS

On your remote server:
Server files - if you don't have them, ask around. We won't provide them to you.
libgl1-mesa-dev - Mesa OpenGL libraries
WINE - preferably newest version you can get. If you run into problems check the output of wine --version
Xvfb - framebuffer emulator. This utility will allow you to run GUI applications on your headless server.
x11vnc - VNC server. Thanks to this utility, you will be able to interact with GUI applications on your remote server using a VNC client.
winetricks - required to easily download and install some required libraries


On your local machine:
VNC client. On Linux you can use gvncviever, on Windows tightvnc, although any other client should work just as well.

Setting up server
1. Download server files and extract them:

Code: Select all

wget <link to server files>
unzip BFBC2_Server_R34_Full.zip


Then go to your extracted directory:

Code: Select all

cd BFBC2_Server_R34_Full


2. Make sure you have the lastest server hook (dinput8.dll) in your game/server directory. Look on the forums or ask on #emulatornexus IRC channel.


3. Install dinput8:

Code: Select all

winetricks dinput8

Alternatively, you can rename dinput8.dll to xinput1_3.dll

4. Start Xvfb

Code: Select all

Xvfb :1 -screen 0 800x600x16 &


5. If it's the first time you are running the VNC server you need to generate a new password:

Code: Select all

x11vnc -storepasswd


6. Now you can start your VNC server

Code: Select all

x11vnc -display :1  -bg -forever -rfbauth ~/.vnc/passwd


7. Set your DISPLAY environment variable

Code: Select all

export DISPLAY=:1


8. Conect to your VNC server and install Visual C++ runtime libraries:

Code: Select all

winetricks vcrun2005
winetricks vcrun2008
winetricks vcrun2010


9. Modify your server options in /Instance/ServerOptions.ini
MAKE SURE TO CHANGE YOUR ADMIN PASSWORD!

10. And finally, start your server

Code: Select all

wine Frost.Game.Main_Win32_Final.exe -serverInstancePath "Instance/" -mapPack2Enabled 1 -port 19567 -timeStampLogNames -region OC -heartBeatInterval 20000



Known problems

1. The server cannot be normally shut down once started, so it's best to run it in a screen session. When you want to shut it down, just kill its process:

Code: Select all

kill -9 `ps x | grep Frost | grep -v grep | gawk '{print $1}'`


2. The server crashes sometimes. You can verify wether it's working or not by checking your VNC server.

Alternatively, you can make your server not display any errors, by adding the following parameteers to your startup command:

Code: Select all

-displayErrors 0 -displayAsserts 0

If you do this, remember, that this doesn't prevent the errors from happening. It just hides them. Keep that in mind, especially if you run into some problems with your server.


3. Failed to use ICMP (network ping), this requires special permissions.

This happens if you are running the server on a limited (non-root) account. To solve it, type:

Code: Select all

sudo setcap cap_net_raw+epi /usr/bin/wine-preloader

More information can be found here:

http://wiki.winehq.org/FAQ#head-acdec64 ... 02576e6a63

Thanks to Vaques for letting me know about it!

Useful links

Getting procon to work 24/7 on Linux
Configuring your server
Where to look for server files
Where to find the latest hook (Download section)

Discussion: viewtopic.php?f=10&t=6015
Last edited by CactusPie on Sat Dec 22, 2012 7:31 pm, edited 5 times in total.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 13 guests