Building PSUnreal on Windows: Difference between revisions

From PSwiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:


== Compiling ==
* Generate project files, by right clicking on MyProject2.uproject and "Generate Visual Studio project files"
* Generate project files, by right clicking on MyProject2.uproject and "Generate Visual Studio project files"
* Open Visual Studio '''2015'''
* Open Visual Studio '''2015'''
Line 15: Line 16:
* Cook your content with C:\Luca\UnrealEngine\Engine\Binaries\Win64\UE4Editor-cmd.exe "C:\Users\Luke\Documents\Unreal Projects\MyProject2\MyProject2.uproject" -run=cook -targetplatform=Windows
* Cook your content with C:\Luca\UnrealEngine\Engine\Binaries\Win64\UE4Editor-cmd.exe "C:\Users\Luke\Documents\Unreal Projects\MyProject2\MyProject2.uproject" -run=cook -targetplatform=Windows


== Launching the client ==
All non-editor builds require cooked content, however, you can run an editor build with the "-game" command line flag to run the game directly using the editor data; please note however that this will be slower than a cooked build as the editor is essentially processing assets on the fly.


There are different ways to launch the client in debug mode:
There are different ways to launch the client in debug mode:
Line 29: Line 34:
* From VS properties on MyProject2 remove -game from command line
* From VS properties on MyProject2 remove -game from command line
* It will launch the Editor, then you press "Play" in the editor. The breakpoints placed in VS are working as expected.
* It will launch the Editor, then you press "Play" in the editor. The breakpoints placed in VS are working as expected.
== Launching the server ==

Revision as of 17:15, 6 March 2016

Compiling

  • Generate project files, by right clicking on MyProject2.uproject and "Generate Visual Studio project files"
  • Open Visual Studio 2015
  • Open MyProject2.sln
  • Select "UE4" project from the left tree view and "DebugGame Editor" as configuration from the top dropdown
  • Compile
  • Select "UE4" project from the left tree view and "DebugGame Client" as configuration from the top dropdown
  • Compile
  • Select "MyProject2" project from the left tree view and "DebugGame Client" as configuration from the top dropdown
  • Compile
  • Select "MyProject2" project from the left tree view and "DebugGame Editor" as configuration from the top dropdown
  • Compile
  • Select "MyProject2" project from the left tree view and "DebugGame Server" as configuration from the top dropdown
  • Compile
  • Cook your content with C:\Luca\UnrealEngine\Engine\Binaries\Win64\UE4Editor-cmd.exe "C:\Users\Luke\Documents\Unreal Projects\MyProject2\MyProject2.uproject" -run=cook -targetplatform=Windows


Launching the client

All non-editor builds require cooked content, however, you can run an editor build with the "-game" command line flag to run the game directly using the editor data; please note however that this will be slower than a cooked build as the editor is essentially processing assets on the fly.

There are different ways to launch the client in debug mode:

1)

  • Select the DebugGameEditor configuration
  • From VS properties on MyProject2 add command line -debug -game
  • It will launch directly without going through the editor

2)

  • Select the DebugGameEditor configuration
  • From VS properties on MyProject2 remove -game from command line
  • It will launch the Editor, then you press "Play" in the editor. The breakpoints placed in VS are working as expected.

Launching the server