d10sfan May 10, 2013 @ 5:52am
SourceMods (HL2 & Portal)
Was able to get some hl2 (and portal) mods to work with the Linux versions. Below is the steps needed to get this to work and the mods that have been tried. If you've tried one, you can post here and I'll add it to the list if you'd like.

Mod Steps
  • Mod can't have dlls (mod can't have a bin directory unless there are .so files, then it may work)
  • hl2.exe link no longer needed in the latest Steam Beta
  • Copy your mod into the sourcemods directory (~/.local/share/Steam/SteamApps/sourcemods or ~/Steam/SteamApps/sourcemods)
  • gameinfo.txt needs to be changed to reflect steampipe (thanks to Hardtimes for the idea and getting Portal Prelude to work)
  • Ensure that your gameinfo.txt file is named "gameinfo.txt", all lowercase
  • May need to rename your save directory from SAVE to save if you've played on Windows before
  • Some mods need the directories and filenames to be changed to lowercase. This can be done to all files by running: find ./ | sort -r | sed 's/\(.*\/\)\(.*\)/mv "\1\2" "\1\L\2"/' |sh
  • May need to use a new english.txt resource if the mod directory name needs to be changed. I've supplied new ones that should work

If you see a Q instead of a crosshair (seen on Blue Portals)
The issue is caused by some fonts that are missing. You can try to install the crosshair font which seems to fix the issue, either with a font manager or manually. Thanks Technogeek1994.
With a font manager
  • Navigate to SteamApps/common/Portal/hl2/resource
  • If you don't have Portal installed, Navigate to SteamApps/common/Half-Life 2/hl2/resource
  • Double-click on hl2crosshair.ttf. You should see a font manager launch
  • Click Install Font. Now the crosshair should show up normally (if no errors)
  • Do the same with marlett.ttf if you are seeing letters instead of checkboxes and close buttons

If the font manager install failed, or you don't have one installed (this was tested on Linux Mint, should also work on Ubuntu at least)
  • In terminal, go to /usr/local/share/fonts and go into sudo (sudo -i)
  • Create a directory called myfonts: mkdir myfonts; then go into myfonts
  • Then copy the fonts from the hl2 directory to your new myfonts directory: cp ~/.local/share/Steam/SteamApps/common/Portal/hl2/resource/*.ttf . (make sure you include the period)
  • Exit out of sudo: exit
  • Run fc-cache

Known Issues (issue and mods that have it)
  • None currently

Below are the gameinfo.txt for each mod (the pastebin links), and any extra steps that may need to be done.

HL2 Mods

Portal Mods
Last edited by d10sfan; Dec 31, 2013 @ 9:13pm
Showing 1-15 of 224 comments
< >
blackout24 May 10, 2013 @ 6:36am 
Great work! Doing things in the true Linux fasion. :)
[BT] Patron Night May 10, 2013 @ 8:58am 
Do you maybe have a guide you could link to?
I'm still trying to get Hezchase Nailway running, but the "donor" games seem to have a higher priority than the mod's files.
Last edited by [BT] Patron Night; May 10, 2013 @ 8:59am
d10sfan May 10, 2013 @ 9:00am 
Originally posted by Linux dm:
Do you maybe have a guide you could link to?
I'm still trying to get Hezchase Nailway running.
I could explain the steps of creating the links and such more clearly if you'd like.

I'll try that one (looks like a mod for portal) and see if I can get it working
d10sfan May 10, 2013 @ 9:15am 
Just updated the original post with the gameinfo for nailway. Could you try it? Worked for me except I couldn't figure out how to get out of the start room (noclipped out then normally completed to the area where you get into aperture science's airlock.

The other thing I had to do was to rename the mod directory so that Nailway becomes nailway
[BT] Patron Night May 10, 2013 @ 10:07am 
Thank you! ^^
Once you tried to open the main door, you can open the cupboard in the shower room containing a crow bar.
You can pick it up and "attack" the door. It'll be stuck and you can use it to crank it open.
Everything seems to be fine, except that the hand is untextured right now and the captions seem to be missing sometimes (for example the save message).
Last edited by [BT] Patron Night; May 10, 2013 @ 10:10am
d10sfan May 10, 2013 @ 10:09am 
Originally posted by Linux dm:
Thank you! ^^
Once you tried to open the main door, you can open the cupboard in the shower room containing a crow bar.
You can pick it up and "attack" the door. It'll be stuck and you can use it to crank it open.
Everything seems to be fine, except that you shouldn't be able to see the hand (it's untextured right now) and the captions seem to be missing sometimes (for example the save message).
Ah ok, figured I had missed something

Hmm, weird. Glad its mostly working though
Last edited by d10sfan; May 10, 2013 @ 10:10am
Hardtimes May 10, 2013 @ 10:25am 
100% percent perfect 60% of the time! At the moment, the gameinfo.txt page at the Valve dev wiki is out-dated and doesn't describe some of the new hints in the file. It's derived from files from other ported Source games and trial and error. I'm not certain I've done things correctly. Plus, the path search order for mods might vary from mod to mod. YMMV :)
d10sfan May 10, 2013 @ 11:55am 
Originally posted by Hardtimes:
100% percent perfect 60% of the time! At the moment, the gameinfo.txt page at the Valve dev wiki is out-dated and doesn't describe some of the new hints in the file. It's derived from files from other ported Source games and trial and error. I'm not certain I've done things correctly. Plus, the path search order for mods might vary from mod to mod. YMMV :)
Yeah, I ended up taking the ep2 game info and changing the save path and a few other things and it seemed to work mostly
NA May 11, 2013 @ 4:03pm 
Thank you for your work; this is really exciting!
A request: Can you tell if the GoldenEye: Source mod is playable?
Last edited by NA; May 11, 2013 @ 4:03pm
Hardtimes May 11, 2013 @ 4:56pm 
Download the mod and look for a 'bin' folder in the top-level folder. if there are dlls present, it won't work.
d10sfan May 11, 2013 @ 8:20pm 
Just downloaded the mod files and it has a bin folder with dlls, so it won't work
gattobb May 11, 2013 @ 9:39pm 
Speaking of HL2 mods, all hell is going to break loose when SteamPipe comes out of beta and all the skins and other miscellaneous fpsbanana stuff breaks.
CLUaTOS May 11, 2013 @ 10:42pm 
Extremely helpful post, d10sfan!

Here's another gameinfo.txt for you:

Portal Pro: http://pastebin.com/egLN4JPS

Last edited by CLUaTOS; May 11, 2013 @ 10:43pm
CLUaTOS May 11, 2013 @ 10:52pm 
Also, there's an HL2:Ep2 mod I was trying to get working (The Stanley Parable), but it has a bin folder with .dlls. The game almost works by manually loading the maps, materials, and scenes into the Ep2 directory and loading the map manually, but the most critical piece (the narrator) doesn't work. The console claims it can't locate the .vcd files in scenes/stanley that trigger the narrator's dialogue.

Is this due to the .dlls, which don't work under Linux?
Hardtimes May 12, 2013 @ 3:42am 
By the way, I don't think the first 'platform' line, 'platform |gameinfo_path:.' is necessary.

@Technogeek1994: Probably. Upload the gameinfo.txt.
Showing 1-15 of 224 comments
< >
Per page: 15 30 50