Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal
- set gamedir=C:\Program Files (x86)\Steam\steamapps\common\Awesomenauts
- set logfile=%gamedir%\ApplicationNetwork.log
- if not exist "%logfile%" echo Cant find log file, most likely because steam is not in the default directory or you're running XP, you can fix this by editing the bat file and changing the third line&goto :realend
- cat "%logfile%" > tmp
- FOR /F "eol=; tokens=5,10* delims= " %%i in (tmp) do if %%i == Succesfuly set steamid=%%j&goto :break
- :break
- FOR /F "eol=; tokens=5,8* delims= " %%i in (tmp) do if %%i == Entered set lastlobby=%%j
- IF "%steamid%"=="" (echo Cant find steam id&goto :end)
- IF "%lastlobby%"=="" (echo No lobbies found&goto :end)
- echo Joining lobby %lastlobby% with steamid %steamid%
- start "" "steam://joinlobby/204300/%lastlobby%/%steamid%"
- :end
- del tmp
- :realend
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement