12 Jun 11, 01:10AM
(This post was last modified: 19 Oct 13, 03:26AM by Ronald_Reagan.)
These are client logs just like what windows users can get. This .sh file also executes AC without the launcher, so that is the second purpose of it. If you dont want client logs, there are comments guiding you on removing them.
Save this file as assaultcube.sh file, and execute it with "sh assaultcube.sh" in the terminal. This file must be located right next to your application. In the same folder, or else it wont work.
Again, how to launch it:
Open up terminal
Type "cd " (with the space)
Drag the folder containing AC into the terminal window
Hit enter.
Type "sh assaultcube.sh"
Some things to note:
I noticed you can't cmd-q out of the game, which suggests to me that the launcher helps make AC more mac friendly. I already know that AC's launcher registers extensions and stuff in the system, so I dont suggest using this unless you really want to.
For settings, you have to use the stuff found Here. I put in my preferred settings.
Important things to note:
Your settings will now be saved in your application file. This is purely because I couldn't pass the directory in a --home argument. This is because the folder "Application Support" has a space in it. Oh well. Meaning you have to remake your settings!
Your logs will be stored in Assaultcube.app/Contents/gamedata
Meaning that you have to right click, "show package contents" and then go to the right folder.
Also, use at your own risk. I am not responsable for any damages this may cause.
I doubt it will cause anything horrible.
Unix helpers, feel free to help me out on this .sh file, as I am quite new to this.
Again, this is not a replacement for the launcher!
Save this file as assaultcube.sh file, and execute it with "sh assaultcube.sh" in the terminal. This file must be located right next to your application. In the same folder, or else it wont work.
Again, how to launch it:
Open up terminal
Type "cd " (with the space)
Drag the folder containing AC into the terminal window
Hit enter.
Type "sh assaultcube.sh"
[SELECT ALL] Code:
#!/bin/sh
#Get into the right working dir
cd AssaultCube.app/Contents/gamedata/
# CUBE_OPTIONS contains any command line options you would like to start Cube with.
# Note that if you dont set a --home then it will just use your .app/Contents/gamedata to save this
CUBE_OPTIONS="-t -w1440 -h860 -T --init"
#lets get the date and store it here. I use kMS just because it was fudging on my system
RIGHTNOW=`date '+%F_%k-%M-%S'`
#Execute it
# Comment out this line if you dont want client logs
exec assaultcube.app/Contents/MacOS/assaultcube ${CUBE_OPTIONS} >> ${RIGHTNOW}-clientlog.txt
# Uncomment out this line if you dont want client logs
#exec assaultcube.app/Contents/MacOS/assaultcube ${CUBE_OPTIONS}
Some things to note:
I noticed you can't cmd-q out of the game, which suggests to me that the launcher helps make AC more mac friendly. I already know that AC's launcher registers extensions and stuff in the system, so I dont suggest using this unless you really want to.
For settings, you have to use the stuff found Here. I put in my preferred settings.
Important things to note:
Your settings will now be saved in your application file. This is purely because I couldn't pass the directory in a --home argument. This is because the folder "Application Support" has a space in it. Oh well. Meaning you have to remake your settings!
Your logs will be stored in Assaultcube.app/Contents/gamedata
Meaning that you have to right click, "show package contents" and then go to the right folder.
Also, use at your own risk. I am not responsable for any damages this may cause.
I doubt it will cause anything horrible.
Unix helpers, feel free to help me out on this .sh file, as I am quite new to this.
Again, this is not a replacement for the launcher!