There is no spoon

Legacy:Sandbox

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 04:10, 5 January 2003 by Wormbo (Talk | contribs)

Jump to: navigation, search

Experiment with Wiki markup on this page: click the "edit" link at the bottom of the page to start. This page is periodically cleaned up so don't post anything you want to keep.

You may also want to read:

The sandbox is used often as a scratchpad for coders to easily show other coders bits of code (for example, when asking someone to help troubleshoot your code in an IRC channel). The sandbox, however, is intended as a place to tryout wiki markup. How about we make a page for sharing code? Something like ScratchPadEvolution


  • some quick examples... this is a bullet list
  • it's just a * at the start of a paragraph. a single return character ends the list item
  • this is emphasized text
  • this is very emphasized text
  • this is extremely emphasized text
  • some simple html tags work:2, underlined with this <u></u> tag., but it's best to stick to Wiki markup.
this is indented
this is double indented... and so on.
this is a Definition List (DL in HTML) 
this is the definition for the term
  1. this is a numbered list
  2. next item
  3. unfortunately, # and * lists don't mix
  • Bullet 1
    1. Number 1 in bullet 1
    2. Number 2 in bullet 1
  • Bullet 2

This is a header

  • the space on the inside of the == is important
  • use more = signs to make lower level headings (h2 up to h5)

Test Links

Yes, all the below are links.


My journey into the void is complete!

   Mad Merse: Thanks to Wiki, I have become a real virtual personality (if such things can be said).

Behold my cynicism! Witness my maniacal and narcissistic delusions of talent!!

   I wonder if I'll ever be able to go outside again. :(

Mychaeel demonstrates for WheatPuppet

Subtopic 1

Subtopic 2

...continued

Subtopic 3

Subtopic 4


To quote text without applying wiki formatting rules, enclose within a <nowiki>[[Legacy:Baby, Baby, Baby|Baby, Baby, Baby]]</nowiki> section. Baby, Baby, Baby

Nuclear Fuzz Grunge would like to know what:

is. I see it everywhere. Is this a function that is yet to be coded?

tarquin: "& mdash ;" is a standard HTML entity for the m-dash character. I've since created wiki markup for this so use of it here is obsolete. Type two hyphens together and they'll render as a long dash. (I'm fussy about typography like that, you see!)
See Wiki Markup. There's also wiki development to discuss the system.
Actually "& mdash" syndrome occurs when you view this with good ole netscape 4.7 – whether or not the code has double hyphens in it; it all looks much nicer in mozilla and probably that other browser — who's name I forget.
You get "mdash" appearing as text in Netscape 4.7? Uh-oh. Upgrade :) Mozilla is in fact my target browser for CSS. I try and make sure it's ok in Opera too. IE can go hang. – Tarquin
I say the same thing about mozilla, and funnily it does lol, unlike IE :P (Wiki works fine) – L0cky
Quite right too! :-) actually there's a bonus with 4.7 ... no banner ads! still looks ugly though – Zedsquared

:-) Smiley:-) :-) 123:-)  :D:tup: mesh=doodedoo mesh =doodedoo


Different monospaced fonts:

 The quick [[Legacy:Brown Fox|brown fox]] jumps over – the ''lazy dog''. (<pre>

)

The quick brown fox jumps over – the lazy dog. (verbatim paragraph, character markup is processed)

 The quick brown fox jumps over the lazy dog. ()

 The quick [[brown fox]] jumps over the ''lazy dog''. (<uscript>)

Wah! I figured it out. Opera seems to fail to switch back to the normal monospaced font after inserting a HTML entity (from a different font, like ), and thus everything following the arrow in the following paragraph is formatted as Lucida Sans Unicode:

 File -> Save -> File Format

I'm filing a bug report to Opera Software at the moment. Here's the test case.

I saw it too, but now (after several crashes and Tweak UI -> Repair Font Folder) it works like it's supposed to. – Wormbo (No wait! That en-dash in front of Wormbo is displayed inside of the W. Another bug of Opera?)
You mean, Opera 6.01 displays "Save -> File Format" in Courier New after the first "->"? →Mychaeel
Yes, but it seems like there's another display error now.

Fooling around with this... testing testing testing link. -Bean

(messages shunted to Bean. Delete on read. :) )

I think bot navigation, pathnoding, and basic bot pathing should all be combined. It would be much cleaner. Just a suggestion. →Bean

Tarquin: Oh, definitely. It's been on my list of "arg, I really don't want to have to deal with this myself" pages for a while. Mention it on Project Discussion, on one of the pages in question, or just dive in & make changes :D. Artificial Intelligence is the main topic page, just make sure anything on the subject is linked to from there.


Without <wiki>:

Quotation

Yadda

With <wiki>:

Quotation

Yadda


Linebreak:

Quotation
Yadda

Mychaeel: Should change the

CSS to have less padding at the bottom. The

margin and the

padding adds up...

Tarquin: will do. Might also remove the border from Textbook style.

Mychaeel: Changed it for Chilled Blue Plain. blockquote { padding:12px 12px 4px 12px; }

Mychaeel: Fixed the behavior of > ... quotation syntax: It supports the \\ paragraph continuation/linebreak sequence now. No need for ... anymore in quotation blocks.


XXXX The quick brown fox
XXXX jumps over the lazy dog.
XXXX The five boxing wizards :-)
XXXX jump quickly.
XXXX Jackdaws love my big
XXXX sphinx of quartz. :-D

Okay, who stole my diaphragm?

While we're on the topic of pangrams: Cwm fjord-bank glyphs vext quiz.


Testing a new page


Unreal Wiki Wumping

Wumpus Wookies

Wiki Wumpus Wumping for Wookies

Wiki Wumping
For Wumpus Wumping Wookies

= Character Wumping Good

  • Equals
  • Forward Slash
  • Asterisks
  • Pound
  • Simicolon
  • Colon
  1. Ton and what do you get.
  2. Tons and what do you get.
  3. Tons and what do you get.
Unreal Tournament 
Wumpus Fragging for Wookies.
UnrealEd 
Wookie Wumping for Wiki Wumpuses.
Unreal Wiki 
Wiki Wumping Wumpus Wookie.
Wiki >> Wookie >> Wumpus
// Wiki Wumping
local int Wumpus;
local int Wiki
for (Wumpus = Wiki; Wumpus >= Wiki; Wumpus++)
  Wookie(Wiki*Wumpus);

And soooooo much more.

Niaht: Greetings all. Nice to meet you. That's it for the sandbox for me. Time to move on to something more productive.

DJPaul: Hi MC!

MC Spanky: W0RD!!!!! D!S EES 50 L33T!!!!!

function Test(bool bIdiot)
{
    if (bIdiot)
        log("See, it even has UScript parsing!");
}
 
<uscript>
// leadIn holds the starting characters before any text
headingLevel = leadIn.length;
// cap max heading level at 6
if(headingLevel > 6)
  headingLevel = 6;
// we want = to be h6 and ====== to be h1
 
headingLevel -= 7;

Eay My Test

Eat My Test

Ike Bart: I'll eat it! :D

  • I ate the test
    • I ate the test
      • I ate the test
        • I ate the test
          • I ate the test
            • I ate the test for the sixth time
    • Eating test
  • Eating test
  1. Test Item
  2. Item Test
    1. Sub number 1
    2. Sub number 2
      1. Sub-sub number 1
      2. Sub-sub number 2
        1. What goes here?

Ahhh But can it do this?

can Unreal Wiki do multiple lines in a list item?

  • start
    seccond line indented correctly with a line break token
  • end

more ='s should mean higher heading level, not lower

(this should be java but oh well)

Tarquin: number of "=" corresponds to H* HTML tag. Welcome to the wiki, whoever you are. :)

And everybody say..... YATTA!


Mychaeel: Although its use is discouraged, you can use the HTML <img> tag now.

<img src="/wiki-ext/zipunr.icon.gif" width=32 height=32>

<img src="/wiki-ext/zipunr.icon.gif" width=64 height=64>

<img src="/wiki-ext/zipunr.icon.gif" width=32 height=64>

<img src="/wiki-ext/zipunr.icon.gif" width=64 height=32>


> a > sign in a table but here it means right-align
> again same here

In general, < and > are normal characters


H1

H2

H3

H4

H5
H6
=H7=

Ok, I'm trying to create a really, really long paragraph here just to mess around with the diff functionality of the Wiki. I'll try to make it as long as possible, but it seems like i'm running out of ideas pretty fast. :( OK, maybe it's already enough.

Ike Bart: I added H6 and H7 to this to see how they would look. It is obvious that H1 doesn't work.

Ike Bart: H6 seems to do something without the box, and H7 is the same as H6.

Wormbo: In HTML there's only H1 - H6 AFAIK. H1 is probably reserved for the page's topic. (i.e. "Unreal Wiki") It's just large black text, you can test that with the

tag.


What happens if I do this?

Mychaeel: Somebody sees it, frowns, and restores the original text.


Mychaeel: No newline before here.

Mychaeel: Single newline before here.

Mychaeel: No newline before here.


More Testing

-Start-

Whoops, H1 headings...

probably should have used <nowiki>

-End-

-Start-

Some not so interesting text.

Who cares... :-)

-End-

even more testing:

-Start-

Some even less interesting text.

...and again it's two lines of than.

-End-

erm:123456


–huh?–

So much power, so little knowledge.. :(

Little Lists

  • Does
    • It
    • Work ?

meh. bleh!



LedZep's testing to see how this works...


working on organization and usability of the home page

Test-HomePage

my prop 
Defines the enum:
foo 
it does this
bar 
it's a bar

Boksha: Just a test, right?

SpeciesType

This document describes how to use the

to implement different species with different characteristics in UT2003.

These characteristics can be e.g.:

  • the ground speed of a pawn
  • the jump height of a pawn
  • the acceleration when running
  • change the damage done to a pawn (like a species having an armoured skin)
  • change the damage that this pawn does to others (like a species having a nasty punch)

First, lets start with an overview of the classes that contribute to the species-system (they are explained in more detail later):

SpeciesType 
This class and it's subclasses define the species and their individual characteristics. UT2003 e.g. comes with several build-in species like SPECIES_Alien, SPECIES_Bot, SPECIES_Human (where the humans have some sub-species, namely SPECIES_Egypt, SPECIES_Merc and SPECIES_Night) and SPECIES_Juggy You can easily expand these to form your own species with their own characteristics.
xPawn 
xPawn has the member SpeciesType xPawn.Species to define the Species that this xPawn is of.
MutSpeciesStats 
Is a mutator that activates the species-system ingame.
SpeciesGameRules 
Are species-specific game rules activated by the MutSpeciesStats.
.upl files 
define player-models, including their assigned species.

These classes are explained in more detail now.

xPawn

  • has a the member Species of type SpeciesType that defines its Species. This member's default property is set in the defaultproperties.
defaultproperties
{ 
  ...
  Species=class'SPECIES_Jugg'
  ...
}

It's real value is determined at runtime in the function xPawn.Setup that uses the class xUtil to find the player record that is defined for a character name:

rec = class'xUtil'.static.FindPlayerRecord("Gorge");

This function is native, that is, it is implemented in the C/C++ core and its sourcecode is not accessible, but I assume it just searches all .upl files and returns the player record who's DefaultName matches the given character name.

.upl

The .upl files define the characters, i.e. how they look (Mesh, Skin), what portrait they have in the player selection menu, their favoirite weapon (in case its a bot) and of course their species type. I guess since you can set the sex of an character in the .upl file that this also defines the voice of that character. .upl files are located in the UT2003/System directory and look like this:

=MutSpeciesStat

  • activates the SpeciesGameRules to use the species-specific damage system.
  • modifies xPawns to species-specific attributes like GroundSpeed, WaterSpeed, Jump-Height etc. in ModifyPawn.

SpeciesGameRules

  • modifies damage done to an xPawn, depending on the species of that pawn (SpeciesGameRules.ModifyReceivedDamage)
  • modifies damage done to an xPawn, depending on the species of the instigator (SpeciesGameRules.ModifyImpartedDamage)

SpeciesType

This class modifies a pawn depending on the characteristics defined for that species.

Following characteristics can be set:

PawnClassName 
The Pawn class to use for that species, e.g. "xGame.xPawn"?
SpeciesName 
A name for the species, e.g. "Human"
AirControl 
GroundSpeed 
WaterSpeed 
JumpZ 
ReceivedDamageScaling 
factor to apply when this species receives damage. Might increase or decrease the received damage, e.g. a tough species decreases the butterfly net damage.
DamageScaling 
factor to apply when this species does damage to another lawn. For example, a species having a fruit punch might increase the damage.
AccelRate 
WalkingPct 
CrouchedPct 
DodgeSpeedFactor 
DodgeSpeedZ 

These characteristics all modify the pawn P by multiplication, for example:

P.JumpZ = P.Default.JumpZ * Default.JumpZ;

Omarr: Wow.. this page is really scary, but helpful!

ZxAnPhOrIaN: YUP

L0cky: It's kinda schizo!

L0cky: Tarquin, a JavaScript search box to search the textfield would be a very usefull feature :)

@inline@http://wiki.beyondunreal.com/wiki-ext/wikilogo.jpg

All Your Base Are

Somewhere Else...

What this is 
Is what
so what is this then
without a thingy

SomeThingy 
Some description here
Now these lines are
in the right place. :)
A different method: 

You could also use the <wiki> tag like this.

The advantage is, that you can put complex Wiki Markup in this block.

Tables
for example
;)


Smattbac: Can you get the two "wrong" lines to line up with the "Some Description here" line?

G-LiTe: Hey, I'm new here. :) And I definitly agree with this page being scary :D

Let's see if I can answer your question smattbac

SomeThingy 
Some description here 
test 1 2 3


that's as far as I could get, it's still not quite right though.
I wouldn't know if you wanted to put any text inbetween either.
Better ask one of the gurus around here ;)

now I hope I didn't screw anything up... :S

Wormbo: I corrected the example above. You were almost correct G-LiTe, but the space behind the <wiki> messed it up, because that counts like a space on a new line, which means fixed font width. Hmm, ;) at the beginning of a line isn't parsed as smiley but as definition list. o_O

Confused person: huh? ;)

The gods do not deduct from man's allotted span the hours spent in fishing. -Babylonian Proverb