Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
		
		
		25 Feb 14, 02:59PM 
(This post was last modified: 25 Feb 14, 03:44PM by Mousikos.)
		
	 
	
		So I recently realized there are some really good looking guns out there. 
http://ac-akimbo.net/showthread.php?tid=188
http://ac-akimbo.net/showthread.php?tid=128
http://ac-akimbo.net/showthread.php?tid=135
But I seem to be having some problems installing it. Anyone know what I'm doing wrong?
 
/bin/assaultcube
 ac_client "--home=${HOME}/.assaultcube" "--init=${HOME}/.assaultcube/config/init.cfg" "--mastertype=0" "--mod=mods" "$@"
 
ls ~/.assaultcube
 config  demos  mods  packages  screenshots  tmp
 
ls ~/.assaultcube/mods/DE
 105.zip  license.txt  packages
 
Edit: 
I found /usr/share/assaultcube/mods. Do I put it in that folder?' I should probably say that I didn't download from the website, I pacman -Syu'd from community.
	  
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 625 
	Threads: 0 
	Joined: Jun 2010
	
	 
 
	
	
		Why don't you search the right file/folder in finder/file explorer and change it there.
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
		
		
		25 Feb 14, 03:49PM 
(This post was last modified: 25 Feb 14, 03:51PM by Mousikos.)
		
	 
	
		 (25 Feb 14, 03:45PM)Medusa Wrote:  Why don't you search the right file/folder in finder/file explorer and change it there. 
What is finder/file explorer?
Oh... I'm not a mac user. termite IS my file explorer XD
	  
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 165 
	Threads: 5 
	Joined: Jan 2011
	
	 
 
	
		
		
		25 Feb 14, 05:46PM 
(This post was last modified: 25 Feb 14, 05:52PM by hgf-arg.)
		
	 
	
		Not sure if this will help you, but every time I download any akimbo package the only thing I do is to extract it and replace the original files, and that's all. I've never ever touched the bin folder, the only thing I do is to keep a backup of the original 'packages' folder, just in case I don't like it. 
 
I've downloaded the nade mod, and it works
 
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
		
		
		25 Feb 14, 06:46PM 
(This post was last modified: 25 Feb 14, 07:21PM by Mousikos.)
		
	 
	
		Replace orignal files? 
So replace /usr/share/assaultcube/packages/models/weapons/grenade?
 
 
I replaced files but now Mash doesn't have pistol:  http://i.imgur.com/LoJUg0f.jpg
 
But I can see his nade  http://i.imgur.com/ne6FVlw.jpg
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 165 
	Threads: 5 
	Joined: Jan 2011
	
	 
 
	
	
		Remember, first MAKE A BACKUP of 'packages' folder, then you can start messing around.  
It seems, IMO, that you acidentally erased/changed/whatever... the 'world' pistol model, located here : \Assault Cube 1.2.0.2\packages\models\weapons\pistol\world  , that's why your 'world' players doesn't show it properly. 
That's why you keep the backup folder, just in case something like that happens.
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
	
		Oh, I just mv'd the pistol folder to pistol.old then did a ln -s for new pistol folder. XD easy fix. thanks
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 165 
	Threads: 5 
	Joined: Jan 2011
	
	 
 
 
	
	
	
		
	Posts: 444 
	Threads: 31 
	Joined: Mar 2011
	
	 
 
	
	
		You just missed the folder where is your mods. 
ac_client "--home=${HOME}/.assaultcube" "--init=${HOME}/.assaultcube/config/init.cfg" "--mastertype=0" "--mod=mods" "$@"
 
You must create a folder. for example: ak-mods and then change the line to:
 ac_client "--home=${HOME}/.assaultcube" "--init=${HOME}/.assaultcube/config/init.cfg" "--mastertype=0" "--mod=mods\ak-mods" "$@"
 
so you don't have to replace anything and place your mods on the mod folder which is on the root folder. 
 
I have it on my download folder:
 Home/downloads/AssaultCube_v1.2
 
I don't use the /.assaultcube and it works.
	  
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
	
		 (25 Feb 14, 08:29PM)MPx Wrote:  You just missed the folder where is your mods. 
 
 
ac_client "--home=${HOME}/.assaultcube" "--init=${HOME}/.assaultcube/config/init.cfg" "--mastertype=0" "--mod=mods" "$@"
  
You must create a folder. for example: ak-mods and then change the line to: 
 
ac_client "--home=${HOME}/.assaultcube" "--init=${HOME}/.assaultcube/config/init.cfg" "--mastertype=0" "--mod=mods\ak-mods" "$@"
  
so you don't have to replace anything and place your mods on the mod folder which is on the root folder.  
 
I have it on my download folder: 
 
Home/downloads/AssaultCube_v1.2
  
I don't use the /.assaultcube and it works. 
...root folder? Ideally I don't want to touch root (/). I'd like to have everything in home (~).
	  
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 525 
	Threads: 10 
	Joined: Jun 2013
	
	 
 
	
	
		I think he meant the relative AssaultCube path - not that it would actually be in the root of your file system, but in the 'root' of your AC directory...
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
	
		I did. I even made a ~/.assaultcube/mods/test and threw everything in there. Did not work as described for some reason.
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 444 
	Threads: 31 
	Joined: Mar 2011
	
	 
 
	
		
		
		25 Feb 14, 11:41PM 
(This post was last modified: 25 Feb 14, 11:41PM by MPx.)
		
	 
	
		sorry, the root folder of the game, not the system.
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
		
		
		26 Feb 14, 12:28AM 
(This post was last modified: 26 Feb 14, 12:29AM by Mousikos.)
		
	 
	
		No funciona.
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 447 
	Threads: 9 
	Joined: May 2012
	
	 
 
	
		
		
		26 Feb 14, 01:02AM 
(This post was last modified: 26 Feb 14, 01:03AM by blueberry.)
		
	 
	
		 (25 Feb 14, 10:50PM)Mousikos Wrote:  I did. I even made a ~/.assaultcube/mods/test and threw everything in there. Did not work as described for some reason. 
Did you add this to /bin/assaultcube:
 
From the docs, it seems you need to add a --mod argument for each folder containing individual mods. I could be wrong on that. For testing purposes, try adding a single mod to your home assaultcube mods directory and launch using the --mod option.
 
Edit: Some reading material for you:  http://assault.cubers.net/docs/mods.html
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
	
		Quote:--mod=PATH 	Adds the specified path to the list of directories to be searched when loading resources. Use this to "MOD" the game in a clean way without having to place/replace files in the main directory. 
See the custom mods page for more information. 
Note: Mods need to be added into the --home directory if one is specified.  
Methought it was recursive.
	  
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 165 
	Threads: 5 
	Joined: Jan 2011
	
	 
 
	
	
		Dayum, ya'll making it look so complicated :)
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 447 
	Threads: 9 
	Joined: May 2012
	
	 
 
	
	
		 (26 Feb 14, 01:10AM)Mousikos Wrote:  Methought it was recursive. 
Seems like it should be, but it isn't.
	  
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
	
		 (26 Feb 14, 01:12AM)blueberry Wrote:   (26 Feb 14, 01:10AM)Mousikos Wrote:  Methought it was recursive.  
Seems like it should be, but it isn't. 
Doesn't seem to work either.
	  
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 2,841 
	Threads: 44 
	Joined: Jun 2010
	
	 
 
	
	
		Just replace the old file with the new, I don't understand why people are getting confused over codes, don't make it harder than it needs to be.
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
	
		* Mousikos read the docs first. Trying to not have to replace files.
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 619 
	Threads: 42 
	Joined: Aug 2012
	
	 
 
	
		
		
		26 Feb 14, 03:50AM 
(This post was last modified: 26 Feb 14, 03:52AM by D3M0NW0LF.)
		
	 
	
		You're running linux right? 
Just replace this part with something of your pleasing: --mod=mods\blablabla
 
With what you have selected, I'd just make it simple. Call the folder "my_stuff" You will then need to proceed and make a folder in the mods folder called "my_stuff", and package it correctly.
 
packages/models/weapons/pistol/stuff for pistol goes here 
.../weapons/grenade/stuff for grenade goes here 
.../weapons/subgun/stuff for subgun goes here
 #!/bin/sh 
 
# CUBE_DIR should refer to the directory in which AssaultCube is placed. 
#CUBE_DIR=~/assaultcube 
#CUBE_DIR=/usr/local/assaultcube 
#CUBE_DIR=./ 
CUBE_DIR=$(dirname "$(readlink -f "${0}")") 
 
# CUBE_OPTIONS starts AssaultCube with any command line options you choose. 
#CUBE_OPTIONS="-f" 
CUBE_OPTIONS="--home=${HOME}/.assaultcube_v1.2 --init --mod=mods\blablabla" 
 
# SYSTEM_NAME should be set to the name of your operating system. 
#SYSTEM_NAME=Linux 
SYSTEM_NAME=`uname -s` 
 
# MACHINE_NAME should be set to the architecture of your processor. 
#MACHINE_NAME=i686 
MACHINE_NAME=`uname -m` 
 
case ${SYSTEM_NAME} in 
Linux) 
  SYSTEM_NAME=linux_ 
  ;; 
*) 
  SYSTEM_NAME=unknown_ 
  ;; 
esac 
 
case ${MACHINE_NAME} in 
i486|i586|i686) 
  MACHINE_NAME= 
  ;; 
x86_64) 
  MACHINE_NAME=64_ 
  ;; 
*) 
  if [ ${SYSTEM_NAME} != native_ ] 
  then 
    SYSTEM_NAME=native_ 
  fi 
  MACHINE_NAME= 
  ;; 
esac 
 
if [ -x "${CUBE_DIR}/bin_unix/native_client" ] 
then 
  SYSTEM_NAME=native_ 
  MACHINE_NAME= 
fi 
 
if [ -x "/sbin/ldconfig" ]; then 
  if [ -z "$(/sbin/ldconfig -p | grep "libX11")" ]; then 
    echo "To run AssaultCube, please ensure X11 libraries are installed." 
    exit 1 
  fi 
  if [ -z "$(/sbin/ldconfig -p | grep "libSDL-1.2")" ]; then 
    echo "To run AssaultCube, please ensure SDL v1.2 libraries are installed." 
    exit 1 
  fi 
  if [ -z "$(/sbin/ldconfig -p | grep "libSDL_image")" ]; then 
    echo "To run AssaultCube, please ensure SDL_image libraries are installed." 
    exit 1 
  fi 
  if [ -z "$(/sbin/ldconfig -p | grep "libz")" ]; then 
    echo "To run AssaultCube, please ensure z libraries are installed." 
    exit 1 
  fi 
  if [ -z "$(/sbin/ldconfig -p | grep "libogg")" ]; then 
    echo "To run AssaultCube, please ensure ogg libraries are installed." 
    exit 1 
  fi 
  if [ -z "$(/sbin/ldconfig -p | grep "libvorbis")" ]; then 
    echo "To run AssaultCube, please ensure vorbis libraries are installed." 
    exit 1 
  fi 
  if [ -z "$(/sbin/ldconfig -p | grep "libopenal")" ]; then 
    echo "To run AssaultCube, please ensure OpenAL-Soft libraries are installed." 
    exit 1 
  fi 
  if [ -z "$(/sbin/ldconfig -p | grep "libcurl")" ]; then 
    echo "To run AssaultCube, please ensure Curl libraries are installed." 
    exit 1 
  fi 
fi 
 
if [ -x "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}client" ]; then 
  cd "${CUBE_DIR}" 
  exec "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}client" ${CUBE_OPTIONS} "$@" 
elif [ -e "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}client" ]; then 
  echo "Insufficient permissons to run AssaultCube." 
  echo "Please change (chmod) the AssaultCube client in the bin_unix folder to be readable/executable." 
else 
  echo "Your platform does not have a pre-compiled AssaultCube client." 
  echo "Please follow the following steps to build a native client:" 
  echo "1) Ensure you have the following DEVELOPMENT libraries installed:" 
  echo "   OpenGL, SDL, SDL_image, zlib, libogg, libvorbis, OpenAL Soft, libcurl" 
  echo "2) Ensure clang++ and any other required build tools are installed." 
  echo "3) Change directory to ./source/src/ and type \"make install\"." 
  echo "4) If the compile succeeds, return to this directory and re-run this script." 
  exit 1 
fi
 
Thanks to phantom for the code.
 
IF for any reason you are still having trouble, I will kindly package this mod for you, as one whole thing.
	  
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
		
		
		26 Feb 14, 03:52AM 
(This post was last modified: 26 Feb 14, 03:55AM by Mousikos.)
		
	 
	
		.....what file is  that? I installed AC from repo. Also how is that any different from what I have?
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 619 
	Threads: 42 
	Joined: Aug 2012
	
	 
 
	
		
		
		26 Feb 14, 03:58AM 
(This post was last modified: 26 Feb 14, 03:59AM by D3M0NW0LF.)
		
	 
	
		 (26 Feb 14, 03:52AM)Mousikos Wrote:  .....what file is  that? I installed AC from repo. Also how is that any different from what I have? 
It's a shell script phantom gave me to use for future mods I place on akimbo. It should work if you've done what I've said.
 
	 
	
	
	
		
	 
 
 
	
	
	
		
	Posts: 1,033 
	Threads: 85 
	Joined: Oct 2013
	
	 
 
	
		
		
		26 Feb 14, 04:04AM 
(This post was last modified: 26 Feb 14, 04:59AM by Mousikos.)
		
	 
	
		Get on ts3 for a second. I'll tell you why this won't work for me. 
  
I figured it out. The repo version doesn't care about your ~/.assaultcube/mods/custom. If you type in "mod=mods/custom" it will look for it in /usr/share/assaultcube/mods/custom 
 
Somehow I think this mod is cheating. The DE has a 9 bullet clip. But AC makes it 10 bullets XD
	
	
	
	
		
	 
 
 
	 
 |