Skip to content

Instantly share code, notes, and snippets.

@wlerin
Last active April 30, 2020 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wlerin/2a46a407a61cfa9d748dd8868dd38dc1 to your computer and use it in GitHub Desktop.
Save wlerin/2a46a407a61cfa9d748dd8868dd38dc1 to your computer and use it in GitHub Desktop.
Lists the authors of Sunless Sea content as reported by a save file
#!/bin/bash
import re
owner_name_re = re.compile(r'"OwnerName": "(.*?)"')
save_text = """
<past save text here>
"""
base_game_authors = {'', "Adam Myers", "Alexis", "Amal El-Mohtar", "Castophrenia", "Chris Gardiner", "Elias", "Emily Short", "Emily Short, GDC", "FailbetterJames", "FredZeleny", "Gavin I", "Hogherd", "Liam Welton", "Mac", "Oliviaaivilo", "Prim Cash", "Richard", "Scotland", "Spacemarine10", "alexis", "alexiskennedy", "emshort", "henrytest", "meg jayanth"}
owners = sorted(set(author.group(1) for author in owner_name_re.finditer(save_text) if author.group(1) not in base_game_authors))
print(*owners, sep='\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment