The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
Difference between revisions of "Unreal Wiki:Scratchpad"
From Unreal Wiki, The Unreal Engine Documentation Site
OlympusMons (Talk | contribs) |
OlympusMons (Talk | contribs) |
||
Line 45: | Line 45: | ||
<uscript> | <uscript> | ||
− | PerMapSwapSet=(Map="WAR-DOWNTOWN",MapExctSwapSet[0]=((Factories=("UTGameContent.UTVehicleFactory_Goliath","UTGameContent.UTVehicleFactory_Paladin")),((SwapFactories=("Newtators.TSVehicleFactory_Goliath","Newtators.TSVehicleFactory_Paladin"))),MapExctSwapSet[1]=((Factories=("UTGameContent.UTVehicleFactory_Nightshade","UTGameContent.UTVehicleFactory_DarkWalker")),(SwapFactories=("Newtators.TSVehicleFactory_Nightshade","Newtators.TSVehicleFactory_DarkWalker")))) | + | PerMapSwapSet= |
+ | ( | ||
+ | Map="WAR-DOWNTOWN", | ||
+ | MapExctSwapSet[0]= | ||
+ | ( | ||
+ | (Factories=("UTGameContent.UTVehicleFactory_Goliath","UTGameContent.UTVehicleFactory_Paladin")), | ||
+ | ((SwapFactories=("Newtators.TSVehicleFactory_Goliath","Newtators.TSVehicleFactory_Paladin")) | ||
+ | ), | ||
+ | MapExctSwapSet[1]= | ||
+ | ( | ||
+ | (Factories=("UTGameContent.UTVehicleFactory_Nightshade","UTGameContent.UTVehicleFactory_DarkWalker")), | ||
+ | (SwapFactories=("Newtators.TSVehicleFactory_Nightshade","Newtators.TSVehicleFactory_DarkWalker")) | ||
+ | ) | ||
+ | ) | ||
</uscript> | </uscript> | ||
Revision as of 11:42, 22 June 2008
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 2008-06-22 11:42:44), 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.
// put your code here
struct MapExceptionVehicleSet { var array< class<UTVehicleFactory> > Factories; var array< class<UTVehicleFactory> > SwapFactories; }; struct MapExceptionSwapSet { var string Map; var MapExceptionVehicleSet MapExctSwapSet[numTeams]; }; var config array<MapExceptionSwapSet> PerMapSwapSet;
PerMapSwapSet= ( Map="WAR-DOWNTOWN", MapExctSwapSet[0]= ( (Factories="UTGameContent.UTVehicleFactory_Goliath",SwapFactories="Newtators.TSVehicleFactory_Goliath"), (Factories="UTGameContent.UTVehicleFactory_Paladin",SwapFactories="Newtators.TSVehicleFactory_Paladin") ), MapExctSwapSet[1]= ( (Factories="UTGameContent.UTVehicleFactory_Nightshade",SwapFactories="Newtators.TSVehicleFactory_Nightshade"), (Factories="UTGameContent.UTVehicleFactory_DarkWalker",SwapFactories="Newtators.TSVehicleFactory_DarkWalker") ) )
PerMapSwapSet= ( Map="WAR-DOWNTOWN", MapExctSwapSet[0]= ( (Factories=("UTGameContent.UTVehicleFactory_Goliath","UTGameContent.UTVehicleFactory_Paladin")), ((SwapFactories=("Newtators.TSVehicleFactory_Goliath","Newtators.TSVehicleFactory_Paladin")) ), MapExctSwapSet[1]= ( (Factories=("UTGameContent.UTVehicleFactory_Nightshade","UTGameContent.UTVehicleFactory_DarkWalker")), (SwapFactories=("Newtators.TSVehicleFactory_Nightshade","Newtators.TSVehicleFactory_DarkWalker")) ) )
Error: Error, ImportText (MapExctSwapSet): Missing key name in: ((Factories="UTGameContent.UTVehicleFactory_Goliath",SwapFactories="Newtators.TSVehicleFactory_Goliath"),(Factories="UTGameContent.UTVehicleFactory_Paladin",SwapFactories="Newtators.TSVehicleFactory_Paladin")),MapExctSwapSet[1]=((Factories="UTGameContent.UTVehicleFactory_Nightshade",SwapFactories="Newtators.TSVehicleFactory_Nightshade"),(Factories="UTGameContent.UTVehicleFactory_DarkWalker",SwapFactories="Newtators.TSVehicleFactory_DarkWalker"))) Error: Error, ImportText (PerMapSwapSet): Property import failed for MapExctSwapSet in: (Map="WAR-DOWNTOWN",MapExctSwapSet[0]=((Factories="UTGameContent.UTVehicleFactory_Goliath",SwapFactories="Newtators.TSVehicleFactory_Goliath"),(Factories="UTGameContent.UTVehicleFactory_Paladin",SwapFactories="Newtators.TSVehicleFactory_Paladin")),MapExctSwapSet[1]=((Factories="UTGameContent.UTVehicleFactory_Nightshade",SwapFactories="Newtators.TSVehicleFactory_Nightshade"),(Factories="UTGameContent.UTVehicleFactory_DarkWalker",SwapFactories="Newtators.TSVehicleFactory_DarkWalker")))