Announcement

[RELEASE] Extended Survival Pack LAST COMPATIBILITY CHECK 05.03.2019

138 posts in this topic

8 hours ago, Lady Val said:

Sure...

This is what is added to config.cpp in Exile_server_config.pbo:

  Reveal hidden contents

class Events 
    {
        /*
            A list of events that are active
        */
        enabledEvents[] = {"SupplyBox", "AbandonedSafe", "AmbientFlyOver", "EarthQuake", "Drugs","Farming"}; 
        enabledEscapeEvents[] = {"EscapeSupplyBox", "AmbientFlyOver", "EarthQuake"}; 
                    
        class Drugs
        {
            type = "spawn";
            function = "ExileServer_system_event_drugs_start";
            minTime = 20; // minutes
            maxTime = 40; // minutes
            minimumPlayersOnline = 1;
            markerTime = 2; // minutes
        };
        
        class Farming
        {
            type = "spawn";
            function = "ExileServer_system_event_farming_start";
            minTime = 20; // minutes
            maxTime = 40; // minutes
            minimumPlayersOnline = 1;
            markerTime = 2; // minutes
        };

And this is in Exile_Server.pbo, In_preinit.sqf (added to the end):

  Hide contents

        //Mining and farming
    ['ExileServer_system_event_drugs_start', 'exile_server\code\ExileServer_system_event_drugs_start.sqf', false],
    ['ExileServer_system_event_farming_start', 'exile_server\code\ExileServer_system_event_farming_start.sqf', false]

and this 2 files added into the exile_server\code folder

ExileServer_system_event_drugs_start.sqf  and  ExileServer_system_event_farming_start.sqf

Now, inside my exile.chernarusredux.pbo, in the custom folder I have the folders: drugs, mining, fishing;  and in config.cpp, under the class CfgInteractionMenus I have this at the end of the actions

  Reveal hidden contents

/////////////////////////////////////////////////////////////
    //////////////////////// Ore Mining ////////////////////////////
    ////////////////////////////////////////////////////////////////
    class Weed
    {
        targetType = 2;
        target = "DDR_Weed_Plant";

        class Actions 
        {
            class HarvestWeed: ExileAbstractAction
            {
                title = "Harvest Weed";
                condition = "('Exile_Item_Knife' in (magazines player) && !ExilePlayerInSafezone)";
                action = "_this call DDR_fnc_Weed";
            };
        };
    };
    class Mushrooms
    {
        targetType = 2;
        target = "DDR_Mushrooms";

        class Actions 
        {
            class HarvestMushrooms: ExileAbstractAction
            {
                title = "Harvest Magic Mushrooms";
                condition = "('Exile_Item_Knife' in (magazines player) && !ExilePlayerInSafezone)";
                action = "_this call DDR_fnc_Mushrooms";
            };
        };
    };
    class Ore_Mining
    {
        targetType = 2;
        target = "DDR_Ore_Rock";

        class Actions 
        {
            class materials1: ExileAbstractAction
            {
                title = "Harvest For Gold Or Silver Ore";
                condition = "('DDR_Item_Pickaxe' in (magazines player) && !ExilePlayerInSafezone)";
                action = "_this call DDR_fnc_Ore_Mining";
            };
        };
    };
    class Crystal_Mining
    {
        targetType = 2;
        target = "DDR_Crystal_Rock";

        class Actions 
        {
            class materials2: ExileAbstractAction
            {
                title = "Harvest For Gems";
                condition = "('DDR_Item_Pickaxe' in (magazines player) && !ExilePlayerInSafezone)";
                action = "_this call DDR_fnc_Crystal_Mining";
            };
        };
     };// end of survival kit farming    

This lines, at the end of InitPlayerLocal.sqf

  Reveal hidden contents

//mining - farming
DDR_fnc_Mushrooms = compileFinal preprocessFileLineNumbers "custom\drugs\mushrooms.sqf";
DDR_fnc_Weed = compileFinal preprocessFileLineNumbers "custom\drugs\weed.sqf";
DDR_fnc_Ore_Mining = compileFinal preprocessFileLineNumbers "custom\mining\ore_mining.sqf";
DDR_fnc_Crystal_Mining = compileFinal preprocessFileLineNumbers "custom\mining\crystal_mining.sqf";

And I have this in Mission.sqf:     "ddr_vehicles",     "Extended_Survival_Pack",

And obviously, it is in mod=@extended_survival_pack;  and the extended_survival_pack.bikey  in the key folder.

I Type all what I did in case I am forgetting something.   This is the same that was working in Altis map.

Thanks for all the help you are giving, guys.

what i see here it should be working, so what isnt it doing

Share this post


Link to post
Share on other sites

When you click in harvest or mining, it just didnt do the action.
No error in server rpt, but in Client rpt we have this:
18:58:59 Error in expression <_this call DDR_fnc_Mushrooms>
18:58:59   Error position: <DDR_fnc_Mushrooms>
18:58:59   Error Undefined variable in expression: ddr_fnc_mushrooms

 

Share this post


Link to post
Share on other sites
Advertisement

In theory, everything is working but when you go to pick the mushrooms or the weed or the ore, nothing appear (like the action is not being done) and in client side you have that error (I showed you mine that it was when I tried with Mushrooms, but other guys had the same regarding weed or ore)

Thats why I am so... lost, I redid it all 4 times and I am pretty sure it is correct.  It was working in other map, Altis... but I think it shouldnt have problems in Chernarus Redux

Share this post


Link to post
Share on other sites
On 4/12/2018 at 3:08 PM, SpodGamesTV said:

I installed the mod recently but Im not able to farm weed and ores. I tried it with the ore and a pickaxe but on the map isnt a marker of a position where I can farm and also when I go to any rock im getting no option to farm. I installed the farming script like in the tutorial.

I have the same problem!

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.