csdl / makahiki

An Open Source "Serious Game" Framework for Sustainability
http://makahiki.readthedocs.org/
MIT License
7 stars 5 forks source link

SGG Unlock Condition Lint #544

Open cammoore opened 11 years ago

cammoore commented 11 years ago
cammoore commented 11 years ago

We now have an unlock_lint.py that can detect the first four items, deadlock/unreachable, referring to action not in grid, false unlock conditions, and higher level.

I don't understand the URL one. Do we need to search the descriptions looking for 'http'?

cammoore commented 11 years ago

Have initial version working and hooked up to the designer.

rbrewer commented 11 years ago

For the URL one, I was indeed thinking of parsing the Markdown/HTML for http links and checking if they gave 2XX status codes (or following a redirect to a valid page). This would be really useful when you are dusting off content for use after a few months, because sometimes links have changed or broken.

For video links to YouTube, it would be great if there was some way to check if the video was still available, as YouTube doesn't return 404 for videos that are taken down, it provides a valid page that says it is no longer available. Maybe there is an API? This might be too hard for right now, but it did actually happen between 2011 and 2012 Kukui Cup (the OTEC video we were using was removed in the intervening year).