Actions

Difference between revisions of "Fangame How-to:SonicGDK/Tips and tricks"

From Sonic Retro

m
(Cleaning...)
Line 22: Line 22:
  
 
If you want to use a StaticMesh with no simplified collision model for "Sonic Physics mode", you have to open it with the Unreal Static Mesh Editor window and disable the "Use Simple Box Collision", "Use Simple Line Collision" and "Use Simple Rigid Body Collision" property flags. You also have to make sure that each "Material" slot of the "LODInfo" array property has the "Enable Per Poly Collision" property flag enabled.
 
If you want to use a StaticMesh with no simplified collision model for "Sonic Physics mode", you have to open it with the Unreal Static Mesh Editor window and disable the "Use Simple Box Collision", "Use Simple Line Collision" and "Use Simple Rigid Body Collision" property flags. You also have to make sure that each "Material" slot of the "LODInfo" array property has the "Enable Per Poly Collision" property flag enabled.
 
=="?pawn=" command switch==
 
SonicGDK's code is able to switch the playable character pawn class by appending the "?pawn=" command to the game .exe shortcut. For instance, if you append "?pawn=Sonic"
 
  (UDK dir)\Binaries\Win32\UDK.exe SonicGDKTestMap?game=SonicGDK.SGDKGameInfo?pawn=Sonic
 
the code will detect the "Sonic" string and use the pawn class PawnSonic. If you use "Tails" and you didn't modify the source code of ParsePlayerPawnClass function of SGDKGameInfo class, nothing will occur and the default pawn class will be loaded (PawnSonic).
 
  
 
[[Category:Fan game How-tos]]
 
[[Category:Fan game How-tos]]

Revision as of 07:44, 8 June 2013

A list of tips & tricks worth mentioning for those who want to use SonicGDK.

Editor tooltips

All the objects you place in a map with the Unreal Editor have properties; if you double-click on any of them, or select one of them and press F4, the Object Properties window appears with a list of properties and their values. When you mouse over the name of a property, the editor usually displays tooltips, which are very important if you want to know the effects of modifying a property.

Attachment of objects

Follow this little guide. It's also useful when you want a property of an object to point to another object.

Console commands

Console commands are string-based commands that you can run in the game. Cheats are also console commands; to use them, bring up the console by pressing Tab or Tilde(~), type them in and press Enter.

  • fly: Lets the player fly.
  • ghost: Lets the player fly through walls.
  • walk: Cancels fly and ghost cheat commands.
  • god: Grants permanent invencibility until you type the command again.
  • slomo [number]: Alters the speed of the game to the value specified. 1.0 is 100%.
  • stat fps: Toggles display of frames per second (fps) statistics.
  • show collision: Toggles display of collision primitives.
  • nxvis collision: Shows most of collision shapes.

Sonic Physics mode

The "Sonic Physics mode" that you enable by placing SGDKStaticMeshActors or SonicPhysicsVolumes in a map, must be used only for loopings and walkable walls/steep slopes (greater than 45deg). "Sonic Physics mode" gets easily affected by little extrusions on the ground, so the meshes used with this mode need to be as smooth as possible.

If you want to use a StaticMesh with no simplified collision model for "Sonic Physics mode", you have to open it with the Unreal Static Mesh Editor window and disable the "Use Simple Box Collision", "Use Simple Line Collision" and "Use Simple Rigid Body Collision" property flags. You also have to make sure that each "Material" slot of the "LODInfo" array property has the "Enable Per Poly Collision" property flag enabled.