Tag Archives: Java

How to add Minecraft to your Xfire/Raptr

If you play Minecraft and you want to track your playtime, here’s how.

XFIRE
Please note that i just found it in Xfire official forum (this page).

First, locate your Xfire’s games list “xfire_games.ini”, usually found in C:\ProgramData\Xfire, then add this code to the list.
[6216_4]
LongName=Minecraft
ShortName=mcrft
PlayingDetectType=ByWindowSubstr
ProcessWindowTitle=Minecraft
ProcessWindowClass=SunAwtFrame
LauncherDirDefault=C:\Users\%USERPROFILE%\AppData\roaming\.minecraft\
LauncherExe=Minecraft.exe
DetectDirDefault=C:\Program Files\Java\jre6\bin\
DetectExe=javaw.exe
Launch=%UA_LAUNCHER_EXE_PATH% %UA_LAUNCHER_EXTRA_ARGS%
InGameRenderer=OGL
InGameFlags=USE_PRESENT|ENABLE_MOUSE|DISABLE_64BIT|USE_DINPUT_MOUSE
InGameDelay=10000

After that, make a copy of Minecraft’s exe into “C:\Program Files\Java\jre6\bin”. If still doesn’t get detected, try adding it manually trough Xfire options and it should work. Or, at least, it worked for me.

RAPTR
Raptr official forums
To get Minecraft detected by Raptr, create a folder called Minecraft in your Program Files folder and copy the exe inside it. The final path should be “C:\Program Files\Minecraft\Minecraft.exe”. Then make Raptr rescan your game list.

A final note. There’s no need to launch the game from one of those paths, i launch the game from a third copy inside my Documents folder and both program detect it.

UPDATE Oct 26,2012: As Doug pointed out in comments, if you’re using a 64-bit OS you must have Java 6 64-bit installed. Java 7 won’t recognize the game.