Xfire Modifications

Discussion in 'FaceWAN Random Discussion Room' started by Ember, Jul 13, 2007.

  1. Ember Administrator

    Joined:
    Jun 13, 2007
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    Guide to Xfire Modifications​

    1. Modifying xfire_games.ini for Garry's Mod 9 and Garry's Mod 10 support.
    This mod is only needed if you have both games installed, like me. I like to have Xfire ingame on both, but Xfire doesn't allow it (without modifications). Go to the C:\Program Files\Xfire folder and find a file called xfire_games.ini. Open it with Notepad and find a the section that looks like this:
    Code:
    [4593_1]
    LongName=Half-Life 2 Garry's Mod
    ShortName=hl2gmod
    LauncherDirKey=HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam\InstallPath
    LauncherExe=steam.exe
    DetectExe=SteamApps\*\garrysmod\HL2.exe
    InstallHint=steamapps\garrysmod content.gcf
    LauncherPasswordArgs=+password %UA_GAME_HOST_PASSWORD%
    LauncherNetworkArgs="%UA_LAUNCHER_PASSWORD_ARGS% +connect %UA_GAME_HOST_NAME%:%UA_GAME_HOST_PORT%"
    Launch=%UA_LAUNCHER_EXE_PATH% -applaunch 4000 %UA_LAUNCHER_EXTRA_ARGS% %UA_LAUNCHER_NETWORK_ARGS%
    ServerStatusType=SOURCE
    ServerEncodingType=UTF8
    InGameRenderer=D3D9
    
    
    [4593_2]
    LongName=Half-Life 2 Garry's Mod
    ShortName=hl2gmod
    LauncherDirKey=HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam\InstallPath
    LauncherExe=steam.exe
    DetectExe=SteamApps\*\half-life 2\HL2.exe
    CommandLineMustContain[0]="\sourcemods\gmod9"
    InstallHint=steamapps\SourceMods\gmod9\resource\gmod_scheme.res
    LauncherPasswordArgs=+password %UA_GAME_HOST_PASSWORD%
    LauncherNetworkArgs="%UA_LAUNCHER_PASSWORD_ARGS% +connect %UA_GAME_HOST_NAME%:%UA_GAME_HOST_PORT%"
    Launch=%UA_LAUNCHER_EXE_PATH% -applaunch 220 -game "%UA_LAUNCHER_EXE_DIR%\steamapps\sourcemods\gmod9" -console %UA_LAUNCHER_EXTRA_ARGS% %UA_LAUNCHER_NETWORK_ARGS%
    ServerStatusType=SOURCE
    ServerEncodingType=UTF8
    InGameRenderer=D3D9
    Replace all of that with the following:
    Code:
    [4593_1]
    LongName=Half-Life 2 Garry's Mod 9
    ShortName=hl2gmod
    LauncherDirKey=HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam\InstallPath
    LauncherExe=steam.exe
    DetectExe=SteamApps\*\half-life 2\HL2.exe
    CommandLineMustContain[0]="\sourcemods\gmod9"
    InstallHint=steamapps\SourceMods\gmod9\resource\gmod_scheme.res
    LauncherPasswordArgs=+password %UA_GAME_HOST_PASSWORD%
    LauncherNetworkArgs="%UA_LAUNCHER_PASSWORD_ARGS% +connect %UA_GAME_HOST_NAME%:%UA_GAME_HOST_PORT%"
    Launch=%UA_LAUNCHER_EXE_PATH% -applaunch 220 -game "%UA_LAUNCHER_EXE_DIR%\steamapps\sourcemods\gmod9" -console %UA_LAUNCHER_EXTRA_ARGS% %UA_LAUNCHER_NETWORK_ARGS%
    ServerStatusType=SOURCE
    ServerEncodingType=UTF8
    InGameRenderer=D3D9
    
    
    [9999]
    LongName=Half-Life 2 Garry's Mod 10
    ShortName=hl2gmod
    LauncherDirKey=HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam\InstallPath
    LauncherExe=steam.exe
    DetectExe=SteamApps\*\garrysmod\HL2.exe
    InstallHint=steamapps\garrysmod content.gcf
    LauncherPasswordArgs=+password %UA_GAME_HOST_PASSWORD%
    LauncherNetworkArgs="%UA_LAUNCHER_PASSWORD_ARGS% +connect %UA_GAME_HOST_NAME%:%UA_GAME_HOST_PORT%"
    Launch=%UA_LAUNCHER_EXE_PATH% -applaunch 4000 %UA_LAUNCHER_EXTRA_ARGS% %UA_LAUNCHER_NETWORK_ARGS%
    ServerStatusType=SOURCE
    ServerEncodingType=UTF8
    InGameRenderer=D3D9
    This allows for both Garry's Mod 9 and Garry's Mod 10 to be detected simultaneously and allows for in-game messaging in both. That's all for this first mod.

    2. Ad-removal mod
    This patch removes Xfire's ability to download ads and display them.
    Download the latest patcher from: https://www.rememberteh.name/xfire_privacy_patch
    Move it to your C:\Program Files\Xfire folder.
    Run the EXE and press the patch button to patch the xfire.exe file to disable advertisements!
    Note that the current June 20th 2007 release DOES NOT work on the latest build. I have emailed ViceVirtue about the issue and he should fix it soon.

    I believe that you could even go as far as replacing the default ad-banner.
    [​IMG]
    You need a program called XN Resource Editor. Open the patched xfire.exe, and replace the bitmap under ADS\DEFAULTAD with a new 234x60 24bit bitmap.