x423xriobravo

Locker not showing the ability to hold over ten million poptabs

6 posts in this topic

Hey guy's i have looked over the forums for a fix for this but i can seem to find it. if this is posted in the wrong place i am sorry. i was unsure where something like this would go. but i have edited my locker to hold 10 million pot tabs. it can hold that many its just the number beside of it is really odd ill link a picture to show what i mean. any idea how to fix this?

20170413172944_1.jpg

Edited by x423xriobravo

Share this post


Link to post
Share on other sites
Advertisement

what did you change? was it in your config.cpp in the mission folder?

the mysql table uses  INT 11

this means the min value allowed is

-2147483648 and max is 2147483647

the 6e+006 means 6,000,000

Share this post


Link to post
Share on other sites

you could try this override

add to your CfgExileCustomCode {
//increase safe and bank poptab
    ExileClient_gui_inventory_updatePopTabControls = "overrides\ExileClient_gui_inventory_updatePopTabControls.sqf";
};

Spoiler

/**
 * ExileClient_gui_inventory_updatePopTabControls
 *
 * Exile Mod
 * exile.majormittens.co.uk
 * © 2015 Exile Mod Team
 *
 * 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["_enable","_display","_containerPopTabs","_containerPopTabsString","_playerPopTabs","_playerPopTabsString","_playerPopTabsLabel","_containerPopTabsLabel","_maximumCapacity","_maximumPopTabsToPut","_maximumLoad","_maximumCapacityString","_takePopTabsInput","_maximumPopTabsToPutString","_putPopTabsInput","_takePopTabsButton","_putPopTabsButton"];
disableSerialization;
_enable = _this;
_display = findDisplay 602;
if (isNull _display) then 
{
	_display = uiNameSpace getVariable ["RscDisplayInventory", displayNull];
};
if (isNull _display) exitWith {};
if (isNull ExileClientCurrentInventoryContainer) exitWith {};
_containerPopTabs = ExileClientCurrentInventoryContainer getVariable ["ExileMoney", 0];
_containerPopTabsString = _containerPopTabs call ExileClient_util_string_exponentToString;
_playerPopTabs = player getVariable ["ExileMoney", 0];
_playerPopTabsString = _playerPopTabs call ExileClient_util_string_exponentToString;
_playerPopTabsLabel = _display displayCtrl 25001;
_playerPopTabsLabel ctrlSetStructuredText (parseText format ["<t size='1' font='RobotoCondensed' align='right'>%1<img image='\exile_assets\texture\ui\poptab_inline_ca.paa' size='1' shadow='true' /></t>", _playerPopTabsString]);
_containerPopTabsLabel = _display displayCtrl 25000;
_maximumCapacity = -1;
_maximumPopTabsToPut = _playerPopTabs;
if !(ExileClientCurrentInventoryContainer isKindOf "man") then
{
	_maximumLoad = getNumber (configFile >> "CfgVehicles" >> typeOf ExileClientCurrentInventoryContainer >> "maximumLoad");
	if (_maximumLoad > 0) then
	{
		_maximumCapacity = _maximumLoad * 100;
		_maximumPopTabsToPut = _playerPopTabs min _maximumCapacity;
	};
};
if !(_maximumCapacity isEqualTo -1) then 
{
	_maximumCapacityString = _maximumCapacity call ExileClient_util_string_exponentToString;
	_containerPopTabsLabel ctrlSetStructuredText (parseText format ["<t size='1' font='RobotoCondensed' align='right'>%1 / %2<img image='\exile_assets\texture\ui\poptab_inline_ca.paa' size='1' shadow='true' /></t>", _containerPopTabsString, _maximumCapacityString]);
}
else 
{
	_containerPopTabsLabel ctrlSetStructuredText (parseText format ["<t size='1' font='RobotoCondensed' align='right'>%1<img image='\exile_assets\texture\ui\poptab_inline_ca.paa' size='1' shadow='true' /></t>", _containerPopTabsString]);
};
_takePopTabsInput = _display displayCtrl 25002;
_takePopTabsInput ctrlSetText _containerPopTabsString;
_maximumPopTabsToPutString = _maximumPopTabsToPut call ExileClient_util_string_exponentToString;
_putPopTabsInput = _display displayCtrl 25005;
_putPopTabsInput ctrlSetText _maximumPopTabsToPutString;
_takePopTabsButton = _display displayCtrl 25003;
_takePopTabsButton ctrlEnable !ExileClientIsWaitingForInventoryMoneyTransaction;
_putPopTabsButton = _display displayCtrl 25004;
_putPopTabsButton ctrlEnable !ExileClientIsWaitingForInventoryMoneyTransaction;

 

 

Edited by tinboye

Share this post


Link to post
Share on other sites

the override makes the server loop. the database all i have done to it was just add 20000 for starting poptabs.  all i changed was my config.ccp yes in my mission pbo. i made the lockers hold 10 mil. so what would i have to do to make the database understand the ten million?  Also thank you for helping me. sorry it takes me awhile to answer as well im busy with the server and real life stuff.

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.