Jump to content

Photo

LUA error help


2 replies to this topic

#1
MisterKen

MisterKen

    MisterKen

  • Premium Member
  • 554 posts

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, y
ImGui.SetNextWindowSize(totalWidth, totalHeigth, ImGuiCond.Appearing) -- set window size w, h
ImGui.Begin("Sell Car", true, ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoTitleBar)
 
ImGui.SetWindowFontScale(1.5*fontSize)
ImGui.Spacing()


#2
TheGreatAndMightyWalrus

TheGreatAndMightyWalrus

    Enthusiast

  • Premium Member
  • 125 posts

I would look at other code around this for the missing parentheses. I notice this

 

(winPosX, winPoxY)--, ImGuiCond.FirstUseEver)

 

has an extra one.



#3
MisterKen

MisterKen

    MisterKen

  • Premium Member
  • 554 posts

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.





Reply to this topic



  


IPB skins by Skinbox
Page loaded in: 0.952 seconds