timecyc-editor

sekers

Известный
Автор темы
19
1
Установил ImGui, но по прежнему не работает.

[12:40:14.223691] (system) Loading script 'C:\Games\VEUVE GTA created with love\moonloader\timecyc-editor.lua'...
[12:40:14.223691] (debug) New script: 01D376FC
[12:40:14.269694] (system) timecyc-24h-editor: Loaded successfully.

[12:40:58.146204] (error) timecyc-24h-editor: ...EUVE GTA created with love\moonloader\timecyc-editor.lua:301: stack index 2, expected userdata, received sol.ImVec4: value at this index does not properly reflect the desired type (bad argument into 'bool(const char*, ImArray<float,3>*, sol::optional<int>)')
stack traceback:
[C]: in function 'ColorEdit3'
...EUVE GTA created with love\moonloader\timecyc-editor.lua:301: in function 'OnDrawFrame'
...mes\VEUVE GTA created with love\moonloader\lib\imgui.lua:1378: in function <...mes\VEUVE GTA created with love\moonloader\lib\imgui.lua:1367>
[12:40:58.146204] (error) timecyc-24h-editor: Script died due to an error. (01D376FC)
 

sekers

Известный
Автор темы
19
1
скинь 301 строчку скрипта timecyc-editor.lua
301-303

if imgui.ColorEdit3("Ambient", Im.AmbRGB) then
CTimeCycle.m_nAmbientRed, CTimeCycle.m_nAmbientGreen, CTimeCycle.m_nAmbientBlue = (imgui.ImColor(Im.AmbRGB)):GetRGBA()
end

Из-за мунимгуи 1.1.3(или 4) такая ошибка. Вместо imfloat юзаешь imvec4
Разъясни для чайника