My program doesn't have bugs. It just develops random features.

Difference between revisions of "Unreal Wiki:Scratchpad"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (removed my stuff, not really needed anymore)
 
(38 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
This page is for pasting code you want to show someone as an example or to get assistance with.  This allows you to easily collaborate with someone to solve a problem, and allows easy comparisons of the edits.
 
This page is for pasting code you want to show someone as an example or to get assistance with.  This allows you to easily collaborate with someone to solve a problem, and allows easy comparisons of the edits.
  
 
You are free to remove any existing code from below, and paste your code between the <nowiki><uscript> </uscript></nowiki> tags.  If the page hasn't been edited in the last few hours (the last edit timestamp is {{timestamp}}), you can assume it isn't needed anymore and can be removed.  A full <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=history}} edit history]</span> will be available, so don't worry about losing anything you removed.
 
You are free to remove any existing code from below, and paste your code between the <nowiki><uscript> </uscript></nowiki> tags.  If the page hasn't been edited in the last few hours (the last edit timestamp is {{timestamp}}), you can assume it isn't needed anymore and can be removed.  A full <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=history}} edit history]</span> will be available, so don't worry about losing anything you removed.
  
 +
'''Clean up after you're done!'''
 
----
 
----
  
 
<uscript>
 
<uscript>
// put your code here
+
// paste your code here
 
</uscript>
 
</uscript>
  
 
+
====Full Key====
<uscript><?php
+
* <sup>1</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 1]].
/*************************************************************************************
+
* <sup>2</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 2]].
* uscript.php
+
* <sup>2+</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 2]], from this version onwards.
* ---------------------------------
+
* <sup>2x</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 2]], starting with [[UT2004]].
* Author: <name> (<e-mail address>)
+
* <sup>3</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 3]].
* Copyright: (c) 2004 <name> (<website URL>)
+
* <sup>3+</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 3]], starting with [[UT3]] patch 2.0.
* Release Version: 1.0.0
+
* <sup>3*</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 3]], starting with [[UDK]].
* CVS Revision Version: $Revision: 1057 $
+
* (no number) &ndash; {'''$Topic''' is relevant/available to/in} all Unreal Engine generations.
* Date Started: <date started>
+
<br>
* Last Modified: $Date: 2008-03-16 16:55:34 +0100 (So, 16 Mär 2008) $
+
====Enum Key====
*
+
{{classgames|Vector}}<sup>--|</sup><br>
* <name-of-language> language file for GeSHi.
+
{{classgames|Range}}<sup>--|'''2'''</sup><br>
*
+
{{classgames|Vector2D}}<sup>--|'''3'''</sup><br>
* <any-comments...>
+
{{classgames|Color}}<br>
*
+
{{classgames|LinearColor}}<br>
* CHANGES
+
<br>
* -------
+
====Class Key====
* <date-of-release> (1.0.0)
+
{{classgames|Actor}}<br>
* -  First Release
+
{{classgames|Rook}}<br> - TribesV?
*
+
{{classgames|SoundCue}}<br>
* TODO (updated <date-of-release>)
+
{{classgames|UTGreedGame}}<br>
* -------------------------
+
{{classgames|LegendObjectComponent}}<br>
* <things-to-do>
+
{{classgames|FluidSurfaceOscillator}}<br>
*
+
{{classgames|Ammunition}}<br>
*************************************************************************************
+
{{classgames|Util}}<br>
*
+
{{classgames|xUtil}} -UE2??<br>
*    This file is part of GeSHi.
+
{{classgames|UnrealPlayer}}<br>
*
+
{{classgames|xPlayer}} -UE2??<br>
*  GeSHi is free software; you can redistribute it and/or modify
+
{{classgames|UTPlayerController}}<br>
*  it under the terms of the GNU General Public License as published by
+
{{classgames|WeaponFire}}
*  the Free Software Foundation; either version 2 of the License, or
+
<br>
*  (at your option) any later version.
+
====Keyword Key====
*
+
{{classgames|Expands}}<br>
*  GeSHi is distributed in the hope that it will be useful,
+
{{classgames|Extends}}<br>
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
+
{{classgames|server}}<br>
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+
{{classgames|replicated}}<br>
*  GNU General Public License for more details.
+
{{classgames|intrinsic}}<br>
*
+
*  You should have received a copy of the GNU General Public License
+
*  along with GeSHi; if not, write to the Free Software
+
*  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
*
+
************************************************************************************/
+
 
+
/*************************************************************************************
+
* uscript.php
+
* ----------
+
* Author: Graham Knop (haarg@beyondunreal.com)
+
* Copyright: (c) 2007 Graham Knop
+
* Release Version: 0.0.0.1
+
* Date Started: 2007/12/17
+
*
+
* UScript language file for GeSHi.
+
*
+
************************************************************************************/
+
 
+
$language_data = array (
+
    'LANG_NAME' => 'UnrealScript',
+
    'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
+
    'COMMENT_MULTI' => array('/*' => '*/'),
+
    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
+
    'QUOTEMARKS' => array(1 => '"', 2 => "'"),
+
    'ESCAPE_CHAR' => '\\',
+
    'KEYWORDS' => array(
+
        1 => array(
+
            'within', 'while', 'void', 'vector4', 'vector2d', 'vector', 'vect', 'var', 'until', 'unreliable'
+
            , 'twovectors', 'true', 'travel', 'transient', 'tpov', 'then', 'texture', 'switch', 'super'
+
            , 'structdefaultproperties', 'struct', 'string', 'stop', 'static', 'state', 'sound', 'skip'
+
            , 'singular', 'simulated', 'showcategories', 'server', 'self', 'scriptconst', 'scale', 'safereplace'
+
            , 'rotator', 'rotation', 'rot', 'rng', 'return', 'repnotify', 'replication', 'removeitem', 'remove'
+
            , 'reliable', 'register', 'region', 'rangevector', 'range', 'quat', 'protected', 'private'
+
            , 'preoperator', 'postoperator', 'pointer', 'plane', 'placeable', 'perobjectlocalized'
+
            , 'perobjectconfig', 'out', 'optional', 'operator', 'nousercreate', 'notplaceable', 'notforconsole'
+
            , 'noteditinlinenew', 'nontransient', 'nontransactional', 'none', 'noimport', 'noexport', 'noclear'
+
            , 'new', 'nativereplication', 'native', 'name', 'mutable', 'model', 'mesh', 'matrix', 'long'
+
            , 'localized', 'local', 'linearcolor', 'length', 'latent', 'iterator', 'invariant', 'intrinsic'
+
            , 'intpoint', 'interpcurvepoint', 'interpcurve', 'interp', 'int', 'instanced', 'insertitem'
+
            , 'insert', 'input', 'init', 'inherits', 'import', 'implements', 'immutable', 'ignores', 'if'
+
            , 'hideparent', 'hidedropdown', 'hidecategories', 'guid', 'goto', 'globalconfig', 'global'
+
            , 'function', 'foreach', 'for', 'float', 'find', 'final', 'false', 'extends', 'exportstructs'
+
            , 'export', 'explicit', 'expands', 'exec', 'event', 'enumcount', 'enum', 'end', 'else', 'editoronly'
+
            , 'editinlineuse', 'editinlinenotify', 'editinlinenew', 'editinline', 'editfixedsize'
+
            , 'editconstarray', 'editconst', 'edfindable', 'each', 'duplicatetransient'
+
            , 'dontcollapsecategories', 'do', 'deprecated', 'dependson', 'delete', 'delegate'
+
            , 'defaultproperties', 'default', 'databinding', 'cylinder', 'coords', 'continue', 'const', 'config'
+
            , 'compressedposition', 'color', 'collapsecategories', 'coerce', 'client', 'class', 'catch', 'case'
+
            , 'cacheexempt', 'byte', 'break', 'boxspherebounds', 'box', 'boundingvolume', 'boundingbox', 'bool'
+
            , 'begin', 'automated', 'autoexpandcategories', 'auto', 'assert', 'arraycount', 'array', 'always'
+
            , 'additem', 'add', 'abstract'
+
            )
+
        ),
+
    'SYMBOLS' => array(
+
        '~=', '~', '||', '|', 'dot', 'cross', 'clockwisefrom', '^^', '^', '@=', '@', '>>>', '>>', '>=', '>'
+
        , '==', '<=', '<<', '<', '/=', '/', '-=', '--', '-', '+=', '++', '+', '*=', '**', '*', '&&', '&'
+
        , '%', '$=', '$', '!=', '!'
+
        ),
+
    'CASE_SENSITIVE' => array(
+
        GESHI_COMMENTS => true,
+
        1 => false,
+
        2 => false,
+
        3 => false,
+
        4 => false,
+
        5 => false,
+
        ),
+
    'STYLES' => array(
+
        'KEYWORDS' => array(
+
            1  => 'color: #FF0000; font-weight: bold' # control structures
+
            ),
+
        'COMMENTS' => array(
+
            1 => 'color: #339966; font-style: italic;',
+
            2 => 'color: #00FF00; font-weight: bold;',
+
            'MULTI' => 'color: #339966; font-style: italic;'
+
            ),
+
        'ESCAPE_CHAR' => array(
+
            0 => ''
+
            ),
+
        'BRACKETS' => array(
+
            0 => ''
+
            ),
+
        'STRINGS' => array(
+
            1 => 'color: #808080;',
+
            2 => 'color: #FF0000;'
+
            ),
+
        'NUMBERS' => array(
+
            0 => 'color: #FF00FF;'
+
            ),
+
        'METHODS' => array(
+
            ),
+
        'SYMBOLS' => array(
+
            ),
+
        'REGEXPS' => array(
+
            ),
+
        'SCRIPT' => array(
+
            )
+
    ),
+
    'URLS' => array(
+
        ),
+
    'OOLANG' => true,
+
    'OBJECT_SPLITTERS' => array(
+
        ),
+
    'REGEXPS' => array(
+
        ),
+
    'STRICT_MODE_APPLIES' => GESHI_NEVER,
+
    'SCRIPT_DELIMITERS' => array(
+
        ),
+
    'HIGHLIGHT_STRICT_BLOCK' => array(
+
        ),
+
    'TAB_WIDTH' => 4
+
);
+
 
+
?></uscript>
+

Latest revision as of 07:41, 6 October 2011

This page is for pasting code you want to show someone as an example or to get assistance with. This allows you to easily collaborate with someone to solve a problem, and allows easy comparisons of the edits.

You are free to remove any existing code from below, and paste your code between the <uscript> </uscript> tags. If the page hasn't been edited in the last few hours (the last edit timestamp is 2011-10-06 07:41:16), you can assume it isn't needed anymore and can be removed. A full edit history will be available, so don't worry about losing anything you removed.

Clean up after you're done!


// paste your code here

Full Key[edit]

  • 1 – {$Topic is relevant/available to/in} Unreal Engine 1.
  • 2 – {$Topic is relevant/available to/in} Unreal Engine 2.
  • 2+ – {$Topic is relevant/available to/in} Unreal Engine 2, from this version onwards.
  • 2x – {$Topic is relevant/available to/in} Unreal Engine 2, starting with UT2004.
  • 3 – {$Topic is relevant/available to/in} Unreal Engine 3.
  • 3+ – {$Topic is relevant/available to/in} Unreal Engine 3, starting with UT3 patch 2.0.
  • 3* – {$Topic is relevant/available to/in} Unreal Engine 3, starting with UDK.
  • (no number) – {$Topic is relevant/available to/in} all Unreal Engine generations.


Enum Key[edit]

Vector(RTNP, U1, UT, U2, U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3)--|
Range(U2, U2XMP, UE2Runtime, UT2003, UT2004)--|2
Vector2D(UDK, UT3)--|3
Color(RTNP, U1, UT, U2, U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3)
LinearColor(UDK, UT3)

Class Key[edit]

Actor(RTNP, U1, UT, U2, U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3)
Rook(no matching games found)
- TribesV? SoundCue(UDK, UT3)
UTGreedGame(UT3)
LegendObjectComponent(U2XMP)
FluidSurfaceOscillator(U2, U2XMP, UE2Runtime, UT2003, UT2004)
Ammunition(U2XMP, UE2Runtime, UT2003, UT2004)
Util(U2, U2XMP)
xUtil(no matching games found) -UE2??
UnrealPlayer(UT2003, UT2004)
xPlayer(no matching games found) -UE2??
UTPlayerController(UDK, UT3)
WeaponFire(UT2003, UT2004)

Keyword Key[edit]

Expands(no matching games found)
Extends(no matching games found)
server(no matching games found)
replicated(no matching games found)
intrinsic(no matching games found)