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
Jump to: navigation, search
m
Line 8: Line 8:
 
// put your code here
 
// put your code here
 
</uscript>
 
</uscript>
<br>
+
 
 +
 
 
<uscript>
 
<uscript>
 
struct MapExceptionVehicleSet
 
struct MapExceptionVehicleSet
Line 41: Line 42:
 
)
 
)
 
</uscript>
 
</uscript>
 +
 +
 +
<uscript>
 +
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")))</uscript>

Revision as of 17:10, 21 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-21 17:10:58), 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")
	)
)


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")))