Jump to content

Chump

Members
  • Posts

    532
  • Joined

  • Last visited

Everything posted by Chump

  1. DCS uses Lua 5.1. Same error handling code for LUA_ERRERR: https://www.lua.org/source/5.1/ldo.c.html Obviously, this is a black box to us. Someone on the ED team would need to see how it is handled internally.
  2. To keep sounds from unwanted playing during map load (used to be a MP problem), I use a ONCE trigger, with a LUA PREDICATE condition with "return false" and SOUND TO ALL. Agreed that there should be a built-in way to accomplish this.
  3. { display_name = _('BIO'); beaconId = 'airfield20_0'; type = BEACON_TYPE_HOMER; callsign = 'BIO'; frequency = 205000000000.000000; position = { -12635.139794, 275.999849, -903425.845883 }; direction = 0.000000; positionGeo = { latitude = -51.608281, longitude = -72.221030 }; sceneObjects = {'t:13140007'}; };
  4. Looks like this is actually thrown from LUA, not DCS. https://www.lua.org/source/5.4/ldo.c.html
  5. Check out [DCS]/Doc/Sounds/sdef_and_wave_list.txt for a listing of sound files and their paths. But, as @Elphaba already mentioned, you cannot get to the original sound files.
  6. I thought it more appropriate to put this here than in the Wish List for the core game. Mods, please move it if it is not in the right place. I think it would be a great improvement to find/narrow User Files missions (both SP & MP) by theater/map. Currently, searching for SP missions returns 2,474 results that must be combed through if only looking for Persian Gulf missions.
  7. @DishDoggie As @Morpheus mentioned, if you provide your dcs.log (not dcs.*.crash file), maybe we can help troubleshoot or at least see what's throwing an error to look into a fix.
  8. ED did include this functionality with one of the last releases: local magvar = require("magvar") magvar.init(month, year) magvar.get_mag_decl(lat, lon)
  9. Got a dcs.log for us to look at?
  10. Chump

    DCS Scratchpad

    Please attach your dcs.log if it isn't working and we can see if any errors stand out.
  11. I got tired of JTAC not prioritizing targets correctly (BMP before SAM etc.) so I wrote a workaround @ https://github.com/chump29/DCS_Mod/blob/master/JTAC_Priority.lua Description @ https://github.com/chump29/DCS_Mod#jtac-priority Suggestions/complaints welcome.
  12. @imacken TTI also supports the SA map. Through The Inferno (South Atlantic/Falklands - Punta Arenas)
  13. @daemon1808 Gotcha. My bad. Thanks for clarifying the issue. Fix one thing, break two! Hopefully ED will take a look at this.
  14. @daemon1808 Event.initiator returns a Unit object. There is no Unit.getCategory(), so it defaults back to its base Object.getCategory(). event.initiator:getCategory() -- returns Object.Category If you want to get the Unit.Category, you will need to get it from the descriptor. event.initiator:getDesc().category -- returns Unit.Category
  15. Chump

    DCS Scratchpad

    Change the following line in scratchpad-hook.lua elseif ac == "M-2000C" then return {DDM = {precision = 1, lonDegreesWidth = 3}} to elseif ac == "M-2000C" then return {DDM = {lonDegreesWidth = 3}} This will default back to DD°MM.MMM (three places of precision)
  16. I didn't see this mentioned already. Steps to recreate: New mission in editor (I chose Caucasus, seems to happen on all maps) Select Overcast 3 preset Make sure BASE slider is maxed out (11024ft) Save mission Choose Fly Mission from editor NOTE: briefing will show Cloud Cover BASE @ 3360m Cancel Save mission Choose Fly Mission from editor NOTE: briefing will show Cloud Cover BASE @ 3400m Rinse, repeat (cancel, save, will toggle between 3360 & 3400) DCS v2.8.0.33006, no mods enabled, ran repair/clean to no avail.
      • 1
      • Thanks
  17. Chump

    DCS Scratchpad

    @ollk22 I just tested it and it is working for me in 2.8. It should work in 2.7 also. Make sure that you have the latest version @ https://github.com/rkusa/dcs-scratchpad/releases/tag/0.6.1
  18. @toutenglisse has the right answer here with minimal processing.
  19. Anyone else notice the witches? Thanks for the tension breaker, ED!
  20. I can confirm that #3 is on purpose, given the new \Mods\aircraft\Ka-50\Cockpit\IndicationTextures\SHKVAL_MASK.bmp file.
  21. trigger.action.radioTransmission("music.ogg", point, radio.modulation.AM, true, 123000000, 1000, "myTransmission") trigger.action.stopRadioTransmission("myTransmission") This is a pretty old post, but for those interested, here is the usage.
  22. @Elphaba Hoggit is probably the best place for official documentation. Although the search feature is handy (and more up-to-date), sometimes you will need to refer to the original documentation: Part 1 Part 2
  23. @Elphaba getCategory() isn't overridden for Airbase, so it uses the base class (Object) function in this case. Here is what you get when using getCategory(): object:getCategory() returns Object.Category group:getCategory() returns Group.Category spot:getCategory() returns Spot.Category For other classes, you need to access it's Desc struct: unit:getDesc().category returns Unit.Category airbase:getDesc().category returns Airbase.Category weapon:getDesc().category returns Weapon.Category
×
×
  • Create New...