RE-UE4SS: [BUG - Release] (LUA) RegisterConsoleCommand_ - Console Ignoring Strings
Branch or Release v3.0.1 d935b5b
Game and Engine Version probably any
Describe the bug console does not recognize strings and treats all spaces as a parameter
Mods directory …
To Reproduce
function modify(obj,prop,val)
item = FindFirstOf(obj)
if item then
item:SetPropertyValue(prop,val)
end
end
RegisterConsoleCommandHandler("modify", function(FullCommand, Parameters)
if #Parameters < 1 then return false end
obj = Parameters[1]
prop = Parameters[2]
val = Parameters[3]
modify(obj, prop, val)
return true
end)
Expected behavior strings to be processed properly “foo bar” ‘foo bar’ [‘foo bar’] none work
spaces and command both act as seperators no matter what
Screenshots, UE4SS Log, and .dmp file
input
>modify Ultra_Dynamic_Sky_C 'Time of Day' 0
output
[Lua] of
Desktop (please complete the following information): Win10
Additional context…
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (7 by maintainers)
@alphaqueueop would be nice if you could test it, if it works as expected.
https://docs.ue4ss.com/dev/lua-api/global-functions/registerconsolecommandhandler.html?highlight=registerc#registerconsolecommandhandler
https://github.com/UE4SS-RE/RE-UE4SS/releases/download/experimental/UE4SS_v3.0.1-185-g833b84b.zip
https://github.com/UE4SS-RE/RE-UE4SS/releases/download/experimental/zDEV-UE4SS_v3.0.1-185-g833b84b.zip