# Scripting Language extensions via plugins

**URL:** <https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542>\
**Category:** C++\
**Tags:** unreal-engine, Engine-Source-Code, GitHub, Engine-Source-GitHub\
**Created:** [April 30, 2014, 11:55am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542 "2014-04-30T11:55:21Z")\
**Posts on this page:** 20\
**Page:** 11

<div class="post-metadata">

**Author:** ![anonymous\_user\_08a30a81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_08a30a81](https://forums.unrealengine.com/u/anonymous_user_08a30a81)\
**Post date:** [August 26, 2015, 9:07am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/205 "2015-08-26T09:07:41Z")

</div>

Hi guys, I’ve been banging my head against the wall trying to get LUA to work with my UE4 project, thankfully I found this thread and I’m now ready to re-build the UE4 Editor with the LUA Source (still downloading some stuff first).

My question is though, will this plugin give me access to the complete LUA library while I’m coding in VS2013? (I’m porting a lot of Game Logic from a C++ build from an earlier project from a homebrew engine that never got anywhere 😛 )

---

<div class="post-metadata">

**Author:** ![thejustinwalsh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thejustinwalsh/32/464751_2.png) [@thejustinwalsh](https://forums.unrealengine.com/u/thejustinwalsh)\
**Post date:** [September 12, 2015, 10:37am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/206 "2015-09-12T10:37:57Z")

</div>

Is there any information available about how to build the plugin with LUA support into my game project’s Plugins, instead of rebuilding the entire engine with the WITH\_LUA define set to true?

It appears as if it is designed in such a way that I really don’t need any of the WITH\_LUA stuff and can subclass the existing plugins that are included with the engine to create my own version then add the code that is in the WITH\_LUA blocks to my subclassed versions of what is in the engine to make it do the right thing. Is my assumption correct? I really don’t want to have to rebuild the whole engine, and would rather deliver the Lua support via a submodule into each and every projects plugin folder.

Are my assumptions correct? Any pointers or tips to lead me down this path would be appreciated. Never building a UI plugin from scratch is also compounding this process, but that’s my plight, not the creators.

---

<div class="post-metadata">

**Author:** ![Neico](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Neico](https://forums.unrealengine.com/u/Neico)\
**Post date:** [October 23, 2015, 12:22pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/207 "2015-10-23T12:22:11Z")

</div>

I made some small changes to get it to work with 4.10.0: [http://puu.sh/kUA6O/7b1e6eed6b.diff](http://puu.sh/kUA6O/7b1e6eed6b.diff)(it should work on any previous engine version down to 4.8 or even 4.7 as well)

PS: WITH\_PLUGIN\_SUPPORT seems to be only set to 1 when building a game and not the engine itself, that’s why I used it there. Seems kind of hacky though, but it works so whatever…

---

<div class="post-metadata">

**Author:** ![kubecz3k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kubecz3k](https://forums.unrealengine.com/u/kubecz3k)\
**Post date:** [February 16, 2016, 11:33am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/208 "2016-02-16T11:33:02Z")

</div>

This is still supported? Can’t believe this feature is so old and no-one make a good use of it!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d60a3282](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d60a3282](https://forums.unrealengine.com/u/anonymous_user_d60a3282)\
**Post date:** [March 27, 2016, 9:24am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/209 "2016-03-27T09:24:18Z")

</div>

Trying to compile with unreal 4.11 however I’m getting some errors and I’m not sure how to fix

> [@](#):
>
> Failed to produce item: C:\UnrealEngine\Engine\Plugins\ScriptPlugin\Binaries\Win64\UE4Editor-ScriptPlugin.dll UE4 C:\BLOXCityEngine\Engine\Intermediate\ProjectFiles\ERROR 1

> [@](#):
>
> LNK2019 unresolved external symbol “void \_\_cdecl LuaRegisterExportedClasses(struct lua\_State \*)” (?LuaRegisterExportedClasses@@YAXPEAUlua\_State@@@Z) referenced in function “public: virtual bool \_\_cdecl FLuaContext::Initialize(class FString const &,class UObject \*)” (?Initialize@FLuaContext@@UEAA\_NAEBVFString@@PEAVUObject@@@Z) UE4 C:\UnrealEngine\Engine\Intermediate\ProjectFiles\Module.ScriptPlugin.cpp.obj 1

> [@](#):
>
> LNK1120 1 unresolved externals UE4 C:\UnrealEngine\Engine\Plugins\ScriptPlugin\Binaries\Win64\UE4Editor-ScriptPlugin.dll 1

> [@](#):
>
> MSB3073 The command “…\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex” exited with code -1. UE4 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 37

Tried to integrate lua, using instructions and put the lua-5.3.0 folder in the lua folder for scriptPlugins, I compiled lua for 32 and 64 under release, regenerated unreal project files and got the errors above, any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_08c2fdfc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_08c2fdfc](https://forums.unrealengine.com/u/anonymous_user_08c2fdfc)\
**Post date:** [March 28, 2016, 9:07am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/210 "2016-03-28T09:07:28Z")

</div>

Hi guys, Have you tried [Unreal.js](https://github.com/ncsoft/Unreal.js)? This is really promising!

---

<div class="post-metadata">

**Author:** ![Philippe\_St-Amand](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Philippe\_St-Amand](https://forums.unrealengine.com/u/Philippe_St-Amand)\
**Post date:** [April 1, 2016, 7:01pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/211 "2016-04-01T19:01:11Z")

</div>

I really really wish we could get a full-fledged officially-supported scripting language for UE4. I don’t feel like learning any third-party solutions because you never know if the project will be abandoned and if it’s gonna be compatible with future versions.

There are tons of situations where a scripting language would be great to use instead of either blueprints or c++ (making editor tools, fast prototyping, or general gameplay programming for example)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_52cc6b721](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_52cc6b721](https://forums.unrealengine.com/u/anonymous_user_52cc6b721)\
**Post date:** [April 1, 2016, 7:57pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/212 "2016-04-01T19:57:40Z")

</div>

you never know if the project will be abandoned and if it’s gonna be compatible with future versions.  
[/QUOTE]

We will never abandon ! 😃

([Sk UE4 page](https://forums.unrealengine.com/unreal/), Sk UE4 thread) is not a side project - it is what our whole company is based around.

As of the 2016 Game Developers Conference there are about ten AAA games (we will announce them when we can) and around 200 smaller projects (in more than 50 countries) using or about to use .

gets tremendous support from Epic Games and we work with Epic engineers on an almost daily basis. Manuszewski (who created the example Lua plugin on this thread) has been particularly helpful and awesome!

Epic Games also gave so that should indicate their confidence in the project.

We will promptly update the UE4 Plugin for each version of UE4 (usually even the prereleases and the Master branch for Epic staff). For extra security, all source for the UE4 Plugin is available on GitHub so you can tweak it yourself if needed.

There are tons of situations where a scripting language would be great to use instead of either blueprints or c++ (making editor tools, fast prototyping, or general gameplay programming for example)  
[/QUOTE]

Couldn’t agree more. 🆒

The standard version is free and not crippleware. I think you will find it to be awesome and we are continually improving it.

---

<div class="post-metadata">

**Author:** ![its\_manny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@its\_manny](https://forums.unrealengine.com/u/its_manny)\
**Post date:** [April 2, 2016, 9:50am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/213 "2016-04-02T09:50:32Z")

</div>

So… This happened a few days ago, and it would make the full integration of C# without any licensing issues possible:

> [@](#):
>
> Moving the Mono runtime to the MIT license removes barriers to the adoption of C# and .NET in a large number of scenarios, embedded applications, including embedding Mono as a scripting engine in game engines or other applications.

[http://www.mono-project.com/news/2016/03/31/mono-relicensed-mit/](http://www.mono-project.com/news/2016/03/31/mono-relicensed-mit/)

---

<div class="post-metadata">

**Author:** ![Inverness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Inverness](https://forums.unrealengine.com/u/Inverness)\
**Post date:** [April 2, 2016, 8:12pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/214 "2016-04-02T20:12:54Z")

</div>

Wouldn’t integrating a scripting language into UE4 just cause the same issues that made epic abandon UnrealScript in the first place?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_52cc6b721](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_52cc6b721](https://forums.unrealengine.com/u/anonymous_user_52cc6b721)\
**Post date:** [April 29, 2016, 1:09am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/215 "2016-04-29T01:09:21Z")

</div>

The [UE4 Plugin is now available through the Unreal Marketplace](https://www.unrealengine.com/marketplace/) as one of the very first code plugins!

[/images/blog/2016-04-26\_Marketplace\_plugins.png](https://www.unrealengine.com/marketplace/)

We think a lot of people on this thread will love it and should check it out. It’s free!

Also see [our blog post]( about the launch on the Marketplace.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_02700054](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_02700054](https://forums.unrealengine.com/u/anonymous_user_02700054)\
**Post date:** [June 29, 2016, 4:00am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/216 "2016-06-29T04:00:11Z")

</div>

hi,I I met same problem with you.How did you solve it？

> [@amicon;500742](#):
>
> Trying to compile with unreal 4.11 however I’m getting some errors and I’m not sure how to fix
> 
> Tried to integrate lua, using instructions and put the lua-5.3.0 folder in the lua folder for scriptPlugins, I compiled lua for 32 and 64 under release, regenerated unreal project files and got the errors above, any help would be appreciated!

hi,I I met same problem with you.How did you solve it？

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_02700054](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_02700054](https://forums.unrealengine.com/u/anonymous_user_02700054)\
**Post date:** [June 30, 2016, 9:29am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/218 "2016-06-30T09:29:28Z")

</div>

hi,i met the same error in ue4.12.how did you solve it?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_83efa173](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_83efa173](https://forums.unrealengine.com/u/anonymous_user_83efa173)\
**Post date:** [July 16, 2016, 9:30pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/219 "2016-07-16T21:30:53Z")

</div>

Yeah, i get this error too  
LNK2019 unresolved external symbol “void \_\_cdecl LuaRegisterExportedClasses(struct lua\_State \*)” (?LuaRegisterExportedClasses@@YAXPEAUlua\_State@@@Z) referenced in function “public: virtual bool \_\_cdecl FLuaContext::Initialize(class FString const &,class UObject \*)” (?Initialize@FLuaContext@@UEAA\_NAEBVFString@@PEAVUObject@@@Z) UE4 C:\UnrealEngine\Engine\Intermediate\ProjectFiles\Module.ScriptPlugin.cpp.obj 1

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_83efa173](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_83efa173](https://forums.unrealengine.com/u/anonymous_user_83efa173)\
**Post date:** [July 16, 2016, 9:37pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/220 "2016-07-16T21:37:00Z")

</div>

I think support for it has been dropped, which is sad

---

<div class="post-metadata">

**Author:** ![wellbye](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wellbye](https://forums.unrealengine.com/u/wellbye)\
**Post date:** [August 3, 2016, 2:43pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/221 "2016-08-03T14:43:46Z")

</div>

bad news to see unrealua dead

---

<div class="post-metadata">

**Author:** ![wellbye](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wellbye](https://forums.unrealengine.com/u/wellbye)\
**Post date:** [September 13, 2016, 1:29am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/222 "2016-09-13T01:29:47Z")

</div>

[https://answers.unrealengine.com/questions/85573/master-branch-error-c-c-pch-clash.html](https://answers.unrealengine.com/questions/85573/master-branch-error-c-c-pch-clash.html)

according to this answer, the ScriptPlugin could even not compile now.

---

<div class="post-metadata">

**Author:** ![hiili](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hiili](https://forums.unrealengine.com/u/hiili)\
**Post date:** [September 14, 2016, 2:22pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/223 "2016-09-14T14:22:14Z")

</div>

For the record, at least the following ScriptPlugin-based projects seem to be alive:

> **[GitHub - facebookarchive/UETorch: A Torch plugin for Unreal Engine 4.](https://github.com/facebookarchive/UETorch)**
>
> A Torch plugin for Unreal Engine 4. Contribute to facebookarchive/UETorch development by creating an account on GitHub.

> **[Lua Script plugin](https://forums.unrealengine.com/showthread.php?118528-Lua-Script-plugin)**
>
> I started this plugin as learning project. It is based on ideas from the Engine script plugin and also the Javascript plugin by ncsoft. The purpose was to work my way through some use cases for scripting with Lua. I also decided to use SWIG for the...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_90ef98b41](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_90ef98b41](https://forums.unrealengine.com/u/anonymous_user_90ef98b41)\
**Post date:** [November 19, 2016, 10:15pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/224 "2016-11-19T22:15:45Z")

</div>

Started a project and wanted to use lua. Sad to see no support for it or see anyone already put the work in to export engine API to lua considering how powerful and fast lua is. I’ve used lua for the last 10 years and it is by far one of the best scripting languages out there for gaming, especially when when using luaJIT in it’s place.

> [@hiili;594586](#):
>
> For the record, at least the following ScriptPlugin-based projects seem to be alive:
> 
> [GitHub - facebookarchive/UETorch: A Torch plugin for Unreal Engine 4.](https://github.com/facebook/UETorch)  
> [Lua Script plugin - Architecture - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?118528-Lua-Script-plugin)

No third-party script plugin is going to have the power and effortlessness lua offers. You can practically write an entire game before you get a grasp of the syntax of one of these.

---

<div class="post-metadata">

**Author:** ![Zeblote](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zeblote](https://forums.unrealengine.com/u/Zeblote)\
**Post date:** [November 23, 2016, 9:47am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/225 "2016-11-23T09:47:09Z")

</div>

There’s some scripting language related stuff on the roadmap for december, but they’re being very vague as usual…

[Previous page](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542.md?page=10)

[Next page](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542.md?page=12)
