Difference between revisions of "Contest checklist"
From Bitfighter
(→Handy Things) |
|||
Line 10: | Line 10: | ||
=== Handy Things === | === Handy Things === | ||
− | * Script to create | + | * Script to create the level discussion post. This creates the level list and a template for review. Give it a directory of level files as the argument. (BASH only) |
<pre> | <pre> | ||
#!/bin/bash | #!/bin/bash |
Revision as of 13:30, 20 July 2013
Things to do for a Level Design or other contest.
- Put up MOTD
BBB
Level Design Contest
- Put up server with a password and test with a select few
- Open up server for the unveiling at the Contest Party
Handy Things
- Script to create the level discussion post. This creates the level list and a template for review. Give it a directory of level files as the argument. (BASH only)
#!/bin/bash # # Generate forum post code from a level folder folder=$1 color='#FFBF00' if [ -z $folder ]; then echo echo "Usage: `basename $0` [CONTEST_FOLDER_WITH_LEVEL_FILES]" echo exit 1 fi # Start script pushd $folder &> /dev/null levelInfo() { ls *.level | while read file do #echo "file: $file" name=`grep 'LevelName' $file | sed 's/.*LevelName //' | sed 's/"//g' | tr -d '\r'` gametype=`grep 'GameType' $file | sed 's/ .*//' | tr -d '\r'` levelgen=`grep 'Script' $file | tr -d '\r'` lg="" if [ "$gametype" == "GameType" ]; then gametype="BitMatch" fi gametype=`echo -n $gametype | sed 's/GameType//'` if [ "x$levelgen" != "x" ]; then lg=' (levelgen)' fi echo "[color=$color][b]$name[/b][/color] - [i]$gametype$lg[/i]" # Add extra line for template if [ "$1" == "yes" ]; then echo fi done } levelInfo echo echo "Copy and paste this template to give your review for each map:" echo "[code=text]" levelInfo "yes" echo "[/code]"