Frontpage   Releases   Forum   Documents   Downloads   Links   Join Us!   Disclaimer   Contact Us


Author Topic: How to setup wine with mutliple IL-2 servers  (Read 3103 times)

0 Members and 1 Guest are viewing this topic.

Offline CRO_Ante

  • Global Moderator
  • IL2 Addict
  • *****
How to setup wine with mutliple IL-2 servers
« on: July 05, 2010, 07:18:22 PM »
1. Install Wine
2. Prepare Wine environment for IL-2 server
3. Folder structure and startup scripts
4. Make another server from existing one
5. Final words


1. Install Wine
Add PPA repository for wine and install it.
Code: [Select]
sudo apt-add-repository ppa:ubuntu-wine
sudo apt-get update && sudo apt-get install wine


2. Prepare Wine environment for IL-2 server
Code: [Select]
mkdir il2servers
cd il2servers
mkdir server1
mkdir server1/drive_d
env WINEPREFIX=/home/ante/il2servers/server1 winecfg

Make IL-2 server CRT-2 compatible. 
Set application il2server.exe  to use native windows 2003 msvcrt.dll
Download msvcrt.dll
Copy msvcrt.dll to /home/ante/il2servers/server1/drive_c/windows/system32 







Add new drive D: to Wine
Add drive_d in drives section, we will later put there IL-2 server, HyperLobby and FBDj.
Wine maps drive letters to folders, examine /home/ante/il2servers/server1 and you will see
drive_c - this is C: drive, windows system drive and we will leave it as it is
drive_d - this is D: drive, we will use this folder for our stuff


3. Folder structure and startup scripts
Here is example of mine wine environment folder structure. As you can see I put all my stuff in drive_d (hyperlobby, dummy server for hl, fbdj, server).



I made startup scripts which I use for  starting those programs.  Most important file there is "vars" file that points wine to correct environment folder.

In our case vars contains
Code: [Select]
# points wine to correct wine environment location
# each server has it's own environment
export WINEPREFIX=/home/ante/il2servers/server1

All other scripts load "vars" file and than start their own programs like HL, il2server etc.

Download startup scripts

All left now is to copy your programs to drive_d and to configure them.


4. Make another server from existing one
a) Copy complete folder  /home/ante/il2servers/server1 to /home/ante/il2servers/server2
b) change vars file content to point to your new location
c) change parameters for HL, IL2 server like ports, username etc.

Now you have 2 independent installation of IL-2 servers.
1st located in /home/ante/il2servers/server1
2nd located in /home/ante/il2servers/server2

Startup scripts will help you to manage each server easily.

5. Final words
  • Your wine environment is now located for server1  in /home/ante/il2servers/server1 and for server2 in /home/ante/il2servers/server2
  • This environment is similar to windows installation on PC, look at Wine environment as it is virtual PC,  it has drives C: and D:,  it is independent of other wine environments on your Linux server

Offline =JFC=PhilHL

  • Member
  • ***
Re: [Under construction] How to setup wine with mutliple IL-2 servers
« Reply #1 on: July 24, 2010, 02:44:13 PM »
Thank you very much for this explanation :) I was searching for such infos for a while!!

I have now 2 server on one liux system. I can start hl two times and start a server. but only one server is starting corretly the other gets this:

ERROR SOCKET: java.net.BindExeptioN: Adress in use: Cannot bind

It seems that it tries to use the same IP. How can I have two IPs to run 2 server? My root server only has 1 IP. Do I have to pay for a second IP? For me it will be 5€ a month

Thank you very much :)
Only women do not need mods!

Offline StG77_HaDeS

  • Administrator
  • IL2 Addict
  • *******
  • Gender: Male
    • IL2 Ultr@Pack
Re: [Under construction] How to setup wine with mutliple IL-2 servers
« Reply #2 on: July 24, 2010, 03:08:09 PM »
Actually you can use the SAME IP but NOT the same port. Change you 2nd server port from 21000 to something else (21002 or 21010) and your console port from 20000 to something else and you will be just fine ;)
You will have to edit the confs.ini and confc.ini files of your DF server.
:drinks:

Offline =JFC=PhilHL

  • Member
  • ***
Re: [Under construction] How to setup wine with mutliple IL-2 servers
« Reply #3 on: July 24, 2010, 03:12:51 PM »
Thank you :) I ll give it a try !
Only women do not need mods!

Offline CRO_Ante

  • Global Moderator
  • IL2 Addict
  • *****
Re: [Under construction] How to setup wine with mutliple IL-2 servers
« Reply #4 on: July 25, 2010, 02:33:00 PM »
Tutorial is now complete I welcome you to post feedbacks in case I need to edit or explain  something.
Good luck with your servers.

Offline JG54_Emil

  • IL2 Addict
  • *****
    • JG54 "Grünherz"
Re: [Under construction] How to setup wine with mutliple IL-2 servers
« Reply #5 on: July 27, 2010, 07:40:09 PM »
Excellent Ante!!!

Thanks for your perpetual your support for the community.
JG54 is recruiting!
Check our Website:
www.IIJG54Gruenherz.org
www.Gruenherzjaeger.de

 

Powered by EzPortal