The mod goes up to 10x, the engine max allows you to go to 20x, but it could get buggy. If you wanna let it go to 20x, try doing a find replace from: '10' to '20' in the main.lua
For those using the link provided to the "how to guide" on the description page, as the author of said guide, please find the link below to the guide itself. Now with visuals.
@Vuxacha If you would like to update the info so those using your mod to have a more direct link. Also thank you for referencing my guide to help in your mod.
Mod is not working for me... maybe i put some wrong files n stuff but like its not working, almost like the mod is not even installed in the first place, any fixes?
For the life of me I cannot get this mod to work. I've tried all 3 files, added vuxTimeSpeed: 1 in mods, cleared all files in game the uninstalled/re-installed the game with just this mod, and still doesn't seem to work. The only file that worked for me was the first iteration that was published. If anybody has any ideas on a fix please let me know.
Worked for a bit and love it, but now my game crashes on level load. I know is this mod because it works again if i uninstall it. Version 0.1.3.0 I would love to have this mod back if someone can get it to work again.
EDIT: I feel like a dummy and that what I get for not reading the full description. Completely missed the troubleshooting steps.
the F2 keybinding will conflict with the in-game Unreal 'console' debug activation key which afaik, can't be changed at this time in the game version (ive tried lol)
numpad keys would prolly work better?? or maybe even the + and minus key on the numpad idk
Thanks for the feedback, I've updated the keybindings. Numpad keys would be good, but I don't want to alienate TKL users. Hopefully someone comes up with a clean method for users to set the bindings themselves in game, without the need to edit the .lua files.
appreciate the alternative versions, thank you, i did some tinkering and made my own for anyone who else who wants to use the NUMPAD:
go to \Pal\Binaries\Win64\Mods\vuxTimeSpeed\Scripts (vux's file name depends on which version you installed) open main.lua inside, select all and paste what's inside the spoiler over that entirely. to rephrase, delete everything and paste the code i have below! refer to this link to change keys as desired if you're comfortable with that. just make sure to leave out the "VK_" parts before each key. Only include OEM, where needed, and this isn't needed for any numpad keys!
Spoiler:
Show
Code below for numpad keys,
CTRL Subtract key resets time to normal
CTRL Add key speeds time up
SHIFT Add speeds up 10x
SHIFT Subtract slows time NumLOCK is NOT required to be active for these, if that's not obvious...
speed = 1 RegisterKeyBind(Key.SUBTRACT, {ModifierKey.CONTROL}, function() GameplayStatics = StaticFindObject("/Script/Engine.Default__GameplayStatics") local var = FindFirstOf("PalPlayerCharacter") GameplayStatics:SetGlobalTimeDilation(var, 1.0) speed = 1 print("Time set to normal speed " .. speed) end)
RegisterKeyBind(Key.SUBTRACT, {ModifierKey.SHIFT}, function() GameplayStatics = StaticFindObject("/Script/Engine.Default__GameplayStatics") local var = FindFirstOf("PalPlayerCharacter") if speed > 0 then if speed == 0.5 then speedCalc = speed - 0.5 GameplayStatics:SetGlobalTimeDilation(var, speedCalc) speed = 0 elseif speed == 1 then speedCalc = speed - 0.5 GameplayStatics:SetGlobalTimeDilation(var, speedCalc) speed = 0.5 elseif speed >= 2 then speedCalc = speed - 1 GameplayStatics:SetGlobalTimeDilation(var, speedCalc) speed = speed - 1 end print("Time slowed to ".. speed) else print("Time is frozen!") end end)
RegisterKeyBind(Key.ADD, {ModifierKey.CONTROL}, function() GameplayStatics = StaticFindObject("/Script/Engine.Default__GameplayStatics") local var = FindFirstOf("PalPlayerCharacter") if speed < 10 then if speed == 0 then speedCalc = speed + 0.5 GameplayStatics:SetGlobalTimeDilation(var, speedCalc) speed = 0.5 elseif speed == 0.5 then speedCalc = speed + 0.5 GameplayStatics:SetGlobalTimeDilation(var, speedCalc) speed = 1 elseif speed >= 1 and speed < 10 then speedCalc = speed + 1 GameplayStatics:SetGlobalTimeDilation(var, speedCalc) speed = speed + 1 end print("Time sped up to ".. speed) else print("At max speed!") end end)
RegisterKeyBind(Key.ADD, {ModifierKey.SHIFT}, function() GameplayStatics = StaticFindObject("/Script/Engine.Default__GameplayStatics") local var = FindFirstOf("PalPlayerCharacter") GameplayStatics:SetGlobalTimeDilation(var, 10.0) speed = 10 print("Time set to 10x speed " .. speed) end)
Ah damn, sorry about that. I've uploaded 3 variants with different keybindings, hopefully one of them work for you? I've tested them and they all work on my end, so different region keyboards may have different experiences.
31 comments
'10'
to
'20'
in the main.lua
the link
below to the guide itself. Now with visuals.
How to mod your coop and/or Dedicated Server
@Vuxacha If you would like to update the info so those using your mod to have a more direct link. Also thank you for referencing my guide to help in your mod.
I would love to have this mod back if someone can get it to work again.
EDIT: I feel like a dummy and that what I get for not reading the full description. Completely missed the troubleshooting steps.
Awesome mod 10/10
numpad keys would prolly work better?? or maybe even the + and minus key on the numpad idk
for anyone who else who wants to use the NUMPAD:
go to \Pal\Binaries\Win64\Mods\vuxTimeSpeed\Scripts
(vux's file name depends on which version you installed)
open main.lua inside, select all and paste what's inside the spoiler over that entirely.
to rephrase, delete everything and paste the code i have below!
refer to this link to change keys as desired if you're comfortable with that.
just make sure to leave out the "VK_" parts before each key.
Only include OEM, where needed, and this isn't needed for any numpad keys!
NumLOCK is NOT required to be active for these, if that's not obvious...
speed = 1
RegisterKeyBind(Key.SUBTRACT, {ModifierKey.CONTROL}, function()
GameplayStatics = StaticFindObject("/Script/Engine.Default__GameplayStatics")
local var = FindFirstOf("PalPlayerCharacter")
GameplayStatics:SetGlobalTimeDilation(var, 1.0)
speed = 1
print("Time set to normal speed " .. speed)
end)
RegisterKeyBind(Key.SUBTRACT, {ModifierKey.SHIFT}, function()
GameplayStatics = StaticFindObject("/Script/Engine.Default__GameplayStatics")
local var = FindFirstOf("PalPlayerCharacter")
if speed > 0 then
if speed == 0.5 then
speedCalc = speed - 0.5
GameplayStatics:SetGlobalTimeDilation(var, speedCalc)
speed = 0
elseif speed == 1 then
speedCalc = speed - 0.5
GameplayStatics:SetGlobalTimeDilation(var, speedCalc)
speed = 0.5
elseif speed >= 2 then
speedCalc = speed - 1
GameplayStatics:SetGlobalTimeDilation(var, speedCalc)
speed = speed - 1
end
print("Time slowed to ".. speed)
else
print("Time is frozen!")
end
end)
RegisterKeyBind(Key.ADD, {ModifierKey.CONTROL}, function()
GameplayStatics = StaticFindObject("/Script/Engine.Default__GameplayStatics")
local var = FindFirstOf("PalPlayerCharacter")
if speed < 10 then
if speed == 0 then
speedCalc = speed + 0.5
GameplayStatics:SetGlobalTimeDilation(var, speedCalc)
speed = 0.5
elseif speed == 0.5 then
speedCalc = speed + 0.5
GameplayStatics:SetGlobalTimeDilation(var, speedCalc)
speed = 1
elseif speed >= 1 and speed < 10 then
speedCalc = speed + 1
GameplayStatics:SetGlobalTimeDilation(var, speedCalc)
speed = speed + 1
end
print("Time sped up to ".. speed)
else
print("At max speed!")
end
end)
RegisterKeyBind(Key.ADD, {ModifierKey.SHIFT}, function()
GameplayStatics = StaticFindObject("/Script/Engine.Default__GameplayStatics")
local var = FindFirstOf("PalPlayerCharacter")
GameplayStatics:SetGlobalTimeDilation(var, 10.0)
speed = 10
print("Time set to 10x speed " .. speed)
end)