Jump to content
!TS JORDAN

[Tutorial] Altis Central Bank - Second Fed!

Recommended Posts

4 minutes ago, Jamie Curtis said:

Well the tutorial does not say to add anything to the initCiv.sqf 

Correct, but it was giving the error so I wanted to make sure. I actually needed your config.cpp from life_server as well. 

Edited by imthatguyhere

Share this post


Link to post
Share on other sites
9 minutes ago, Jamie Curtis said:

Maybe the error was from something else I've messed up. Theres a lot of errors in my RPT I've not looked at yet 

config.cpp

Get rid of the comment you added and try again.

Share this post


Link to post
Share on other sites
4 minutes ago, Jamie Curtis said:

Thanks bud, Will try it now. Just so you know the federalUpdate.sqf you posted is the same as the one I sent you unless I've missed something 

Your original contained a bunch of UTF BOM characters in the middle. That'll cause Arma to freak out most of the time it seems.

Share this post


Link to post
Share on other sites
3 minutes ago, Jamie Curtis said:

No I still spawn in Debug as a civilian. However If I choose to spawn at a Rebel Outpost it spawns me in the correct place.

arma3server_x64_2018-09-17_20-44-37.rpt

fn_handleBlastingChargeBank.sqf

Found it. You removed the class for terrainSort in the config.cpp in life_server. Fixed file:

 

config.cpp

Share this post


Link to post
Share on other sites

Thanks Bud, everything works now. I'm guessing the amount you get depends on the multipliers and the amount of civilians/cops online?

 

    fed_bank setVariable ["safe",round(_funds+((count playableUnits)/2)),true];
    fed_bank_1 setVariable ["safe",round(_bfunds+((count playableUnits)/5)),true];

 

Do you know where I can edit the times to crack them?

Share this post


Link to post
Share on other sites
17 hours ago, Jamie Curtis said:

Thanks Bud, everything works now. I'm guessing the amount you get depends on the multipliers and the amount of civilians/cops online?

 

    fed_bank setVariable ["safe",round(_funds+((count playableUnits)/2)),true];
    fed_bank_1 setVariable ["safe",round(_bfunds+((count playableUnits)/5)),true];

 

Do you know where I can edit the times to crack them?

It depends on the amount of players currently on the server.

The time is in "mission\core\civilian\fn_demoChargeTimer.sqf" and "life_server\Functions\Systems\fn_handleBlastingCharge.sqf" by default. Since this copies that, It should be "fn_demoChargeTimerBank.sqf" and "fn_handleBlastingChargeBank.sqf" respectively. I believe those are the only 2 places the time would need to be changed.

Share this post


Link to post
Share on other sites
3 hours ago, AzEsoteric said:

Nevermind fixed it

 

It looks like you aren't the first to have this issue. Why don't you share what went wrong and how you got it working again?

Share this post


Link to post
Share on other sites
16 hours ago, NeRoOo said:

I get the "The safe is empty" how can i fix it??

Sounds like you didn't do this section (or you didn't wait long enough or have players for it to fill):

On 10/25/2016 at 3:10 AM, !TS JORDAN said:

3. life_server >> Functions >> Systems >> federalUpdate.sqf

Under line "_funds = fed_bank getVariable ["safe",0];" add

 

_bfunds = fed_bank_1 getVariable ["safe",0];

4. life_server >> Functions >> Systems >> federalUpdate.sqf

Under line "fed_bank setVariable ["safe",round(_funds+((count playableUnits)/2)),true];" add

fed_bank_1 setVariable ["safe",round(_bfunds+((count playableUnits)/5)),true];

5. CentralBank.zip

Same as before add the marked "life_server" files from the zip into the corresponding folders. 

Share this post


Link to post
Share on other sites
2 hours ago, imthatguyhere said:

Sounds like you didn't do this section (or you didn't wait long enough or have players for it to fill😞

I did it right but did not wait for other players. Is there a way to make the amount always exist without waiting for any player?

Share this post


Link to post
Share on other sites
3 hours ago, NeRoOo said:

I did it right but did not wait for other players. Is there a way to make the amount always exist without waiting for any player?

You can edit the line to be static:

fed_bank_1 setVariable ["safe", 69, true];

Replace 69 with whatever number of bars you want in the safe.

Share this post


Link to post
Share on other sites
Error context »¿
Warning Message: File mpmissions\Altis_Life.Altis\dialog\federalReserve.hpp, line 28: '/Federal_Safe/controlsBackground/RscTitleText.': 'ï' encountered instead of '='
Warning Message: Config : some input after EndOfFile.
Class Life_RscText destroyed with lock count 2
Class Life_RscTitle destroyed with lock count 1

I have read throw all 7 pages trying to find someone with the same issue one only one was VanquishedCookie well here is my file/rpt

FederalReserve.hpp

Rpt Log

**Fixed this** it was 4 am when doing this I couldn't see that was wrong but i fixed. works for 5.0
 

class Federal_Safe {
    idd = 3500;
    name = "Federal_Safe";
    movingEnable = 0;
    enableSimulation = 1;

    class controlsBackground {
        class RscTitleBackground: Life_RscText {
            colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
            idc = -1;
            x = 0.1;
            y = 0.2;
            w = 0.33;
            h = (1 / 25);
        };

        class RscBackground: Life_RscText {
            colorBackground[] = {0, 0, 0, 0.7};
            idc = -1;
            x = 0.1;
            y = 0.2 + (11 / 250);
            w = 0.33;
            h = 0.7 - (22 / 250);
        };

        class RscTitleText: Life_RscTitle {
            colorBackground[] = {0, 0, 0, 0};
            idc = 3501;
            text = "";
            x = 0.1;
            y = 0.2;
            w = 0.33;
            h = (1 / 25);
        };

        class VehicleWeight : RscTitleText {
            idc = 3504;
            style = 1;
            text = "";
        };

        class RscTrunkText: Life_RscText {
            idc = -1;
            colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
            text = "$STR_Trunk_TInventory";
            sizeEx = 0.04;
            x = 0.11;
            y = 0.25;
            w = 0.3;
            h = 0.04;
        };
    };

    class Controls {
        class TrunkGear: Life_RscListBox {
            idc = 3502;
            text = "";
            sizeEx = 0.030;
            x = 0.11;
            y = 0.29;
            w = 0.3;
            h = 0.42;
        };

        class TrunkEdit: Life_RscEdit {
            idc = 3505;
            text = "1";
            sizeEx = 0.030;
            x = 0.11;
            y = 0.72;
            w = 0.3;
            h = 0.03;
        };

        class TakeItem: Life_RscButtonMenu {
            idc = -1;
            text = "$STR_Trunk_Take";
            colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
            onButtonClick = "[] call life_fnc_safeTake;";
            x = 0.19;
            y = 0.78;
            w = (6.25 / 40);
            h = (1 / 25);
        };

        class ButtonClose: Life_RscButtonMenu {
            idc = -1;
            //shortcuts[] = {0x00050000 + 2};
            text = "$STR_Global_Close";
            onButtonClick = "closeDialog 0;";
            x = 0.1;
            y = 0.9 - (1 / 25);
            w = (6.25 / 40);
            h = (1 / 25);
        };
    };
};

class Federal_Safe_1 {
    idd = 6666;
    name = "Federal_Safe_1";
    movingEnable = 0;
    enableSimulation = 1;

    class controlsBackground {
        class RscTitleBackground: Life_RscText {
            colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
            idc = -1;
            x = 0.1;
            y = 0.2;
            w = 0.33;
            h = (1 / 25);
        };

        class RscBackground: Life_RscText {
            colorBackground[] = {0, 0, 0, 0.7};
            idc = -1;
            x = 0.1;
            y = 0.2 + (11 / 250);
            w = 0.33;
            h = 0.7 - (22 / 250);
        };

        class RscTitleText: Life_RscTitle {
            colorBackground[] = {0, 0, 0, 0};
            idc = 3501;
            text = "";
            x = 0.1;
            y = 0.2;
            w = 0.33;
            h = (1 / 25);
        };

        class VehicleWeight : RscTitleText {
            idc = 3504;
            style = 1;
            text = "";
        };

        class RscTrunkText: Life_RscText {
            idc = -1;
            colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
            text = "$STR_Trunk_TInventory";
            sizeEx = 0.04;
            x = 0.11;
            y = 0.25;
            w = 0.3;
            h = 0.04;
        };
    };

    class Controls {
        class TrunkGear: Life_RscListBox {
            idc = 6669;
            text = "";
            sizeEx = 0.030;
            x = 0.11;
            y = 0.29;
            w = 0.3;
            h = 0.42;
        };

        class TrunkEdit: Life_RscEdit {
            idc = 6662;
            text = "1";
            sizeEx = 0.030;
            x = 0.11;
            y = 0.72;
            w = 0.3;
            h = 0.03;
        };

        class TakeItem: Life_RscButtonMenu {
            idc = -1;
            text = "$STR_Trunk_Take";
            colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
            onButtonClick = "[] call life_fnc_safeTakeBank;";
            x = 0.19;
            y = 0.78;
            w = (6.25 / 40);
            h = (1 / 25);
        };

        class ButtonClose: Life_RscButtonMenu {
            idc = -1;
            //shortcuts[] = {0x00050000 + 2};
            text = "$STR_Global_Close";
            onButtonClick = "closeDialog 0;";
            x = 0.1;
            y = 0.9 - (1 / 25);
            w = (6.25 / 40);
            h = (1 / 25);
        };
    };
};

 

Edited by Daniel Stewart

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

×