Re: RELEASE: DaiZy Napf 1.7.7 (Colab with Haleks!). v1.0

Posted by Haleks on
URL: http://kodabar-dayz-daizy-single-player-forum.163.s1.nabble.com/RELEASE-DaiZy-Napf-1-7-7-1-Colab-with-Haleks-v2-2-01-07-tp8730p8968.html

MasterNe0 wrote
I managed to remove the lines as from your other post:
I guess you're using the updated buidling script. It's up to you : you can deactivate in the init (you also will have to remove the custom fn_selfactions file).
If you want to clean your mission file of it, you will have to remove those lines from description.ext :
#include "build_recipe_dialog.hpp"
#include "build_recipe_list_dialog.hpp"
and delete the buildRecipeBook folder.
You can use it if you want; I've put quite some work in it, it might as well be used on more releases...

However when I try to run the map, it will say the description.ext line 38:
/dayz_loadingscreen/controlsbackground.blackbg: undefined base class 'rsctext' and the game would crash.

Any ideas? I just removed the #included part in the first 3 lines of the description.ext file.
Try to overwrite whatever is in the description.ext file inside your mission with this:
/*
        if ((Player getVariable "SpareTime") > 0) then {...
*/

        respawn = "BASE";
        respawndelay = 5;
        onLoadMission= "";
        OnLoadIntro = "";
        OnLoadIntroTime = False;
        OnLoadMissionTime = False;
        disabledAI = 0;
        disableChannels[]={};
        enableItemsDropping = 0;
        loadScreen = "img\daizy.paa";

        class Header
        {
         gameType = COOP;
         minPlayers = 1;
         maxPlayers = 100;
        };

        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,0,0,"0.6+0.4"};
                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[] = {1,0,0,"0.6+0.4"};
        };
        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)";
        };
        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;
                        colorText[] = {1,0,0,"0.6+0.4"};
                        colorBackground[] = {0,0,0,1};
                        text = "";
                };
                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\daizy.paa";
                };
        };
        class controls
        {
                class Title1 : RscLoadingText
                {
                        colorText[] = {1,0,0,"0.6+0.4"};
                        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;
                        colorText[] = {1,0,0,"0.6+0.4"};
                        text = "";
                        sizeEx = 0.05;
                };
        };
};
It's the one I was using before implementing the new building script, so it should work. If it doesn't, you can use a description file from any generated mission for MP.