/DNG-ValveItems

Primary LanguageSourcePawnGNU General Public License v3.0GPL-3.0

DNG-ValveItems

Under linux it could be necessary to convert the csgo_english.txt from utf16-le to utf-8, otherwise you'll see no name. Example to convert the file: iconv -f utf-16le -t utf-8 csgo_english.txt > csgo_english_test.txt Usage with LGSM:

  • Open ~/lgsm/config-lgsm/csgoserver/csgoserver.cfg
  • Add this line iconv -f utf-16le -t utf-8 ~/serverfiles/csgo/resource/csgo_english.txt > ~/serverfiles/csgo/resource/csgo_english.txt.utf8

Usage with Easy-WI:

  • Open stuff/methods/class_app.php
  • Search this line: if ($this->appServerDetails['protectionModeStarted'] == 'Y') {
  • Add above this line: $script .= 'iconv -f utf-16le -t utf-8 ' . $serverDir . 'csgo/csgo/resource/csgo_english.txt > ' . $serverDir . 'csgo/csgo/resource/csgo_english.txt.utf8' . "\n";

Usage with Pterodactyl:

  • A mess to use it on Start Up. I wrote an simple shell script that will be executed every day (as workaround for now)
  • Change in following code the daemon-data folder:
#!/bin/bash

find /home/daemon-data/ -name "*csgo_english.txt" -print -type f |
while read file
do
  echo " $file"
  iconv -f UTF-16LE -t UTF-8 $file > $file.utf8
done