70470 Posts in 6879 Topics - by 687 Members - Latest Member: Laricwashere

Author Topic: How to make Half Life 2 work offline at a LANParty  (Read 2942 times)

Offline Pride

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 4714
  • Karma: 0
How to make Half Life 2 work offline at a LANParty
« on: May 19, 2005, 02:45:45 PM »
CLIENT

Before you leave your house/internet connection:

1.  Bring the computer that will be playing offline to an available internet connection at a friend's house, school or perhaps business.  
2.  Log into the account and do all the updates, make sure it all works.
3.  Then "exit" (do not log out!) from Steam.
4.  Physically unplug the computer from the internet.
5.  Start up Steam and let it fall back into offline mode.
6.  Make sure the computer will play both Listenserver (LAN), client and the single player ok
7.  Then exit from Steam again.
8.  Shut down and go to LANParty

All clients that are going to play on the LAN should have unique Steam Accounts.
Insert witty signature here...

Offline Pride

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 4714
  • Karma: 0
How to Setup the HL2 Server for a LANParty
« Reply #1 on: May 19, 2005, 02:53:04 PM »
SERVER

Dedicated Server

NOTE: You need to install the HL2 Server to a different folder from any HL1 Server installation.

1.  Get the HLDSUpdatetool and Batch Files
Here is a link to the latest HDLSUpdatetool executable, a readme that tells you how to use it and set of generic batch files (so you don't have to run a command window to execute the update):
HLDSUpdatetool for HL2 (Source) Games and batch files

2.  For HL2 games, get the zip for the HL2 games, unzip the files and put them into a folder called C:\hl2server

3.  Update the HLDSUpdatetool
Then before you do anything else, double click on the HLDSUpdatetool.exe by itself with no arguments so it will update itself if it needs to.  Do this for each installation if you have both HL1 and HL2 servers on the same computer (be sure to do this first before doing any updates).

4.  Edit the Update Batch Files:
Then you use notepad and edit the batch file for your MOD (for example "update_cs.bat".

Inside you'll find lines like these (c:\hlserver is for HL1, c:\hl2server is for HL2):
Code: [Select]

date/t
time/t
hldsupdatetool -command update -game cstrike -dir c:\hlserver

time/t
@pause

If your hlserver folder is not on the C: drive you'll have to edit the drive letter as well.

NOTE: Do NOT use the path for your Client Dedicated Server (IE: Steam/SteamApps/<account>/Dedicated Server) for a Stand-Alone Server!

Then save that batch file and double-click on it.

You should see something generally like this:
Code: [Select]

    Tue 04/27/2004
    04:55 PM
    Checking bootstrapper version ...
    Updating Installation
    Logging in as '<your server email>'

    Checking/Installing 'Win32 Server Engine' version 11
    Updating 'Win32 Server Engine' from version 11 to version 12
    Downloading: <stuff>

    Checking/Installing 'HL base content' version 4
    Updating 'HL base content' from version 4 to version 5
    Downloading: <stuff>

    Checking/Installing 'cstrike content' version 7
    Updating 'cstrike content' from version 7 to version 8
    Downloading: <stuff>

    HLDS installation up to date
    04:55 PM


5. Update your Server:
So now, if you need to update your server all you need to do is to click on the update batch file for each Game you need to update and it will do it for you, easy and fast!
Insert witty signature here...