Everything that has an end, has a beginning...
You are not logged in.
Yeah... -applaunch isn't defined, so... stuck in after --args.
Ok, so I've tried and failed, but I did get the game to boot... it just was totally black.
And frozen.
First off, the symbolic link was broken, i.e. not pointed accurately. Thus I fixed it (through finder).
Next, I treid booting the game, and then checked the console messages. I found the following:
ExecCommandLine: "/Users/joe/Joe's Applications/!Browsers/Steam.app/Contents/MacOS/osx32/steam -applaunch 400 -game portalprelude -dev"
Setup file 'gameinfo.txt' doesn't exist in subdirectory 'portalprelude'.
Error: texture file '/Users/joe/Library/Application Support/Steam/SteamApps/sourcemods/portal prelude/resource/prelude_big' does not exist or is invalid
So... what subdirectory is it looking at, and what's up with prelude_big?
Offline
Hello.
~/Library/"Application Support"/Steam/SteamApps/steamusername/sourcemods doesn't exist already. Should I make it?
~/Library/"Application Support"/Steam/SteamApps/sourcemods exists however.
Offline
Use the latter of the two, since sourcemods aren't installed per user anymore.
Offline
Well I simply replaced the portal files with the portal prelude files as stated earlier in the thread and it runs fully then.
THe game suffers from slight frame rate issues when compared to the normal portal. This is on a Macbook white 2.13Ghz.
Offline
Hrm... I might try that, as I've been unable to get previous solutions to work. I'd have to be sure to disable cloud syncing, and save a backup copy too.
Offline
Help! Portal Prelude shows up in my game list on Steam, but when I launch Portal with the portal prelude code, i can see a window in the dock, but as soon as it appears, it dissapears.
Offline
Same situation. I suspect the brute-force overwriting might work... but it didn't.
I've tried running Steam through Wine, but it didn't. That would simplify things if it had worked.
Offline
I made a video on how to install it! http://www.youtube.com/watch?v=1kRoGp2VLcc
Offline
Thanks for this great tutorial, everything seems to be working fine until I load up the game;
While loading the welcome screen the game crashes giving me "A source engine game is required to run mods" Engine error.
Offline
Haven't played Portal:Prelude yet - a friend told me about it when I mentioned Portal 2 to him. (I was testing out performance of Portal 2 on a 13" MacBook Pro in OS X 10.6.7 versus BootCamp Windows 7)
I saw this thread with the Mac instructions.
So I found a way to run the game directly on Mac, with appropriate command line parameters, without all the pain of manually changing the portal entry in Steam, etc.
Overview
-----------
1) make a shortcut to the Portal game on desktop
2) From Terminal, go into that "app" and edit the run.sh script which calls "open steam://run/400" and instead change it to directly run the executable.
3) optionally move shortcut to /Applications or add it to steam using "add a non-steam game"
I'll post again with a .dmg download of a shortcut that does all this for you.
It might also be possible to have a single "App" that is the entire Portal Prelude add-on, which would have a script which makes appropriate sym links at run time.
(I'm a Linux/Unix admin, so I'm comfortable in an OS X shell, but I've not made any actual Mac apps with Xcode)
Offline
threepercentmilk wrote:
2) From Terminal, go into that "app" and edit the run.sh script which calls "open steam://run/400" and instead change it to directly run the executable.
What executable? I don’t think there is one included in the mod.
Offline
Frungi wrote:
What executable? I don’t think there is one included in the mod.
Frungi, it's not part of the mod - the mod uses the Half-Life 2 Source engine, just like Portal, so the binary (EXE on Windows) is hl2_osx.
posting script in a minute...
Offline
See below for my script to replace run.sh in your shortcut.
I put a LOT of sanity checks in there (the core script is only a few lines), but this should make it easier for users.
In theory, you can just run the script without modification, if the following assumptions are true:
1) you are running OS X Snow Leopard (it probably works on 10.5, haven't tested it though)
2) your Steam app is in /Applications
3) you have the full version of Portal on Steam (it's only $10)
4) you only have 1 steam user account per Mac user account
5) you installed/unzipped the download into $HOME/Library/Application Support/Steam/SteamApps/sourcemods/
6) you made a symbolic link to that in your portal folder: ln -s ../../sourcemods/portal\ prelude/ portalprelude
If any of the above are NOT true, it should only take minor modifications to make it work.
Also note, you need to be running steam before using this script - it will start it for you if it's not running (but you'll have to run it again after Steam is running)
---------------------
next, I'll post a link to a small .dmg download that will contain a shortcut with this script. That will be easier than copying/pasting.
#!/bin/bash ################################################ # # Mac OS X portal startup script created for Portal:Prelude # (but could be used for any HL2 mod with minor changes) # # ver 0.8, 2012.04.24, by 3% Milk # tested on MacOS 10.6.7, full copy of Steam Portal # # For Help, please read/post to the following thread: # http://www.portalprelude.com/forum/viewtopic.php?id=1156 # # This script has no license, # feel free to do with it whatever you like :) # ################################################ #original contents of run.sh, commented out. #open steam://run/400 # definitions ################################## # if this is not defined (default), the script will attempt to guess it STEAMUSERID="" # if your Steam application is somewhere other than /Applications, edit below. STEAMAPPLOCATION="/Applications" ################################################ if [ -z $STEAMUSERID ]; then #guess cd ~/Library/Application\ Support/Steam/SteamApps STEAMUSERID=`find . -type d -depth 1 | egrep -v '(common|sourcemods)' | cut -f2 -d/` #check if more than 1 "extra" directory LINECOUNT=`echo "$STEAMUSERID" | wc -l` if [ "$LINECOUNT" -gt "1" ]; then #echo "cannot determine username, exiting." osascript -e 'tell application "Dock" activate display dialog "Script cannot determine your username automatically - please edit the run.sh manually and specify your Steam Account ID.\n\nPossible causes:\n1) Extra directories in your SteamApps folder other than common, sourcemods, username.\n2) Multiple Steam IDs use the same Mac OSX login." buttons "OK" default button 1 with title "Unknown Steam User" with icon stop end tell' exit -1 fi fi #echo "steam user ID = $STEAMUSERID" ################################################ #location of the binary GAMEROOT="$HOME/Library/Application Support/Steam/SteamApps/$STEAMUSERID/portal" if [ ! -x "${GAMEROOT}"/hl2_osx ]; then #echo "game binary not found" osascript -e 'tell application "Dock" activate display dialog "Script cannot find the hl2_osx binary. Is Portal installed?" buttons "OK" default button 1 with title "cannot find hl2_osx" with icon stop end tell' exit -1 fi #echo "game located in $GAMEROOT" ################################################ #set the dynamic library load path if [ ! -d "${STEAMAPPLOCATION}"/Steam.app/Contents/MacOS/osx32 ]; then #echo "Steam app not found" osascript -e 'tell application "Dock" activate display dialog "Script cannot find the Steam Application Bundle.\n\nIf your Steam is somewhere other than /Applications, Please edit the run.sh script manually." buttons "OK" default button 1 with title "cannot find Steam" with icon stop end tell' exit -1 fi export DYLD_LIBRARY_PATH="${GAMEROOT}"/bin:"${STEAMAPPLOCATION}"/Steam.app/Contents/MacOS/osx32 ################################################ #check that the "portalprelude" folder exists if [ ! -f "${GAMEROOT}"/portalprelude/gameinfo.txt ]; then echo "portalprelude folder missing" ERRMESG="Script cannot find the portalprelude folder/symlink...\n\nDid you extract the zip contents to:\n $HOME/Library/Application Support/Steam/SteamApps/sourcemods/ ? \n\nThen create a symbolic link in:\n $GAMEROOT/ ? \n\nExample:\nln -s ../../sourcemods/portal prelude/ portalprelude" osascript -e 'tell application "Dock"' \ -e 'activate' \ -e "display dialog \"$ERRMESG\" buttons \"OK\" default button 1 with title \"portalprelude folder missing\" with icon stop" \ -e 'end tell' exit -1 fi # launch the game ############################# #increase number of open files allowed (default 256) ulimit -n 2048 cd "${GAMEROOT}" if [ -z `ps -A -o comm | grep Steam.app/Contents/MacOS/osx32/steam` ]; then #Steam is NOT running, so start it first osascript -e 'tell application "Dock" activate display dialog "Portal: Prelude needs to have Steam running in the background first... Starting it now" buttons "OK" default button 1 with title "Steam not running" with icon caution end tell' # "main" is whatever your favorite screen is set to open steam://open/main else #echo "everything is ok, launch the game" # NOTE: forum mentions need for "-dev" parameter, but worked ok for me w/o it. ./hl2_osx -steam -game portalprelude fi
Offline
here is the .dmg download as promised : PortalPreludeStartScript.dmg
Hosted on DropBox, 139kB.
After download, open the image if it doesn't automatically. Then drag the "Portal Prelude" shortcut to wherever you like (Desktop, Applications, etc). You can then Eject the disk image and Trash the download. Double click to start Portal Prelude.
I recommend adding it as an external app to steam, so that it can sit next to Portal and Portal 2.
Offline
threepercentmilk wrote:
here is the .dmg download as promised : PortalPreludeStartScript.dmg
Hosted on DropBox, 139kB.
After download, open the image if it doesn't automatically. Then drag the "Portal Prelude" shortcut to wherever you like (Desktop, Applications, etc). You can then Eject the disk image and Trash the download. Double click to start Portal Prelude.
I recommend adding it as an external app to steam, so that it can sit next to Portal and Portal 2.
You, sir, have won the internet. This SO DESERVES A COCOA APPLICATION!!!!! Luckily, I know cocoa, so I am SOOOO going to make a mac app that installs source mods for you, with this script! Thanks!
Offline
So I trying to use threepercentmilk's script to start portal prelude but I can't get it to work and I think I'm having problems with the symlink, to create one in terminal is it?
ln -s (folder to be symlinked to, here the portal prelude folder, in sourcemods) (location to put the symlink, portal folder under my steam username folder here?)
with a space between the two file paths?
This gives me an alias portal prelude folder in my portal folder, but the script keeps giving me the error that I either havent extracted the zip contents, which I have, or the symlink error. Thanks for the help, also I'm following all the other assumptions in his thread
Offline
flipjonesy wrote:
So I trying to use threepercentmilk's script to start portal prelude but I can't get it to work and I think I'm having problems with the symlink, to create one in terminal is it?
ln -s (folder to be symlinked to, here the portal prelude folder, in sourcemods) (location to put the symlink, portal folder under my steam username folder here?)
with a space between the two file paths?
This gives me an alias portal prelude folder in my portal folder, but the script keeps giving me the error that I either havent extracted the zip contents, which I have, or the symlink error. Thanks for the help, also I'm following all the other assumptions in his thread
I did
ln -s /Users/<Username>/Library/Application\ Support/Steam/SteamApps/sourcemods/portal\ prelude /Users/<Username>/Library/Application\ Support/Steam/SteamApps/<Steam Username>/portal
in terminal, and it worked fine for me. I think you missed the ln(LN) at the beginning
Last edited by Flafla2 (05-05-2011 21:14:43)
Offline
I did
Code:
ln -s /Users/<Username>/Library/Application\ Support/Steam/SteamApps/sourcemods/portal\ prelude /Users/<Username>/Library/Application\ Support/Steam/SteamApps/<Steam Username>/portalin terminal, and it worked fine for me. I think you missed the ln(LN) at the beginning
That worked for the symlink I can see it in the portal folder, but I'm still having trouble launching portal prelude. Theres an icon for portal prelude in my steam list, but launching that loads portal 1, as does the portal 1 icon in steam, threepercentmilk's downloadable script still gives the same error, that I either don't have portal prelude extracted to the right location or I don't have the symlink, and I have both so I'm not sure what to do here
Offline
flipjonesy wrote:
I did
Code:
ln -s /Users/<Username>/Library/Application\ Support/Steam/SteamApps/sourcemods/portal\ prelude /Users/<Username>/Library/Application\ Support/Steam/SteamApps/<Steam Username>/portalin terminal, and it worked fine for me. I think you missed the ln(LN) at the beginning
That worked for the symlink I can see it in the portal folder, but I'm still having trouble launching portal prelude. Theres an icon for portal prelude in my steam list, but launching that loads portal 1, as does the portal 1 icon in steam, threepercentmilk's downloadable script still gives the same error, that I either don't have portal prelude extracted to the right location or I don't have the symlink, and I have both so I'm not sure what to do here
Did you use threepercentmilk's DMG file? That has an application, like steam's shortcuts, that launches portal prelude for you. It worked for me, and it is the only way to launch it, aside from sh'ing the script in Terminal.
Offline
flipjonesy wrote:
threepercentmilk's downloadable script still gives the same error, that I either don't have portal prelude extracted to the right location or I don't have the symlink, and I have both so I'm not sure what to do here
I had the same problem, you need to rename the "portal prelude" shortcut located in your "portal" directory so that it reads "portalprelude" (without the space). That was all I needed to do to get it to work, hopefully it'll be the same for you.
Offline
Everything goes fine until I launch the game, at which point it crashes. If I try to play just normal Portal, it runs fine. Any suggestions?
Offline
Graeme171@gmail.com wrote:
Everything goes fine until I launch the game, at which point it crashes. If I try to play just normal Portal, it runs fine. Any suggestions?
if you are using threepercentmilk's scrip app. open steam, but open his script/app separately, not through steam, thats how i got it to work for me.
Offline
For those having problems with the symbolic link...
1) do these all from Terminal
2) I prefer to use relative path, so first you have to cd (change directory) to the directory where you want to put the link, then you can do ln -s <original folder> <new folder name in this dir>
3) alternatively, you can do full (absolute) path like FlaFla2 mentions above.
4) "\ " is just a way to tell the shell that you want a space character. you could also put everything in double quotes and not use the \'s at all.
5) cd "Library/Application Support/Steam/SteamApps/<steam user id>/portal"
ls -l
look for output like the following:
portalprelude -> ../../sourcemods/portal prelude/
along with some other files
cd portalprelude
ls
you should see :
CHANGELOG.txt models
DownloadLists modelsounds.cache
GameState.txt motd.txt
SAVE particles
cfg portal prelude.ico
demoheader.tmp portalprelude_gamestats.dat
detail.vbsp resource
gameinfo.txt scenes
lights.rad scripts
maplist.txt sound
maps stats.txt
materials videoconfig_mac.cfg
media voice_ban.dt
6) if you get errors above, check where you extracted Prelude files
Hope that helps!
Offline
Error: hl2-osx quit unexpectively
Last edited by cavejohnson (07-09-2011 23:55:28)
Offline