target_practice 163 Posted June 24, 2016 What's the name of the thing that can be triggered to display the date, time, and location of the mission at the bottom right of the screen? (It's used multiple times in the campaign) And how do I use it? Share this post Link to post Share on other sites
M1ke_SK 230 Posted June 24, 2016 Do you mean BIS_fnc_infoText ? Share this post Link to post Share on other sites
POLPOX 779 Posted June 24, 2016 I dont know actually function used in the campaign, but I found a very similar function. maybe "\a3\missions_f_bootcamp\Campaign\Functions\GUI\fn_SITREP.sqf" will makes you happy. ex. [ ["Bla Bla Bla",""],["","<br/>"], ["Also Can Change Font","font = 'PuristaMedium'"] ] execVM "\a3\missions_f_bootcamp\Campaign\Functions\GUI\fn_SITREP.sqf" ; 1 1 Share this post Link to post Share on other sites
target_practice 163 Posted June 24, 2016 Do you mean BIS_fnc_infoText ? I don't think so. From seeing it used on other missions, I've observed that it automatically gets the date, time, and location without manual input. Share this post Link to post Share on other sites
R3vo 2654 Posted June 24, 2016 I don't think so. From seeing it used on other missions, I've observed that it automatically gets the date, time, and location without manual input. There's no I know of which does that automatically. Share this post Link to post Share on other sites
kylania 568 Posted June 24, 2016 There's no I know of which does that automatically. The one from polpox does it automatically. I found some others, but they had too many parameters to deal with at 2am. The sitrep.sqf one though looks really nice and easy to use. You can even customize it more. It's locked to Altis/Stratis though. I'll try to see if it's been updated for Tanoa. Share this post Link to post Share on other sites
target_practice 163 Posted June 24, 2016 I think I'll just try decompiling a mission that uses it to see if I can identify it, but I know for certain that it's a vanilla function. 1 Share this post Link to post Share on other sites
kylania 568 Posted June 25, 2016 Rip had PM'd me about an intro and I thought of polpox's script find here, so combined several intro tricks and came up with this: /* Author: kylania Description: Fade in from black intro, with a quote and Arma 3 style SitRep Date/Time/Mission credits. Run via execVM from playerInitLocal.sqf Parameter(s): 0: STRING - Name of the mission. SemiBold font under date during sitrep typing effect. Default: "An Arma 3 mission" 1: STRING - Author of the mission. Displayed under the mission name in medium font. Use a " " for nothing. Default: "by a Community Author" 2: STRING - Version of the mission. Displayed under the mission author in a medium font. Use a " " for nothing. Default: "Version 1.0" 3: STRING - Quote for center screen display on black screen. Default: "Not so long ago, not so far away...\n\n-A quote" 4: NUMBER - Duration of quote display. Default: 9 Returns: Nothing. Examples: ["Jungle Trek", "By Rip", "Version 1", '"A cat is a lion in a jungle of small bushes."\n\n-Indian proverb'] execVM "missionIntro.sqf"; ["A Mission", " ", " ", "", 0] execVM "missionIntro.sqf"; */ // Start with a silent black screen. titleCut ["", "BLACK FADED", 999]; 0 fadeSound 0; // Spawn text effects. _this spawn { params[ ["_missionName", "An Arma 3 mission"], ["_missionAuthor", "by a Community Author"], ["_missionVersion", "Version 1.0"], ["_quote", "Not so long ago, not so far away...\n\n-A quote"], ["_duration", 9] ]; // Starting quote as volume fades in. titleText [_quote,"PLAIN"]; titleFadeOut _duration; _duration fadeSound 1; sleep (_duration - 2); // New "sitrep style" text in bottom right corner, typed out over time. [ [_missionName,"font = 'PuristaSemiBold'"], ["","<br/>"], [_missionAuthor,"font = 'PuristaMedium'"], ["","<br/>"], [_missionVersion,"font = 'PuristaLight'"] ] execVM "\a3\missions_f_bootcamp\Campaign\Functions\GUI\fn_SITREP.sqf"; // Fade from black, to blur, to clear as text types. sleep 3; "dynamicBlur" ppEffectEnable true; "dynamicBlur" ppEffectAdjust [6]; "dynamicBlur" ppEffectCommit 0; "dynamicBlur" ppEffectAdjust [0.0]; "dynamicBlur" ppEffectCommit 5; titleCut ["", "BLACK IN", 5]; }; 1 Share this post Link to post Share on other sites
target_practice 163 Posted June 25, 2016 Just so people know what I'm talking about, it's this: Additionally, does anyone know how to do the fade-out markers present in the hub mission in the campaign? What I mean are the markers that show where various facilities within the camp/base are, but only when zoomed in. Share this post Link to post Share on other sites
POLPOX 779 Posted June 25, 2016 I actually found the function! _nil = [] execVM "a3\missions_f_epa\Campaign_shared\Functions\Timeline\fn_camp_showOSD.sqf"; This is it, just execute to show the info. And what do you mean fade-out markers? Images? 1 Share this post Link to post Share on other sites
R3vo 2654 Posted June 25, 2016 Keep in mind that this script will not work on custom maps, not even on Tanoa. Share this post Link to post Share on other sites
SilentSpike 84 Posted June 25, 2016 BIS_fnc_moduleMissionName does this Share this post Link to post Share on other sites
target_practice 163 Posted June 25, 2016 And what do you mean fade-out markers? Images? If you play on one of the hub/camp/base mission in the Arma 3 campaign, open the map and zoom on the camp: it will show markers for where everything is in camp (armory, briefing aea etc.) When you zoom out, you will see that these markers fade out of view. Keep in mind that this script will not work on custom maps, not even on Tanoa. Well if it doesn't it isn't the script I'm looking for, as I know it does. It's used on DUWS, and no matter which map the mission is ported to, it always displays the correct time and location using map data. Share this post Link to post Share on other sites
kylania 568 Posted July 6, 2016 BIS added a new version of this today with the Apex Protocol campaign, BIS_fnc_EXP_camp_SITREP. Here's how to use it: /* Parameters: - Each array you pass represents a line that should be displayed - Lines will be displayed in the order you define them - Each line's array consists of the following information _array select 0: STRING - Contents of the line to be displayed _array select 1: NUMBER (Optional) - Fade-in duration _array select 2: NUMBER (Optional) - How long it should wait before showing the next line _array select 3: NUMBER (Optional) - Fade-out duration (only used by the last line, fades all other lines as well) */ [ [ "Somewhere south of nowhere." ], [ (str(date select 1) + "-" + str(date select 2) + "-" + str(date select 0)), 1, 5 ], [ "This line was delayed by 5 seconds", 1, 1, 4 ] ] spawn BIS_fnc_EXP_camp_SITREP; 4 Share this post Link to post Share on other sites
IndeedPete 1038 Posted July 8, 2016 BIS added a new version of this today with the Apex Protocol campaign, BIS_fnc_EXP_camp_SITREP. Here's how to use it: /* Parameters: - Each array you pass represents a line that should be displayed - Lines will be displayed in the order you define them - Each line's array consists of the following information _array select 0: STRING - Contents of the line to be displayed _array select 1: NUMBER (Optional) - Fade-in duration _array select 2: NUMBER (Optional) - How long it should wait before showing the next line _array select 3: NUMBER (Optional) - Fade-out duration (only used by the last line, fades all other lines as well) */ [ [ "Somewhere south of nowhere." ], [ (str(date select 1) + "-" + str(date select 2) + "-" + str(date select 0)), 1, 5 ], [ "This line was delayed by 5 seconds", 1, 1, 4 ] ] spawn BIS_fnc_EXP_camp_SITREP; Good find, thanks! I was always a bit bothered by East Wind's BIS_fnc_typeText approach and its terrible performance. This one on the other hand seems to fade in and out smoothly. Share this post Link to post Share on other sites
R3vo 2654 Posted July 8, 2016 Good find, thanks! I was always a bit bothered by East Wind's BIS_fnc_typeText approach and its terrible performance. This one on the other hand seems to fade in and out smoothly. The performance might be better, but I personally think it looks a bit dull. I still prefer BIS_fnc_textTiles Share this post Link to post Share on other sites
IndeedPete 1038 Posted July 8, 2016 The performance might be better, but I personally think it looks a bit dull. I still prefer BIS_fnc_textTiles True. I've also used text tiles for a while. Got to mix it up sometimes though.^^ Share this post Link to post Share on other sites
clawhammer 10 Posted July 24, 2016 BIS added a new version of this today with the Apex Protocol campaign, BIS_fnc_EXP_camp_SITREP. Here's how to use it: /* Parameters: - Each array you pass represents a line that should be displayed - Lines will be displayed in the order you define them - Each line's array consists of the following information _array select 0: STRING - Contents of the line to be displayed _array select 1: NUMBER (Optional) - Fade-in duration _array select 2: NUMBER (Optional) - How long it should wait before showing the next line _array select 3: NUMBER (Optional) - Fade-out duration (only used by the last line, fades all other lines as well) */ [ [ "Somewhere south of nowhere." ], [ (str(date select 1) + "-" + str(date select 2) + "-" + str(date select 0)), 1, 5 ], [ "This line was delayed by 5 seconds", 1, 1, 4 ] ] spawn BIS_fnc_EXP_camp_SITREP; How can i use that with: BIS_fnc_locationDescription? So that he writes something like: "easth from town xyz". Thanks! Share this post Link to post Share on other sites
R3vo 2654 Posted July 24, 2016 Combine it with https://community.bistudio.com/wiki/Location [ [ player call BIS_fnc_locationDescription ] ] spawn BIS_fnc_EXP_camp_SITREP; Share this post Link to post Share on other sites
clawhammer 10 Posted July 24, 2016 I get an error, missing ] Share this post Link to post Share on other sites
R3vo 2654 Posted July 24, 2016 Sorry, my bad, I updated my last post. 1 Share this post Link to post Share on other sites
clawhammer 10 Posted July 24, 2016 ah, thanks thats works! Share this post Link to post Share on other sites
clawhammer 10 Posted July 24, 2016 Sry me again :-/ If i want to write something before "player call BIS_fnc_locationDescription" gets executed how can i do it? I tried: "Altis", player call BIS_fnc_locationDescription ["Altis"], [player call BIS_fnc_locationDescription] ("Altis"), (player call BIS_fnc_locationDescription) but still get these "missing [" errors And i would like to know how to convert the date into written format like Monday 15 March 2016. Thanks again! :-) Share this post Link to post Share on other sites
HallyG 239 Posted July 24, 2016 Just so people know what I'm talking about, it's this: Additionally, does anyone know how to do the fade-out markers present in the hub mission in the campaign? What I mean are the markers that show where various facilities within the camp/base are, but only when zoomed in. I don't know if this is still what you're looking for but I rewrote some of the BIS showOSD function. Should work with any map and it allows you to change the grid positions (ie change the map size so it doesn't say you're in the NE area when in fact you're just in a vast never ending ocean) for a given map: h = [] spawn { comment "showOSD - original script Jiri Wainar, modified by HallyG"; MAPS = ["stratis", "altis", "tanoa"]; MAPSIZES = [[1302, 230, 6825, 7810], [1785, 4639, 28624, 26008], [330, 130, 15084, 15360]]; if (missionNamespace getVariable ["BIS_showOSD_running", false]) exitWith {}; BIS_showOSD_running = true; private _fn_getSector = { params ["_posX", "_posY"]; private _map = toLower worldName; private _width = worldSize/2; private _height = worldSize/2; private _centre = [_width, _height]; if (_map in MAPS) then { (MAPSIZES select (MAPS find _map)) params ["_bottomLX", "_bottomLY", "_topRX", "_topRY"]; _width = (_topRx - _bottomLX)/2; _height = (_topRY - _bottomLY)/2; _centre = [(_topRx + _bottomLX)/2, (_topRY + _bottomLY)/2]; }; if !([_posX, _posY] inArea [_centre, _width, _height, 0, true]) exitWith {0}; private _gridX = floor (_posX /(_width * 0.666)); private _gridY = floor (_posY /(_height * 0.666)); ((_gridY * 3) + _gridX + 1) }; params [ ["_position", getPos player, [[]]], ["_date", date, [[]], [5]] ]; private _sector = _position call _fn_getSector; private _tIntel = ""; _date = (_date call BIS_fnc_fixDate) apply {format [["%1", "0%1"] select (_x < 10), _x]}; { _tIntel = [_tIntel, _x] joinString ([["-", " "] select (_forEachIndex == 3), ":"] select (_forEachIndex > 3)); } forEach _date; private _output = [ [_tIntel select [1, 10], ""], [" " + (_tIntel select [12]), "font='PuristaMedium'"], ["", "<br/>"] ]; if (_sector > 0) then { private _locations = (nearestLocations [_position, ["NameCity", "NameCityCapital", "NameLocal", "NameMarine", "NameVillage"], 500]) select {!((text _x) isEqualTo "")}; if !(_locations isEqualTo []) then { private _loc = _locations select 0; _output append [ [toUpper ([format [localize "STR_A3_NearLocation", text _loc], text _loc] select ((getPos player) in _loc)), ""], ["", "<br/>"] ]; }; }; _template = [format ["Near %1", worldName], localize "STR_A3_SectorSouthWest", localize "STR_A3_SectorSouth", localize "STR_A3_SectorSouthEast", localize "STR_A3_SectorWest", localize "STR_A3_SectorCentral", localize "STR_A3_SectorEast", localize "STR_A3_SectorNorthWest", localize "STR_A3_SectorNorth", localize "STR_A3_SectorNorthEast"] select _sector; _output append [ [format [_template, getText (configfile >> "cfgWorlds" >> worldname >> "description")], ""], ["", "<br/>"] ]; private _handle = [_output, safezoneX - 0.01, safeZoneY + (1 - 0.125) * safeZoneH, true, "<t align='right' size='1.0' font='PuristaLight'>%1</t>"] spawn BIS_fnc_typeText2; waitUntil {scriptDone _handle;}; BIS_showOSD_running = false; }; Share this post Link to post Share on other sites