Hallo
ich habe ein Problem mit den Notifications von Bohemia (bis_fnc_showNotification). Ich habe bereits versucht alle diese Nachrichten gegen die Originalen von Tonic auszutauschen, dies war leider erfolglos.
Google brachte mir die folgenden Artikel:
Da steht ja wie man das ganze in die description.ext einbauen muss. Das habe ich wie folgt
Code: description.ext
class CfgNotifications {
class MedicalRequestEmerg {
title = "$STR_MedicalRequestEmerg_Title";
iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcon_ca.paa";
description = "%1";
duration = 5;
priority = 7;
};
class DeliveryAssigned {
title = "$STR_DeliveryAssigned_Title";
iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcon_ca.paa";
description = "%1";
duration = 10;
priority = 7;
};
class DeliveryFailed {
title = "$STR_DeliveryFailed_Title";
iconPicture = "\A3\ui_f\data\map\mapcontrol\taskiconfailed_ca.paa";
description = "%1";
duration = 7;
priority = 7;
};
class DeliverySucceeded {
title = "$STR_DeliverySucceeded_Title";
iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcondone_ca.paa";
description = "%1";
duration = 6;
priority = 6;
};
class TextMessage {
title = "$STR_TextMessage_Title";
iconPicture = "icons\ico_messageNew.paa";
description = "%1";
duration = 10;
priority = 6;
};
class PoliceDispatch {
title = "$STR_PoliceDispatch_Title";
iconPicture = "icons\ico_messagePolice.paa";
description = "%1";
duration = 10;
priority = 6;
};
class AdminDispatch {
title = "$STR_AdminDispatch_Title";
iconPicture = "icons\ico_messageAdmin.paa";
description = "%1";
duration = 10;
priority = 6;
};
class AdminMessage {
title = "$STR_AdminMessage_Title";
iconPicture = "icons\ico_messageAdmin.paa";
description = "%1";
duration = 10;
priority = 5;
};
class PolizeiRundfunk
{
title = "Polizei Rundfunk";
iconPicture = ""; //Icon kann geändert werden, kein Icon = leere ""
description = "%1";
duration = 10;
priority = 5;
};
class RettungsdienstRundfunk
{
title = "Rettungsdienst Rundfunk";
iconPicture = "icons\messagepolice.paa"; //Icon kann geändert werden, kein Icon = leere ""
description = "%1";
duration = 10;
priority = 5;
};
};
Alles anzeigen
Code: als Beispiel Aufruf die fn_dpFinish.sqf
#include "..\..\script_macros.hpp"
/*
File: fn_dpFinish.sqf
Author: Bryan "Tonic" Boardwine
Description:
Finishes the DP Mission and calculates the money earned based
on distance between A->B
*/
private ["_dp","_dis","_price"];
_dp = [_this,0,objNull,[objNull]] call BIS_fnc_param;
life_delivery_in_progress = false;
life_dp_point = nil;
_dis = round((getPos life_dp_start) distance (getPos _dp));
_price = round(1.7 * _dis);
["DeliverySucceeded",[format [(localize "STR_NOTF_Earned_1"),[_price] call life_fnc_numberText]]] call bis_fnc_showNotification;
life_cur_task setTaskState "Succeeded";
player removeSimpleTask life_cur_task;
CASH = CASH + _price;
[0] call SOCK_fnc_updatePartial;
Alles anzeigen
Das gleiche gilt für alle anderen Notifications.
Ich kann zwar diesbezüglich keine Fehler in meinen Logs feststellen gebe die aber vorsichtshalber mal als Dateianhang dazu.