Releases: maximegmd/CyberEngineTweaks
Releases · maximegmd/CyberEngineTweaks
Reshade fix and tdbid improvements
This build is now compatible with Reshade, pog.
Merged gibbed's PR to display more valuable information when dealing with tweakdbids.
Merged gibbed's PR to better handle console input.
Lua API improvements
You can now pass ref and wref to functions as well as create TweakDBID and ItemID objects.
Sample:
player = Game.GetPlayer()
ts = Game.GetTransactionSystem()
tid = TweakDBID.new("Items.money")
itemid = ItemID.new(tid)
result = ts:GiveItem(player, itemid, 100000)
if result then
print("We added " .. tostring(itemid) .. " to the inventory!")
else
print("Failed to add " .. tostring(itemid))
end
Lua API improvements
- Removed CreateHandle, they are implicitly created now.
CreateSingletonHandle
becomesGetSingleton
.- Added support for Weak Handles.
- Fixed bug when passing a Quaternion to a function.
- Functions are now member functions meaning you call
player:IsNaked()
and notplayer.IsNaked()
, the latter will crash the game. - Fixed autoexec.lua not running when starting the game from the launcher.
Lua API improvements
Added #192
Also now CreateHandle doesn't take a string, it just takes the object:
player = CreateHandle(Game.GetPlayer())
print(player.GetClassName())
Lua now supports Bool, Quaternion, String, CName, Strong Handle, Int32, Float
Crash and bad global function call fix
Let's you do crazy stuff like
player = CreateHandle("PlayerPuppet", Game.GetPlayer())
print(player.IsNaked())
-- the command below kills you
player.OnDied()
Or change the time
gameTime = CreateSingletonHandle("gameTimeSystem")
gameTime.SetGameTimeByHMS(12, 30, 0) -- 12h30m0s
print(gameTime.GetGameTime()) -- prints time in seconds
Member function calls
Let's you do crazy stuff like
player = CreateHandle("PlayerPuppet", Game.GetPlayer())
print(player.IsNaked())
-- the command below kills you
player.OnDied()
Or change the time
gameTime = CreateSingletonHandle("gameTimeSystem")
gameTime.SetGameTimeByHMS(12, 30, 0) -- 12h30m0s
print(gameTime.GetGameTime()) -- prints time in seconds
Console improvements
Lua support
We are now using Lua in the console.
It's fairly simple just prefix the script functions with Game.
and pass arguments as you would normally.
For example:
item = "Items.Jacket_03_old_04"
count = 12
Game.AddToInventory(item, count)
Game.AddToInventory("Items.Jacket_03_old_04", 12)
Better console, SMT patch fixed
v1.2.0 Use signature instead of raw memcmp
Some security fixes and new key
Use the ~ to open the console now. It can be configured.