Steam for Linux

Steam for Linux

Questa discussione è stata chiusa
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
Ultima modifica da d10sfan; 31 dic 2013, ore 21:13
< >
Visualizzazione di 1-15 commenti su 247
Great work! Doing things in the true Linux fasion. :)
Messaggio originale di 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
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
Messaggio originale di 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
Ultima modifica da d10sfan; 10 mag 2013, ore 10:10
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 :)
Messaggio originale di 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
Thank you for your work; this is really exciting!
A request: Can you tell if the GoldenEye: Source mod is playable?
Ultima modifica da FrostedSaber; 11 mag 2013, ore 16:03
Download the mod and look for a 'bin' folder in the top-level folder. if there are dlls present, it won't work.
Just downloaded the mod files and it has a bin folder with dlls, so it won't work
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.
Extremely helpful post, d10sfan!

Here's another gameinfo.txt for you:

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

Ultima modifica da Lunar_Penguin; 11 mag 2013, ore 22:43
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?
By the way, I don't think the first 'platform' line, 'platform |gameinfo_path:.' is necessary.

@Technogeek1994: Probably. Upload the gameinfo.txt.
Messaggio originale di Technogeek1994:
Extremely helpful post, d10sfan!

Here's another gameinfo.txt for you:

Portal Pro: http://pastebin.com/egLN4JPS
Thanks! I've added that one to the list. Just tried it too, looks like fun
Messaggio originale di Technogeek1994:
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?
More than likely the narrator needs something inside the dlls to work. Hopefully Valve will release tools soon to allow mod developers to create these type of mods for Linux
< >
Visualizzazione di 1-15 commenti su 247
Per pagina: 1530 50

Data di pubblicazione: 10 mag 2013, ore 5:52
Messaggi: 247