Skip to content

Commit

Permalink
Add some blacklists/aliases and misc fixes for OSGL scraper #2706
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Sep 15, 2024
1 parent ca28bcc commit ed1b940
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 11 deletions.
2 changes: 1 addition & 1 deletion games/d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
frameworks:
- SDL
originals:
- 3D Deathchase
- Deathchase
status: playable
repo: https://github.com/BachToTheFuture/DeathChase3D
development: halted
Expand Down
9 changes: 0 additions & 9 deletions originals/0scumm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@
platforms:
- DOS

- name: 3D Deathchase
external:
wikipedia: 3D Deathchase
meta:
genres:
- Racing
subgenres:
- Vehicular Combat

- name: The 7th Guest
external:
website: https://www.mobygames.com/game/283
Expand Down
11 changes: 11 additions & 0 deletions originals/d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,17 @@
platforms:
- Windows

- name: Deathchase
names:
- 3D Deathchase
external:
wikipedia: Deathchase
meta:
genres:
- Racing
subgenres:
- Vehicular Combat

- name: Death Rally
external:
wikipedia: Death Rally
Expand Down
2 changes: 2 additions & 0 deletions originals/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@
- Turn-Based Strategy

- name: Sid Meier's Colonization
names:
- Colonization
external:
wikipedia: Sid Meier's Colonization
meta:
Expand Down
32 changes: 31 additions & 1 deletion scripts/scrape_osgl_inspirations.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,33 @@

INSPIRATION_PATTERN = re.compile(r"(.+) \[\d+\]")
INSPIRED_PATTERN = re.compile(r"Inspired entries: (.+)")
# OSGL name to OSGC alias
ALIASES = {
"Alone in the Dark series": "Alone in the Dark",
"Anno (series)": "Anno series",
"BioWare's Aurora engine": "Neverwinter Nights",
"Blake Stone: Aliens of Gold": "Blake Stone: Planet Strike",
"Blasteroids": "Asteroids",
"Caesar 3": "Caesar III",
"Civilization series": "Civilization",
"Company of Heroes: Opposing Fronts": "Company of Heroes",
"Company of Heroes: Tales of Valor": "Company of Heroes",
}
# Games that aren't interesting enough or weren't closed source
BLACKLIST = {
"arithmetic",
"Black Shades",
"Blob Wars Attrition",
"Blobby Volley",
"Chromium B.S.U.",
"CorsixTH",
"Crossfire",
"Cube",
"Cube 2: Sauerbraten",
"CUBE engine",
"Daimonin",
"TuxMath",
}


def main():
Expand All @@ -33,7 +60,10 @@ def main():
for name in original.get("names", []):
osgc_originals.add(name)
for game in osgl_games:
if game not in osgc_originals:
if game in BLACKLIST:
continue
alias = ALIASES.get(game)
if game not in osgc_originals and (not alias or alias not in osgc_originals):
print(f"Missing original: {game}")
osgc_games = set(game["name"] for game in games())
for game, inspireds in osgl_games.items():
Expand Down

0 comments on commit ed1b940

Please sign in to comment.