Skip to content

Releases: maximegmd/CyberEngineTweaks

Reshade fix and tdbid improvements

23 Dec 12:52
Compare
Choose a tag to compare

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

22 Dec 22:42
Compare
Choose a tag to compare

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

22 Dec 16:25
Compare
Choose a tag to compare
  • Removed CreateHandle, they are implicitly created now.
  • CreateSingletonHandle becomes GetSingleton.
  • 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 not player.IsNaked(), the latter will crash the game.
  • Fixed autoexec.lua not running when starting the game from the launcher.

Lua API improvements

22 Dec 00:34
Compare
Choose a tag to compare

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

21 Dec 18:07
Compare
Choose a tag to compare

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

21 Dec 16:59
Compare
Choose a tag to compare

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

21 Dec 12:17
a843dfa
Compare
Choose a tag to compare

Adds more logging functionality:
#206

And sanity checks:
#191

Lua support

20 Dec 14:02
Compare
Choose a tag to compare

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

20 Dec 12:23
Compare
Choose a tag to compare
v1.2.0

Use signature instead of raw memcmp

Some security fixes and new key

20 Dec 00:36
Compare
Choose a tag to compare

Use the ~ to open the console now. It can be configured.