

Jogaredi
Members-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Jogaredi
-
Hello, @stevey666 I would like to contribute with a small modification that I made on version 2 of the script. It was to minimize the load on servers with a lot of AI, and what it does is to track only the weapons that are thrown by the players. The code is literally two lines, and I leave it here in case you find it interesting and want to implement it in version 3.4. ["only_players_weapons"] = true, -- track only weapons launch by players A global variable for enable/disable the functionality. if splash_damage_options.only_players_weapons == true and event.initiator:getPlayerName() == nil then return end And the line to exit the function onWpnEvent and not include in the table. In the version 2 of the script it was like this: function onWpnEvent(event) if event.id == world.event.S_EVENT_SHOT then if event.weapon then local ordnance = event.weapon local weapon_desc = ordnance:getDesc() if string.find(ordnance:getTypeName(), "weapons.shells") then debugMsg("event shot, but not tracking: "..ordnance:getTypeName()) env.info("SplashDamage : event shot, but not tracking: "..ordnance:getTypeName().." ("..event.initiator:getTypeName()..")") return --we wont track these types of weapons, so exit here end if explTable[ordnance:getTypeName()] then --trigger.action.outText(ordnance:getTypeName().." found.", 10) else env.info("SplashDamage : "..ordnance:getTypeName().." missing from script ("..event.initiator:getTypeName()..")") if splash_damage_options.weapon_missing_message == true then trigger.action.outText("SplashDamage : "..ordnance:getTypeName().." missing from script ("..event.initiator:getTypeName()..")", 3) --debugMsg("desc: "..mist.utils.tableShow(weapon_desc)) end return -- we wont track weapons that are not on the list end if (weapon_desc.category ~= 0) and event.initiator then if splash_damage_options.only_players_weapons == true and event.initiator:getPlayerName() == nil then return end if (weapon_desc.category == 1) then if (weapon_desc.MissileCategory ~= 1 and weapon_desc.MissileCategory ~= 2) then tracked_weapons[event.weapon.id_] = { wpn = ordnance, init = event.initiator:getName(), pos = ordnance:getPoint(), dir = Just after the if (weapon_desc.category ~= 0) and event.initiator then line. Thanks for taking the time to review, improve and test this old and much needed script. Best regards.
-
I have just updated the program, I hope they have corrected the previous problems. @MAXsenna @mkel2010 ---------- Change log ---------- v1.0.2: - Added space around menu bars. - Decreased the size of larger text (such as menu and title). - Fixed menu not changing translation until entering another screen and displaying it again. Or changing language twice. - Updated the development kit (bug improvements and security issues). - On Android, it is compiled with the most modern SDK. Android 15 is now supported. The minimum version goes from 6.0 to 7.1.
-
Hello, I come to present an application that I have been developing in my free time since last year. It is a unit converter and some utilities that I thought would help during online flights. Especially when we fly with pilots in aircrafts with another unit (Ex: Some in knots, others in miles per hour and others in kilometers per hour). It's my first application in the framework that I've used and the first one for Android, so keep it in mind and show mercy The application features are as follows: - The results are displayed in all possible units. One input unit and all output units, so that no conversions have to be made for each measurement system. - All types of measurement units can be mixed. For example, for the calculation of TAS, you can speed in kph, altitude in feet, pressure in mBar and wind in mph. Internally unifies them to SI. So there is no need to convert the different parameters to the same system to perform the calculations. - Calculation of distance, time and speed. - Conversion of speed, distance, pressure, consumption, altitude and coordinates. - Calculation of true speed (TAS) and ground speed (GS). If a course is also indicated, it tells you the wind correction and the course to set for that correction. - Calculation of the density altitude and the true altitude, including the temperature at that altitude, if the given temperature is that of the aerodrome. - Calculation of the consumption per hour indicating also the flight time and, if the speed is set, the flight distance. - Calculation for the QFE of a target, given the QNH and elevation of the area. It can also be calculated from the QFE if we enter the elevation of our aircraft. - Calculation of the QNH of a runway given the QFE, elevation and temperature. - Calculation for descents. The descent rate can be calculated for a 3 degree glide path, from an initial altitude to a final altitude, showing the flight distance and the time taken to do so. You can also calculate the ratio for a descent over a given distance, displaying the time of flight for the operation. - Listing of waypoints for aircraft with no waypoints in their navigation system. Supports different formats: DMS, DM and MGRS with various levels of accuracy. Points can be edited, deleted and moved within the list. As well as converting the entire list to a different different format. It can be configured to enter free text in the points, so we can annotate bearings and times in older aircraft. - Language in English and Spanish. - Supports dark theme. Gotta save those retinas on night flights. - You can choose between three text styles to display the calculation results. - Available for Android and Windows. ------------------------ Things to keep in mind ------------------------ The program is intended to be as unobtrusive as possible and does not require any permissions on Android, it does not connect to any server, nor does it send any data. It does not even use the device's storage. Everything is saved in the RAM memory during the execution of the program, that is why the first screen is the options screen, since you have to configure it every time you start the application. In Android the application is distributed in .apk files, since I do not want to sign it digitally, register as a developer of the platform and all the paraphernalia to upload it to GooglePlay. Where anyway ninety percent of the apps are eager to take your data. The trust is directly between the developer and the user. So once you download the file, in security you have to allow installation of applications of unknown origin, install the application and put the security option back as it was. During the installation, a warning message may appear, tell the user that the application is trusted and to continue with the installation. All three apks are passed through virustotal and show no issues. To make sure they are the ones I distribute, I show the hashes of the files. # MD5 733eafbe0c8ff1097cef354c6c7a733a flyuc-x86_64.apk 02b631f2cdc4be809df659a09fe551ff flyuc-armeabi-v7a.apk 8a763178772390189f702fe98a2628b7 flyuc-arm64-v8a.apk # SHA1 a29b22dc05ff611166db78b96bcedb38b11fab27 flyuc-x86_64.apk 18b12d6b78c291fec4236a60617baaeeaa4e6335 flyuc-armeabi-v7a.apk d391db14906d49b92d3c9fe8d6ea7cca5b88f081 flyuc-arm64-v8a.apk In Windows I have found that due to the heuristics of the antivirus, some warning may be triggered. Specifically, 3 out of 70 antivirus engines pop up. It is a false positive. I have tried to change the installer and different tests. With another installer I got 5 out of 70, if I run only the main executable I get only 1 (something that is known in the official forums of the framework), but if I zip it together with the libraries used, I don't get any warning. If I create it self-extracting, it jumps again. In short, any behavior that you consider remotely suspicious, some engines may warn you, and the only way to remove them is to pay to certify the application. So for Windows I distribute two files, the zip that does not pop anything and an installer, if you want to trust me. # MD5 536aab4794525857f47ba9956aeccc36 Flyuc_Setup.exe 95cb8921ba83183eb545061c9bbe9727 Flyuc_1.0.2.zip # SHA1 1a53e372bafdb6e693901f196c257fff5ca2a63e Flyuc_Setup.exe 664af4eb345fd8539607d35f0d05a6d2292ffa21 Flyuc_1.0.2.zip ------------------------------ Requirements and installation ------------------------------ Windows 10/11 or Android 7.1 or later is required. So it can be installed on older devices that we have lying around. On Windows we can run Flyuc_Setup.exe and install it automatically, a shortcut will be created. Or we can extract the Flyuc_1.0.2.zip file wherever we want and create a shortcut manually to flyuc.exe. On Android we have three versions: - flyuc-armeabi-v7a.apk, for older 32bit phones/tablets. - flyuc-arm64-v8a.apk, for newer 64bit mobiles/tablets. - flyuc-x86_64.apk, for tablets or systems with x86_64 architecture. You have to copy the file to the device, allow installation from unknown sources, install and put the security option back as it was. A warning may appear depending on the Android version, and you must tell it that you trust the application to install it. ---------- For Nerds ---------- I have developed the application in Flutter, since I had not made any for Android and I wanted it to work on Windows, using only one programming language. I have done some web programming in the past (for the cross-platform thing), but I didn't want to use an environment with thousands of files for the project, and go through three different languages to make something. The application saves the status of each screen, so that when you return all the fields are as you left them. left. It also uses cache for the calculations, so that if the button is pressed without the display parameters having changed, it takes them from the cache and avoids unnecessary recalculation. The source code metrics are as follows: language files code comment blank total Dart 64 8,865 1,612 1,129 11,606 (Lines of code) And for the tests: language files code comment blank total Dart 1 576 6 98 680 The library for the calculations was built following a TDD methodology and includes more than 40 tests to validate the operations. The program has been tested on the following systems: - Android 7.1 4.7” cell phone. - Android 6.0 10” tablet (v1.0.1). - Android 14.0 8.9” tablet. - Windows 10 and 11 on 34” ultrawide monitor. - Windows 10 on 55” TV at 1080p. Congratulations if you have read this far To report bugs, comment it in this thread or by private. I will try to solve it in two weeks (TM) Best regards, see you on the air. ---------- Change log ---------- v1.0.2: - Added space around menu bars. - Decreased the size of larger text (such as menu and title). - Fixed menu not changing translation until entering another screen and displaying it again. Or changing language twice. - Updated the development kit (bug improvements and security issues). - On Android, it is compiled with the most modern SDK. Android 15 is now supported. The minimum version goes from 6.0 to 7.1. Download link: https://drive.google.com/drive/folders/1nFEoBsML20Tp3R3ESRa_ZzYud3DeleOy
-
[Collections] What you want to be able to bind in keyboard/device
Jogaredi replied to uboats's topic in JF-17 Thunder
HI, thanks for the great work, i have enjoying the Jeff. I have a custom control panel with lots of buttons, knobs and encoders that emulate keyboard strokes. And in the end, when de product is finished i like to have al functional parts with keybinding (like i have with Falcon BMS F16 or DCS F18C). At the momment i wish to make more of the startup procedure in the panel and i am grateful if the next normal keybinding are added: INS and ECS knobs (like the radio knob). AAR switches. HUD declutter. EXT LIG panel (Master light, flash-steady, anti-col...) A key to rotate left and right the knobs for formation, nvg anti-col and flood lights. A key to rotate left and right altimeter calibration knob. BAT, AC GEN and DC GEN. Master Warning. Oxigen emergency or 100%. EMG LANDING GEAR DTC Eject At the moment i have a template with the ACP panel and the AIR TEMP included, i have a lot of switches :lol: Regards