new entries

This commit is contained in:
Trilarion 2018-06-03 16:26:28 +02:00
parent 22d7ec4537
commit 132fb71d81
21 changed files with 226 additions and 41 deletions

View File

@ -1,14 +1,15 @@
# Open Source Games
[comment]: # (start of autogenerated content, do not edit)
310 entries
- **[Action games](games/action/_toc.md)** (1)
322 entries
- **[Action/Arcade games](games/action/_toc.md)** (5)
- **[Adventure games & Visual novels](games/adventure/_toc.md)** (15)
- **[Game frameworks](games/framework/_toc.md)** (49)
- **[Popular required libraries](games/library/_toc.md)** (22)
- **[Role Playing Games](games/rpg/_toc.md)** (66)
- **[Puzzle games](games/puzzle/_toc.md)** (3)
- **[Role Playing Games](games/rpg/_toc.md)** (68)
- **[Simulation games](games/simulation/_toc.md)** (13)
- **[Strategy games](games/strategy/_toc.md)** (143)
- **[Strategy games](games/strategy/_toc.md)** (146)
- **[Tools & Manuals](games/misc/_toc.md)** (1)
[comment]: # (end of autogenerated content)

View File

@ -1,6 +1,10 @@
# Action games
# Action/Arcade games
[comment]: # (start of autogenerated content, do not edit)
- **[CommandoJS](commando_js.md)** (Javascript, Coffeescript, MIT, beta, inactive since 2012)
- **[Epiar](epiar.md)** (C, C++, Lua, beta)
- **[GDash](gdash.md)** (C++, MIT, beta)
- **[Rocks'n'Diamonds ](rocks_and_diamonds.md)** (C, GPL-2.0, mature)
- **[Smash](smash.md)** (Javascript, MIT, mature)
[comment]: # (end of autogenerated content)

View File

@ -0,0 +1,13 @@
# CommandoJS
_Nostalgic glimpse in the past in a form of Commodore 64 game "Commando"._
- Home: http://commandojs.org/
- State: beta, inactive since 2012
- Keywords: web
- Code: https://github.com/commandojs/CommandoJS
- Language(s): Javascript, Coffeescript
- License: MIT
## Building

13
games/action/gdash.md Normal file
View File

@ -0,0 +1,13 @@
# GDash
_A Boulder Dash clone which is as close to the original as possible._
- Home: https://bitbucket.org/czirkoszoltan/gdash
- Download: https://bitbucket.org/czirkoszoltan/gdash/downloads/
- State: beta
- Code: https://bitbucket.org/czirkoszoltan/gdash/src
- Language(s): C++
- License: MIT
## Building

View File

@ -0,0 +1,13 @@
# Rocks'n'Diamonds
_Arcade style game for “Boulder Dash” (C 64), “Emerald Mine” (Amiga), “Supaplex” (Amiga/PC), “Sokoban” (PC)_
- Home: http://www.artsoft.org/rocksndiamonds/
- Download: http://www.artsoft.org/rocksndiamonds/download/
- State: mature
- Code: http://git.artsoft.org/rocksndiamonds.git/
- Language(s): C
- License: GPL-2.0
## Building

13
games/action/smash.md Normal file
View File

@ -0,0 +1,13 @@
# Smash
_Super Smash Bros-like in HTML5._
- Home: http://smash.gouchon.com/
- State: mature
- Keywords: web
- Code: https://github.com/guillaume-gouchon/smash.js
- Language(s): Javascript
- License: MIT
## Building

8
games/puzzle/_toc.md Normal file
View File

@ -0,0 +1,8 @@
# Puzzle games
[comment]: # (start of autogenerated content, do not edit)
- **[Atomiks](atomiks.md)** (C, GPL, custom (Leveldesign, see Readme), mature)
- **[Atomix](atomix.md)** (C, GPL-2.0, mature)
- **[KAtomic](katomic.md)** (C++, GPL-2.0, mature)
[comment]: # (end of autogenerated content)

14
games/puzzle/atomiks.md Normal file
View File

@ -0,0 +1,14 @@
# Atomiks
_Faithful remake of, and a tribute to, Atomix, a classic puzzle game created by Softtouch & RoSt and published in 1990 by the Thalion Software company._
- Home: http://atomiks.sourceforge.net/, https://sourceforge.net/projects/atomiks
- Download: https://sourceforge.net/projects/atomiks/files
- State: mature
- Keywords: puzzle
- Code: https://sourceforge.net/p/atomiks/code/HEAD/tree/ (svn)
- Language(s): C
- License: GPL, custom (Leveldesign, see Readme)
## Building

12
games/puzzle/atomix.md Normal file
View File

@ -0,0 +1,12 @@
# Atomix
_A puzzle game in which you have to build full molecules._
- Home: https://github.com/GNOME/atomix
- State: mature
- Code: https://github.com/GNOME/atomix
- Language(s): C
- License: GPL-2.0
## Building

13
games/puzzle/katomic.md Normal file
View File

@ -0,0 +1,13 @@
# KAtomic
_Fun educational game built around molecular geometry. It employs simplistic two-dimensional looks at different chemical elements._
- Home: https://www.kde.org/applications/games/katomic/, https://games.kde.org/game.php?game=katomic
- State: mature
- Keywords: puzzle
- Code: git://anongit.kde.org/katomic
- Language(s): C++
- License: GPL-2.0
## Building

View File

@ -16,7 +16,9 @@
- **[Dawn](dawn.md)** (C++, beta, inactive since 2011)
- **[Deliantra](deliantra.md)** (C, mature)
- **[Dragon Hunt](dragon_hunt.md)** (Python, GPL-2.0, mature)
- **[Dungeon Hero](dungeon_hero.md)** (Java, MIT, mature)
- **[Dungeon Monkey Eternal](dungeon_monkey_eternal.md)** (Python)
- **[Dungeon Quest](dungeon_quest.md)** (Java, MIT, mature)
- **[Egoboo](egoboo.md)** (C++, C, mature, inactive since 2015)
- **[Erebus](erebus.md)** (C++, beta)
- **[Eternal Lands](eternal_lands.md)** (C, C++, mature)

14
games/rpg/dungeon_hero.md Normal file
View File

@ -0,0 +1,14 @@
# Dungeon Hero
_Choose between 6 unique heroes, equip yourself with powerful magic items and prepare your spells wisely to complete the different quests._
- Home: https://github.com/guillaume-gouchon/dungeonhero
- Download: https://play.google.com/store/apps/details?id=com.glevel.dungeonhero
- State: mature
- Keywords: android
- Code: https://github.com/guillaume-gouchon/dungeonhero
- Language(s): Java
- License: MIT
## Building

View File

@ -0,0 +1,14 @@
# Dungeon Quest
_Smashing more monsters than ever in this turn-based dungeon crawling game._
- Home: https://github.com/guillaume-gouchon/dungeonquest
- Download: https://play.google.com/store/apps/details?id=com.giggs.heroquest
- State: mature
- Keywords: android
- Code: https://github.com/guillaume-gouchon/dungeonquest
- Language(s): Java
- License: MIT
## Building

View File

@ -1,49 +1,50 @@
[comment]: # (autogenerated content, do not edit)
# Statistics
analyzed 310 entries on 2018-06-01 09:22:11
analyzed 322 entries on 2018-06-03 16:25:20
## State
- mature: 141 (45.5%)
- beta: 122 (39.4%)
- inactive: 111 (35.8%)
- mature: 149 (46.3%)
- beta: 125 (38.8%)
- inactive: 113 (35.1%)
##### Inactive State
zoc (2017), dark_destiny (2016), dnt (2016), freerct (2016), polis (2016), wargame (2016), egoboo (2015), epic_of_heroes (2015), free_heroes2_engine (2015), mewl (2015), project_helena (2015), roguish (2015), argentum_online (2014), battles_of_antargis (2014), drop_shock (2014), eternalwinterwars (2014), farcolony (2014), hale (2014), heroes_of_wing_commander (2014), kingdoms (2014), lips_of_suna (2014), open_tibia (2014), openrpgmaker (2014), rpge (2014), sintel (2014), summoming_wars (2014), turious (2014), xenowar (2014), c_evo (2013), mpango (2013), openrpg (2013), trinity_reign (2013), vegatrek (2013), blacknova_traders (2012), conquests (2012), dark_city (2012), golbin_camp (2012), hexwar (2012), outer_space (2012), parpg (2012), solar_empire (2012), thousand_parsec (2012), age_of_magic (2011), atlantis (2011), battlefield_java (2011), dawn (2011), galaxymage_redux (2011), kobolds_quest_2 (2011), kq_lives (2011), open_moo2 (2011), project_diaspora (2011), runesword_ii (2011), song_of_albion (2011), star_control_2 (2011), world_of_phaos (2011), x-force (2011), ai_wars (2010), labyrinth_of_worlds (2010), mercenary_commander (2010), open_homm (2010), radakan (2010), singularity (2010), skrupel (2010), slay (2010), space_trader_for_java (2010), 8kingdoms (2009), alien_assault_traders (2009), annchienta (2009), begin2 (2009), blitzkrieg (2009), dark_oberon (2009), duel_commander (2009), fall_of_imiryn (2009), freetrain (2009), glest (2009), goblin_hack (2009), open_pop (2009), world_of_heroes (2009), a_planets_revenge (2008), attal (2008), freestars (2008), mars_land_of_no_mercy (2008), moopy (2008), sengoky_warring_states_of_japan (2008), space_opera (2008), space_trader_for_windows (2008), armies (2007), silvertree (2007), arthurs_knights (2006), boson (2006), crown_and_cutless (2006), eleconics (2006), jquest (2006), metal_mech (2006), underworld_adventures (2006), galaxyng (2005), h_world (2005), spice_trade (2005), colonization_too (2004), geewhiz (2004), openglad (2004), promisance (2004), t_bots (2004), antichess (2003), civil (2003), machinations (2003), planetary_hoppers (2003), wargamer (2003), umbra (2002), civil_war (2001), operation_citadel (2000)
zoc (2017), dark_destiny (2016), dnt (2016), freerct (2016), polis (2016), wargame (2016), egoboo (2015), epic_of_heroes (2015), free_heroes2_engine (2015), mewl (2015), project_helena (2015), roguish (2015), argentum_online (2014), battles_of_antargis (2014), drop_shock (2014), eternalwinterwars (2014), farcolony (2014), hale (2014), heroes_of_wing_commander (2014), kingdoms (2014), lips_of_suna (2014), open_tibia (2014), openrpgmaker (2014), rpge (2014), sintel (2014), summoming_wars (2014), turious (2014), xenowar (2014), c_evo (2013), mpango (2013), openrpg (2013), trinity_reign (2013), vegatrek (2013), blacknova_traders (2012), commando_js (2012), conquests (2012), dark_city (2012), golbin_camp (2012), hexwar (2012), outer_space (2012), parpg (2012), solar_empire (2012), thousand_parsec (2012), wizards_magic (2012), age_of_magic (2011), atlantis (2011), battlefield_java (2011), dawn (2011), galaxymage_redux (2011), kobolds_quest_2 (2011), kq_lives (2011), open_moo2 (2011), project_diaspora (2011), runesword_ii (2011), song_of_albion (2011), star_control_2 (2011), world_of_phaos (2011), x-force (2011), ai_wars (2010), labyrinth_of_worlds (2010), mercenary_commander (2010), open_homm (2010), radakan (2010), singularity (2010), skrupel (2010), slay (2010), space_trader_for_java (2010), 8kingdoms (2009), alien_assault_traders (2009), annchienta (2009), begin2 (2009), blitzkrieg (2009), dark_oberon (2009), duel_commander (2009), fall_of_imiryn (2009), freetrain (2009), glest (2009), goblin_hack (2009), open_pop (2009), world_of_heroes (2009), a_planets_revenge (2008), attal (2008), freestars (2008), mars_land_of_no_mercy (2008), moopy (2008), sengoky_warring_states_of_japan (2008), space_opera (2008), space_trader_for_windows (2008), armies (2007), silvertree (2007), arthurs_knights (2006), boson (2006), crown_and_cutless (2006), eleconics (2006), jquest (2006), metal_mech (2006), underworld_adventures (2006), galaxyng (2005), h_world (2005), spice_trade (2005), colonization_too (2004), geewhiz (2004), openglad (2004), promisance (2004), t_bots (2004), antichess (2003), civil (2003), machinations (2003), planetary_hoppers (2003), wargamer (2003), umbra (2002), civil_war (2001), operation_citadel (2000)
##### Without state tag (47)
##### Without state tag (48)
3d_city, atrinik, birth_of_the_empires, camelia_girls, catch_challenger, choria, crimson_fields, crossfire, crypto, dash, deltaengine, digital, dungeon_monkey_eternal, easyrpgplayer, evol_online, flare_engine, freedink, gigalomania, land_of_fire, manaworld, maxr, meritous, micropolis_js, mkxp, murder_in_the_public_domain, open_general, openal, openalsoft, other_life, our_personal_space, room_for_change, sandboxgamemaker, sentient_storage, source_of_tales, star_maiden_rio, superpowers, tanks_of_freedom, twin_engine, ufo2000, valyria_tear, visions_from_the_other_side, wargus, warzone_2100, xoreos, yaml_cpp, zelda_mystery_of_solarus_dx, zero_k
3d_city, atrinik, birth_of_the_empires, camelia_girls, catch_challenger, choria, crimson_fields, crossfire, crypto, dash, deltaengine, digital, dungeon_monkey_eternal, easyrpgplayer, evol_online, flare_engine, freedink, gigalomania, land_of_fire, manaworld, maxr, meritous, micropolis_js, mkxp, murder_in_the_public_domain, open_general, openal, openalsoft, other_life, our_personal_space, room_for_change, sandboxgamemaker, sentient_storage, source_of_tales, star_maiden_rio, superpowers, tanks_of_freedom, twin_engine, ufo2000, valyria_tear, visions_from_the_other_side, wargus, warzone_2100, xarchon, xoreos, yaml_cpp, zelda_mystery_of_solarus_dx, zero_k
## Languages
Without language tag: 19 (6.1%)
Without language tag: 19 (5.9%)
civil_war, crimson_fields, dragon_history, evol_online, imperium, land_of_fire, machinations, meritous, murder_in_the_public_domain, open_general, open_moo2, openal, openrpgmaker, parpg, solaris, space_station_13, star_maiden_rio, vegatrek, xconq
##### Language frequency
- C++ (37.5%)
- C (19.6%)
- Java (11.6%)
- C++ (36.9%)
- C (19.9%)
- Java (12.0%)
- Python (8.2%)
- Lua (4.8%)
- Javascript (3.4%)
- PHP (3.1%)
- C# (2.8%)
- Lua (4.6%)
- Javascript (3.8%)
- PHP (3.0%)
- C# (2.7%)
- Ren'py (1.1%)
- Haxe (0.9%)
- Delphi (0.6%)
- Delphi Pascal (0.6%)
- Pascal (0.6%)
- Haxe (0.8%)
- Delphi (0.5%)
- Delphi Pascal (0.5%)
- Pascal (0.5%)
- ActionScript (0.3%)
- Ada (0.3%)
- Angelscript (0.3%)
- Basic (0.3%)
- BlitzMax (0.3%)
- Clojure (0.3%)
- Coffeescript (0.3%)
- D (0.3%)
- GDScript (0.3%)
- Kotlin (0.3%)
@ -59,9 +60,9 @@ civil_war, crimson_fields, dragon_history, evol_online, imperium, land_of_fire,
## Code licenses
Without license tag: 141 (45.5%)
Without license tag: 153 (47.5%)
8kingdoms, a_planets_revenge, age_of_magic, ai_wars, alien_assault_traders, ancient_beast, antichess, armies, arthurs_knights, atlantis, atrinik, attal, battlefield_java, battles_of_antargis, begin2, blacknova_traders, blitzkrieg, boson, c_evo, caesar_ia, call_to_power2, camelia_girls, catch_challenger, civil_war, civone, clou, colobot, colonization_too, conquests, crimson_fields, dark_destiny, dark_oberon, devana, digital, dragon_hunt, drop_shock, duel_commander, eleconics, epic_of_heroes, epoh, eternalwinterwars, evil_cult, evol_online, farcolony, first_strike, free_heroes2_engine, free_space_colonization, freelords, freerails, freerct, freeserf, freespace_colonization, freestars, freetrain, galaxymage_redux, galaxyng, geewhiz, golbin_camp, h_world, harris, heroes_of_wesnoth, heroes_of_wing_commander, hexwar, imperium, jagged_alliance2, jquest, jsettlers, kingdoms, knights_and_merchants_remake, kobolds_quest_2, kq_lives, labyrinth_of_worlds, land_of_fire, machinations, mars_land_of_no_mercy, mercenary_commander, meritous, metal_mech, mewl, moopy, mpango, open_general, open_homm, open_moo2, open_panzer, open_pop, open_rails, open_rct2, open_skyscraper, openglad, openrpg, openrpgmaker, operation_citadel, other_life, outer_space, parpg, pioneers, planetary_hoppers, polis, project_helena, promisance, runesword_ii, scorched_moon, sengoky_warring_states_of_japan, settlers_iii_remake, simple_solitaire, sintel, skrupel, slay, solar_empire, solaris, song_of_albion, space_faring, space_opera, space_station_13, space_trader_for_java, space_trader_for_windows, space_war, spice_trade, star_maiden_rio, stars_nova, supremacy, t_bots, theme_hospital, thousand_parsec, turious, tvtower, underworld_adventures, vcmi, war_of_kingdom, wargame, wargamer, wargus, warzone_2100, wastes_edge, wolfpack_empire, world_of_heroes, wyrmsun, x-force, xenowar, zoc
8kingdoms, a_planets_revenge, age_of_magic, ai_wars, alien_assault_traders, ancient_beast, antichess, armies, arthurs_knights, atlantis, atomiks, atomix, atrinik, attal, battlefield_java, battles_of_antargis, begin2, blacknova_traders, blitzkrieg, boson, c_evo, caesar_ia, call_to_power2, camelia_girls, catch_challenger, civil_war, civone, clou, colobot, colonization_too, commando_js, conquests, crimson_fields, dark_destiny, dark_oberon, devana, digital, dragon_hunt, drop_shock, duel_commander, dungeon_hero, dungeon_quest, eleconics, epic_of_heroes, epoh, eternalwinterwars, evil_cult, evol_online, farcolony, first_strike, free_heroes2_engine, free_space_colonization, freelords, freerails, freerct, freeserf, freespace_colonization, freestars, freetrain, galaxymage_redux, galaxyng, gdash, geewhiz, golbin_camp, h_world, harris, heroes_of_wesnoth, heroes_of_wing_commander, hexwar, imperium, jagged_alliance2, jquest, jsettlers, katomic, kingdoms, knights_and_merchants_remake, kobolds_quest_2, kq_lives, labyrinth_of_worlds, land_of_fire, machinations, mars_land_of_no_mercy, mercenary_commander, meritous, metal_mech, mewl, moopy, mpango, open_general, open_homm, open_moo2, open_panzer, open_pop, open_rails, open_rct2, open_skyscraper, openglad, openrpg, openrpgmaker, operation_citadel, other_life, outer_space, parpg, pioneers, planetary_hoppers, polis, project_helena, promisance, rocks_and_diamonds, runesword_ii, scorched_moon, sengoky_warring_states_of_japan, settlers_iii_remake, simple_solitaire, sintel, skrupel, slay, smash, solar_empire, solaris, song_of_albion, space_faring, space_opera, space_station_13, space_trader_for_java, space_trader_for_windows, space_war, spice_trade, star_maiden_rio, stars_nova, supremacy, t_bots, theme_hospital, thousand_parsec, turious, turn_of_war, tvtower, underworld_adventures, vcmi, war_of_kingdom, wargame, wargamer, wargus, warzone_2100, wastes_edge, wizards_magic, wolfpack_empire, world_of_heroes, wyrmsun, x-force, xarchon, xenowar, zoc
##### Licenses frequency

View File

@ -125,6 +125,7 @@
- **[Thousand Parsec](thousand_parsec.md)** (C++, Python, GPL-2.0, beta, inactive since 2012)
- **[TripleA](triplea.md)** (Java, mature)
- **[Turious](turious.md)** (C, GPL-3.0, beta, inactive since 2014)
- **[Turn of War](turn_of_war.md)** (Java, GPL-3.0, beta)
- **[UFO2000](ufo2000.md)** (C++)
- **[Ufo: Alien Invasion](ufo_alien_invasion.md)** (C, C++, mature)
- **[Unknown Horizons](unknown_horizons.md)** (Python, beta)
@ -135,10 +136,12 @@
- **[Wargus](wargus.md)** (C++, Lua, GPL-2.0)
- **[Warzone 2100](warzone_2100.md)** (C++)
- **[Widelands](widelands.md)** (C++, Lua, mature)
- **[Wizards Magic](wizards_magic.md)** (Python, GPL-2.0, mature, inactive since 2012)
- **[Wolfpack Empire](wolfpack_empire.md)** (C, GPL-3.0, mature)
- **[World of Heroes](world_of_heroes.md)** (Python, BSD, beta, inactive since 2009)
- **[Wyrmsun](wyrmsun.md)** (Lua, C++, GPL-2.0, mature)
- **[X-Force: Fight For Destiny](x-force.md)** (Delphi, GPL-2.0, beta, inactive since 2011)
- **[XArchon](xarchon.md)** (C, C++, GPL-2.0)
- **[Xconq](xconq.md)** (mature)
- **[Xenowar](xenowar.md)** (C, C++, GPL-3.0, mature, inactive since 2014)
- **[Zero-K](zero_k.md)** (Lua)

View File

@ -0,0 +1,15 @@
# Turn of War
_Turn of War is a fork of Dragon Wars._
- Home: https://github.com/EdwardWoodhouse/Turn-of-War
- State: beta
- Keywords: android
- Code: https://github.com/EdwardWoodhouse/Turn-of-War
- Language(s): Java
- License: GPL-3.0
Based on [Dragon Wars](https://github.com/Fuuzetsu/dragon-wars).
## Building

View File

@ -4,7 +4,7 @@ _Warcraft2 Mod that allows you to play Warcraft2 with the Stratagus engine._
- Home: http://wargus.stratagus.com/index.shtml
- Download: http://wargus.stratagus.com/download.shtml
- Code: https://code.launchpad.net/wargus (bzr) https://github.com/WARGUS/WARGUS
- Code: https://code.launchpad.net/wargus (bzr), https://github.com/WARGUS/WARGUS
- Language(s): C++, Lua
- License: GPL-2.0

View File

@ -0,0 +1,16 @@
# Wizards Magic
_Simple card strategy, based on Magic: The Gathering rules._
- Home: https://code.google.com/archive/p/wizards-magic/
- Media: https://lgdb.org/game/wizards_magic
- Download: https://code.google.com/archive/p/wizards-magic/downloads
- State: mature, inactive since 2012
- Keywords: card game, remake
- Code: https://code.google.com/archive/p/wizards-magic/source
- Language(s): Python
- License: GPL-2.0
- Dependencies: PyGame
## Building

14
games/strategy/xarchon.md Normal file
View File

@ -0,0 +1,14 @@
# XArchon
_Modelled after the golden oldie Archon game created by Freefall Associates and distributed by Electronic Arts._
- Home: http://xarchon.seul.org/
- Download: http://xarchon.seul.org/download.html
- State:beta, inactive since
- Code: cvs.seul.org:/home/cvspsrv/cvsroot
- Language(s): C, C++
- License: GPL-2.0
- Dependencies: GTK
## Building

View File

@ -1,4 +1,3 @@
https://github.com/guillaume-gouchon/island
https://github.com/FreezingMoon/AncientBeast
https://github.com/godrin/antargis
https://github.com/bote-team/bote

1 https://github.com/guillaume-gouchon/island https://github.com/FreezingMoon/AncientBeast
https://github.com/guillaume-gouchon/island
1 https://github.com/FreezingMoon/AncientBeast https://github.com/FreezingMoon/AncientBeast
2 https://github.com/godrin/antargis https://github.com/godrin/antargis
3 https://github.com/bote-team/bote https://github.com/bote-team/bote

View File

@ -8,6 +8,9 @@
TODO Which C, C++ projects do not use CMake
TODO for those games with github repositories get activity, number of open issues, number of merge requests and display in a health monitor file
TODO search for ?? and replace with either nothing or missing information
TODO replace () with nothing in the imported info
TODO sort Home/Media/Download... in all files according to a canonic order
TODO create website with dynamic table
"""
import os
@ -32,7 +35,7 @@ def read_first_line_from_file(file):
"""
Convenience function because we only need the first line of a category overview really.
"""
with open(file, 'r') as f:
with open(file, mode='r', encoding='utf-8') as f:
line = f.readline()
return line
@ -41,7 +44,7 @@ def read_interesting_info_from_file(file):
Parses a file for some interesting fields and concatenates the content. To be displayed after the game name in the
category overview.
"""
with open(file, 'r') as f:
with open(file, mode='r', encoding='utf-8') as f:
text = f.read()
output = [None, None, None]
@ -78,7 +81,7 @@ def update_readme():
print('update readme file')
# read readme
with open(readme_path) as f:
with open(readme_path, mode='r', encoding='utf-8') as f:
readme_text = f.read()
# compile regex for identifying the building blocks
@ -116,7 +119,7 @@ def update_readme():
text = start + "[comment]: # (start of autogenerated content, do not edit)\n" + update + "\n[comment]: # (end of autogenerated content)" + end
# write to readme
with open(readme_path, 'w') as f:
with open(readme_path, mode='w', encoding='utf-8') as f:
f.write(text)
def update_category_tocs():
@ -157,7 +160,7 @@ def update_category_tocs():
text = toc_header + '\n' + "[comment]: # (start of autogenerated content, do not edit)\n" + update + "\n[comment]: # (end of autogenerated content)"
# write to toc file
with open(toc_file, 'w') as f:
with open(toc_file, mode='w', encoding='utf-8') as f:
f.write(text)
def check_validity_external_links():
@ -184,7 +187,7 @@ def check_validity_external_links():
# for each entry
for entry_path in entry_paths:
# read entry
with open(entry_path, 'r') as f:
with open(entry_path, 'r', 'utf-8') as f:
content = f.read()
# apply regex
@ -230,7 +233,7 @@ def fix_notation():
for entry_path in entry_paths:
# read it line by line
with open(entry_path) as f:
with open(entry_path, 'r', 'utf-8') as f:
content = f.readlines()
# apply regex on every line
@ -245,7 +248,7 @@ def fix_notation():
content[line] = "- Code license details:{}\n".format(match)
# write it line by line
with open(entry_path, "w") as f:
with open(entry_path, "w", 'utf-8') as f:
f.writelines(content)
def regular_replacements():
@ -262,7 +265,7 @@ def regular_replacements():
for entry_path in entry_paths:
# read it line by line
with open(entry_path) as f:
with open(entry_path, 'r', 'utf-8') as f:
content = f.read()
# now the replacements
@ -271,7 +274,7 @@ def regular_replacements():
content = content.replace('multi player', 'MP')
# write it line by line
with open(entry_path, "w") as f:
with open(entry_path, "w", 'utf-8') as f:
f.write(content)
def check_template_leftovers():
@ -290,7 +293,7 @@ def check_template_leftovers():
for entry_path in entry_paths:
# read it line by line
with open(entry_path) as f:
with open(entry_path, 'r', 'utf-8') as f:
content = f.read()
for check_string in check_strings:
@ -361,7 +364,7 @@ def generate_statistics():
for entry_path in entry_paths:
# read it line by line
with open(entry_path) as f:
with open(entry_path, mode='r', encoding='utf-8') as f:
content = f.read()
info = parse_entry(content)
@ -437,7 +440,7 @@ def generate_statistics():
unique_licenses = ['- {} ({:.1f}%)\n'.format(x[0], x[1]*100) for x in unique_licenses]
statistics += '##### Licenses frequency\n\n' + ''.join(unique_licenses) + '\n'
with open(statistics_path, 'w') as f:
with open(statistics_path, mode='w', encoding='utf-8') as f:
f.write(statistics)