Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
LitlBigNoob

Undefined base class 'Hw_RscText'

Вот жиж эти .hpp

не доходит что ему надо

Ошибка:

Updating base class ->Helicopter, by ca\air_d_baf\config.bin/CfgVehicles/BAF_Merlin_HC3_D/
ErrorMessage: File mpmissions\__cur_mp.Chernarus\Custom\Player_Hud\hud.hpp, line 10: /RscTitles/AsReMixhud/controlsBackground.AsReMixhud_Status: Undefined base class 'Hw_RscText'

 

 

 

мой дескрипшн.hpp

 

respawn = "BASE";
respawndelay = 5;
onLoadMission="DayZ_Epoch Panthera";
OnLoadIntro = "Welcome to Panthera Island";
OnLoadIntroTime = False;
OnLoadMissionTime = False;
disabledAI = true;
disableChannels[]={0,2,6};
enableItemsDropping=0;


briefing = 0;
debriefing = 0;

onPauseScript = "Custom\Anti_Dupe\DupingFix.sqf";
loadScreen = "Custom\Textures\load.paa";

class Header
{
gameType = COOP; //DM, Team, Coop, ...
minPlayers = 1; //min # of players the mission supports
maxPlayers = 100; //Max # of players the mission supports
};

aiKills = 1;
diagRadio = 1;
diagHit = 1;

class RscText
{
type = 0;
idc = -1;
x = 0;
y = 0;
h = 0.037;
w = 0.3;
style = 0x100;
font = Zeppelin32;
SizeEx = 0.03921;
colorText[] = {1,1,1,1};
colorBackground[] = {0, 0, 0, 0};
linespacing = 1;
};
class RscPicture
{
access=0;
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="TahomaB";
sizeEx=0;
lineSpacing=0;
text="";
};
class RscLoadingText : RscText
{
style = 2;
x = 0.323532;
y = 0.666672;
w = 0.352944;
h = 0.039216;
sizeEx = 0.03921;
colorText[] = {0.543,0.5742,0.4102,1.0};
};
class RscProgress
{
x = 0.344;
y = 0.619;
w = 0.313726;
h = 0.0261438;
texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
colorFrame[] = {0,0,0,0};
colorBar[] = {1,1,1,1};
};
class RscProgressNotFreeze
{
idc = -1;
type = 45;
style = 0;
x = 0.022059;
y = 0.911772;
w = 0.029412;
h = 0.039216;
texture = "#(argb,8,8,3)color(0,0,0,0)";
};
//
// the loading screen itself
//
class DayZ_loadingScreen
{
idd = -1;
duration = 10e10;
fadein = 0;
fadeout = 0;
name = "loading screen";
class controlsBackground
{
class blackBG : RscText
{
x = safezoneX;
y = safezoneY;
w = safezoneW;
h = safezoneH;
text = "";
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,1};
};
/*
class nicePic : RscPicture
{
style = 48 + 0x800; // ST_PICTURE + ST_KEEP_ASPECT_RATIO
x = safezoneX + safezoneW/2 - 0.25;
y = safezoneY + safezoneH/2 - 0.2;
w = 0.5;
h = 0.4;
text = "img\nicePic.paa";
};
*/
};
class controls
{
class Title1 : RscLoadingText
{
text = "$STR_LOADING"; // "Loading" text in the middle of the screen
};
class CA_Progress : RscProgress // progress bar, has to have idc 104
{
idc = 104;
type = 8; // CT_PROGRESS
style = 0; // ST_SINGLE
texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
};
class CA_Progress2 : RscProgressNotFreeze // progress bar that will go reverse
{
idc = 103;
};
class Name2: RscText // the text on the top-left
{
idc = 101;
x = 0.05;
y = 0.029412;
w = 0.9;
h = 0.04902;
text = "";
sizeEx = 0.05;
colorText[] = {0.543,0.5742,0.4102,1.0};
};
};
};
class RscTitles
{
#include "Custom\Player_Hud\hud.hpp"
};


#include "Custom\Snap_Pro\snappoints.hpp"

 

 

hud.hpp

 

 

#define hud_status_idc 4900

class AsReMixhud {
idd = -1;
fadeout=0;
fadein=0;
duration = 20;
name= "AsReMixhud";
onLoad = "uiNamespace setVariable ['AsReMixhud', _this select 0]";

class controlsBackground {

class AsReMixhud_Status:Hw_RscText
{
idc = hud_status_idc;
type = CT_STRUCTURED_TEXT;
size = 0.040;
x = safezoneX + (safezoneW -0.35);
y = safezoneY + 0.05 * safezoneW;
w = 0.35; h = 0.60;
colorText[] = {1,1,1,1};
lineSpacing = 3;
colorBackground[] = {0,0,0,0};
text = "";
shadow = 2;
class Attributes {
align = "right";
};
};
};
};

 

 

 

помогите люди добрые ....

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

ну он тебе и пишет-не задан класс "Hw_RscText'" в каком то hpp

Share this post


Link to post
Share on other sites



  • 0

В description.ext задай класс:

class HW_RscText 
{
	idc = -1;
	type = CT_STATIC;
	style = ST_CENTER;
	text = "";
	font = "Zeppelin32";
	sizeEx = 0.023;
	colorBackground[] = { 1, 1, 1, 0.3 };
	colorText[] = { 0, 0, 0, 1 };
	x = 0.8;
	y = 0.1;
	w = 0.2;
	h = 0.05;
};

Share this post


Link to post
Share on other sites
  • 0

 

В description.ext задай класс:

class HW_RscText 
{
	idc = -1;
	type = CT_STATIC;
	style = ST_CENTER;
	text = "";
	font = "Zeppelin32";
	sizeEx = 0.023;
	colorBackground[] = { 1, 1, 1, 0.3 };
	colorText[] = { 0, 0, 0, 1 };
	x = 0.8;
	y = 0.1;
	w = 0.2;
	h = 0.05;
};

Спасибо тебе, добрый человек. Чётко и по существу)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By danulo95
      в чем ошибка?
      Error in expression <Pos;
              while {1 == 1} do
              {
                  if (str dayz_spawnPos != str _spawnPos) then
                  >
        Error position: <dayz_spawnPos != str _spawnPos) then
                  >
        Error Undefined variable in expression: dayz_spawnpos
    • By TheFirstNoob
      Привет!
      Думаю много кто сталкивался с ошибкой такого рода: 
      16:07:17 Error in expression <; _recompile = (count _this) > 0; if (BIS_fnc_init && !_recompile) exitwith {t> 16:07:17 Error position: <BIS_fnc_init && !_recompile) exitwith {t> 16:07:17 Error Undefined variable in expression: bis_fnc_init 16:07:17 File ca\Modules\Functions\init.sqf, line 28 Начнем с того что данная ошибка может вызываться по разному.

      1. Если у вас на чистой сборки данной ошибки не было, а после каких-то ваших махинации она появилась, то проблема в ваших ручках и данный фикс вам скорее всего не поможет и топайте фиксить вашу сборку.
      2. Если на чистой версии Epoch от 1.0.6+ уже имеется такая ошибка:
      Пожалуйста убедитесь что все файлы нужной вам версии были скачены до конца и нет такой ситуации что вы обновляли мод путем замены или еще чего. Старую версию надо полностью удалять и ставить новую. Если все равно ошибка остается, то идем ниже. 3. Если п.2 нам не помог, то скорее всего проблема очевидна. У вас имеются устаревшие файлы старого патча. Это случается когда вы покупаете только Arma 2 Operation Arrowhead, но не покупаете Arma 2 обычную. В итоге вам приходиться где-то искать папку Addons в интернете от Arma 2 или Arma 2 Free. Проблема в том, что файлы найденные в интернете могут быть от патча аля так 112555 или еще ниже. Поэтому и случается подобная проблема когда сервер с патчем 131129+ запрашивает некоторые файлы и получает ошибку потому что файл старый и код требуется немного иной.

      Ниже я приложил modules.pbo где и есть наш проблемный bis_fnc_init с последнего официального патча.
      Скачайте, и замените его в вашей папке Addons, что лежит в Корне игры со всеми ключами!
      Ключи ваши не собьются и у вас не будет ошибки аля "файл не подписан" или "не совпадает подпись".
      Все прекрасно работает на других серверах Epoch и так же проверенно на другом проекте (WOG).

      P.S. К решению такой проблемы я пришел совершенно из разряда "А го попробуем?" ибо меня тоже напрягала данная ошибка и капал вообще в разные стороны. В итоге пришел реально к тупому решению, который работает.
      Спасибо @NoNameUltima за предоставленные pbo.

      Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

      Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

      Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.
    • By Sovest2
      Никак не могу избавиться от снятия с трупа бота бесконечного количества денег(Если спрятать его и дождаться пока он пропадет),которое отображается как "any".
      Проблему пытаюсь исправить в check_wallet.sqf
      Вот такой вот текст у меня в check_wallet.sqf
      private ["_body", "_hisMoney", "_myMoney"]; _body = _this select 3; _PlayerNear = _body call dze_isnearest_player; if (_PlayerNear ) exitWith {cutText [localize "str_pickup_limit_4", "PLAIN DOWN"]}; _name = _body getVariable ["bodyName","Неизвестный"]; _hisMoney = _body getVariable ["cashMoney",0]; diag_log format["_name = %1 , _hisMoney = %2 , _body = %3",_name,_hisMoney,_body]; if( (isNull _body) || (_name == "<NULL-object>") || (_name == "<null>")) exitWith {cutText ["Вы не можете снять деньги с этого трупа,попробуйте еще раз", "PLAIN DOWN"]}; _myMoney = player getVariable ["cashMoney",0]; _myMoney = _myMoney + _hisMoney; _body setVariable ["cashMoney", 0 , true]; player setVariable ["cashMoney", _myMoney , true]; systemChat format ['Вы забрали %1 монет с %2 !',_hisMoney,_name]; Условие  
      _name = "<null>" Пропускает значение  _name = <null>
       
      Код в fn_selfActions.sqf
      // Study Body if (_player_studybody && !_clothesTaken) then { if (s_player_studybody < 0) then { // --------ZUPA - Check Wallet -------- s_player_studybody = player addAction [("<t color=""#FF0000"">"+("Проверить кошелек") + "</t>"), "custom\singlecurrency\actions\check_wallet.sqf",_cursorTarget, 0, false, true, "",""]; // ---- ZUPA END --- }; if((s_player_clothes < 0)) then { s_player_clothes = player addAction [("<t color='#0096ff'>")+("Снять одежду")+("</t>"), "custom\take_clothes\take_clothes.sqf",cursorTarget, -10, false, true]; }; } else { player removeAction s_player_studybody; s_player_studybody = -1; player removeAction s_player_clothes; s_player_clothes = -1; };  
    • By motocat
      Доброго времени суток, подскажите плс, можно ли поставить как-то чтобы определенное оружие\предмет(например С4) ломал базу под гудмодом?
    • By Koms
      4:34:27 Error in expression < getVariable["actionSet", false]; if (!_actionSet) then { s_player_holderPickup> 4:34:27 Error position: <_actionSet) then { s_player_holderPickup> 4:34:27 Error Undefined variable in expression: _actionset 4:34:27 File z\addons\dayz_code\init\object_BackpackAction.sqf, line 13 Подскажите, как пофиксить данную проблему?
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.