r/GlobalOffensive • u/10se1ucgo • Mar 12 '16
Fluff I wrote a cross-platform, open source in-game audio player (i.e. songs over mic) for Source engine games -- pyjam.
EDIT:
Audio downloader actually fixed in 1.2.4. As well as some other minor bugs.
Hello all. A couple of months ago, I said I would be creating something similar to SLAM/HLDJ, but cross-platform. I sorta got lazy and haven't got around to doing much work until this month. It's finally complete!
Here's an image dump for ya (some images are old, though)
pyjam allows the user to play sound (or music) over their microphone with a very easy in-game console interface. It comes built-in with useful features like audio downloaders and converters. A list is below
FEATURES
- Cross-platform -- Supports (in theory) Windows, GNU/Linux and OSX!
- Open source -- Licensed under the GNU General Public License, v3.
- Easy to use settings dialog -- custom profiles and game configuration
Track aliases -- select tracks by name instead of index!
- Set custom track aliases (generated from track name by default)
- Custom binds -- select tracks with a keybind
- Built-in audio converter -- uses
FFmpeg - Built-in audio downloader! --
youtube-dl(supports MANY (hundreds, including PornHub :^) ) websites, full list here)
pyjam's source can be found on github, as well as downloads, issue tracker, etc.
To get started, you can download it from the releases tab. Usage info below
USAGE
Download the latest version from the
Releasestab.- On a 32-bit Windows machine, download
pyjam-x.x-cp35-win_x86.zip - On a 64-bit Windows machine, download
pyjam-x.x-cp35-win_amd64.zip - If you don't know what bit machine you have, just download the 32-bit version.
- Other platforms: Download the git repository+dependencies and run from source (sorry, don't know how to bundle for those platforms)
- On a 32-bit Windows machine, download
Launch
pyjamand go toFile>SettingsBrowse for your Steam path into the
Path to Steamoption.- The program will try to guess where Steam is beforehand and may be filled out
Enter the name into the
Profile/game nameoption.- It's simply used as a profile name and the name does not matter.
Browse for the folder of the game into the
Game pathoption.- BE SURE TO INCLUDE THE MOD FOLDER AS WELL, e.g.,
/Steam/steamapps/common/Team Fortress 2/tf2/
- BE SURE TO INCLUDE THE MOD FOLDER AS WELL, e.g.,
- Browse for the path of the audio folder you want for this game into the
Audio pathoption. Enter the audio rate of that game into the
Audio rateoption.- Normally, this is 11025.
- For games like CS:GO, which use the
CELTaudio codec, use 22050
Select a key for the
Relay keyoption.- For quick selection, click on the drop down arrow and press a key on your keyboard to select a key
- The default option usually works just fine (unless you have a bind that uses
=)
Select a key for the
Play keyoption.- For quick selection, click on the drop down arrow and press a key on your keyboard to select a key
Select whether or not you want to use aliases.
- Aliases allow for you to select songs in console using words instead of an index number
- Disable if you think there might be conflicts.
- Press
Save game, and then exit the dialog. - Congratulations! Your first game has been set up.
Put in your audio!
- If you already have audio converted and ready to go, drop them into the audio folder you designated for the game
- Otherwise, if you have audio downloaded, but not converted, use the
Audio converterto convert them to the proper format - If you don't have an audio at all, use the
Audio downloaderand download from your favorite streaming sites! - Lastly, hit the
Refresh tracksbutton in order to make sure that pyjam has detected all of your songs.
Ready? Press
Start, and load up your game.- If pyjam is not immediately loaded when you start the game, type
exec jam.cfgin console.
- If pyjam is not immediately loaded when you start the game, type
- Have fun!
THANKS
Thanks to /u/Dx724 for making the icon.
I hope you all enjoy it.
If you find any bugs, please file an issue and I will look at it. If you want to contribute, feel free to make a pull request! They are greatly appreciated.
Lastly, some testers for Linux/Mac would be greatly appreciated. I haven't been able to test everything on these platforms, but they should (in theory) work. Please try it out and make bug reports/issues!
4
u/10se1ucgo Mar 12 '16 edited Mar 13 '16
Updated the releases tab with a Linux x64 version,
pyjam-x.x.x-cp34-linux_x86_64.tar5
u/[deleted] Mar 12 '16
That is top notch, good job!
16
u/[deleted] Mar 12 '16
voice_enable 0
2
u/maggiforever CS2 HYPE Mar 12 '16
I'm getting this error when putting a youtube URL into the downloader.
2
u/SKDoodle Mar 12 '16
When I download a song using the Downloader, i keep getting errors on the same songs when i try and convert. Mind helping me out?
2
u/Rub_my_turkey Mar 13 '16
Ill test it for Mac of you drop a link
2
u/vertti_ Mar 13 '16
Is it possible to use voice_loopback 1 when not listening to music? I dont think it is possible w/ slam.
5
u/maggiforever CS2 HYPE Mar 12 '16
1
u/anzecha Mar 12 '16
Does it work with the new reborn dota? The others don't work with it.
1
u/[deleted] Mar 13 '16
Is it possible to have a play volume adjust in game? If so I'd pick it up over slam, but right now it seems almost exactly identical (apart from the auto YouTube converter)
1
u/[deleted] Mar 13 '16
Is it easier than SLAM?
1
u/wanabewinsell Mar 13 '16
I get an error trying to run it saying "jam returned -1" help.
1
u/NiloxCSGO Mar 13 '16
Is it possible to use Spotify with this?
1
u/CappyCarry Mar 13 '16
when I run the "pyjam.exe" file it just opens my cmd promp and closes again :s
1
u/gabsens Mar 13 '16
I've been trying to get pyjam to run on OSX. The GUI and the audio downloader work fine, but the audio converter is broken (I'll open an issue on github when I have some time). Anyway, after converting my audio files manually with ffmpeg, I'm wondering what is supposed to happen in-game.
I checked that pyjam is loaded in the console, and the bind to the song triggers something ("Loaded : NameOfSong" is printed in the console). Nevertheless, I don't see my microphone activates (like it should, right ?).
1
u/puloko Mar 13 '16
it doesnt give vac ban or something?
1
u/sqph Mar 19 '16 edited Mar 20 '16
Hi, I extracted pyjam-1.2.6-cp35-win_amd64-FIXED.zip into a folder and when I try running pyjam.exe it give the fatal error "Failed to execute script jam"
Any advice?
Edit: FIXED in latest version
1
u/RonShad Mar 19 '16
Hi, i'm getting this error when i convert songs
[Window Title] ERROR!
[Main Instruction] An error has occured
[Content]
Traceback (most recent call last):
File "jam_tools.py", line 86, in _wrap_exceptions
File "ffmpeg.py", line 179, in run
File "ffmpeg.py", line 350, in convert_audio
File "subprocess.py", line 629, in check_output
File "subprocess.py", line 696, in run
File "subprocess.py", line 914, in init
File "subprocess.py", line 1113, in _get_handles
OSError: [WinError 6] The handle is invalid
[OK]
also songs i download dont show up in the track list
2
u/aylmaocsgo Natus Vincere Mar 13 '16 edited Mar 13 '16
I use Norton antivirus , so when i opened the prog. it detected it as virus as stopped me.
http://prntscr.com/aens69
And like in the thread someone was saying when i opened the prog. a command prompt windows too opened up.
1
u/I_Got_Shadowbanned Virtus.pro Mar 13 '16
nice gj
1
u/Tim70 Mar 13 '16
I'd be willing to test for linux if my comp wasn't broken : (
1
u/lamka02sk Jun 06 '16 edited Jun 06 '16
When I add some music and click refresh nothing happens, it is still empty. Ubuntu 16.04
-10
u/KiloSwiss cs_italy Mar 12 '16 edited Mar 12 '16
As much as I respect your work (really awesome what you made, upvote for the efford all the time), but the only thing I can think about right now is PLEASE NO! Don't give this to such an immature community.
*sigh*
voice_enable 0will now become the new standard for me./edit
Downvoting that comment for speaking out the truth, pretty much proves my point, doesn't it?
0
u/[deleted] Mar 13 '16
[deleted] — view deleted comment