Kempco_2
Member-
Content Count
7 -
Joined
-
Last visited
-
Medals
Community Reputation
10 GoodAbout Kempco_2
-
Rank
Rookie
-
RscPictures Showing up barely visible
Kempco_2 replied to Kempco_2's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Turns out TexView2 was updated back in December/November. When I updated to the current version the images were displayed as intended. /facepalm -
[WIP] Von Quest Industries - H.A.L.O. System
Kempco_2 replied to Von Quest's topic in ARMA 3 - ADDONS & MODS: COMPLETE
This is what I used to determine the map sizes for the GPS zoom levels in JTK HALO. I ran an fsm that preloaded all the the maps I played and knew the sizes of. If The map was not detected then the fsm would get the map dimensions, center ect then spit out a multiplier I derived from official bis maps. Maybe it has what you need. Preloaded maps here.. _MapConfigured = true; switch (WorldName) do { case "Takistan": { JTK_HALO_Min_GPS_Zoom = 0.065; JTK_MapCenter = [6400,6400]; }; case "Chernarus": { JTK_HALO_Min_GPS_Zoom = 0.05; JTK_MapCenter = [7680,7680]; }; case "utes": { JTK_HALO_Min_GPS_Zoom = 0.05; JTK_MapCenter = [2560,2560]; }; case "ProvingGrounds_PMC": { JTK_HALO_Min_GPS_Zoom = 0.25; JTK_MapCenter = [1024,1024]; }; case "Shapur_BAF": { JTK_HALO_Min_GPS_Zoom = 0.25; JTK_MapCenter = [1024,1024]; }; case "Zargabad": { JTK_HALO_Min_GPS_Zoom = 0.085; JTK_MapCenter = [4096,4096]; }; case "Desert_E": { JTK_HALO_Min_GPS_Zoom = 0.25; JTK_MapCenter = [1024,1024]; }; case "isladuala": { JTK_Min_GPS_Zoom = 0.077; JTK_MapCenter = [5120,5120]; }; default { JTK_HALO_Min_GPS_Zoom = nil; JTK_MapCenter = nil; _MapConfigured = false; }; }; If not configured then execute the fallback: [_unit,_debug] spawn { private ["_grid_size"]; disableserialization; _unit = _this select 0; _debug = _this select 1; openMap [true, false]; WaitUntil {visibleMap}; _Map_display = findDisplay 12; _map_cntrl = _Map_display displayCtrl 51; // Temporarily zoom out as much as possible and measure the screen. _map_cntrl ctrlMapAnimAdd [0, 1000, [9999999999, 9999999999]]; ctrlMapAnimCommit _map_cntrl; waitUntil {ctrlMapAnimDone _map_cntrl}; _zoom_max = ctrlMapScale _map_cntrl; _limit = _map_cntrl ctrlMapScreenToWorld [0.5, 0.5]; _x_max = _limit select 0; _y_max = _limit select 1; _top_right = [_x_max,_y_max,0]; _top_left = [0,_y_max,1]; _btm_left = [0,0,0]; _btm_right = [_x_max,0,0]; _map_center = [0.5*(_limit select 0),0.5*(_limit select 1)]; _cfg=configFile>>"CfgWorlds">>worldName>>"Grid"; _grid_size_y =getNumber(_cfg>>"Zoom1">>"stepX"); _grid_size_x =getNumber(_cfg>>"Zoom1">>"stepY"); _grid_size = abs(_grid_size_y); if (_grid_size_y < 100) then { _grid_size = abs(_grid_size_y*_grid_size_x); }else{_grid_size = abs(_grid_size_y)}; _w = _top_right distance _top_left; _h = _top_right distance _btm_right; _map_width = _limit select 0; _map_height = _limit select 1; _Map_Area_Grids = (_map_width/_grid_size)*(_map_height/_grid_size);//<=====================================MAP SIZE HERE IN GRIDS!! _Map_Area_km = (_map_width/1000)*(_map_height/1000);//<=====================================MAP SIZE HERE IN KMs!! if (_debug) then { _m = createmarker ["MapSize",_map_center]; _m setmarkerShape "RECTANGLE"; _m setmarkerSize [_map_width /2,_map_height/2]; _m setmarkerAlpha 0.15; _m setmarkercolor "ColorRed"; _m = createmarker ["MapWNote",[-150,(_map_center select 0)]]; _m setmarkerText format["Delta X: %1 km",(_x_max/1000)]; _m setmarkersize [0,0]; _m setmarkerType "Dot"; _m setmarkercolor "Colorblack"; _m = createmarker ["MapLNote",[(_map_center select 1),-150]]; _m setmarkerText format ["Delta Y: %1 km",(_y_max/1000)]; _m setmarkersize [0,0]; _m setmarkerType "Dot"; _m setmarkercolor "Colorblack"; _m = createmarker ["MapSizeNote",_map_center]; _m setmarkerText format ["(Map Size: %1 sq km)",_Map_Area_km]; _m setmarkersize [0,0]; _m setmarkerType "Dot"; _m setmarkercolor "Colorblack"; }; _mapsize = _Map_Area_km; WaitUntil {!isNil "_mapsize"}; _Size_stndrd = 235.93; _zoom_stndrd = 0.05; private ["_zoom","_mltplr"]; _add = true; _percnt = (_mapsize/_Size_stndrd); if (_percnt > 1) then {_percnt = _percnt mod 1;_add = false}; _percntof = 1 - (_percnt); _zoom_dif = _percntof*_zoom_stndrd; if !(_add) then { _zoom = _zoom_stndrd - _zoom_dif; }else{ _zoom = _zoom_dif + _zoom_stndrd; }; if (_zoom > 0.095) then { _zoom = 0.25 }else{ if (_zoom == 0) then { _zoom = _zoom + _zoom_stndrd }else{ if (_zoom < 0) then {_zoom = 0}; }; }; JTK_HALO_Min_GPS_Zoom = _zoom; JTK_MapCenter = _map_center; openMap [false, false]; }; The fallback isnt pretty. It requires the unit has a map and that map must be opened to get the size of the screen. I ran mine when the mission initialized and kept the screen black until the required values were captured. That way if the player didn't have a map you could give him one, open it, get what you need then remove it from before the mission starts. More on it here http://forums.bistudio.com/showthread.php?139264-How-to-obtain-via-script-map-s-true-center-position-(or-map-s-size-values). Hope it helps, Keep up the Good work. -
RscPictures Showing up barely visible
Kempco_2 posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
For some reason I can't seem to get any of my images to show as intended. They always show up black and barley visible. Furthermore, colorText[] seems to have no effect. The size of images in question are 50px x 50px(square) with w and h both set to 0.03. Also,Squaring class dimensions (defined as absolute) via h = 0.03 * 4 / 3; w = 0.03 had no effect). What am I missing? From common.hpp #define JTKCT_STATIC 0 #define JTKST_PICTURE 48 class JTK_RscPicture { idc = -1; type = JTKCT_STATIC; style = JTKST_PICTURE; colorBackground[] = { }; colorText[] = { }; font = "TahomaB"; sizeEx = 0.023; x = 0.0; y = 0.2; w = 0.2; h = 0.2; text = ""; }; From dialog.hpp (FYI: These are the last classes in the dialog to ensure that they are in NOT behind the background). //===========================button images============================= class JTK_HALO_Altitude_Increase: JTK_RscPicture{ idc = JTK_IncreaseAltitude_IDC; colorText[] = {1,1,1,1}; x = -0.05; y = 0.65; w = 0.03; h = 0.03; text = "imgs\arrow_up.paa"; }; class JTK_HALO_Altitude_Decrease: JTK_HALO_Altitude_Increase{ idc = JTK_DecreaseAltitude_IDC; y = 0.70; text = "imgs\arrow_down.paa"; }; Dimensions of the arrow images used are 50px x 50px. Screen shot below. The arrows are circled in red. Thanks, Kempco -
Looks like JTK HALO will be be coming to Arma 3. Small request, could you prevent players from opening the rear door if the aircraft is locked? Thanks\. Kempco
-
AI HALO Jump Example Mission
Kempco_2 replied to cobra4v320's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Been waiting on the C130s for some time so I can update JTK HALO for Arma 3 but dosen't look like their coming any time soon. @Ninjaman666 was the static C130 used in your video ported over from Arma 2? -Edit- Probably should have read rest of thread. the C130 was ported using all-in-arma. Thanks. For those needing clarification on the C130s: The C130 shown in the video was the static version of the C130 from ARMA 2 OA. (Class name: "C130J_static_EP1"). In addition to that there are 2 versions of the C130-J aircraft (i.e. actual vehicles not object): The "C130J" which comes with Arma 2 and the "C130J_US_EP1" which comes with Arma 2 OA. Keep in mind, that you must have each respective arma 2 expansion to access the corresponding vehicles when using All-In-Arma. -
JTK HALO Script by Kempco
Kempco_2 replied to Kempco's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
JTK_HALO_Command_Unit = p1;