June 5 2009 build

From Skyscraper
Jump to: navigation, search
This is the article of a development build of Skyscraper Simulator.
It has been confirmed a good-faith contribution to the Skyscraper wiki.

This build has some new features, a fix for the font system (finally) so I'll finally be able to start messing around with the text-to-texture stuff soon, and more. I added a backwards-compatibility feature to the AddDirectionalIndicators command so that the first three options are now optional, making older scripts work (but you'll still have to get rid of or move the "OpenDoor" commands in those old building scripts, since there's no workaround for that). I'm also attaching an updated "Simple - test" building which is a test for the double doors.

http://www.skyscrapersim.com/downloads/dev

The added features are support for a single directional indicator light (instead of separate lights for up and down - this is demonstrated in the "Simple - Tall" building) and horizontal directional indicators (previously they were only vertical). I had to change the syntax for the AddDirectionalIndicators command for that to work. I also added the "AddDirectionalIndicator" command which lets you create indicators outside of the <elevator> block, allowing you to make different types of indicators for certain floors (for example, a single indicator on the lobby, and a vertical double on every other floor). That's all explained in the script guide.

So to update your building, the old AddDirectionalIndicators syntax was (as of a couple builds ago):
AddDirectionalIndicators BackTexture, UpTexture, UpTextureLit, DownTexture, DownTextureLit, CenterX, CenterZ, voffset, direction, BackWidth, BackHeight, ShowBack, tw, th
and is now:
AddDirectionalIndicators Relative, Single, Vertical, BackTexture, UpTexture, UpTextureLit, DownTexture, DownTextureLit, CenterX, CenterZ, voffset, direction, BackWidth, BackHeight, ShowBack, tw, th

The old equivalents for Relative, Single and Vertical are true, false, and true.

Also, since the on-screen fonts now work, Crystal Space's BugPlug feature is now fully usable (it worked before, but didn't show any text on the screen). BugPlug allows you to do things like take screenshots, turn on/off wireframe mode, change the camera FOV, dump info on objects, move objects, show the FPS, show/hide objects, etc. The full list of commands are in the file "data/config-plugins/bugplug.key" - not all of them work though. Here's my own summary of the interesting ones:

Type a debug command: type ctrl-d and then press the bugplug key (so for wireframe mode, you'd press ctrl-d, the screen will prompt you for a command, and then you'd type "e".)
Select an object/mesh: type ctrl-s and then click on an object

Show wireframe mode (the second command is needed due to a quirk with the wxGL plugin - also make sure you turn off the sky when doing this):
ctrl-d e
ctrl-d c

Disable wireframe mode:
ctrl-d e

change gamma:
ctrl-d g

show camera info:
ctrl-d shift-c

dump info on all CS engine objects:
ctrl-d d

dump all 3D info to an xml file (saves to world0.xml):
ctrl-d f10

change FOV:
ctrl-d f

change FOV angle:
ctrl-d shift-f

move meshes:
first select an object using ctrl-s
then,
ctrl-d shift-up = move up (+y)
ctrl-d shift-down = move down (-y)
ctrl-d shift-left = left (-x)
ctrl-d shift-right = right (+x)
ctrl-d shift-pgup = forward (+z)
ctrl-d shift-pgdn = backward (-z)

screenshots:
ctrl-d f11 = normal
ctrl-d ctrl-f11 = large
ctrl-d shift-f11 = very large

show/hide FPS display:
ctrl-d ctrl-alt-p

hide selected mesh:
ctrl-d h

unhide selected mesh:
ctrl-d shift-h

select mesh(es) by name:
ctrl-d ctrl-alt-m

list loaded CS plugins:
ctrl-d ctrl-alt-l

See Also