Sluaunreal Versions Save

lua dev plugin for unreal engine 4 or 5

2.1.3

2 months ago

bug fixes:

  1. Fixed TArray member access as binary string instead of TArray type.
  2. Fixed TArray<TEnumAsByte<EnumType>> member access as TArray instead of binary string type.
  3. Fixed UUserDefinedEnum access error: GetDisplayNameTextByIndex API may receive Localized Text as Source Text, which will cause a nil value to be returned.
  4. lua replicated:
    • Fixed: values also have their shadow data participate in GC marking to prevent wild pointers.
    • Fixed: Changed the Value Type of ClassLuaReplicatedMap class to pointer type to avoid memory invalidation bug caused by Resize.
    • Fixed: Lua值复制类型为Array时,Array扩容的情况下old data没有及时更新导致的不同步。
    • Fixed the shared serialization copy error when the Lua replication type is set to Array.
    • Fixed:Out of range in FLuaNetSerialization::Write with arraySharedSerializetion SharedPropertyInfo.
  5. Remove the restriction of assigning values to ReadOnly Properties in Lua.
  6. Fixed: Value misalignment when iterating through UObject and UStruct: when encountering types such as Struct, Array, Map, and Set, the value of the previous member variable will be overwritten. eg.
local SluaTestCase=import('SluaTestCase');
local t=SluaTestCase()
for k, v in pairs(t) do
    print("SluaTestCase iter", k, v)
end
print("SluaTestCase weakptr:", t.weakptr) --error: t.weakptr will be LuaArray instead of uobject type.
  1. Fixed memory leak caused by the assignment error in returnProperty, which resulted in the failure to destruct the return value by returnProperty->DestroyValue_InContainer(locals).
  2. Fixed When executing the ProcessContextOpcode bytecode and triggering the luaOverrideFunc function, the lack of destruction of the initialized parameters in Stack.Step(Code) leads to memory leaks.
  3. Standardize the processing of FLantent type parameters: change from name-based determination to more accurate Property type determination.
  4. Add wrapper struct type check in the checkValue operator.
  5. Fixed:luaFuncClosure cache with CDO override type Object will incorrectly replace "Instance" override type Object's pure lua function.

2.1.2

6 months ago
  1. 修复luaReplicatedIndex初始化错误等
  2. 调整一些类的 _PostConstruct 函数调用时机
  3. 添加ALuaPawn、ALuaCharacter类
  4. 删除一些老版本开关代码

2.1.1

6 months ago
  1. Add support for FSoftObjectPtr struct, FSoftObjectProperty, and FSoftClassProperty.
  2. Lua defined Net Replication Property usage optimise, eg:
function LuaGameState:GetLifetimeReplicatedProps()
    local FVectorType = import("Vector")
    { "Position", ELifetimeCondition.COND_SimulatedOnly, FVectorType},
end

before:
self.Position.X = 100
self.Position = self.Position

after:
self.Position.X = 100

Not need to write "self.Position = self.Position".

  1. Update LuaWrapper tool and corresponding code.
  2. Fixed RPC function cleanup bug.
  3. Allow Lua and Blueprint classes to inherit without strict correspondence, solving the problem of generating multiple RPC functions with the same name.
  4. Fixed lua replicated bugs.
  5. Support Unreal Engine 5.3

2.1.0

10 months ago

Stable version verified in PUBG Mobile. 1、Add AddLuaNetListener/RemoveLuaNetListener API for lua net property monitoring. 2、Optimise GC :The Override object of the Instance type performs cache processing when calling a Lua function through userdata to prevent generating a closure every time it is called. 3、UEnum optimization:UEnum type maybe got nil because FName Case Insensitive. 4、Add struct clone api,eg: FVector():clone() 5、fixed many bugs

2.0.2

11 months ago

2.0.1

11 months ago

2.0.0

1 year ago

slua unreal 2.0.0 version.

1.3.3

3 years ago

fix #344 fix #349 fix #350 fix #351 fix #352 fix #363 fix #364 many minor fixes

1.3.2

3 years ago

fix building error on UE 4.24 add type information to CheckSelf while object had free. fix #323 fix #330 fix #290 fix replace-all mistake to gc a value type

1.3.1

3 years ago

fix #290 fix #306 fix value removed on luamap collected an element fixed native memory leak while call ufuncClosure! fix memory leak in LuaBase and compatible with UE 4.18 change LoadFileDelegate signature to return TArray profiler support coroutine and optimize CPU cost of memory profile