• 0
Admiral EliteSuicide

[SOLVED]MarXet - No Option to open market

Question

Hey Guys,

I have a new Problem with the MarXet Mod. 

The NPC for the market has no option/interaction to open the market?

20171129104331_1.jpg

How do I get it there or did I anythng wrong?

 

I´ve done all this for the Installation:

Spoiler

#### Installation
Installation is simple and easy with only one Exile overwrite.

#### extDB
1. Copy `MarXet-SQL.sql` into your favorite mySQL viewer's query window and run it.
2. Confirm you have a `marxet` table.
3. Copy the contents of `MarXet-extDB.ini` into your `@ExileServer\extDB\sql_custom_v2\exile.ini` file at the bottom.

##### Server
1. Copy `ExileServer_system_network_dispatchIncomingMessage.sqf` from `MarXet\SERVER_FILES\exile_server\code` into your `@ExileServer\addons\exile_server\code` folder and replace the existing one.
    1. This allows MarXet to send network messages to the server. If you run Advanced Banking, Virtual Garage or Most Wanted, you won't need to copy this file over as you already have it. :)
2. PBO `MarXet_Server` in `SERVER_FILES` and copy that to your `@ExileServer\addons` folder.

##### Client
1. Copy `MarXet` from `CLIENT_FILES` into the root of your exile.MAPNAME folder.
2. In either `init.sqf` or `initPlayerLocal.sqf`, add `[] execVM "MarXet\MarXet_Init.sqf";`
3. `CfgHints.hpp` and `CfgNetworkMessages.hpp` both will depend on your set up.
    1. If you **ALREADY** have `class CfgHints` or `class CfgNetworkMessages` **ANYWHERE** in your `description.ext` or `config.cpp` in your exile.MAPNAME folder:
        1. Add `#include "MarXet\CfgMarXetNetworkMessages.hpp` to `class CfgNetworkMessages`
        2. Add `#include "MarXet\CfgMarXetHints.hpp` to `class CfgHints`
        3. It should look something like what is below.
    2. If you don't have `class CfgHints` or `class CfgNetworkMessages`, in your `config.cpp`, add this anywhere.

               class CfgHints
               {
                    #include "MarXet\CfgMarXetHints.hpp"
               };
               class CfgNetworkMessages
               {
                    #include "MarXet\CfgMarXetNetworkMessages.hpp"
               };

4. In your `description.ext` add the following:

        #include "MarXet\dialog\RscMarXetDefines.hpp"
        #include "MarXet\dialog\RscMarXetDialog.hpp"
5. You are done! Head on down to configuration.

 

After that I customized the MarXet_Traders.sqf

I´ve edited it to this, at the first only 1 npc and 1 sign for testing.

Spoiler

/*
*
*  MarXet_Traders.sqf
*  Author: WolfkillArcadia
*  © 2016 Arcas Industries
*  This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
*  To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
*/
private["_traders","_trader","_signs","_sign"];
_traders = [];
switch (toLower worldName) do {
    case "chernarus":
    {
        //////////////////////////////////////////////////////////
        //             USS Trader
        //////////////////////////////////////////////////////////
        _trader =
        [
            "Exile_Cutscene_Prisoner01",
            "",
            "GreekHead_A3_01",
            ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
            [6926.964,2197.898,34.939],
            206.411
        ]
        call ExileClient_object_trader_create;
        _traders pushBack _trader;

        private ["_signs"];
        _signs = [
            ["Exile_Sign_Armory",[6919.973,2186.034,38.555],46,[[0.615369,-0.788239,0],[0,-0,1]],false]
        ];
        {
            private ["_sign"];
            _sign = createVehicle [_x select 0, [0,0,0], [], 0, ""];
            _sign enableSimulationGlobal false;
            _sign setObjectTextureGlobal [0, "MarXet\images\MarXet_Sign.jpg"];
            if (_x select 4) then {
                _sign setDir (_x select 2);
                _sign setPos (_x select 1);
            } else {
                _sign setPosATL (_x select 1);
                _sign setVectorDirAndUp (_x select 3);
            };
        } foreach _signs;

    };
};
{
    _x forceAddUniform "U_BG_Guerilla2_1";
    _x addVest "Exile_Vest_Snow";
    _x addHeadgear "H_Watchcap_blk";
    _x addGoggles "G_Bandanna_aviator";
    _x addWeapon "srifle_DMR_04_F";
    _x addPrimaryWeaponItem "optic_LRPS";
    _x addWeapon "hgun_ACPC2_F";
    _x addAction ["<img image='\a3\ui_f\data\IGUI\Cfg\Actions\reammo_ca.paa' size='1' shadow='false' />Access MarXet","createDialog 'RscMarXetDialog'","",1,false,true,"","((position player) distance _target) <= 4"];
} forEach _traders;
 

 

Hope somebody can help me with this to fix it. :-)

Edited by Admiral EliteSuicide

Share this post


Link to post
Share on other sites

19 answers to this question

  • 0

Well, you only looked at traders at the carrier or is this your only traderzone?

 

What ever, the problem is related to the carrier and arma detecting the ground/position of the player/trader.

The same,  when you spawn a vehicle on the carrier, it will be placed on bottom of the see - looks like the same happening here for the request, recognizing player/trader position attitude at the ground. (at least that's how i conjecture the issue :D )

And since we only give a 4m radius, it won't show the menu cuz from ground to trader it's way more then 4m:

"((position player) distance _target) <= 4"

The solution however is pretty simple:

    _x addAction ["<img image='\a3\ui_f\data\IGUI\Cfg\Actions\reammo_ca.paa' size='1' shadow='false' />Access MarXet","createDialog 'RscMarXetDialog'","",1,false,true,"",""];

 

Took me a while to figure it out but sometimes you miss the forest for the trees :)

Edited by WURSTKETTE

Share this post


Link to post
Share on other sites
  • 0

Seems like something is blocking the addaction function? Infistar running?
 

/*
	The allowed lists below need the "title" of the action!
	
	Only logs BadActions (and removes them) but does not kick or ban.
*/
BadActionCheck = "true";			/* log and remove all actions that are not white-listed */
allowedActions[] = {"Break free","Use AutoLockPicker","Craft Vehicle","Hack UAV","Access MarXet"};
allowedActionsPartial[] = {"paint"};
BadActionContentCheck = "true";	/* Check the functions assigned to all actions, regardless any white-list */

 

Edited by WURSTKETTE

Share this post


Link to post
Share on other sites
Advertisement
  • 0
2 hours ago, WURSTKETTE said:

Seems like something is blocking the addaction function? Infistar running?
 


/*
	The allowed lists below need the "title" of the action!
	
	Only logs BadActions (and removes them) but does not kick or ban.
*/
BadActionCheck = "true";			/* log and remove all actions that are not white-listed */
allowedActions[] = {"Break free","Use AutoLockPicker","Craft Vehicle","Hack UAV","Access MarXet"};
allowedActionsPartial[] = {"paint"};
BadActionContentCheck = "true";	/* Check the functions assigned to all actions, regardless any white-list */

 

 

Yes its looks so and yes I am running InfiStar

 

I´ve checked it and the BadActionCheck was on false so its couldnt be this.. I added it to allowedActions and turned it Online for testing but nothing change and theres still no option to open :/ 

Share this post


Link to post
Share on other sites
  • 0

What you could try, just for method of elimination - disable infistar and check if the action is added. If so, you know at least where to look at.

Share this post


Link to post
Share on other sites
  • 0
25 minutes ago, WURSTKETTE said:

What you could try, just for method of elimination - disable infistar and check if the action is added. If so, you know at least where to look at.

 

I´ve disaled complete InfiStar now and theres still no open Action...

Edited by Admiral EliteSuicide

Share this post


Link to post
Share on other sites
  • 0
26 minutes ago, GolovaRaoul said:

Did you add it to CfgInteractionMenu or something? Located in config.cpp clientside

 

No nothing in config.cpp, what should I need to add there?

I only edit/changed the files I need for Installing this  and not more..

 

Installation I followed:

Spoiler

#### Installation
Installation is simple and easy with only one Exile overwrite.

#### extDB
1. Copy `MarXet-SQL.sql` into your favorite mySQL viewer's query window and run it.
2. Confirm you have a `marxet` table.
3. Copy the contents of `MarXet-extDB.ini` into your `@ExileServer\extDB\sql_custom_v2\exile.ini` file at the bottom.

##### Server
1. Copy `ExileServer_system_network_dispatchIncomingMessage.sqf` from `MarXet\SERVER_FILES\exile_server\code` into your `@ExileServer\addons\exile_server\code` folder and replace the existing one.
    1. This allows MarXet to send network messages to the server. If you run Advanced Banking, Virtual Garage or Most Wanted, you won't need to copy this file over as you already have it. :)
2. PBO `MarXet_Server` in `SERVER_FILES` and copy that to your `@ExileServer\addons` folder.

##### Client
1. Copy `MarXet` from `CLIENT_FILES` into the root of your exile.MAPNAME folder.
2. In either `init.sqf` or `initPlayerLocal.sqf`, add `[] execVM "MarXet\MarXet_Init.sqf";`
3. `CfgHints.hpp` and `CfgNetworkMessages.hpp` both will depend on your set up.
    1. If you **ALREADY** have `class CfgHints` or `class CfgNetworkMessages` **ANYWHERE** in your `description.ext` or `config.cpp` in your exile.MAPNAME folder:
        1. Add `#include "MarXet\CfgMarXetNetworkMessages.hpp` to `class CfgNetworkMessages`
        2. Add `#include "MarXet\CfgMarXetHints.hpp` to `class CfgHints`
        3. It should look something like what is below.
    2. If you don't have `class CfgHints` or `class CfgNetworkMessages`, in your `config.cpp`, add this anywhere.

               class CfgHints
               {
                    #include "MarXet\CfgMarXetHints.hpp"
               };
               class CfgNetworkMessages
               {
                    #include "MarXet\CfgMarXetNetworkMessages.hpp"
               };

4. In your `description.ext` add the following:

        #include "MarXet\dialog\RscMarXetDefines.hpp"
        #include "MarXet\dialog\RscMarXetDialog.hpp"
5. You are done! Head on down to configuration.

 

Share this post


Link to post
Share on other sites
  • 0

Oh nvm that's being handled in MarXet_Traders.sqf
Ignore my comment above sorry :(

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Here´s all I done:

1. Copy `MarXet-SQL.sql` into your favorite mySQL viewer's query window and run it. -DONE
2. Confirm you have a `marxet` table. -DONE

Desktop Screenshot 2017.11.29 - 15.47.23.93.png

 

3. Copy the contents of `MarXet-extDB.ini` into your `@ExileServer\extDB\sql_custom_v2\exile.ini` file at the bottom. -DONE

Desktop Screenshot 2017.11.29 - 15.49.26.19.png

 

4. Copy `ExileServer_system_network_dispatchIncomingMessage.sqf` from `MarXet\SERVER_FILES\exile_server\code` into your `@ExileServer\addons\exile_server\code` folder and replace the existing one. This allows MarXet to send network messages to the server. If you run Advanced Banking, Virtual Garage or Most Wanted, you won't need to copy this file over as you already have it. -DONE I haded this file before and overwrited it with the Mods one

 

5. PBO `MarXet_Server` in `SERVER_FILES` and copy that to your `@ExileServer\addons` folder. -DONE

 

6. Copy `MarXet` from `CLIENT_FILES` into the root of your exile.MAPNAME folder. - DONE


7. In either `init.sqf` or `initPlayerLocal.sqf`, add `[] execVM "MarXet\MarXet_Init.sqf";`-DONE

Desktop Screenshot 2017.11.29 - 16.07.42.70.png

 

8. In your `description.ext` add the following:

        #include "MarXet\dialog\RscMarXetDefines.hpp" -DONE
        #include "MarXet\dialog\RscMarXetDialog.hpp" -DONE

Add ´#include "MarXet\CfgMarXetHints.hpp` to `class CfgHints´-DONE

Add `#include "MarXet\CfgMarXetNetworkMessages.hpp` to `class CfgNetworkMessages`-DONE

Desktop Screenshot 2017.11.29 - 16.03.03.75.png

 

Installation finished! After that I cusomized the MarXet_Trader.sqf

Desktop Screenshot 2017.11.29 - 16.09.52.26.png

Edited by Admiral EliteSuicide

Share this post


Link to post
Share on other sites
  • 0

So, basically you did everything right, cuz as you see on your server, the trader is spawned at the location with the right gear - for some reason the addaction either is removed or blocked.

I still would say it's infistar but as you said, even when infistar is not launched with the server the action isn't available - pretty strange.

 

i quick executed the trader.sqf and i got the action:

 

d7fBrqy.jpg

Method of elimination, remove/comment out [] ExecVM "scarCODE\ServerInfoMenu\sqf\initLocal.sqf"; in your init.sqf - maybe this is blocking it? Doesn't make any sense to me but, just give it a go.

 

Edit: NVM..:

k2ScwUb.png

 

 

Edited by WURSTKETTE

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.