MisterKen Posted April 8, 2021 Posted April 8, 2021 Anyone know what the solution is to this LUA error from its log? [2021-04-07 19:56:11 UTC-07:00] [error] ...cyber_engine_tweaks\mods\BMYC - A car theft mod\init.lua:1834: ')' expected near '|' The line in question:ImGui.Begin("Sell Car", true, ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoTitleBar) With the surrounding text, CPS.setThemeBegin()ImGui.SetNextWindowPos(winPosX, winPoxY)--, ImGuiCond.FirstUseEver) -- set window position x, yImGui.SetNextWindowSize(totalWidth, totalHeigth, ImGuiCond.Appearing) -- set window size w, hImGui.Begin("Sell Car", true, ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoTitleBar) ImGui.SetWindowFontScale(1.5*fontSize) ImGui.Spacing()
TheGreatAndMightyWalrus Posted April 8, 2021 Posted April 8, 2021 I would look at other code around this for the missing parentheses. I notice this (winPosX, winPoxY)--, ImGuiCond.FirstUseEver) has an extra one.
MisterKen Posted April 9, 2021 Author Posted April 9, 2021 Yeah, seems like that might be it. I removed the entirety of , ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoTitleBar from the text, closing the ) properly, and then did it to the other lines too that the log then kept pointing me to - made the mod work again. A hammer approach for sure until that mod author comes back to update it for the latest 1.2 patch.
Recommended Posts