README 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. ===============================================================================
  2. Action Quake2 - Base Server Installer by Paul Klumpp (2012-11-18)
  3. It's always the same in Linux: To make it work on your system, some quake2
  4. stuff needs to be compiled. Please follow these simple instructions.
  5. First, on Linux, be an unprivileged user. The following will create a
  6. "aq2-basesrv" directory, so, there is no need to create a new directory.
  7. Just start the the magic script by:
  8. curl -L https://gitlab.netdome.biz/pklumpp/aq2-base-server/raw/master/q2compile/aq2-bsrv-pkg.sh | bash -s first
  9. For future updates, start this:
  10. curl -L https://gitlab.netdome.biz/pklumpp/aq2-base-server/raw/master/q2compile/aq2-bsrv-pkg.sh | bash -s update
  11. Note: These magic scripts will install or update everything, but they
  12. won't overwrite your changes on configuration files.
  13. Q: But, what do they really do?
  14. A: In fact, those two magic scripts are just a shortcut for the following steps:
  15. git clone https://bitbucket.org/PaulKlumpp/aq2-basesrv.git
  16. or
  17. git pull # if the files already exist
  18. cd aq2-basesrv/q2compile
  19. ./make_and_put_all.sh clean
  20. or
  21. ./make_and_put_all.sh update
  22. ===============================================================================
  23. Now, to YOUR JOB! Your job is to configure your server, so read the
  24. following steps carefully and learn something.
  25. ===============================================================================
  26. ABOUT THE ACTION QUAKE 2 MOD CONFIGURATION:
  27. -------------------------------------------
  28. Change to your q2 server action directory:
  29. cd aq2-basesrv/q2srv/action/
  30. There, you have to edit your configuration files, and set your stuff up.
  31. See which cfg files are there:
  32. ls -1 *cfg
  33. Edit h_passwords.cfg so you have a rcon_password that you actually know:
  34. nano h_passwords.cfg
  35. Edit aq2_1.cfg, aq2_2.cfg etc so you have a nice hostname etc.
  36. nano aq2_1.cfg
  37. etc.
  38. For information about AQ2-TNG Mod settings inside those configuration files,
  39. see the documentation inside the docs/ directory!!
  40. Inside the h_admin/ directory are admin helper scripts. With those little
  41. scripts you can get additional maps or update your soundlist.ini.
  42. This will install cloud.bsp and update your maplist (config/maplist.ini):
  43. ./getmap.sh cloud
  44. For a public server which is more fun ;), put your user wave files into
  45. action/sound/user/. And then, to update your soundlist (config/soundlist.ini)
  46. goto action/h_admin/ and do:
  47. ./make_sndlist.sh
  48. ABOUT GS STARTER:
  49. -----------------
  50. Change to your q2 server directory:
  51. cd aq2-basesrv/q2srv/
  52. Edit the gs_starter.cfg and try to study what it says:
  53. nano gs_starter.cfg
  54. Note: The ACTIVATE variable defines which instances get run
  55. by ./gs_starter.sh startwatch. And obviously, the rest of the
  56. variables define starting parameters for these instances.
  57. Start the gs_starter.sh script... With default gs_starter.cfg, it will watch
  58. over your Action Quake 2 game server instances 1, 2 and 3:
  59. screen ./gs_starter.sh startwatch
  60. IT'S DONE. YOU'RE READY TO GO!
  61. But if you're new to Linux and "screen", you have to read "ABOUT SCREEN".
  62. You can kill ALL instances with:
  63. ./gs_starter.sh stopall
  64. Note: If they were watched by startwatch, the instances will come up again.
  65. You can kill an instance X with:
  66. ./gs_starter.sh stop X
  67. Note: If it was watched by startwatch, the instance will come up again.
  68. You can start an instance X with:
  69. ./gs_starter.sh start X
  70. Note: This does not necessarily mean that this instance is watched.
  71. You can stop watching the instances with:
  72. ./gs_starter.sh stopwatch
  73. For help, just start it:
  74. ./gs_starter.sh
  75. ABOUT SCREEN:
  76. -------------
  77. You can get a list of running gameserver instances with:
  78. screen -ls
  79. You can attach to a running gameserver instance with:
  80. screen -x gs1
  81. or
  82. screen -x gs2 etc.
  83. You can detach from a gameserver instance with:
  84. Press ctrl+a then press d
  85. And now, have fun!
  86. ===============================================================================
  87. vim: expandtab tabstop=2 autoindent:
  88. kate: space-indent on; indent-width 2; mixedindent off;