# 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:** 8\
**Page:** 12

<div class="post-metadata">

**Author:** ![Anonymous\_dd56a58405288d59cf93311503aeeb3e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_dd56a58405288d59cf93311503aeeb3e](https://forums.unrealengine.com/u/Anonymous_dd56a58405288d59cf93311503aeeb3e)\
**Post date:** [January 10, 2017, 2:17am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/227 "2017-01-10T02:17:49Z")

</div>

> [@;341339](#):
>
> @CTxCB, It seems to me you have done everything right, but the missing of ‘GeneratedScriptLibraries.inl’ indicated that the “ScriptGeneratorPlugin” is not actually running.
> 
> Can you double check that Lua.lib is in correct folder?
> 
> ```auto
> 
> Engine\Plugins\ScriptPlugin\Source\Lua\Lib\Win64\Release\Lua.lib
> 
> ```
> 
> And tried to rebuild UnrealHeaderTool project, then build engine again, you should be able to find ‘GeneratedScriptLibraries.inl’ in:
> 
> ```auto
> 
> Engine\Plugins\ScriptPlugin\Intermediate\Build\Win64\UE4Editor\Inc\ScriptPlugin\GeneratedScriptLibraries.inl
> 
> ```

Hi, i try to build the lua Script, i had build the lua.sln and have lib in Lib\Release\win32(win64), but when i build the ue4.sln , have link error like:void \_\_cdecl LuaRegisterExportedClasses(struct lua\_State \*)" (?LuaRegisterExportedClasses@@YAXPEAUlua\_State@@@Z), public: virtual bool \_\_cdecl FLuaContext::Initialize(class FString const &,class UObject \*)" (?Initialize@FLuaContext@@UEAA\_NAEBVFString@@PEAVUObject@@@Z)

i also check the GeneratedScriptLibraries.inl file , it not exit my folder. what happen?

---

<div class="post-metadata">

**Author:** ![asqbtcupid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@asqbtcupid](https://forums.unrealengine.com/u/asqbtcupid)\
**Post date:** [February 10, 2017, 4:36am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/228 "2017-02-10T04:36:23Z")

</div>

> [@Revolucas;626012](#):
>
> 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.
> 
> 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.

you can try my plugin,It works. [https://github.com/asqbtcupid/unreal.lua/tree/demo\_firstperson\_umg](https://github.com/asqbtcupid/unreal.lua/tree/demo_firstperson_umg)

---

<div class="post-metadata">

**Author:** ![Anonymous\_a19d59034db05e4cb5e0434550a72446](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a19d59034db05e4cb5e0434550a72446](https://forums.unrealengine.com/u/Anonymous_a19d59034db05e4cb5e0434550a72446)\
**Post date:** [May 2, 2017, 2:12am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/229 "2017-05-02T02:12:51Z")

</div>

> [@alphawerewolf;648711](#):
>
> Hi, i try to build the lua Script, i had build the lua.sln and have lib in Lib\Release\win32(win64), but when i build the ue4.sln , have link error like:void \_\_cdecl LuaRegisterExportedClasses(struct lua\_State \*)" (?LuaRegisterExportedClasses@@YAXPEAUlua\_State@@@Z), public: virtual bool \_\_cdecl FLuaContext::Initialize(class FString const &,class UObject \*)" (?Initialize@FLuaContext@@UEAA\_NAEBVFString@@PEAVUObject@@@Z)
> 
> i also check the GeneratedScriptLibraries.inl file , it not exit my folder. what happen?

hi.I have the same error.I debuged the UHT and I fond the ScriptGeneraterPlugin.dll is not properly loaded by UHT because the dll name is not proper for the UHT style.UHT load dll use the name likely AAA-Win64-Debug.dll,but my ScriptGeneraterPlugin.dll is auto generated named not UHT style.have you solve the error?

---

<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:** [May 17, 2017, 12:09pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/230 "2017-05-17T12:09:29Z")

</div>

> [@星河微尘;702733](#):
>
> hi.I have the same error.I debuged the UHT and I fond the ScriptGeneraterPlugin.dll is not properly loaded by UHT because the dll name is not proper for the UHT style.UHT load dll use the name likely AAA-Win64-Debug.dll,but my ScriptGeneraterPlugin.dll is auto generated named not UHT style.have you solve the error?

I just tried to get this to build too… noticed a few things:

- You need to use a game project that you created with a source built engine, the UE4 solution itself does not work
- It seems hard to get the UHT plugin to actually compile. You need to rebuilt UHT and then build your game project for it to notice it
- It does generate lua bindings, but they are not included anywhere for some reason… I added them in ScriptPlugin.cpp at the bottom
- The generated lua bindings are quite out of date and don’t compile due to changes in the engine

---

<div class="post-metadata">

**Author:** ![Anonymous\_a19d59034db05e4cb5e0434550a72446](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a19d59034db05e4cb5e0434550a72446](https://forums.unrealengine.com/u/Anonymous_a19d59034db05e4cb5e0434550a72446)\
**Post date:** [May 18, 2017, 6:48am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/231 "2017-05-18T06:48:55Z")

</div>

> [@Zeblote;710259](#):
>
> I just tried to get this to build too… noticed a few things:
> 
> - You need to use a game project that you created with a source built engine, the UE4 solution itself does not work
> - It seems hard to get the UHT plugin to actually compile. You need to rebuilt UHT and then build your game project for it to notice it
> - It does generate lua bindings, but they are not included anywhere for some reason… I added them in ScriptPlugin.cpp at the bottom
> - The generated lua bindings are quite out of date and don’t compile due to changes in the engine

Oh,that is to say we can not use lua in ue4 any more,bad news.do you use any other script language for ue4 now?

---

<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:** [May 18, 2017, 11:27am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/232 "2017-05-18T11:27:26Z")

</div>

> [@星河微尘;710609](#):
>
> Oh,that is to say we can not use lua in ue4 any more,bad news.do you use any other script language for ue4 now?

It’s not that we can’t use lua anymore, just the example lua plugin is a bit broken at the moment. You’ll have to make your own, or maybe try the one 4 posts up

---

<div class="post-metadata">

**Author:** ![Anonymous\_a19d59034db05e4cb5e0434550a72446](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_a19d59034db05e4cb5e0434550a72446](https://forums.unrealengine.com/u/Anonymous_a19d59034db05e4cb5e0434550a72446)\
**Post date:** [May 19, 2017, 8:41am UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/233 "2017-05-19T08:41:41Z")

</div>

> [@Zeblote;710691](#):
>
> It’s not that we can’t use lua anymore, just the example lua plugin is a bit broken at the moment. You’ll have to make your own, or maybe try the one 4 posts up

the problem is :there are so many functions need to be exported to lua,but i don’t know how to export by tools,it is impossible to make it one by one.

---

<div class="post-metadata">

**Author:** ![mihe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mihe](https://forums.unrealengine.com/u/mihe)\
**Post date:** [October 2, 2017, 2:35pm UTC](https://forums.unrealengine.com/t/scripting-language-extensions-via-plugins/3542/234 "2017-10-02T14:35:31Z")

</div>

@ - Is there any trick to getting script-defined functions to show up in the actions/suggestions/right-click list in Blueprint graphs?

I’ve verified that CreateScriptDefinedFunction gets called in FScriptBlueprintCompiler::CreateFunctionList and everything seems to be working fine, but no matter what I do the generated functions won’t show up in the actions list in any graph editor (with or without context-sensitivity).

Are functions added through CreateFunctionContext() supposed to show up in the actions list just like normal UFUNCTION’s?

I’m on UE 4.17.1, if that matters.

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