Lowpass1976 Posted December 27, 2017 Posted December 27, 2017 Hey Everyone, I cannot mod the db_countries.lua anymore. I wanted to do this so every country has its real invetory ... The smallest change in this file stops DCS from starting now. Can anyone help me ?
Grimes Posted December 27, 2017 Posted December 27, 2017 Best guess is there is a syntax error from when you modified it. Any errors like that will stop the game from loading, check dcs.log in saved games\DCS 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
Automan Posted December 27, 2017 Posted December 27, 2017 You should edit the lua with utility like Notepad++, encoded as UTF-8 without BOM. Keep in mind that any modification of db_countries.lua should invalidate integrity check for MP play. ACER Predator Orion 9000: W10H | Intel i9-7900X OC@4.5Ghz | 8x16GB Crucial Ballistix Sport | Sapphire GTX1080TI | Intel 900P 480GB | Intel 600P 256GB | HP EX950 1TB | Seagate Firecuda 2TB ACER Predator XB281HK: 28" TN G-SYNC 4K@60hz ThrustMaster Warthog Hotas, TPR, MFD Cougar Pack, HP Reverb Pro
Lowpass1976 Posted December 27, 2017 Author Posted December 27, 2017 No syntax error, edited with notepad Dear All, There should be no syntax error: I deleted once only one plane in a country to check what happened and it freezed. The slightest change on the original makes the sim not loading. I used Notepad Version 1709 from Win 10. Greetings and already many thanks !
Colmillo Posted December 27, 2017 Posted December 27, 2017 Dear Lowpass1976, every time ED releases an update I must modify the country.lua file in order to work with the mod that I have created for the Chilean Air Force (FlightLog). I have never had the problem that you indicate, maybe because I do not modify the planes, only the grades and patches. I use LuaEdit. I hope you can find the problem and share it. [sIGPIC][/sIGPIC] Intel(R) Core(TM) i9-10900KF CPU @ 3.70GHz 3.70 GHz ROG STRIX Z490-E GAMING RAM 128 M.2*2 2T total SSD*3 2.5T total GeForce RTX 3090 Orion2 HOTAS F-16EX Saitek Pro Rudder
Automan Posted December 27, 2017 Posted December 27, 2017 Dear All, There should be no syntax error: I deleted once only one plane in a country to check what happened and it freezed. The slightest change on the original makes the sim not loading. I used Notepad Version 1709 from Win 10. Greetings and already many thanks ! Again, don’t use Notepad integrated in Windows OS: it will save in ANSI or UTF-8 with BOM. You must use NotePad++ or Luaedit, and save as UTF-8 without BOM. If there are some symbols or special character, the usual Notepad is not able to save to the correct format suitable for DCS, and you have a corrupted lua file. ACER Predator Orion 9000: W10H | Intel i9-7900X OC@4.5Ghz | 8x16GB Crucial Ballistix Sport | Sapphire GTX1080TI | Intel 900P 480GB | Intel 600P 256GB | HP EX950 1TB | Seagate Firecuda 2TB ACER Predator XB281HK: 28" TN G-SYNC 4K@60hz ThrustMaster Warthog Hotas, TPR, MFD Cougar Pack, HP Reverb Pro
Lowpass1976 Posted December 27, 2017 Author Posted December 27, 2017 THANKS Automan THANK YOU VERY MUCH AUTOMAN !!!! Indeed, I downloaded Luaedit and it worked ! Now my Airforces, groundforces and others are somewhat populated :) Intrested in my db_country.lua file ? (It s not perfect on realism yet, but comes already a lot closer than the default ;) Greetings, Lowpass1976db_countries.lua
bigjoe_no Posted December 28, 2017 Posted December 28, 2017 God tip with the Luaedit sw. Used that and was able to edit dc_contries.lua file. But I see no change in mission editor when selecting units. I have added som user naval mod files. Earlier they showed up right away. But now only the default ships are awailable. Any tip would be apreciated. I see from Lowpass1976's file that you have added ships, have you added other ships than the default?
Lowpass1976 Posted January 3, 2018 Author Posted January 3, 2018 No, only copy pasted the default ships. In my db_country.lua file I gave every country the basic civilian ships.
Recommended Posts