Multi-boxing proved to be a royal pain in the butt. I wrote a script to solve the issue. The general premise is I have multiple files named <username>_cdkey.ini (i.e. itchyfunk_cdkey.ini, itchierandfunkier_cdkey.ini; running the script (included below) copies those files to cdkey.ini and then uses sed to replace the player name in the nwnplayer.ini file.
This was a ham-fisted solution. It may magically delete all of your stuff and do nasty things to your mother. Yada, yada, legal disclaimer and marketing double speak.
Copy the code below into a file called "nwnee". Then in console "chmod 755 nwnee" (sets the file to be an executable).
Code: Select all
#!/bin/bash
NWNEXE=~/'Location\ to/nwmain.app/Contents/MacOS/nwmain'
eval cp "./$1_cdkey.ini" cdkey.ini
cat nwnplayer.ini | sed -E "s/^Player Name=.*/Player Name=$1/" > temp.txt
cp temp.txt nwnplayer.ini
eval $NWNEXE
Once you've finished logging into the server you can rerun the command with any of your other usernames.
NOTE: The "&>2" at the end of the command tells the OS to run the application in the background and be quiet about it (dumps stdout and stderr to /dev/null)