# Cannot package project due to use of a Factory

**URL:** <https://forums.unrealengine.com/t/cannot-package-project-due-to-use-of-a-factory/354063>\
**Category:** Platform & Builds\
**Tags:** package, unreal-engine, CPP, question\
**Created:** [April 13, 2016, 6:30pm UTC](https://forums.unrealengine.com/t/cannot-package-project-due-to-use-of-a-factory/354063 "2016-04-13T18:30:33Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [August 2, 2016, 11:30pm UTC](https://forums.unrealengine.com/t/cannot-package-project-due-to-use-of-a-factory/354063/8 "2016-08-02T23:30:53Z")

</div>

UFactory is declared at:

Module: UnrealEd

Header: **Editor/UnrealEd** /Classes/Factories/Factory.h

You cannot package a game shipping Editor modules. If you want to use factories, you must create a Module with IMPLEMENT\_MODULE() macro and create your factories in there; making sure that module will NOT be loaded by GAME modules. This is why your packaging fails, because you implement references to classes that are Editor only.

To create an Editor Module for your game project, look at a guide here:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

_[View the full topic](https://forums.unrealengine.com/t/cannot-package-project-due-to-use-of-a-factory/354063)._
