wolle Posted October 2, 2015 Posted October 2, 2015 I attached a simple test mission. All it does is to wait for one second, then evaluate a "lua predicate" trigger with argument "return true". Since this is necessarily true, it should output a simple message with which I tasked the triggered action. The message never displays, but displays if I remove the lua predicate, indicating that the lua predicate command doesn't work any more in 1.5 beta. I already posted this in the mission editor's corner, and Grimes said he could reproduce it. So, I report it here as a bug.lua predicate bug.miz [sIGPIC][/sIGPIC] Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro
ramayana Posted November 9, 2015 Posted November 9, 2015 It seems lua predicate still doesn't work in 1.5.1 OB. Does anybody confirm this?
wolle Posted November 9, 2015 Author Posted November 9, 2015 Still not working in 1.5.1:cry: [sIGPIC][/sIGPIC] Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro
cuervo111 Posted October 10, 2017 Posted October 10, 2017 Any news on this? Still not working years later! DCS Rosetta, my automatic DCS mission and campaign translator: https://forums.eagle.ru/showthread.php?t=233877
FixieRider Posted October 16, 2017 Posted October 16, 2017 This would be very very useful to have working, please! [sIGPIC]http://www.dfa-squadron.co.uk/[/sIGPIC]
feefifofum Posted October 16, 2017 Posted October 16, 2017 Not sure what exactly you're looking to do with the function, but would a DO SCRIPT FILE in the MISSION START trigger type work for you? Speaking from personal experience I have just pulled the .LUA predicates out of old DCS 1.2 missions and loaded them into MISSION START triggers and have had success so far. THE GEORGIAN WAR - OFFICIAL F-15C DLC
FlightControl Posted October 16, 2017 Posted October 16, 2017 lua predicates would be really an asset if it would work. I agree! [TABLE][sIGPIC][/sIGPIC]| Join MOOSE community on: DISCORD :thumbup: Website of the MOOSE LUA Framework. MOOSE framework Downloads. Check out Example Missions to try out and learn. MOOSE YouTube Channel for live demonstrations and tutorials. [/TABLE]
wolle Posted October 16, 2017 Author Posted October 16, 2017 Yes, this is indeed unbelievable that this still isn't working after a couple of years. It's not that that is difficult to fix, it's a rather trivial thing. Do script file is not a good replacement, since do script file can only be done as an action, not as the trigger if statement, correct? Schematically: if lua predicate then do .. end cannot be replaced by: if something then do 'do script file' end [sIGPIC][/sIGPIC] Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro
BigMillerTime Posted October 16, 2017 Posted October 16, 2017 Chiming in on this as well. Please ED, have a look on what seems to be a simple fix.
Delta99 Posted February 5, 2018 Posted February 5, 2018 Well it seems that after 2 years and change with 2.5 this is fixed. Has anyone actually tested it yet??!! My Missions: Valley Patrol Mission :: Valley Escort Mission :: A2A Engagements
Frederf Posted February 9, 2018 Posted February 9, 2018 I was trying to use LUA predicate trigger condition. I can't get it to work with the condition text simply "true". I have no idea how to make this mission otherwise.
Grimes Posted February 10, 2018 Posted February 10, 2018 You have to use return. if whatever == true then return true end The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Frederf Posted March 7, 2018 Posted March 7, 2018 if 1 == 1 then return true endisn't working. I also tried simply return true I know the output works since I added a |OR| Group Alive in conditional and the debug text triggered just fine.
Grimes Posted March 7, 2018 Posted March 7, 2018 Attach the mission perhaps? It is working in the sample mission I attached.predicate_sample.miz The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Frederf Posted March 8, 2018 Posted March 8, 2018 I cannot run your sample mission. It is not compatible with the current DCS version 1.5.8.12823.414.
Grimes Posted March 8, 2018 Posted March 8, 2018 Its from 2.5, which is the subforum this post is in. The bug was still broken as of the last 1.5.8 patch. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Frederf Posted March 8, 2018 Posted March 8, 2018 Thank you. I was searching and going by thread title. I see now that it is in OB branch forum.
dorianR666 Posted March 4, 2021 Posted March 4, 2021 are lua predicates still not working? at least in "mission goals" i cant get them to work. tried "true" and "return true", neither works CPU: AMD Ryzen 5 1600X GPU: AMD RX 580
Recommended Posts