فهرست منبع

*** empty log message ***

Joe Shochet 23 سال پیش
والد
کامیت
60e0dcf22c

+ 62 - 0
direct/src/leveleditor/Configrc

@@ -0,0 +1,62 @@
+
+want-tk 1
+want-directtools 1
+level-editor-hoods TT
+style-path-prefix /i
+
+load-display pandadx
+chan-config-sanity-check #f
+multipass-viz none
+win-width 800
+win-height 600
+fullscreen 0
+sync-video #t
+
+# Configrc for running the level editor
+
+# model-path     $TTMODELS
+# sound-path     $TTMODELS
+dna-preload    phase_4/dna/storage.dna
+
+load-file-type toontown
+
+window-title Toontown
+win32-window-icon $TTMODELS/phase_3/models/gui/toontown.ico
+
+compress-channels #t
+text-encoding utf8
+
+# We must currently set this to avoid messing up some of
+# the suits' faces.
+egg-retesselate-coplanar	#f
+
+
+# Custom ObjectTypes for Toontown.
+# "barrier" means a vertical wall, with bitmask 0x01
+# "floor" means a horizontal floor, with bitmask 0x02
+# "camera-collide" means things that the camera should avoid, with bitmask 0x04
+egg-object-type-barrier         <Scalar> collide-mask { 0x01 } <Collide> { Polyset descend }
+egg-object-type-trigger         <Scalar> collide-mask { 0x01 } <Collide> { Polyset descend intangible }
+egg-object-type-sphere          <Scalar> collide-mask { 0x01 } <Collide> { Sphere descend }
+egg-object-type-trigger-sphere  <Scalar> collide-mask { 0x01 } <Collide> { Sphere descend intangible }
+egg-object-type-floor           <Scalar> collide-mask { 0x02 } <Collide> { Polyset descend }
+egg-object-type-camera-collide  <Scalar> collide-mask { 0x04 } <Collide> { Polyset descend }
+egg-object-type-camera-collide-sphere  <Scalar> collide-mask { 0x04 } <Collide> { Sphere descend }
+egg-object-type-camera-barrier  <Scalar> collide-mask { 0x05 } <Collide> { Polyset descend }
+egg-object-type-camera-barrier-sphere  <Scalar> collide-mask { 0x05 } <Collide> { Sphere descend }
+
+# The modelers occasionally put <ObjectType> { model } instead of
+# <Model> { 1 }.  Let's be accommodating.
+egg-object-type-model           <Model> { 1 }
+egg-object-type-dcs             <DCS> { 1 }
+
+# Define a "shadow" object type, so we can render all shadows in their
+# own bin and have them not fight with each other (or with other
+# transparent geometry).
+egg-object-type-shadow          <Scalar> bin { shadow } <Scalar> alpha { blend-no-occlude }
+cull-bin shadow 25 unsorted
+
+# The ID of the server that we are compatible with
+server-version sv1.0.13
+
+

+ 33 - 0
direct/src/leveleditor/copyfiles

@@ -0,0 +1,33 @@
+#! /bin/sh
+
+if [ "$1" = "-d" ]
+then
+    destdir=$2
+    debug_state="-d"
+else
+    destdir=$1
+    debug_state=""
+fi
+
+if [ "${destdir}" = "" ]
+then
+	echo "Usage: copyfiles [-d] destdir"
+	exit 1
+fi
+
+if [ ! -d ${destdir} ]
+then
+	echo "Error: destdir must be a directory"
+	exit 1
+fi
+
+for file in `printfiles $debug_state`
+do
+	if cp -R ${file} ${destdir}
+	then
+	    echo "copying ${file} to ${destdir}"
+	else
+	    echo "ERROR: could not find ${file}"
+	    exit 1
+	fi
+done

+ 6 - 0
direct/src/leveleditor/printdir

@@ -0,0 +1,6 @@
+#! /bin/sh
+
+/bin/find $1 -name \*$2 -print
+
+
+

+ 102 - 0
direct/src/leveleditor/printfiles

@@ -0,0 +1,102 @@
+#! /bin/sh
+
+# Configrc for running the show
+# This uses the executable system now, not the configrc
+echo $DIRECT/src/leveleditor/Configrc
+
+# Python files
+echo $WINTOOLS/bin/python.exe
+echo $WINTOOLS/sdk/python/Python-2.2/DLLs/python22.dll
+echo $WINTOOLS/sdk/python/Python-2.2/DLLs/_sre.pyd
+echo $WINTOOLS/sdk/python/Python-2.2/DLLs/_tkinter.pyd
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/lib-tk
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/Pmw
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/linecache.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/traceback.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/__future__.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/whrandom.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/copy_reg.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/copy.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/fnmatch.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/re.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/sre.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/sre_parse.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/sre_constants.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/sre_compile.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/types.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/string.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/os.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/site.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/stat.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/UserDict.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/ntpath.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/random.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/getopt.py
+echo $WINTOOLS/sdk/python/Python-2.2/Lib/fpformat.py
+
+# Libraries
+echo $WINTOOLS/lib
+echo $WINTOOLS/sdk/rad/Miles6/redist/win32/Mss32.dll
+echo $WINTOOLS/sdk/rad/Miles6/redist/win32/Mp3dec.asi
+echo $DTOOL/lib/libdtool.dll
+echo $DTOOL/lib/libdtoolconfig.dll
+echo $PANDA/lib/libpandaexpress.dll
+echo $PANDA/lib/libpanda.dll
+echo $PANDA/lib/libpandaphysics.dll
+echo $PANDA/lib/libpandadx.dll
+echo $PANDA/lib/libpandagl.dll
+echo $PANDA/lib/libmiles_audio.dll
+echo $DIRECT/lib/libdirect.dll
+echo $TOONTOWN/lib/libtoontown.dll
+
+# Generated code for libpandaexpress
+printlib $DIRECT/lib/py libpandaexpress
+printlib $DIRECT/lib/py libpanda
+printlib $DIRECT/lib/py libpandaphysics
+printlib $DIRECT/lib/py libdirect
+printlib $DIRECT/lib/py libtoontown
+
+# DIRECT stuff
+printdir $DIRECT/src/actor .py
+printdir $DIRECT/src/cluster .py
+printdir $DIRECT/src/directbase .py
+printdir $DIRECT/src/directdevices .py
+printdir $DIRECT/src/directnotify .py
+printdir $DIRECT/src/directscripts .py
+printdir $DIRECT/src/directtools .py
+printdir $DIRECT/src/directutil .py
+printdir $DIRECT/src/distributed .py
+printdir $DIRECT/src/ffi/ .py
+printdir $DIRECT/src/fsm .py
+printdir $DIRECT/src/gui .py
+printdir $DIRECT/src/interval .py
+printdir $DIRECT/src/leveleditor .py
+echo $DIRECT/src/leveleditor/run.bat
+printdir $DIRECT/src/particles .py
+printdir $DIRECT/src/showbase .py
+printdir $DIRECT/src/task .py
+printdir $DIRECT/src/showbase .py
+printdir $DIRECT/src/tkpanels .py
+printdir $DIRECT/src/tkwidgets .py
+
+# Etc files
+echo $PANDA/etc/layout_db
+echo $PANDA/etc/setup_db
+echo $PANDA/etc/window_db
+
+# Generated code for libpanda
+echo $DIRECT/lib/py/PandaModules.py
+
+# Models, textures, audio
+echo $DMODELS/models
+echo $DMODELS/icons
+echo $DMODELS/maps
+echo $TTMODELS/phase_3
+echo $TTMODELS/phase_4
+echo $TTMODELS/phase_5
+echo $TTMODELS/phase_6
+echo $TTMODELS/phase_7
+echo $TTMODELS/phase_8
+
+
+

+ 5 - 0
direct/src/leveleditor/printlib

@@ -0,0 +1,5 @@
+#! /bin/sh
+
+grep -l "CMODULE \[$2\]" $1/*.py
+
+

+ 3 - 0
direct/src/leveleditor/run.bat

@@ -0,0 +1,3 @@
+
+set PATH=lib
+python.exe LevelEditor.py

+ 42 - 0
direct/src/leveleditor/zipfiles

@@ -0,0 +1,42 @@
+#! /bin/sh
+
+if [ "$1" = "-d" ]
+then
+    #destdir=$2
+    destdir="levelEditor"
+    zipfile="levelEditor.zip"
+    debug_state="-d"
+else
+    #destdir=$1
+    destdir="levelEditor"
+    zipfile="levelEditor.zip"
+    debug_state=""
+fi
+
+if [ "${destdir}" = "" ]
+then
+    echo "Usage: zipfiles [-d]"
+    exit 1
+fi
+
+if [ -d ${destdir} ]
+then
+    echo "Removing ${destdir}"
+    rm -rf ${destdir}
+fi
+
+if mkdir ${destdir}
+then
+    if copyfiles ${debug_state} ${destdir}
+    then
+	if [ -f ${zipfile} ]
+	then
+	    rm ${zipfile}
+	fi
+	zip -r ${zipfile} ${destdir}
+	rm -rf ${destdir}
+	echo "Done creating ${zipfile}"
+    fi
+else
+    echo "ERROR: Could not mkdir ${destdir}"
+fi