login  Naam:   Wachtwoord: 
Registreer je!
 Scripts:

Scripts > Overige > Linux > Counter-Strike 1.5 server installeren (LAN)

Counter-Strike 1.5 server installeren (LAN)

Auteur: Wim - 05 oktober 2005 - 15:49 - Gekeurd door: Maarten - Hits: 6076 - Aantal punten: 4.50 (1 stem)



Hallo iedereen,

Dit script download, installeet en configureert (voor zover het nodig is) een CS 1.5 LAN (NOWON) server.

Wat doet het script:
- Het download de benodigde bestanden en extract ze
- Het maakt nieuwe bestanden aan & het compiled ze (compileren)
- Het maakt een startscript om de server makkelijk te kunnen starten (door ./start.sh uit te voeren)
- Het update het bestand: hlds_run (vervangen, het wordt van mijn host gedownload)
- Het verwijderd de bekende bug zodat iedereen je server kan uitschakelen

Als je de server wil starten met het commando: startcsserver doe je dit:
ln -s /PATH_TO_hlds_l/start.sh /usr/sbin/startcsserver

Greetz,
GDX^ (Wim Mariën)

Code:
  1. #!/bin/sh
  2.  
  3.  
  4. wget http://3dgamers.iinet.net.au/pub/3dgamers/games/halflife/hlds_l_3111_full.bin
  5. wget ftp://ftp.sandy.ru/pub/games/gamesfiles/HalfLife/Linux/hlds_l_3111e_update.tar.gz
  6. chmod +x hlds_l_3111_full.bin
  7. ./hlds_l_3111_full.bin
  8. tar xzvf hlds_l_3111_full.tar.gz > /dev/null
  9. tar xzvf hlds_l_3111e_update.tar.gz > /dev/null
  10. cd hlds_l
  11. wget ftp://ftp.leivo.ru/pub/warez/cs_15_full.tar.gz
  12. tar xzvf cs_15_full.tar.gz > /dev/null
  13.  
  14. cd valve
  15. rm valvecomm.lst
  16. wget http://www.no-won.net/valvecomm.lst
  17. cd ..
  18.  
  19. touch nowon.c
  20. echo "int NET_IsReservedAdr(){return 1;}" > nowon.c
  21. gcc -c nowon.c -o nowon.o
  22. ld -shared -o nowon.so nowon.o
  23.  
  24. rm start.sh
  25. touch start.sh
  26. echo "#!/bin/sh" > start.sh
  27. echo "" >> start.sh
  28. echo "./hlds_run -game cstrike +map de_dust +maxplayers 16 +port 27015 +sv_lan 1 +rcon_password gdxownt > /dev/null" >> start.sh
  29. echo "" >> start.sh
  30. chmod +x start.sh
  31.  
  32. wget http://svn.nomi.cz/svn/tomi/dedtools/head/hlds/hlds_20040707fix.c
  33. gcc -s -O3 -D_GNU_SOURCE -fPIC -shared -ldl -o hlds_20040707fix.so hlds_20040707fix.c
  34.  
  35. cp hlds_run hlds_run.bak
  36. wget http://wim.robohost.be/steamlessproject/hlds_run
  37. chmod +x hlds_run
  38.  
  39. if [ -f hlds_run ]
  40. then
  41. echo "Ok, your hlds_run file is up2date!"
  42. echo ""
  43. echo "Please modify your hlds_run file:"
  44. echo "edit the hlds_l path to your ROOT path!"
  45. echo "You will see (on one of the first lines in the script): hlds_dir=/home/cstrike/hlds_l"
  46. echo "PLEASE edit /home/cstrike/hlds_l to YOUR ROOT path!"
  47. echo "IT WILL NOT WORK IF YOU DON'T DO THIS!!"
  48. else
  49. cp hlds_run.bak hlds_run
  50. echo ""
  51. echo "PLEASE UPDATE YOUR hlds_run FILE!!!"
  52. echo ""
  53. echo "Howto:"
  54. echo ""
  55. echo "Add UNDER the first export this:"
  56. echo "export LD_PRELOAD=/HLDS_L-dir/nowon.so /HLDS_L-dir/hlds_20040707fix.so"
  57. echo ""
  58. echo "ATTENTION: Be sure you've renamed /HLDS_L-dir/ to your ROOT path! (like: /home/cstrike/hlds_l/nowon.so"
  59. echo ""
  60. fi
  61.  
  62. echo ""
  63. echo ""
  64. echo "Yeah, your server should be installed!"
  65. echo ""
  66. echo "Just typ ./start.sh in this directory to start your server ;-)"
Download code! Download code (.txt)

 Stemmen
Niet ingelogd.

 Reacties
Post een reactie
Lees de reacties (2)
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.025s