Whisper Posted November 28, 2018 Share Posted November 28, 2018 (edited) Stumbled on this one, not sure how long it exists, at least true on latest version 2.5.3.24436 When using coalition.addStaticObject, and then using :getID() on this object, instead of having an integer returned, the result is a string containing the static name :getID() on static placed in ME returns an integer, as expected. Repro mission attached. Launch mission, drop on Game Master slot, wait 5 seconds, a second Warehouse appears west of the first one, with a marker on it. The marker contains the result of a :getID() on the newly spawned Warehouse, and it's a stringaddStatic-bug.miz Edited November 28, 2018 by Whisper Whisper of old OFP & C6 forums, now Kalbuth. Specs : i7 6700K / MSI 1070 / 32G RAM / SSD / Rift S / Virpil MongooseT50 / Virpil T50 CM2 Throttle / MFG Crosswind. All but Viggen, Yak52 & F16 Link to comment Share on other sites More sharing options...
Grimes Posted November 28, 2018 Share Posted November 28, 2018 Issue appears to stem from the unitID not being unique or specified. If the unitId is set to 2 it'll be fine. But if the unitID is 1 or commented out then the bug will occur. Good find. Thankfully it appears to be limited to static objects. 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 Link to comment Share on other sites More sharing options...
Whisper Posted November 29, 2018 Author Share Posted November 29, 2018 That's adding a bit of work when you copy unit information from existing template. Gonna see what can be done Whisper of old OFP & C6 forums, now Kalbuth. Specs : i7 6700K / MSI 1070 / 32G RAM / SSD / Rift S / Virpil MongooseT50 / Virpil T50 CM2 Throttle / MFG Crosswind. All but Viggen, Yak52 & F16 Link to comment Share on other sites More sharing options...
funkyfranky Posted May 25, 2019 Share Posted May 25, 2019 Has this been fixed? A warrior's mission is to foster the success of others. i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss Link to comment Share on other sites More sharing options...
Pikey Posted May 30, 2019 Share Posted May 30, 2019 Found this very recently whilst doing my Static persistence. It might seem minor but it can have rather large implications on a relatively tiny amount of folks. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING * Link to comment Share on other sites More sharing options...
HC_Official Posted May 31, 2019 Share Posted May 31, 2019 has this been reported and logged as a bug, I do not see the thread title set to [REPORTED] No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. . Link to comment Share on other sites More sharing options...
Recommended Posts