The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
Compiler issues
From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 04:45, 19 May 2010 by 00zX (Talk | contribs) (can someone fix this for me, I dunno how)
Like any other compiler there are issues with the parsing therefor this page exists to mention those common issues and how to get around them.
Parsing Issues
Comment Issues related to the comments
- Having an end of multi-line comment proceeded by a line comment on the same line.
DefaultProperties Issues related to the defaultproperties block
- Placing a { on the same line of the defaultproperties declaration will cause the parser to skip the defaultproperties block thus :all of your default values will not be compiled, to get around this is easy just place the { on the next line!.
Example |
|
Wrong |
Correct |
defaultproperties{ } |
defaultproperties { } |
Example |
|
Wrong |
Correct |
/* if(!bUseForVehicles) return Super.DamageTaken(Enemy, Injured);
else{//Branch4: Do vehicle code here, optimized?} */ |
/* if(!bUseForVehicles) return Super.DamageTaken(Enemy, Injured);
else{//Branch4: Do vehicle code here, optimized?}
*/ |
/*local int LogInitHealth;*//*, LogDamage, LogConversion;*/ |
/*local int LogInitHealth;*/ /*, LogDamage, LogConversion;*/ |