Difference between revisions of "Contest checklist"

From Bitfighter
(Created page with "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 u...")
 
Line 8: Line 8:
 
# Put up server with a password and test with a select few
 
# Put up server with a password and test with a select few
 
# Open up server for the unveiling at the Contest Party
 
# Open up server for the unveiling at the Contest Party
 +
 +
=== Handy Things ===
 +
* Script to create most of the template post from a directory of level files
 +
<pre>
 +
#!/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]"
 +
</pre>

Revision as of 13:28, 20 July 2013

Things to do for a Level Design or other contest.

  1. Put up MOTD

BBB

Level Design Contest

  1. Put up server with a password and test with a select few
  2. Open up server for the unveiling at the Contest Party

Handy Things

  • Script to create most of the template post from a directory of level files
#!/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]"