# Is there any way to create the code files for a project that was not created as a code based project type?

**URL:** <https://forums.unrealengine.com/t/is-there-any-way-to-create-the-code-files-for-a-project-that-was-not-created-as-a-code-based-project-type/275589>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine, documentation, UE4, CPP, question\
**Created:** [March 11, 2014, 2:30am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-create-the-code-files-for-a-project-that-was-not-created-as-a-code-based-project-type/275589 "2014-03-11T02:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 2:30am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-create-the-code-files-for-a-project-that-was-not-created-as-a-code-based-project-type/275589/1 "2014-03-11T02:30:45Z")

</div>

Is there any way to create the code files for a project that was not created as a code based project type?

I am working on a game project and am one of the few coders, our group has many talented 3D artists and musicians.  
I have the entire dev environment set up and am able to work with the coding and blueprint samples. The project I need to write code for was migrated from the older UDK before Rocket, there is a project file but no actual project code can be generated. In the editor there is no “Compile” menu and if I use the “Add Code To Project (C++)” wizard I keep getting “Failed to Create Project Files!”

Is there a way somehow make it possible to add code to this project? Even if I have to re-create the project and import all the assets, not sure how to do that, need help.?

---

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 2:30am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-create-the-code-files-for-a-project-that-was-not-created-as-a-code-based-project-type/275589/2 "2014-03-11T02:30:45Z")

</div>

Hi Reginald,

For any project (even Blank and Blueprint ones) you should be able to use **Add Code to Project** and have it successfully create new project files.

Are you using an up-to-date version of Visual Studio 2012?

Cheers

---

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 2:30am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-create-the-code-files-for-a-project-that-was-not-created-as-a-code-based-project-type/275589/3 "2014-03-11T02:30:46Z")

</div>

I’m a little confused as to what’s going on on your end - but if you don’t have a code project, then there’s obviously nothing for you to add code to in the first place - instead your game classes are blueprints derived from existing Rocket classes.

I would create a new _code_ project inside of Rocket, then quickly copy your material across to this new project.
