Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG - Release] (LUA) RegisterConsoleCommand_ - Console Ignoring Strings #653

Open
alphaqueueop opened this issue Sep 13, 2024 · 0 comments

Comments

@alphaqueueop
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant