fix_ut2k4.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. # LinuxGSM fix_ut2k4.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://linuxgsm.com
  5. # Description: Resolves various issues with Unreal Tournament 2004.
  6. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  7. echo -e "applying WebAdmin ut2003.css fix."
  8. echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  9. sed -i 's/none}/none;/g' "${serverfiles}/Web/ServerAdmin/ut2003.css"
  10. sed -i 's/underline}/underline;/g' "${serverfiles}/Web/ServerAdmin/ut2003.css"
  11. fn_sleep_time
  12. echo -e "applying WebAdmin CharSet fix."
  13. echo -e "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1"
  14. sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/UWeb.int"
  15. fn_sleep_time
  16. echo -e "applying server name fix."
  17. fn_sleep_time
  18. echo -e "forcing server restart."
  19. fn_sleep_time
  20. exitbypass=1
  21. command_start.sh
  22. fn_firstcommand_reset
  23. sleep 5
  24. exitbypass=1
  25. command_stop.sh
  26. fn_firstcommand_reset
  27. exitbypass=1
  28. command_start.sh
  29. fn_firstcommand_reset
  30. sleep 5
  31. exitbypass=1
  32. command_stop.sh
  33. fn_firstcommand_reset