|Sluggers Trespasser Level Editing Basics
|Page 1 of 1|
|Author:||madppiper [ Wed Oct 12, 2005 11:28 am ]|
|Post subject:||Sluggers Trespasser Level Editing Basics|
Trespasser Level Editing Basics
This tutorial will walk you through the basics of beginning to construct your very own Trespasser level. This tutorial will cover rudimentary elements of level construction, and touch briefly on each program.This is a rough draft; if you come across any error, please PM me on the TresCom boards. Please note that screen shots may differ depending on file selection.
Here is the list of the minimal programs required to build your own level. Items denoted with an asterisk (*) are available for download free of charge from the Trespasser Community (TresCom) website: http://www.trescom.com.
â€¢ Legal versions of Trespasser
â€¢ The Trespasser Editor (TresEd) *
â€¢ GeomAdd *
â€¢ Mini Level *
Please note: Trespasser must be installed from the hard drive. If you have not done so, please check out this tutorial: http://dynamic5.gamespy.com/~trescom/bo ... php?t=1328
To download the other required files, browse over to the TresCom website, and under â€œDownloadsâ€ you will find â€œUtilities.â€ From there, download TresEd and GeomAdd. The Mini Level can be found under â€œlevels.â€
Installation of TresEd, GeomAdd, and the mini level are a breeze. Go to C drive, and create a new folder called â€œTresEd.â€ Within TresEd, create another folder called â€œmodels.â€ This folder is where we will place the extracted models from Trespasser for use in our new level.
Extract both TresEd and GeomAdd to the â€œTresEdâ€ folder. Extract mini level to the â€œC:\tres cd\dataâ€ folder.
Loading the levels
TresEd uses the SWP uncompressed texture files when editing a level. These can only be created by the Trespasser program. So, fire up Trespasser. Once you reach the main menu screen, press [CRTL]+[SHIFT]+[Q]+[W] to bring up the level select screen. Weâ€™ll choose the Beach level to extract all of our models from. Select â€œbe.scn,â€ and click okay.
Once the beach level has loaded, you can exit out back to the main screen. Repeat the procedure to once again access the level select screen, only this time select â€œminilev.scn.â€
You can now exit out of Trespasser all together.
Cruise over to the TresEd folder, and click on TresEd.EXE to start it up. Letâ€™s take a moment to familiarize ourselves with the interface. You will be greeted by a similar screen:
Letâ€™s look at the toolbar:
Moving from left to right, the icons are:
â€¢ New â€“ Currently disabled
â€¢ Open â€“ Opens a level
â€¢ Save â€“ Brings up the save dialog
â€¢ Duplicate â€“ Duplicates the selected object(s)
â€¢ Delete â€“ Deletes the selected object(s)
â€¢ Move to Front â€“ Moves selected object(s) to the front of the viewer
â€¢ Redo â€“ Redo action
â€¢ Undo â€“ Undo action
â€¢ Tscript Dialog â€“ Opens the dialog box to edit the selected objects Tscripts
â€¢ Edit Position, Rotation, Scale â€“ Allows you to edit the selected objectâ€™s physical properties
â€¢ Show normal objects â€“ Show physical objects (trees, dinosaurs, guns, buildings, etcâ€¦)
â€¢ Show classes â€“ Shows classes (triggers, sounds)
â€¢ Show physics
â€¢ Show Instances
â€¢ Enable Editing of Terrain Textures â€“ Allows you move, delete, add terrain objects around (roads, grass)
â€¢ Center viewpoint â€“ Centers the viewpoint on the selected object
[u]Whatâ€™s a Tscript?[/u]
A Trespasser Script (or Tscript, coined by Andres James) is a collection of values that are assigned to a particular object. These values can be physical (dinosaur size, weight), mental (set dinosaur anger, fear, curiosity), or can be used as triggers (Boolean, variable, actions). Tscripts are what control the dinosaurs and what occurs in the physical world.
Select the Open button. The directory will already be set. Select â€œbe-130.swp,â€ and click okay. A new dialog box will open with render options. Click okay.
Once the level loads, you can move about. Using the mouse, you can look around your surroundings. Your viewpoint is positioned at Anneâ€™s, but if you move about, you will notice that Anne stays motionary.
Pressing Escape [ESC] allows you to move the mouse to look about. The movement controls are set up exactly like Trespasserâ€™s default controls.
[u]Moving Around in TresEd[/u]
Moving around in the Trespasser Editor is fairly easy. The controls are the same as the defaults in Trespasser. When you can see the mouse cursor, you are in a static mode; you can only move along the X and Y axis. But by pressing [ESC] it will open up the world to you, and you can look around like in Trespasser. By pressing [CTRL] + [1-6] you can control the speed of your view. One is the slowest, while six is like a West African Swallow.
[ESC] Allows you to toggle between selection or look around mode.
[MOUSE] In look around mode, moves your â€œhead.â€
[W] Move forward.
[X] Move backward.
[A] Stride left.
[D] Stride right.
[Z] Move vertically down.
[Q] Move vertically up.
[CRTL] + [1-6] Adjust speed; 1 = slowest; 6 = fastest
To select an object, simply click on it with the left mouse button. After selecting it, you can drag it around by holding in the right mouse button. You can either double-click or click on the ninth icon (= looks like an open notebook) to open and edit the selected objectâ€™s Tscripts. Selecting the tenth button (= â€œXYZâ€) allows you to edit the objects physical characteristics: position, rotation, and scale in the Trespasser-world, as well as renaming the object.
Letâ€™s try a simple exercise.
To begin, select a tree. Click on it with the left mouse button. Click on the â€œFileâ€ menu on the top toolbar, and select â€œExport selection as TPM.â€
[u]Whatâ€™s a TPM?[/u]
The Trespasser Model is a file format developed by Andres James and Martjin Bujis (AKA Remdul). The structure of the file handles the objects better, and is the preferred export method. Dinosaurs can only be extracted using this format.
A new dialog box will open up. Make sure that the first two check boxes are checked, and click OK. From there, you can choose the destination to save your model. Open up the â€œobjectsâ€ folder, and click save.
Close out of TresEd. Open up GeomAdd. Click the â€œImport Fileâ€ option.
Select which level you wish to import your file into; in this case, click on â€œminilev.scn.â€
Locate your file in the â€œobjectsâ€ directory, and click import. GeomAdd is now importing the file, and running a diagnostic on the level to make sure that everything is squared away. Click on the save button when the dialog box opens up.
Exit out of GeomAdd, and fire TresEd up again.
Your newly imported object should be at the coordinates 0,0,0. To quickly go there, hit [CRTL]+[G], which will open up a new window. Enter â€œ0â€ in for all the coordinates.
Your object will be in the general area. Select it.
As you probably can see, itâ€™s most likely protruding from out from the ground, not truly on the top. This is easy to fix. To automatically adjust the object so that it is flush with the top of terrain, simply select the object, and push: [CRTL] + [D].
To move the object, simply drag it around with the mouse while depressing the right mouse button. To move the object on only one axis, simply hold in , , or . Depending on how the object is oriented, it will single out with only one axis, and you can drag it along that axis by pressing the right mouse button and dragging.
For further precision, select the object and click on the tenth icon on the toolbar, the one that looks like a â€œxyz.â€ From here, the objectâ€™s location and orientation can be set.
From this dialog box, you can also adjust the scale. This will resize the object.
You should have enough information to begin to tinker around with the mini level. So go out, and start to mess around with it! It can hurt to play around.
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group