{"action":"created","issue":{"url":"https://api.github.com/repos/RomanHargrave/blt4l/issues/5","repository_url":"https://api.github.com/repos/RomanHargrave/blt4l","labels_url":"https://api.github.com/repos/RomanHargrave/blt4l/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/RomanHargrave/blt4l/issues/5/comments","events_url":"https://api.github.com/repos/RomanHargrave/blt4l/issues/5/events","html_url":"https://github.com/RomanHargrave/blt4l/issues/5","id":144087957,"number":5,"title":"How to use this hook?","user":{"login":"LeonardKoenig","id":7831843,"avatar_url":"https://avatars.githubusercontent.com/u/7831843?v=3","gravatar_id":"","url":"https://api.github.com/users/LeonardKoenig","html_url":"https://github.com/LeonardKoenig","followers_url":"https://api.github.com/users/LeonardKoenig/followers","following_url":"https://api.github.com/users/LeonardKoenig/following{/other_user}","gists_url":"https://api.github.com/users/LeonardKoenig/gists{/gist_id}","starred_url":"https://api.github.com/users/LeonardKoenig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeonardKoenig/subscriptions","organizations_url":"https://api.github.com/users/LeonardKoenig/orgs","repos_url":"https://api.github.com/users/LeonardKoenig/repos","events_url":"https://api.github.com/users/LeonardKoenig/events{/privacy}","received_events_url":"https://api.github.com/users/LeonardKoenig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-28T21:28:34Z","updated_at":"2016-03-29T15:53:56Z","closed_at":null,"body":"Hi, now I've built this hook -- how do I actually use it?\r\nI tried using `export LD_PRELOAD=/path/to/libblt_loader.so && env -u SDL_AUDIODRIVER %command%` in the Steam launch options but this leads to an instant crash for me.\r\n\r\nThe `env -u SDL_AUDIODRIVER` is required for me as for some reason `SDL_AUDIODRIVER=alsa` is set on my system (which won't work with PD2).\r\n\r\nIs that the way it should work and is that just due to the hook not yet being complete?"},"comment":{"url":"https://api.github.com/repos/RomanHargrave/blt4l/issues/comments/202971351","html_url":"https://github.com/RomanHargrave/blt4l/issues/5#issuecomment-202971351","issue_url":"https://api.github.com/repos/RomanHargrave/blt4l/issues/5","id":202971351,"user":{"login":"RomanHargrave","id":6024227,"avatar_url":"https://avatars.githubusercontent.com/u/6024227?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanHargrave","html_url":"https://github.com/RomanHargrave","followers_url":"https://api.github.com/users/RomanHargrave/followers","following_url":"https://api.github.com/users/RomanHargrave/following{/other_user}","gists_url":"https://api.github.com/users/RomanHargrave/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanHargrave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanHargrave/subscriptions","organizations_url":"https://api.github.com/users/RomanHargrave/orgs","repos_url":"https://api.github.com/users/RomanHargrave/repos","events_url":"https://api.github.com/users/RomanHargrave/events{/privacy}","received_events_url":"https://api.github.com/users/RomanHargrave/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T15:53:56Z","updated_at":"2016-03-29T15:53:56Z","body":"Hey, by the way, in order to run PAYDAY for testing without starting it from steam, you need to have steam running and set the following environment variables as follows.\r\n\r\nFor steam games in general:\r\n\r\n```sh\r\nENABLE_VK_LAYER_VALVE_steam_overlay_1=1\r\nIgnoreChildProcesses=\r\nSDL_VIDEO_X11_DGAMOUSE=0\r\nSHLVL=3\r\nSteam3Master=127.0.0.1:57343\r\nSteamLauncherUI=\r\nSteamNoOverlayUI=0\r\nSteamStreaming=\r\nSteamStreamingAllowGameVsync=\r\nSteamStreamingForceWindowedD3D9=\r\nSteamStreamingHardwareEncodingAMD=0\r\nSteamStreamingHardwareEncodingIntel=0\r\nSteamStreamingHardwareEncodingNVIDIA=0\r\nSteamStreamingMaximumResolution=\r\nSteamTenfoot=0\r\nStreamingTargetAudioChannels=\r\nTEXTDOMAIN=steam\r\nTEXTDOMAINDIR=/usr/share/locale\r\n__GL_SYNC_DISPLAY_DEVICE=DP-5\r\n__GL_SYNC_TO_VBLANK=1\r\nsuppress_restart=1\r\n```\r\n\r\nFor PAYDAY 2 in specific: \r\n\r\n```sh\r\nSteamGameId=218620\r\nSteamAppId=218620\r\n```\r\n\r\nFor your steam account and installation in specific:\r\n\r\n```sh\r\nSDL_GAMECONTROLLERCONFIG= # this is how Diesel saves your input settings to the cloud. It's super messy.\r\nSTEAMVIDEOTOKEN= # get this yourself\r\nSteamAppUser= # your steam username, lowercase\r\nSteamUser= # usually the same as $SteamAppUser\r\nSTEAM_CLIENT_CONFIG_FILE= #usually $HOME/.steam/steam.cfg\r\nSTEAM_RUNTIME= #usually $HOME/.steam/ubuntu12_32/steam-runtime\r\nWINDOWID= # ????? just put a number here, should work\r\nLOGNAME= # probably used to set the filename for debug logs. steam sets this to $USER\r\n```\r\n\r\nThese are all the environment variables that SteamWorks appears to expect to be around at runtime. You may need to change `Steam3Master`.\r\n\r\nIn order to get the best results, you should obtain the environment variables steam exports for you. This is a bit of a pain in the ass, but you can do it by using the \"Launch Options\" of PAYDAY 2 and hijacking it so that it runs `env` and outputs the results in to a file."}}