Nonetheless, here's a shell script to replace the list of backer names with a list of English towns taken from Wikipedia.
Save into your factorio folder and run with
Code: Select all
/bin/sh rulebritannia.shCode: Select all
#!/bin/sh
BACKERS=data/core/backers.json
BACKUP=data/core/backers.bak.json
if [ ! -f "$BACKUP" ]
then
  echo "Backing up backers.json.."
  mv "$BACKERS" "$BACKUP"
fi
echo "Replacing backers.json.."
(
  echo "{"
  echo "  \"backers\":"
  echo "  ["
  wget "http://en.wikipedia.org/w/index.php?title=List_of_towns_in_England&printable=yes" -q -O- |\
    grep '^<td><a href' |\
    sed -e 's/.*">//' -e 's/<.*//' |\
    sed -e "s/.*/    \"\\0\",/" |\
    sed '$s/.$//'
  echo "  ]"
  echo "}"
) > "$BACKERS"
echo "Done!"
Code: Select all
mv data/core/backers.bak.json data/core/backers.json







