Skip to content

Releases: maximegmd/CyberEngineTweaks

Bug fixes mostly

26 Dec 15:07
33de0dd
Compare
Choose a tag to compare
Merge pull request #299 from gibbed/user-type-improvements

Improvements to user types.

1.06 patch support

23 Dec 22:05
Compare
Choose a tag to compare
v1.7.0

Fix for 1.06

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)