renamed games folder to entries folder (also contained frameworks, libraries, ...) and added to the backlog

This commit is contained in:
Trilarion
2019-09-20 14:47:35 +02:00
parent e682f975ad
commit d67e0db0cc
1083 changed files with 1369 additions and 1078 deletions

View File

@ -2,8 +2,35 @@ dark city (https://github.com/darken33) maybe he wants to import from sourceforg
endgame singularity recursive clone (bei anderen auch)
fosslinux.com
holyspirit/lechemindeladam cvs conversion?
http://3dradboards.org/
http://antongerdelan.net/blog/ (other projects besides TestDrive)
http://apricot-js.tumblr.com/
http://atomicgameengine.com/features/
http://box2d.org/
http://cake.4lfa.com/gamecake
http://circularstudios.com/
http://cocos2d-x.org/
http://commandojs.org/
http://corengine.sourceforge.net/
http://cosp.sourceforge.net/
http://cyxdown.free.fr/bs/
http://cyxdown.free.fr/f2b/
http://dead-code.org/home/
http://devana.eu/
http://directpython.sourceforge.net/
http://dragengine.rptd.ch/
http://duality.adamslair.net/
http://enigma-dev.org/about.htm
http://epiar.net/
http://evolonline.org/about
http://forums.scummvm.org/viewtopic.php?t=13512&highlight=open+source
http://freeminer.org/
http://freerct.blogspot.de/
http://game-editor.com/Main_Page
http://getmoai.com/
http://giderosmobile.com/
http://gna.org/projects/tactics
http://haxepunk.com/
http://hcsoftware.sourceforge.net/jason-rohrer/ (various games there)
http://icculus.org/asciiroth/
http://icculus.org/avp/
@ -18,25 +45,151 @@ http://icculus.org/jumpnbump/
http://icculus.org/pyddr/
http://icculus.org/tennix/
http://icculus.org/toby/
http://ika.sourceforge.net/
http://instead.syscall.ru/index.html
http://jcrpg.blogspot.de/
http://kursk.sourceforge.net/newfiles/Projects.htm
http://lazerbears.wixsite.com/lazerbears/cr-editor
http://libagar.org/agar/index.html.en
http://libsdl-android.sourceforge.net/
http://lipsofsuna.org/
http://lukaszjakowski.pl/ (games apart from uMario)
http://m484games.ucoz.com/
http://martindrapeau.github.io/backbone-game-engine/
http://melonjs.org/
http://onscripter.osdn.jp/onscripter.html
http://openapoc.pmprog.co.uk/
http://pathfinder.wikia.com/wiki/Pathfinder_Roleplaying_Game
http://paxbritannica.henk.ca/
http://phaser.io/
http://playir.com/
http://plib.sourceforge.net/
http://psyco.sourceforge.net/
http://pygame.org/project-Ardentryst-596-.html
http://pygame.org/project-Dododu-1134-.html
http://pygame.org/project-Fallen+Spire-1033-.html
http://pygame.org/project-Lands+of+Elderlore-294-.html
http://pygame.org/project-LOF-2296-.html
http://pygame.org/project-Mines+of+Elderlore-674-.html
http://pygame.org/project-Monstrosity-2993-.html
http://pygame.org/project-Phantasy+Star+Rebirth-1704-.html
http://pygame.org/project-Ransack-2408-.html
http://pygame.org/project-Story+of+a+Lost+Sky-1106-.html
http://pygame.org/project-The+Cabbages-2077-.html
http://pygame.org/project-UlDunAd-1140-.html
http://pyopengl.sourceforge.net/
http://radakan.org/
http://rcbasic.com/
http://retrospec.sgn.net
http://s1.zetaboards.com/Imperilist/index/
http://sam.zoy.org/monsterz/
http://scorched-moon.github.io/site/
http://scummvm.org/
http://senseis.xmp.net/?GoPlayingPrograms
http://sio2interactive.com/
http://slick.ninjacave.com/
http://snowstorm.sourceforge.net/cgi-bin/site.cgi
http://sol.gfxile.net/ambrose3d/index.html
http://storygamecreator.webs.com/
http://stratagus.sourceforge.net/
http://studentarbeten.chalmers.se/publication/219006-bloxel-developing-a-voxel-game-engine-in-java-using-opengl
http://sumwars.org/wiki/Main_Page
http://svn.assembla.com/svn/gdpl/
http://triplea.sourceforge.net/mywiki
http://turbu-rpg.com/
http://twinery.org/
http://verge-rpg.com/
http://wiki.scummvm.org/index.php/HOWTO-Fangames
http://worldforge.org/
http://www.13thmonkey.org/~boris/jgame/
http://www.abandonia.com/en/games/138/Hidden+Agenda.html
http://www.abandonia.com/en/games/25660/Crisis+in+the+Kremlin.html
http://www.adventuregamestudio.co.uk/
http://www.alpacaengine.com/
http://www.andengine.org/
http://www.astrolog.org/labyrnth/daedalus.htm
http://www.bennugd.org/node/4
http://www.byond.com/
http://www.cafu.de/
http://www.celephais.net/fitzquake/
http://www.civone.com/
http://www.codeskulptor.org/
http://www.compilgames.net/main.html
http://www.computerchess.org.uk/ccrl/4040/rating_list_all.html
http://www.crystalspace3d.org/main/Main_Page
http://www.deltaengine.net/
http://www.divgo.net/
http://www.dosbox.com/download.php?main=1
http://www.drpetter.se/project_sfxr.html
http://www.dungeoncrawl.org/?d.l
http://www.engine001.com/
http://www.flarerpg.org/
http://www.freemmorpgmaker.com/
http://www.gameplay3d.io/
http://www.garagegames.com/products/torque-3d
http://www.gnu.org/
http://www.hard-light.net/
http://www.ibiblio.org/pub/Linux/games/strategy/ (and all others)
http://www.indiedb.com/engines/aqua
http://www.indiedb.com/engines/bloxel/downloads
http://www.indiedb.com/engines/dragonsource
http://www.indiedb.com/engines/gameleon
http://www.indiedb.com/engines/mirage-legacy-2d-orpg-engine
http://www.indiedb.com/engines/mugen
http://www.indiedb.com/engines/prospekt-source
http://www.indiedb.com/engines/ymir
http://www.indiedb.com/engines/zweide/downloads
http://www.isogenicengine.com/
http://www.j4game.com/
http://www.kiwijs.org/
http://www.klinksoftware.com/
http://www.layabox.com/en/
http://www.linuxdevcenter.com/pub/a/linux/2003/04/24/exult.html
http://www.megamek.info/
http://www.mekwars.org/
http://www.moddb.com/engines/pyrogenesis
http://www.moddb.com/engines/sage-strategy-action-game-engine
http://www.musztardasarepska.pl/wgdown/
http://www.myandroidonline.com/category/games/
http://www.ness-engine.com/
http://www.netgore.com/
http://www.newbreedsoftware.com/s
http://www.ph2.net/zugspiel/
http://www.plasmapong.com/plasma-pong/plasma-pong/
http://www.qiciengine.com/
http://www.robsons.org.uk/archive/www.autismuk.freeserve.co.uk/index.htm
http://www.rpgtoolkit.net/
http://www.rtsoft.com/novashell/
http://www.runesword.com/rs2.html
http://www.ryzomcore.org/
http://www.sandboxgamemaker.com/
http://www.scirra.com/construct-classic
http://www.siedler25.org/index.php?com=dynamic&mod=1&lang=en&PHPSESSID=0hmj4aug1fqa80jbk15kcafh71
http://www.silversecond.com/WolfRPGEditor/
http://www.spacestation13.com/
http://www.spheredev.org/
http://www.thousandparsec.net/tp/
http://www.tvgigant.de/en/index
http://www.unknown-horizons.org/
http://www.usgo.org/go-software
http://www.vbgore.com/Main_Page
http://www.wurfelengine.net/
http://www.zeldaroth.fr/us/zroth.php
http://www.zsnes.com/ emulator/platform
https://aleph-one-marathon.github.io/
https://app.assembla.com/spaces/openrpg/wiki
https://app.assembla.com/spaces/Project_Valkyrie2/wiki
https://appimage.org/
https://blends.debian.org/games/tasks/
https://carrot.soulweaver.fi/#links
https://cocainediesel.fun/
https://code.google.com/archive/p/andors-trail/
https://code.google.com/archive/p/galacticthrone/
https://code.google.com/archive/p/primitivewars/
https://code.google.com/archive/p/scummgen/
https://code.google.com/archive/p/tecbattle/
https://code.launchpad.net/~flosoft/s25rttr/trunk
https://conquertheworldbycode.wordpress.com/nostalgia-2/
https://empiredirectory.net/
https://empiredirectory.net/index.php/downloads/viewdownload/6-server-software/13-empire-server
https://en.wikipedia.org/w/index.php?title=Etterna_(Game)&action=edit&redlink=1
@ -56,6 +209,7 @@ https://en.wikipedia.org/wiki/GNOME_Games_Collection
https://en.wikipedia.org/wiki/GNU_Chess
https://en.wikipedia.org/wiki/GNU_Go
https://en.wikipedia.org/wiki/List_of_commercial_video_games_with_available_source_code
https://en.wikipedia.org/wiki/M.U.G.E.N
https://en.wikipedia.org/wiki/MUD#Spread (all there)
https://en.wikipedia.org/wiki/MUD_client (all there)
https://en.wikipedia.org/wiki/No_Gravity_(video_game)
@ -76,14 +230,22 @@ https://fedoraproject.org/wiki/SIGs/Games#List_of_games_we_will_NOT_package
https://flathub.org/home (use it for Linux packaging) / https://flathub.org/apps/category/Game
https://freegamer.blogspot.com/2015/11/top-3-open-source-pinball-games.html
https://futurepinball.com/
https://github.com/advocaite/ikariam
https://github.com/andyfriesen/ika
https://github.com/Anthonymcqueen21/Pygame---Alien-Invasion
https://github.com/ao-libre/ao-cliente
https://github.com/assaultcube (https://sourceforge.net/projects/actiongame/)
https://github.com/azhirnov/FrameGraph
https://github.com/Bacon2D/Bacon2D
https://github.com/bitcraft/pyscroll
https://github.com/bitcraft/PyTMX
https://github.com/bladecoder/bladecoder-adventure-engine
https://github.com/brad811/dart-rpg
https://github.com/carriercomm/crystal-picnic
https://github.com/CatacombGames/
https://github.com/Chluverman/android-gltron
https://github.com/christopho/zsdx
https://github.com/cjeffery/sworsorc
https://github.com/collections/game-engines (only OS)
https://github.com/collections/javascript-game-engines (only OS)
https://github.com/collections/pixel-art-tools (tools)
@ -93,41 +255,89 @@ https://github.com/collections/tools-for-open-source (maybe we can apply some)
https://github.com/collections/web-games (only OS)
https://github.com/Cortrah/SpaceOperaDesign, https://github.com/Cortrah/SpaceOperaRuby/blob/master/design/turnstyles.md
https://github.com/cping/LGame
https://github.com/CrociDB/biju-game
https://github.com/deathbeam/spooker
https://github.com/DeflatedPickle/FAOSDance
https://github.com/degenerated1123/REGoth
https://github.com/Droggelbecher/Grail/
https://github.com/EdwardWoodhouse/Turn-of-War
https://github.com/elnormous/ouzel
https://github.com/ErikLetson/torso-ninja
https://github.com/ErikLetson/torso-ninja-2
https://github.com/flathub (all repositories which are games there)
https://github.com/FloppidyDingo/Dingo-Engine
https://github.com/frogatto/frogatto
https://github.com/FUSEEProjectTeam/Fusee
https://github.com/gamearians
https://github.com/grantjenks/free-python-games (check all)
https://github.com/guillaume-gouchon/warlords-online
https://github.com/hparcells/cards-against-humanity
https://github.com/hypatia-software-org/hypatia-engine
https://github.com/IceReaper/DesktopAdventuresToolkit
https://github.com/id-Software/DOOM
https://github.com/idmillington/undum
https://github.com/iortcw/iortcw (license)
https://github.com/isovector/adventure
https://github.com/jkroepke/2Moons
https://github.com/JonasT/Blitwizard
https://github.com/joulupunikki/Phoenix
https://github.com/KasaiDot/the-black-wars
https://github.com/LgLinus/StrategyGame
https://github.com/libretro/libretro-prboom
https://github.com/LonamiWebs/Klooni1010
https://github.com/LucKeyProductions/heXon
https://github.com/lutzroeder/digger
https://github.com/mikera/ironclad
https://github.com/nondev/yae
https://github.com/nwjs/nw.js
https://github.com/oliverdb/Historyline
https://github.com/OpenMandrivaAssociation
https://github.com/opensourcedesign
https://github.com/OSSGames
https://github.com/OSSGames/GAME-SDL-ACTION-Blobwars_Metal_Blob_Solid
https://github.com/palodequeso/Element-Games-Engine
https://github.com/PavelDoGreat/WebGL-Fluid-Simulation
https://github.com/pistacchio/Dedalus
https://github.com/pld-linux
https://github.com/pmprog/OpenApoc
https://github.com/potomak/gist-txt
https://github.com/RoxasShadow/Sottaceto
https://github.com/rramsden/ymir
https://github.com/saniv/free-game-art/blob/master/foss-copyright-infringement-records.md
https://github.com/search?p=1&q=sunrider&type=Repositories, sunrider
https://github.com/SPC-Some-Polish-Coders/PopHead
https://github.com/textadventures/squiffy
https://github.com/the-insulines
https://github.com/theaigames
https://github.com/TheOnly92/Ikariem
https://github.com/Tinob/Ishiiruka (https://github.com/shiiion/Ishiiruka, https://github.com/SirMangler/PrimeHack-Updater)
https://github.com/Trilarion/imperialism-remake
https://github.com/Wargus/stratagus
https://github.com/wesnoth/haldric
https://gitlab.com/LibreGames
https://gitlab.com/vgstation/vgstation-old (and vgstation in general)
https://lgdb.org/engine/rawgl
https://lgdb.org/game/digital_love_story
https://lgdb.org/game/katawa_shoujo
https://lgdb.org/game/murder_public_domain
https://lgdb.org/game/our-personal-space
https://lgdb.org/game/star_maiden_rio
https://lgdb.org/game/sunrider
https://lgdb.org/game/visions_other_side
https://lgdb.org/game/wizards_magic
https://lgdb.org/game/wolfpack-empire
https://libregamewiki.org/Alexei:_Part_IX
https://libregamewiki.org/CameliaGirls
https://libregamewiki.org/Childish_Cannoneer
https://libregamewiki.org/index.php?title=Libregamewiki_talk:Community_Portal&oldid=25410#Some_long_term_ideas
https://libregamewiki.org/Libregamewiki:Suggested_games#Likely_sources_for_more_free_games
https://opensludge.github.io/
https://osdn.net/softwaremap/trove_list.php?form_cat=80
https://packages.debian.org/sid/games/etw
https://pixeldoctrine.com/index.html (more than just slime volleyball)
https://play.freeciv.org/
https://play.google.com/store/apps/dev?id=8387589286898375037 (where is the source, not open source otherwise)
https://playcanvas.com/
https://pypi.org/project/CherryPy/
https://pypi.org/project/neteria/
https://pypi.org/project/networkx/
@ -137,28 +347,103 @@ https://pypi.org/project/SQLAlchemy/
https://pypi.org/project/TurboGears/
https://pyweek.org/4/entries/ (Ascent of Justice)
https://revolutionarygamesstudio.com/ Trhive
https://rpgmaker.net/engines/rpg20xx/
https://rpgmaker.net/games/2664/
https://salsa.debian.org/games-team/etw
https://scratch.mit.edu/
https://scratch.mit.edu/ (https://en.scratch-wiki.info/wiki/Scratch_Source_Code)
https://sourceforge.net/projects/ad1000/
https://sourceforge.net/projects/alterciv/
https://sourceforge.net/projects/battlechess
https://sourceforge.net/projects/biege
https://sourceforge.net/projects/crownsandshadow/
https://sourceforge.net/projects/crpge
https://sourceforge.net/projects/crystal/
https://sourceforge.net/projects/cyoadventures/
https://sourceforge.net/projects/deuterosx
https://sourceforge.net/projects/dices/
https://sourceforge.net/projects/dsa-hl.berlios
https://sourceforge.net/projects/e-adventure/
https://sourceforge.net/projects/elysium
https://sourceforge.net/projects/flapp/
https://sourceforge.net/projects/fleet0ps/
https://sourceforge.net/projects/freya-engine/
https://sourceforge.net/projects/fruitwar
https://sourceforge.net/projects/heroes-rebirth/
https://sourceforge.net/projects/instead/
https://sourceforge.net/projects/javasettlers/
https://sourceforge.net/projects/jbiclone/
https://sourceforge.net/projects/jisoman/?source=directory
https://sourceforge.net/projects/jsgam/
https://sourceforge.net/projects/kge/
https://sourceforge.net/projects/korax/
https://sourceforge.net/projects/l5r-rpgu/
https://sourceforge.net/projects/lasthope/
https://sourceforge.net/projects/lgames/files/barrage/
https://sourceforge.net/projects/lightbringer2015/
https://sourceforge.net/projects/lixoo/
https://sourceforge.net/projects/mage
https://sourceforge.net/projects/migrationsimulationgame
https://sourceforge.net/projects/mindlence-game/
https://sourceforge.net/projects/mininghaze/ - download didn't work
https://sourceforge.net/projects/moeng/
https://sourceforge.net/projects/morgoao/
https://sourceforge.net/projects/openzelda/
https://sourceforge.net/projects/palomino-sim/ (http://www.jimbrooks.org/archive/software/palomino/)
https://sourceforge.net/projects/pdiaspora
https://sourceforge.net/projects/phprpg/
https://sourceforge.net/projects/pipmak/
https://sourceforge.net/projects/qua
https://sourceforge.net/projects/quest
https://sourceforge.net/projects/roguelike/
https://sourceforge.net/projects/rpgstudio
https://sourceforge.net/projects/rpgtoolkit/
https://sourceforge.net/projects/rptools.berlios/
https://sourceforge.net/projects/schwertreiter/
https://sourceforge.net/projects/solarconflict/
https://sourceforge.net/projects/spaxehilk
https://sourceforge.net/projects/sphere/
https://sourceforge.net/projects/tbswwengine/
https://sourceforge.net/projects/terrastrategy
https://sourceforge.net/projects/terratenebrae/
https://sourceforge.net/projects/tyrant/
https://sourceforge.net/projects/untitled-rpg
https://sourceforge.net/projects/wesnoth-on-android/
https://sourceforge.net/projects/wme
https://sourceforge.net/projects/wowrl/
https://sourceforge.net/projects/wwiig/
https://sourceforge.net/projects/ztab/
https://stabyourself.net/ (all projects there)
https://stendhalgame.org/wiki/Marauroa
https://supremacy.codeplex.com/
https://threejs.org/
https://turnota.codeplex.com/
https://unity3d.com/
https://voltisoft.com/miragelegacy
https://voxeliq.codeplex.com/
https://wargame.codeplex.com/
https://web.archive.org/web/20150526225753/http://sourceforge.net/projects/mameosx/
https://web.archive.org/web/20150527150705/http://sourceforge.net/p/forge/community-docs/SourceForge%20Games/ (schon erledigt)
https://wiki.debian.org/Games/Unsuitable
https://www.b3dgs.com/v7/page.php?lang=en&section=projects
https://www.blender.org/
https://www.bsframework.io/
https://www.choiceofgames.com/make-your-own-games/choicescript-intro/
https://www.fandom.com/topics/games (look for media links, example https://creatures.fandom.com/wiki/Openc2e)
https://www.fosshub.com/about.html
https://www.freegamesutopia.com/
https://www.frictionalgames.com/forum/forum-28.html
https://www.libretro.com/
https://www.libsdl.org/
https://www.moddb.com/mods/ (search for all)
https://www.openhub.net/ (search for games)
https://www.phpbb.com/
https://www.piston.rs/
https://www.reddit.com/r/opensource/comments/cs6m3y/a_list_of_fossrelated_projects_people_to_follow/
https://www.reddit.com/r/opensourcegames/
https://www.reddit.com/r/opensourcegames/comments/celw6c/top_3_open_source_pinball_games_2015/
https://www.renpy.org/ (also all projects linked there)
https://www.scirra.com/construct2
https://zope.readthedocs.io/en/latest/
lgdb ask on reddit for archived version
nexuiz - https://github.com/atphalix/nexuiz

View File

@ -1,4 +1,4 @@
"""
"""
Once data from libregamewiki is imported, synchronize with our database, i.e. identify the entries both have in common,
estimate the differences in the entries both have in common, suggest to add the entries they have not in common to each
other.
@ -187,8 +187,7 @@ if __name__ == "__main__":
print('{}: {}'.format('engine', get_unique_field_content('engine', lgw_entries)))
# read our database
games_path = os.path.join(root_path, 'games')
our_entries = assemble_infos(games_path)
our_entries = assemble_infos(c.entries_path)
print('{} entries with us'.format(len(our_entries)))
# just the names
@ -244,10 +243,10 @@ if __name__ == "__main__":
# determine file name
print('create new entry for {}'.format(lgw_name))
file_name = canonical_game_name(lgw_name) + '.md'
target_file = os.path.join(games_path, file_name)
target_file = os.path.join(entries_path, file_name)
if os.path.isfile(target_file):
print('warning: file {} already existing, save under slightly different name'.format(file_name))
target_file = os.path.join(games_path, file_name[:-3] + '-duplicate.md')
target_file = os.path.join(entries_path, file_name[:-3] + '-duplicate.md')
if os.path.isfile(target_file):
continue # just for safety reasons

View File

@ -52,7 +52,7 @@ def update_readme_and_tocs(infos):
# create all toc
title = 'All'
file = '_all.md'
tocs_text = '**[{} entries](games/tocs/{}#{})** ({})\n'.format(title, file, title, len(infos))
tocs_text = '**[{} entries](entries/tocs/{}#{})** ({})\n'.format(title, file, title, len(infos))
create_toc(title, file, infos)
# create by category
@ -62,7 +62,7 @@ def update_readme_and_tocs(infos):
title = keyword.capitalize()
name = keyword.replace(' ', '-')
file = '_{}.md'.format(name)
categories_text.append('**[{}](games/tocs/{}#{})** ({})'.format(title, file, name, len(infos_filtered)))
categories_text.append('**[{}](entries/tocs/{}#{})** ({})'.format(title, file, name, len(infos_filtered)))
create_toc(title, file, infos_filtered)
categories_text.sort()
tocs_text += '\nBy category: {}\n'.format(', '.join(categories_text))
@ -74,7 +74,7 @@ def update_readme_and_tocs(infos):
title = platform
name = platform.lower()
file = '_{}.md'.format(name)
platforms_text.append('**[{}](games/tocs/{}#{})** ({})'.format(title, file, name, len(infos_filtered)))
platforms_text.append('**[{}](entries/tocs/{}#{})** ({})'.format(title, file, name, len(infos_filtered)))
create_toc(title, file, infos_filtered)
tocs_text += '\nBy platform: {}\n'.format(', '.join(platforms_text))
@ -545,7 +545,7 @@ def export_json(infos):
# game & description
entry = ['{} (<a href="{}">home</a>, <a href="{}">entry</a>)'.format(info['name'], info['home'][0],
r'https://github.com/Trilarion/opensourcegames/blob/master/games/' + info['file']),
r'https://github.com/Trilarion/opensourcegames/blob/master/entries/' + info['file']),
textwrap.shorten(info['description'], width=60, placeholder='..')]
# download
@ -587,7 +587,7 @@ def export_json(infos):
db['data'] = entries
# output
json_path = os.path.join(c.games_path, os.path.pardir, 'docs', 'data.json')
json_path = os.path.join(c.entries_path, os.path.pardir, 'docs', 'data.json')
text = json.dumps(db, indent=1)
utils.write_text(json_path, text)
@ -780,10 +780,18 @@ if __name__ == "__main__":
# backlog
game_urls = osg.extract_links()
text = utils.read_text(os.path.join(c.root_path, 'tools', 'rejected.txt'))
regex = re.compile(r"\((http.*?)\)", re.MULTILINE)
matches = regex.findall(text)
rejected_urls = []
for match in matches:
urls = match.split(',')
urls = [x.strip() for x in urls]
rejected_urls.extend(urls)
game_urls.extend(rejected_urls)
stripped_game_urls = [utils.strip_url(x) for x in game_urls]
clean_backlog(stripped_game_urls)
# check for unfilled template lines
check_template_leftovers()

View File

@ -1,4 +1,4 @@
"""
"""
osgameclones has the following fields:
'updated', 'video', 'repo', 'license', 'originals', 'status', 'multiplayer', 'info', 'lang', 'feed', 'content', 'images', 'url', 'name', 'framework', 'type', 'development'
@ -145,8 +145,7 @@ if __name__ == "__main__":
print('osgc-content: {}'.format(unique_field_contents(osgc_entries, 'content')))
# read our database
games_path = os.path.join(root_path, 'games')
our_entries = assemble_infos(games_path)
our_entries = assemble_infos(c.entries_path)
print('{} entries with us'.format(len(our_entries)))
# just the names
@ -312,10 +311,10 @@ if __name__ == "__main__":
# determine file name
print('create new entry for {}'.format(osgc_name))
file_name = canonical_game_name(osgc_name) + '.md'
target_file = os.path.join(games_path, file_name)
target_file = os.path.join(entries_path, file_name)
if os.path.isfile(target_file):
print('warning: file {} already existing, save under slightly different name'.format(file_name))
target_file = os.path.join(games_path, file_name[:-3] + '-duplicate.md')
target_file = os.path.join(entries_path, file_name[:-3] + '-duplicate.md')
if os.path.isfile(target_file):
continue # just for safety reasons

View File

@ -6,7 +6,7 @@ import os
# paths
root_path = os.path.realpath(os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir))
games_path = os.path.join(root_path, 'games')
tocs_path = os.path.join(games_path, 'tocs')
entries_path = os.path.join(root_path, 'entries')
tocs_path = os.path.join(entries_path, 'tocs')
local_properties_file = os.path.join(root_path, 'local.properties')

View File

@ -26,11 +26,11 @@ def entry_iterator():
"""
# get all entries (ignore everything starting with underscore)
entries = os.listdir(c.games_path)
entries = os.listdir(c.entries_path)
# iterate over all entries
for entry in entries:
entry_path = os.path.join(c.games_path, entry)
entry_path = os.path.join(c.entries_path, entry)
# ignore directories ("tocs" for example)
if os.path.isdir(entry_path):
@ -217,8 +217,8 @@ def assemble_infos():
# we also allow -X with X =2..9 as possible extension (because of duplicate canonical file names)
if canonical_file_name != entry and canonical_file_name != entry[:-5] + '.md':
print('file {} should be {}'.format(entry, canonical_file_name))
source_file = os.path.join(c.games_path, entry)
target_file = os.path.join(c.games_path, canonical_file_name)
source_file = os.path.join(c.entries_path, entry)
target_file = os.path.join(c.entries_path, canonical_file_name)
if not os.path.isfile(target_file):
pass
# os.rename(source_file, target_file)