<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://planeshift.top-ix.org//pswiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jerrybradshaw</id>
	<title>PSwiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://planeshift.top-ix.org//pswiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jerrybradshaw"/>
	<link rel="alternate" type="text/html" href="https://planeshift.top-ix.org//pswiki/index.php/Special:Contributions/Jerrybradshaw"/>
	<updated>2026-04-07T06:36:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://planeshift.top-ix.org//pswiki/index.php?title=Building_PSUnreal_on_Windows&amp;diff=23517</id>
		<title>Building PSUnreal on Windows</title>
		<link rel="alternate" type="text/html" href="https://planeshift.top-ix.org//pswiki/index.php?title=Building_PSUnreal_on_Windows&amp;diff=23517"/>
		<updated>2020-08-28T23:09:47Z</updated>

		<summary type="html">&lt;p&gt;Jerrybradshaw: updated MariaDB to newer version... old version not available anymore, fixed typo with path name of cited windows folder.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Reference docs ==&lt;br /&gt;
&lt;br /&gt;
Check this page as reference: https://wiki.unrealengine.com/Dedicated_Server_Guide_%28Windows_%26_Linux%29&lt;br /&gt;
&lt;br /&gt;
There are two ways to compile and run your project:&lt;br /&gt;
 * Compiling the editor and then running/debugging the game within the editor. Please note VS breakpoints will work also in this mode. THIS IS THE ONE WE USE AS DEFAULT.&lt;br /&gt;
 * Compiling the client without editor, and you will then need cooked content (prepared art files). All non-editor builds require cooked content, however, you can run an editor build with the &amp;quot;-game&amp;quot; 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.&lt;br /&gt;
&lt;br /&gt;
== Compiling Unreal Engine ==&lt;br /&gt;
&lt;br /&gt;
High level steps:&lt;br /&gt;
&lt;br /&gt;
* Step 1:  Register an account at UnrealEngine and GitHub&lt;br /&gt;
* Step 2:  Add your GitHub username to in your UnrealEngine profile under your dashboard&lt;br /&gt;
* Step 3:  Download the source code from UE4 Repo&lt;br /&gt;
** list remote branches with: git ls-remote https://github.com/EpicGames/UnrealEngine.git&lt;br /&gt;
** get source code with: git clone -b 4.25.2-release https://github.com/EpicGames/UnrealEngine.git&lt;br /&gt;
** this will create a &amp;quot;Unreal Engine&amp;quot; directory as child of the dir where you run the command&lt;br /&gt;
* Step 4:  Install Visual Studio 2017, follow [https://docs.unrealengine.com/en-us/Programming/Development/VisualStudioSetup#optionsforanewvisualstudioinstallation these instructions] to get the right components in your Visual Studio&lt;br /&gt;
* Step 5:  Run Setup.bat to download and install the prerequisites&lt;br /&gt;
* Step 6:  Run GenerateProjectFiles.bat to make project files&lt;br /&gt;
** if it complains about windows 8.1 sdk, just install it from [https://developer.microsoft.com/en-us/windows/downloads/windows-8-1-sdk here]&lt;br /&gt;
** If you get the error &amp;quot;The reference assemblies for framework &amp;quot;.NETFramework,Version=v4.6.2&amp;quot; were not found.&amp;quot; just install it from [https://www.microsoft.com/en-us/download/details.aspx?id=53321 here]&lt;br /&gt;
* Step 7:  If you dont have it yet, you need to make an account to login to Visual Studio.&lt;br /&gt;
* Step 8:  Launch Visual Studio, open UE4.sln and Build Unreal Engine 4 with Development Editor configuration and Win64 Platform&lt;br /&gt;
* Step 9: Copy F:\UnrealEngine\Engine\Source\ThirdParty\zlib\v1.2.8\lib\Win64\VS2015\zlib.dll to F:\Unreal Projects\MyProject2\PSUnreal\Binaries\Win64&lt;br /&gt;
* Step 10:  Run the UE4Editor.exe from Engine\Binaries\Win64\ subdirectory&lt;br /&gt;
&lt;br /&gt;
== Compiling PSUnreal ==&lt;br /&gt;
&lt;br /&gt;
You need to install MariaDB Connector from: https://mariadb.com/downloads/#connectors&lt;br /&gt;
&lt;br /&gt;
* Select C connector , version 3.1.9GA and MS Windows (64-bit) as platform&lt;br /&gt;
* It will install it in C:\Program Files\MariaDB\MariaDB Connector C 64-bit&lt;br /&gt;
* From the MariaDB install directory, copy both lib/ and include/ (with subfolders) into PSUnreal\ThirdParty\MariaDB\&lt;br /&gt;
&lt;br /&gt;
Compile Wordnet&lt;br /&gt;
* Open PSUnreal\ThirdParty\Wordnet\Wordnet.sln with Visual Studio&lt;br /&gt;
* Click on Compile&lt;br /&gt;
* Copy this file: PSUnreal\ThirdParty\Wordnet\x64\Debug\Wordnet.lib in PSUnreal\ThirdParty\Wordnet\lib\x64\Wordnet.lib&lt;br /&gt;
&lt;br /&gt;
In this mode you will use the Editor to run/debug the game&lt;br /&gt;
&lt;br /&gt;
* Generate project files, by right clicking on PSUnreal.uproject and &amp;quot;Generate Visual Studio project files&amp;quot;&lt;br /&gt;
* Open Visual Studio &#039;&#039;&#039;2017&#039;&#039;&#039;&lt;br /&gt;
* Open PSUnreal.sln&lt;br /&gt;
* Select &amp;quot;PSUnreal&amp;quot; project from the left tree view and &amp;quot;DebugGame Editor&amp;quot; as configuration from the top dropdown&lt;br /&gt;
* NOTE: DebugGame configuration builds the engine as optimized, but leaves the game code debuggable. This configuration is ideal for debugging only game modules.&lt;br /&gt;
* Compile&lt;br /&gt;
&lt;br /&gt;
== Preparing the server ==&lt;br /&gt;
&lt;br /&gt;
* Install mysql server and launch it&lt;br /&gt;
* Create the PlaneShift database&lt;br /&gt;
  &amp;gt; mysql -u username -ppassword&lt;br /&gt;
&lt;br /&gt;
* IF you get &#039;mysql&#039; is not recognized command, means windows cannot find it. Do the following&lt;br /&gt;
** press start, type &amp;quot;advanced setting&amp;quot;, the click on &amp;quot;View advanced system settings&amp;quot;&lt;br /&gt;
** Click on &amp;quot;Environment Variables&amp;quot; at the bottom&lt;br /&gt;
** Click on PATH line, end &amp;quot;Edit&amp;quot;.&lt;br /&gt;
** Then click on &amp;quot;New&amp;quot; to add a new element in the PATH variable&lt;br /&gt;
** Copy paste the directory where your mysql.exe is , for me is &amp;quot;F:\Develop\MySQL\MySQL Server 5.5\bin&amp;quot;&lt;br /&gt;
** Click on OK on both windows to apply&lt;br /&gt;
** open A NEW command prompt, now it will work&lt;br /&gt;
&lt;br /&gt;
The default username is root with no password.&lt;br /&gt;
&lt;br /&gt;
Then from within mysql:&lt;br /&gt;
&lt;br /&gt;
  mysql&amp;gt; create database planeshift;&lt;br /&gt;
  mysql&amp;gt; GRANT ALL PRIVILEGES ON planeshift.* TO planeshift@localhost IDENTIFIED BY &#039;planeshift&#039;;&lt;br /&gt;
  mysql&amp;gt; quit&lt;br /&gt;
&lt;br /&gt;
  &amp;gt; cd PSUnreal\Scripts&lt;br /&gt;
  &amp;gt; mysql -u planeshift -pplaneshift&lt;br /&gt;
&lt;br /&gt;
  mysql&amp;gt; use planeshift;&lt;br /&gt;
  mysql&amp;gt; source psunreal_mysql_20200401.sql;&lt;br /&gt;
  mysql&amp;gt; quit&lt;br /&gt;
&lt;br /&gt;
* To test if you can connect to your database install: https://dbeaver.io/&lt;br /&gt;
* Provide the connect information : locahost , port 3306, you should see the planeshift schema with a set of tables.&lt;br /&gt;
&lt;br /&gt;
== Launching the server and client ==&lt;br /&gt;
&lt;br /&gt;
There are different ways to launch the client in debug mode:&lt;br /&gt;
&lt;br /&gt;
1) PREFERRED. PSUnreal\Scripts\client.bat (you may need to adapt the path to your installation)&lt;br /&gt;
&lt;br /&gt;
2) From Visual Studio&lt;br /&gt;
* Select the DebugGameEditor configuration&lt;br /&gt;
* From VS properties on PSUnreal add command line -debug -game&lt;br /&gt;
* It will launch directly without opening the editor app&lt;br /&gt;
&lt;br /&gt;
3) From Visual Studio with the Editor first&lt;br /&gt;
* Select the DebugGameEditor configuration&lt;br /&gt;
* From VS properties on PSUnreal remove -game from command line&lt;br /&gt;
* It will launch the Editor, then you press &amp;quot;Play&amp;quot; in the editor. The breakpoints placed in VS are working as expected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to launch the server:&lt;br /&gt;
1) PREFERRED. Use PSUnreal\Scripts\server.bat (you may need to adapt the path to your installation)&lt;br /&gt;
&lt;br /&gt;
2) from VS:&lt;br /&gt;
* Select the &amp;quot;DebugGame Editor&amp;quot; configuration (if you select Development Editor then the Editor will start instead of the server)&lt;br /&gt;
* From VS properties on PSUnreal , select &amp;quot;Debugging&amp;quot; and then add this in the command line: -server -log&lt;br /&gt;
* The resulting property will be like: &amp;quot;$(SolutionDir)$(ProjectName).uproject&amp;quot; -server -log&lt;br /&gt;
* It will launch directly without going through the editor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Updating your database ==&lt;br /&gt;
&lt;br /&gt;
From time to time a new database is posted under \Scripts, example: psunreal_mysql_20200401.sql&lt;br /&gt;
&lt;br /&gt;
To update your database you need to:&lt;br /&gt;
&lt;br /&gt;
  &amp;gt; cd PSUnreal\Scripts&lt;br /&gt;
  &amp;gt; mysql -u root -p&lt;br /&gt;
  &lt;br /&gt;
  mysql&amp;gt; drop database planeshift;&lt;br /&gt;
  mysql&amp;gt; create database planeshift;&lt;br /&gt;
  mysql&amp;gt; GRANT ALL PRIVILEGES ON planeshift.* TO planeshift@localhost IDENTIFIED BY &#039;planeshift&#039;;&lt;br /&gt;
  mysql&amp;gt; quit&lt;br /&gt;
&lt;br /&gt;
  &amp;gt; mysql -u planeshift -pplaneshift&lt;br /&gt;
&lt;br /&gt;
  mysql&amp;gt; use planeshift;&lt;br /&gt;
  mysql&amp;gt; source psunreal_mysql_20200401.sql;&lt;br /&gt;
  mysql&amp;gt; quit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== cmake command for libzip ===&lt;br /&gt;
  mkdir build&lt;br /&gt;
  cd build&lt;br /&gt;
  C:\PSUnreal\ThirdParty\Libzip\libzip\build&amp;gt;&amp;quot;F:\My Programs\Develop\CMake\bin\cmake&amp;quot; -DZLIB_LIBRARY=C:\UnrealEngine\Engine\Source\ThirdParty\zlib\v1.2.8\lib\Win64\VS2015\Release\zlibstatic.lib -DZLIB_INCLUDE_DIR=C:\UnrealEngine\Engine\Source\ThirdParty\zlib\v1.2.8\include -DENABLE_COMMONCRYPTO=OFF -DENABLE_GNUTLS=OFF -DENABLE_MBEDTLS=OFF -DENABLE_OPENSSL=OFF -DENABLE_WINDOWS_CRYPTO=OFF -DENABLE_BZIP2=OFF -DENABLE_LZMA=OFF -G &amp;quot;Visual Studio 15 2017 Win64&amp;quot; ..&lt;/div&gt;</summary>
		<author><name>Jerrybradshaw</name></author>
	</entry>
</feed>