start_server.sh 475 B

1234567891011121314151617
  1. #!/bin/sh
  2. source ./utils.sh
  3. #openttd_exe=/usr/local/games/openttd
  4. openttd_exe=~/dev/packages/OpenTTD-patches/build/openttd
  5. config_file=~/.openttd/config/cb_${1}.cfg
  6. save_file=~/.openttd/save/cb_${2}.sav
  7. echo "info | conf file ${config_file}"
  8. check_file_exists "${save_file}"
  9. echo "info | save file ${save_file}"
  10. check_file_exists "${config_file}"
  11. # tmux new -s openttd_{$1} \
  12. ${openttd_exe} -D -c ${config_file} -g ${save_file}
  13. # /usr/local/games/openttd -D -c $1.cfg