Changeset 654 for 1.8.3/trunk/game/txt/hlp/pennflag.hlp
- Timestamp:
- 01/27/07 02:12:14 (2 years ago)
- Files:
-
- 1.8.3/trunk (modified) (1 prop)
- 1.8.3/trunk/game (modified) (1 prop)
- 1.8.3/trunk/game/txt/hlp/pennflag.hlp (modified) (28 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.3/trunk
- Property svn:ignore changed from
.config
config.h
config.sh
ignore
Makefile
options.h
to
#!/bin/sh
#
# usage: restart
#
# REQUIRED: You must set this to the path to your game directory.
# E.g.: /home/mush/game
GAMEDIR=
# OPTIONAL things that you may want to tweak.
# Uncomment the line below to attempt to allow crashes to produce
# core dumps. If you're getting crashes, this is the best way
# to debug them.
#ulimit -c unlimited
# Internationalization stuff
# Set LANG here to get international character sets and, if someone's
# done it, translation of messages.
# Vaild locales are usually <lang_code>_<COUNTRY CODE>
# Example (uncomment to use):
#LANG=fr_FR
# Time zone stuff
# If you want your MUSH to run in a different timezone than the one
# you're in, you need to identify the target time zone file in
# /usr/share/zoneinfo or /usr/lib/zoneinfo. Then uncomment the next
# two lines and set TZ to the desired timezone file, as shown, with
# an initial colon:
#TZ=:EST5EDT
#export TZ
# The config file. Best to keep this as is. If you must change
# the name, make it a link to mush.cnf.
CONF_FILE=mush.cnf
#######################################################################
if [ -z "$GAMEDIR" ]; then
echo "You must set GAMEDIR in the restart script."
exit 1
fi
if [ ! -d "$GAMEDIR" ]; then
echo "GAMEDIR doesn't appear to be a directory. It's: $GAMEDIR"
exit 1
fi
cd $GAMEDIR
echo Running from `pwd`
if [ ! -f "$CONF_FILE" ]; then
echo "CONF_FILE doesn't exist. It's: $CONF_FILE"
echo "Create $CONF_FILE from $GAMEDIR/mushcnf.dst and run 'make update'"
exit 1
fi
# If netmush isn't here, they probably didn't make install
# In any case, we'd better not proceed.
if [ ! -e netmush ]; then
echo "I don't see $GAMEDIR/netmush. Did you remember to make install?"
exit 1
fi
#
# Read the cnf file and set some variables.
#
INDB=`egrep "^input_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
OUTDB=`egrep "^output_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
PANICDB=`egrep "^crash_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
PANICDIR=`egrep "^crash_database" $CONF_FILE | sed "s/.*[ ][ ]*\(.*\)\/.*/\1/" | sed 's/\r$//'`
COMPRESSOR="cat"
SUFFIX=""
# Find out what the compression program is, if any
egrep -s "^compress_program[ ]*[A-Za-z0-9]" $CONF_FILE
nocompress=$?
if [ "$nocompress" -eq 0 ]; then
COMPRESSOR=`egrep "^compress_program" $CONF_FILE | sed "s/[^ ]*[ ]*\(.*\)/\1/" | sed 's/\r$//'`
SUFFIX=`egrep "^compress_suffix" $CONF_FILE | sed "s/[^ ]*[ ]*\(.*\)/\1/" | sed 's/\r$//'`
fi
#-- start up everything
# Prevent double-starting things. You may need to provide a pathname for
# some of the commands. System V flavors need "ps -f" instead of "ps uwx".
mush=`ps uwwx | grep " $GAMEDIR/$CONF_FILE" | grep -v grep | wc -l`
if [ "$mush" -gt 0 ]; then
echo Mush already active or some other process is using $GAMEDIR/$CONF_FILE.
exit 0
fi
echo Building text file indexes.
(cd txt; make)
echo Restarting Mush.
if [ -r "$PANICDIR/$PANICDB" ]; then
end="`tail -1 $PANICDIR/$PANICDB`"
if [ "$end" = "***END OF DUMP***" ]; then
echo "Recovering PANIC dump."
cat $PANICDIR/$PANICDB | $COMPRESSOR > data/$OUTDB$SUFFIX
rm $PANICDIR/$PANICDB
echo "PANIC dump successfully recovered."
else
mv $PANICDIR/$PANICDB save/$PANICDB.corrupt
echo "Warning: PANIC dump corrupt. Using older db."
fi
fi
# Copy the last set of log files to save/
mv -f log/*.log save/
if [ -r "data/$OUTDB$SUFFIX" ]; then
rm -f save/$INDB$SUFFIX.old
mv -f data/$INDB$SUFFIX save/$INDB$SUFFIX.old
mv data/$OUTDB$SUFFIX data/$INDB$SUFFIX
else
echo "No $OUTDB$SUFFIX found."
if [ -r "data/$INDB$SUFFIX" ]; then
echo "Using $INDB$SUFFIX."
else
echo "No $INDB$SUFFIX found."
if [ -r "save/$INDB$SUFFIX.old" ]; then
echo "Using save/$INDB$SUFFIX.old."
cp save/$INDB$SUFFIX.old data/$INDB$SUFFIX
else
echo "No database found. Mush will start with a minimal world."
fi
fi
fi
if [ -r reboot.db ]; then
rm -f reboot.db
fi
DATEMSK="${GAMEDIR}/getdate.template"
export DATEMSK
LC_ALL=$LANG LANG=$LANG ./netmush $GAMEDIR/$CONF_FILE &
- Property svn:ignore changed from
1.8.3/trunk/game
- Property svn:ignore changed from
*.cnf
ignore
netmush
info_slave
to
#!/bin/sh
#
# usage: restart
#
# REQUIRED: You must set this to the path to your game directory.
# E.g.: /home/mush/game
GAMEDIR=/Users/shawnw/src/penn/1.8.3/devel/game/
# OPTIONAL things that you may want to tweak.
# Uncomment the line below to attempt to allow crashes to produce
# core dumps. If you're getting crashes, this is the best way
# to debug them.
#ulimit -c unlimited
# Internationalization stuff
# Set LANG here to get international character sets and, if someone's
# done it, translation of messages.
# Vaild locales are usually <lang_code>_<COUNTRY CODE>
# Example (uncomment to use):
#LANG=fr_FR
# Time zone stuff
# If you want your MUSH to run in a different timezone than the one
# you're in, you need to identify the target time zone file in
# /usr/share/zoneinfo or /usr/lib/zoneinfo. Then uncomment the next
# two lines and set TZ to the desired timezone file, as shown, with
# an initial colon:
#TZ=:EST5EDT
#export TZ
# The config file. Best to keep this as is. If you must change
# the name, make it a link to mush.cnf.
CONF_FILE=mush.cnf
#######################################################################
if [ -z "$GAMEDIR" ]; then
echo "You must set GAMEDIR in the restart script."
exit 1
fi
if [ ! -d "$GAMEDIR" ]; then
echo "GAMEDIR doesn't appear to be a directory. It's: $GAMEDIR"
exit 1
fi
cd $GAMEDIR
echo Running from `pwd`
if [ ! -f "$CONF_FILE" ]; then
echo "CONF_FILE doesn't exist. It's: $CONF_FILE"
echo "Create $CONF_FILE from $GAMEDIR/mushcnf.dst and run 'make update'"
exit 1
fi
# If netmush isn't here, they probably didn't make install
# In any case, we'd better not proceed.
if [ ! -e netmush ]; then
echo "I don't see $GAMEDIR/netmush. Did you remember to make install?"
exit 1
fi
#
# Read the cnf file and set some variables.
#
INDB=`egrep "^input_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
OUTDB=`egrep "^output_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
PANICDB=`egrep "^crash_database" $CONF_FILE | sed "s/.*[ ][ ]*.*\/\(.*\)/\1/" | sed 's/\r$//'`
PANICDIR=`egrep "^crash_database" $CONF_FILE | sed "s/.*[ ][ ]*\(.*\)\/.*/\1/" | sed 's/\r$//'`
COMPRESSOR="cat"
SUFFIX=""
# Find out what the compression program is, if any
egrep -s "^compress_program[ ]*[A-Za-z0-9]" $CONF_FILE
nocompress=$?
if [ "$nocompress" -eq 0 ]; then
COMPRESSOR=`egrep "^compress_program" $CONF_FILE | sed "s/[^ ]*[ ]*\(.*\)/\1/" | sed 's/\r$//'`
SUFFIX=`egrep "^compress_suffix" $CONF_FILE | sed "s/[^ ]*[ ]*\(.*\)/\1/" | sed 's/\r$//'`
fi
#-- start up everything
# Prevent double-starting things. You may need to provide a pathname for
# some of the commands. System V flavors need "ps -f" instead of "ps uwx".
mush=`ps uwwx | grep " $GAMEDIR/$CONF_FILE" | grep -v grep | wc -l`
if [ "$mush" -gt 0 ]; then
echo Mush already active or some other process is using $GAMEDIR/$CONF_FILE.
exit 0
fi
echo Building text file indexes.
(cd txt; make)
echo Restarting Mush.
if [ -r "$PANICDIR/$PANICDB" ]; then
end="`tail -1 $PANICDIR/$PANICDB`"
if [ "$end" = "***END OF DUMP***" ]; then
echo "Recovering PANIC dump."
cat $PANICDIR/$PANICDB | $COMPRESSOR > data/$OUTDB$SUFFIX
rm $PANICDIR/$PANICDB
echo "PANIC dump successfully recovered."
else
mv $PANICDIR/$PANICDB save/$PANICDB.corrupt
echo "Warning: PANIC dump corrupt. Using older db."
fi
fi
# Copy the last set of log files to save/
mv -f log/*.log save/
if [ -r "data/$OUTDB$SUFFIX" ]; then
rm -f save/$INDB$SUFFIX.old
mv -f data/$INDB$SUFFIX save/$INDB$SUFFIX.old
mv data/$OUTDB$SUFFIX data/$INDB$SUFFIX
else
echo "No $OUTDB$SUFFIX found."
if [ -r "data/$INDB$SUFFIX" ]; then
echo "Using $INDB$SUFFIX."
else
echo "No $INDB$SUFFIX found."
if [ -r "save/$INDB$SUFFIX.old" ]; then
echo "Using save/$INDB$SUFFIX.old."
cp save/$INDB$SUFFIX.old data/$INDB$SUFFIX
else
echo "No database found. Mush will start with a minimal world."
fi
fi
fi
if [ -r reboot.db ]; then
rm -f reboot.db
fi
DATEMSK="${GAMEDIR}/getdate.template"
export DATEMSK
LC_ALL=$LANG LANG=$LANG ./netmush $GAMEDIR/$CONF_FILE &
- Property svn:ignore changed from
1.8.3/trunk/game/txt/hlp/pennflag.hlp
r525 r654 33 33 indicates the object is of type THING. 34 34 35 See also: examine, flags(), hasflag(), orflags(), andflags(),36 orlflags(),andlflags(), types of objects, type(), hastype(), @flag35 See also: examine, flags(), hasflag(), orflags(), andflags(), orlflags(), 36 andlflags(), types of objects, type(), hastype(), @flag 37 37 & FLAG LIST 38 38 & FLAGS LIST … … 73 73 room. 74 74 75 See also: @link75 See also: @link 76 76 & ANSI 77 77 Flag: ANSI (players) … … 87 87 see vt100 ANSI codes, but not color ANSI codes. 88 88 89 See also: COLOR, ansi(), @config89 See also: COLOR, ansi(), @config 90 90 & AUDIBLE 91 91 Flag: AUDIBLE (all types) … … 144 144 GAME: Object Walker(#123) lost a Penny to queue loss. 145 145 146 See also: no_pay146 See also: no_pay 147 147 & BUILDER 148 148 BUILDER … … 155 155 check @command for the various building commands. 156 156 157 See also: POWERS, @power, @dig, @open, @create157 See also: POWERS, @power, @dig, @open, @create 158 158 & CHOWN_OK 159 159 Flag: CHOWN_OK (things, rooms, exits) … … 164 164 flag, unless you use the DBREF number. 165 165 166 See also: @chown166 See also: @chown 167 167 & CLOUDY 168 168 Flag: CLOUDY (exits) … … 181 181 The ANSI flag must also be set. 182 182 183 See also: ANSI, ansi()183 See also: ANSI, ansi() 184 184 & CONNECTED 185 185 Flag: CONNECTED (players) … … 192 192 connected. Consider using conn(), lwho(), or mwho() instead. 193 193 194 See also: conn(), lwho(), mwho()194 See also: conn(), lwho(), mwho() 195 195 & DARK 196 196 Flag: DARK (all types) … … 268 268 DESTROY_OK takes precedence over SAFE. 269 269 270 See also: @destroy270 See also: @destroy 271 271 & ENTER_OK 272 272 Flag: ENTER_OK (all types) … … 281 281 This flag has no effect on rooms. 282 282 283 See also: enter, leave, give, @lock283 See also: enter, leave, give, @lock 284 284 & FIXED 285 285 Flag: FIXED (players) … … 321 321 etc. 322 322 323 See also: @halt, @restart323 See also: @halt, @restart 324 324 & HAVEN 325 325 Flag: HAVEN (players, rooms) … … 332 332 If a room is set HAVEN, the 'kill' command cannot be used in that room. 333 333 334 See also: @haven, kill334 See also: @haven, kill 335 335 & HEAVY 336 336 Flag: HEAVY (all types) … … 340 340 This flag can only be set by royalty or wizards. 341 341 342 See also: @tel342 See also: @tel 343 343 & LOUD 344 344 Flag: LOUD (all types) … … 408 408 (and are not also set DARK) appear in the contents of DARK rooms. 409 409 410 See also: DARK410 See also: DARK 411 411 & LINK_OK 412 412 Flag: LINK_OK (rooms, things) … … 443 443 players are automatically considered to be MYOPIC. 444 444 445 See also: DBREF445 See also: DBREF 446 446 & MISTRUST 447 447 Flag: MISTRUST (things, rooms, exits) … … 462 462 privileges are granted to the object.) 463 463 464 See also: control464 See also: control 465 465 & NOACCENTS 466 466 Flag: NOACCENTS (players) … … 469 469 before being sent to a connection. See HELP STRIPACCENTS() for caveats. 470 470 471 See also: i18n, accent(), stripaccents()471 See also: i18n, accent(), stripaccents() 472 472 & NO_COMMAND 473 473 Flag: NO_COMMAND (all types) … … 480 480 NO_COMMAND at creation. The flag has no effect on exits. 481 481 482 See also: USER-DEFINED COMMANDS482 See also: USER-DEFINED COMMANDS 483 483 & NO_LEAVE 484 484 & NOLEAVE … … 489 489 and @ALFAIL, if set. 490 490 491 See also: leave491 See also: leave 492 492 & NO_TEL 493 493 Flag: NO_TEL (rooms) … … 563 563 Meaningless for rooms. 564 564 565 See also: TRANSPARENT, look565 See also: TRANSPARENT, look 566 566 & ORPHAN 567 567 Flag: ORPHAN (all types) … … 572 572 true @parents, only on its use of the ancestor. 573 573 574 See also: @parent, ancestors574 See also: @parent, ancestors 575 575 & PLAYER 576 576 Flag: PLAYER (player) … … 672 672 room will NOT be displayed. See also CLOUDY. 673 673 674 See also: CLOUDY, OPAQUE, EXITS, @exitformat674 See also: CLOUDY, OPAQUE, EXITS, @exitformat 675 675 & UNFINDABLE 676 676 Flag: UNFINDABLE (all types) … … 708 708 good example of typical VERBOSE output. 709 709 710 See also: PUPPET, DEBUG710 See also: PUPPET, DEBUG 711 711 & VISUAL 712 712 Flag: VISUAL (all types) … … 717 717 for getting help with code. 718 718 719 See also: examine, brief719 See also: examine, brief 720 720 & WIZARD 721 721 Flag: WIZARD (all types) … … 731 731 Only Wizards may set the WIZARD flag on objects. 732 732 733 See also: ROYALTY, @power733 See also: ROYALTY, @power 734 734 & Z_TEL 735 735 Flag: Z_TEL (things, rooms) … … 742 742 This flag is intended for use in puzzle rooms and IC areas. 743 743 744 See also: ZONES, ZONE MASTERS, @chzone, ZONE MASTER ROOMS744 See also: ZONES, ZONE MASTERS, @chzone, ZONE MASTER ROOMS 745 745 & SHARED 746 746 & ZONE … … 751 751 player's zone lock. 752 752 753 See also: ZONE MASTERS753 See also: ZONE MASTERS 754 754 & LISTEN_PARENT 755 755 Flag: LISTEN_PARENT (things, rooms) … … 759 759 well as on the object. 760 760 761 See also: MONITOR, LISTENING762 761 See also: MONITOR, LISTENING 762
