Lineaxe Posted August 28, 2023 Posted August 28, 2023 After about 8 months I am trying to update my Mission using the mission editor. To test the PROBLEM I am doing a very small change to one of the aircraft. When I save and run, the mission works ok in Single player mode but comes up with the error in quotes. Deleting the actual static and replacing it does nothing to get rid of this FATAL error. I use the Static inside the lua code and think that just getting rid of it and using something else as a Radio Tower won't fix the overall problem. Worse, I fear even more FATAL errors of this type will come up and stop the code from working. I have spent much time writing and testing this mission and have plans to rewrite much of the code for the sorties with classes etc in the future. But I am now overall stuck since I can't even get the newer dcs engine to find a simple Static that is definitely inside of the mission. Never had that error come up and don't know what to do to get past it. Overall, even simple changes using mission editor cant be saved and played as a multiplayer game without this ERROR message Quote 2023-08-28 20:36:07.539 ERROR SCRIPTING (Main): Mission script error: [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00000147.lua"]:46041: STATIC not found for: Tv Tower
Flappie Posted August 29, 2023 Posted August 29, 2023 Please attach your .miz file. We'll try the impossible. ---
Lineaxe Posted August 31, 2023 Author Posted August 31, 2023 wow , heh , I will help where I can. (I have programmed in C, C++ and C# and many other languages in the past ~ in c++ since Borland 3.1 came out.). I am thinking that the STATIC name is no longer recognized with the newer DCS engine due to some kind of filenaming type of problem. The mission and its associated code had compiled and ran up to last November using that particular version of the DCS engine. At that point I could work on the mission and save it and successfully get a working updated copy of my mission. But Now I can't make any saves to the mission using the mission editor without that error coming up. This DCS stuff is very complicated . Note: I have been using "Agile modeling" style when writing the Lua code , with code in place that works, but some of it will require rewriting in the future. Well, while I was writing the code for the mission I was learning a lot of Lua from the Lua development website and had not gotten to creating up any classes yet Also some of the existing code still needs to be modified so the vehicles are created ,used & destroyed with the proper methods. It seems, deep in the documentation somewheres, there is a method that I still need to implement. This mission has already been uploaded, two versions can be found, day and night time. "ChopU-multi" & "ChopU-Nightmulti". The only difference in them is the time clock change. Mission Background: The mission has transport and Lift sorties for 3 of the 5 different Helicopters (Choppers) that are Flyable AND sorties for them to engage the enemy. F18s can be flown to defend the skies and Seas around AL Dhafra and two types of A -10 Warthogs can be employed to wipe out the Tanks and ground targets. F18s also have some longer-ranged Sorties. I believe that is the version (the current one ) I am trying to update. ~ I had taken a break from programming in Lua for a bit and just came back to it recently. No doubt about it, this DCS stuff is tough to troubleshoot. The docs are huge and still don't cover troubleshooting errors like this which crop up in the DCS.log and kill the code.
Lineaxe Posted September 13, 2023 Author Posted September 13, 2023 did you find my mission , that was uploaded last year around Xmas?
Flappie Posted September 13, 2023 Posted September 13, 2023 I'm sorry, where should I find it? Can you send me a link of the file itself, please? ---
Recommended Posts