Package Project

发布于:2024-11-21


Package Method

Method 1:

  1. Place the Meta plugin in the Plugins/Marketplace folder of the Unreal Engine. If there is no Marketplace folder, create one.

  2. Open the UE project and package the project.

Method 2 (Only applicable for CPP projects):

  1. Place the Meta plugin in the Plugins folder of the project.

  2. (Recommended) Delete the Intermediate, Build, and Binaries folders under the project folder to avoid packaging failures due to unclean projects.

  3. Right-click on the .uproject file and click on "Generate Visual Studio project files".

  4. Open the .sln file with Visual Studio 2019 and compile the project.

  5. Open the UE project and package the project.

Before uncommenting in the plugin, do not compile and start UE, otherwise, there may be missing modules such as Style3DMesh. If uncommenting still prompts missing modules, follow these steps:

  1. Unzip the plugin again and copy it to the project.

  2. Uncomment modules.

  3. Generate Visual Studio project files, compile, and start UE.

About account login(Very Important!)

  • Must use blueprint or c++ API to build a login function for your app(See the Chapter "Authentication login").

  • A GUI or command line that can input account name and password is suggested. Otherwise you have to write account login info into your blueprint or c++ code (this method is easy but not good enough, because the account info can not be changed after package the project).

  • One account can only login on one machine at the same time, so multiple accounts are needed if you want to run app on multiple machines.

Q&A

  1. Additional hierarchy in plugin location causes packaging errors. Plugins must be installed according to specified hierarchy,

  • Install in the Engine directory, UE5.2/Plugins/Marketplace

    Comment

  • Install in the project directory, Project/Plugins Choose one of the above, and plugins must not have additional hierarchy. For example, installing in the project directory as Project/Plugins/Marketplace, with an extra "Marketplace" level, will cause packaging errors.

  1. When packaging a UE5 project, encountering the error "ERROR: Expecting to find a type to be declared in a module rules named…",

  • try the method 2.

  1. When using the source code to compile Unreal Engine, if you encounter an error during packaging indicating that "Style3DMesh.precompiled" cannot be found, you can resolve it by modifying the "Style3DMesh.Build.cs" file located in the SDK directory at "SDK Catalogue/Source/Style3DMesh/Style3DMesh.Build.cs".

At the bottom of the file, uncomment the line that calls the function "CopyIntermediateDirForSourceCodeBuildEngine". It should look like this:

if (!(Target.Type == TargetType.Editor))

{

// Enable it only when your unreal engine was built with source code

CopyIntermediateDirForSourceCodeBuildEngine(Target);

}

After making this change, try packaging again, and the error should be resolved.


Submit Feedback