+ All Categories
Home > Documents > Copyright © 2015 Curt Hill Typing Your Commands Console, Command Line and Movies.

Copyright © 2015 Curt Hill Typing Your Commands Console, Command Line and Movies.

Date post: 02-Jan-2016
Category:
Upload: emil-anderson
View: 232 times
Download: 1 times
Share this document with a friend
Popular Tags:
24
Copyright © 2015 Curt Hill Typing Your Commands Console, Command Line and Movies
Transcript

Copyright © 2015 Curt Hill

Typing Your Commands

Console, Command Line and Movies

Introduction

• We need to consider a couple of topics Console commands

• Command Line parameters • Recording video

Copyright © 2015 Curt Hill

Console Commands

• These are also known as exec commands

• These can also be started from within UnrealScript

• The console is a command line interface

• From there we may enter commands not necessarily having to do with game play

Copyright © 2015 Curt Hill

Opening the Console

• The console may be opened or closed by the tilde (~) key

• This also shuts the console• Game play is not suspended when

in console– Should only be done when nothing

else is going on

Copyright © 2015 Curt Hill

Screen Shot

Copyright © 2015 Curt Hill

Commands• Commands may be categorized thus:

– General– Statistics– Display– Rendering– Physics– Movie Capture– Others

• A reference is at:https://udn.epicgames.com/Three/ConsoleCommands.html

Copyright © 2015 Curt Hill

General

• Quit or Exit – Ends the game

• Open – Starts a new level– Does not work in PIE– The level to start on may be specified

on command line

Copyright © 2015 Curt Hill

Statistics

• Stat fps– Shows the time elapsed and frames

per second that it is rendering

• Stat game• See next screen

Copyright © 2015 Curt Hill

Game and FPS

Copyright © 2015 Curt Hill

Others

• Mem – Will show memory allocation

• Viewmode – the same parameters as in editor– LightingOnly– DetailLighting– Wireframe

Copyright © 2015 Curt Hill

Demos• DEMOREC - Record a demo for

later playback. • DEMOSTOP - Stop demo playback\

recording. • DEMOPLAY - Play a previously

recorded demo. • Demos are stored in UDKGame\

Demos– Only in the game not pie– Do no have the same view as play– Only playable in UDK

Copyright © 2015 Curt Hill

Screen Shot

• SHOT – Takes a screenshot at the current screen resolution.

• Occurs immediately, so console version is sort of pointless

• Should use an exec command to do during game play

Copyright © 2015 Curt Hill

Movie Capture• Startmoviecapture• Stopmoviecapture• Captured movies end up in:

…\UDKGame\MovieCaptures• They are not really movies but .AVI

files– There is no sound

• The bad news about .AVIs is there is no compression– 10 seconds per gigabyte for full

resolution

Copyright © 2015 Curt Hill

Command Line

• There are several commands that you can enter via command line

• Recall that we set up the original icon with:udk.exe editor –log

• If the game is to be played with a specific level that should be the first parameter instead of the editor

• There are other parameters as well

Copyright © 2015 Curt Hill

Where?

• In a Windows environment the command line occurs in several places:– In a DOS box– In a .BAT file– In the target item of the properties of

a desktop icon– Menu properties

Copyright © 2015 Curt Hill

Right Click Icon Properties

Copyright © 2015 Curt Hill

The Program• The first part of the command line is

the executable:– UDK.EXE– The .exe is optional

• This is followed by a space and the world that you want to execute– This has a .UDK extension, which is

optional

• Most command line parameters follow and are separated by blacks

• That is not the case for a fewCopyright © 2015 Curt Hill

Specifics• There are several parameters that must

follow the level, separated by a question– Game=GameInfo class– Class=Pawn class

• Both of these prefixed by the directory of your mods

• These are attached to the .UDK file and separated by a ?UDK.exe demo2_c2.udk?game=CurtMod.CurtGameInfo?class=CurtMod.CurtPawn

Copyright © 2015 Curt Hill

Command Line Parameters

• You may set the size of the window, that is its resolution with:– SetX=xxx– SetY=yyy

• Frames per second is:– FPS=xx– 30 is needed for video

• Benchmark is needed to process each frame so no skips occur

Copyright © 2015 Curt Hill

Making a Movie

• To do properly needs hardware capture or good software capture

• With just UDK and a movie maker a no-audio version can be made

• This requires several steps:– Record– Convert

Copyright © 2015 Curt Hill

Record• Start UDK with the following

command line parameters:– Level resx resy benchmark fps– Such as:

demo2_c2 resX=1024 resY=530 benchmark fps=30

• Enter console– StartMovieCapture

• Do what is to be demonstrated• Console

– StopMovieCapture and Quit

Copyright © 2015 Curt Hill

Convert

• Load up Pinnacle Studio• Import the .AVI• Clip off the beginning and ending

console• Create a file

– Use the MPEG-1 encoding

Copyright © 2015 Curt Hill

Result

Copyright © 2015 Curt Hill

Finally

• We will try a demo now• Lets make a movie

Copyright © 2015 Curt Hill


Recommended