[Question] ShooterTeamStart

another, probably simple question. In the ShooterGame example files, they created some “custom player starts”. Im interested in doing the same, however so far I havent been able to create any files inside visual studio without errors(I have to use the add code to project from inside Rocket).
Im wondering, since there isnt an actual class for the player starts, and as far as I can tell no other way to generate code from inside Rocket, how did you guys at epic manage to create the custom player starts for your game?

-Nate

Hi Nathan,

There is a class UPlayerStart that you can extend if you want to add additional properties to it.

However, in ShooterGame the default PlayerStart is used and the function on AShooterGameMode ChoosePlayerStart is used to pick where to start the player.

I hope this helps get you started. As for your other issue with not being able to add code, if the issue is still persisting, and you have not already, I suggest that you please make a new UDN post dedicated solely to that issue with as much information as possible for troubleshooting. We try to keep each post focused on just one issue, for ease of answering.

Thanks

I can’t answer your player-start specific question at this time because it is not as relevant as you being able to generate code outside of rocket.

You really can do that, and you should work on getting that working first before trying to make new game mechanics :slight_smile:

I have a thread on getting up and running with VS 2012 and compiling code outside of rocket here:

http://forums.epicgames.com/threads/972861-36-TUTORIALS-C-for-UE4-gt-gt-New-Algorithm-Analysis-Obtain-Animated-Vertex-Locations

Rama

PS: Also I have never once added code from within Rocket, so I’m clearly letting you know there is an alternative workflow you should consider getting up and running before focusing on individual game mechanics to add via code.

Ive done the VS setup tutorial a couple times, verifying I have everything setup(I miss python a lot sometimes)
Maybe Im just not creating the headers/cpp files properly?
right click on Source->add->New item->whatever.cpp & whatever.h

add the //copyright
add includes
add class the FPCIP in the cpp and the class declaration in the header with the appropriate names

I get these errors 100% of the time:

    1>  Errors detected while compiling C:\Game\SteamPunk\Intermediate\BuildData\BuildRules\SteamPunkModuleRules.dll:
    1>c:\Game\SteamPunk\Source - Copy\SteamPunk\SteamPunk.Build.cs(5,14): error CS0101: The namespace '' already contains a definition for 'SteamPunk'
    1>c:\Game\SteamPunk\Source - Copy\SteamPunk.Target.cs(6,14): error CS0101: The namespace '' already contains a definition for 'SteamPunkTarget'
    1>c:\Game\SteamPunk\Source - Copy\SteamPunkEditor.Target.cs(6,14): error CS0101: The namespace '' already contains a definition for 'SteamPunkEditorTarget'
    1>EXEC : error : UnrealBuildTool encountered an error while compiling source files