Jump to content
Andrew_S90

Exile SafeX - Personal Trader Storage

Recommended Posts

This was created for AWG Exile and cleaned up for a general release, thanks to Adam Kadmon for allowing me to do so.

 

 

You are free to modify them for your server. I have included an example mission in the github release. 

This was recreated, fixed up and improved on a vanilla Exile Altis server with no infistar or battleye. You are on your own for anything that pops up with those.

Please look at the example mission if you get stuck. I cannot help with install issues. You are free to post in the Exile Discord #support channel here: https://discord.gg/cmMMHyJ

If there are bugs with the actual released code I can take a look.

 

Thanks all - best of luck with your Exile Servers. 

 

Exile SafeX:
This is a small personal inventory that can be found at safezone lockers. Allowing you to increase storage as your respect increases. Admin configurable respect levels and blocked items (can stop valuables from being placed in here) This script is required for MarXet 2.
Github: https://github.com/Andrew-S90/ExileSafeX
Video Preview:

 

 

Install Instructions:


Client


config.cpp

Paste the contents into the top of your config file. Modify existing network message section if needed. Add the lower section to InteractionMenus

description.ext

Paste the contents anywhere after #include "RscDefines.hpp" appears in your description.ext file

initplayerlocal.sqf

After if (!hasInterface || isServer) exitWith {}; paste the upper contents of initplayerlocal.sqf found in the Client folder

If you are having trouble please view the example mission included.

 

Server


Code

No overrides needed, simply pbo the server folder and place inside your servermod folder (such as @ExileServer)

SQL

There is a table that is needed for this to function properly. Please execute the SQL on your Exile database

Exile.ini

Paste the contents at the bottom of your exile.ini MODIFY if using extdb3

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

Since you can refill used magazine with SafeX i would add this to ExileClient_gui_safeXDialog_event_onDepositButtonClick at line 34.
 

_usedMagsToDitch = false;
_APMSXB = magazinesAmmoFull player;    
{
    _MagToBlacklist = _x select 0;
    _ammoPerMagazine = getNumber(configFile >> "CfgMagazines" >> _MagToBlacklist >> "count");
    _MagToBlacklistAmmoCount = _x select 1;
    
    
    if (_MagToBlacklistAmmoCount < _ammoPerMagazine) then
    {
        _usedMagsToDitch = true;
    };
    
}
forEach _APMSXB;

if(_usedMagsToDitch) exitWith
{
    ["ErrorTitleAndText", ["SafeX Error!", "You need to remove all used magazines and items from your inventory and weapons before using the SafeX storage."]] call ExileClient_gui_toaster_addTemplateToast;
};

 

Share this post


Link to post
Share on other sites

I'm getting an Error with the Database query for SafeX:
 

Error

SQL query:

CREATE TABLE IF NOT EXISTS `safex` ( `uid` varchar(32) NOT NULL, `safex_player` varchar(20000) NOT NULL DEFAULT '[]', `marxet_player` varchar(20000) NOT NULL DEFAULT '[]', PRIMARY KEY (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8

MySQL said: 

#1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs

Share this post


Link to post
Share on other sites

×