haba
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by haba
-
-
When i try to buy something with advanced trading to my gear i receive this error:Using normal trade do not have such problem.
I have tryed to google it but no luck (
_allowedTools become -1 because player have full toolbelt inventory, so players cant buy items even if other inventory is normal.
Here is root of the problem:
Spoiler_allowedTools = 12;
{
_parentClasses = [(configFile >> "CfgWeapons" >> _x ),true] call BIS_fnc_returnParents;
if( 'ItemCore' in _parentClasses || 'Binocular' in _parentClasses) then {
_allowedTools = _allowedTools - 1;
}
}count (weapons player);So if player have 12 items at toolbelt and have rangefinder, or binocular or NGV result of that function will be -1 or -2.
I have set _allowedTools to 14, but do not think that it's good desigion.
-
It's maybe offtopic but have someone merged p4l (2.5) + snap_pro (1.4.1) + build vector? I will be glad if someone help with that, because latest files at github was merged wuth p4l 2.34
-
I have 2 problems.
1) When no coins stored at vault and i change code, vault do not have any information about money. I need to lock vault and unlock it and after that i can deposit money to vault.
2) After i change code of vault i can't change it again.
-
can someone help me? I have installed plotmanagement and doormanagement and p4l
When i upgrade door with combination lock at client side i see this errors:
SpoilerError in expression <VDZE_veh_Update";
PVDZE_veh_Update call server_updateObject;_friendUID = getPl>
Error position: <server_updateObject;_friendUID = getPl>
Error Undefined variable in expression: server_updateobject
File mpmissions\__CUR_MP.Napf\Custom\A_Plot_for_Life\Action\player_upgrade.sqf, line 172
Error in expression <VDZE_veh_Update";
PVDZE_veh_Update call server_updateObject;_friendUID = getPl>
Error position: <server_updateObject;_friendUID = getPl>
Error Undefined variable in expression: server_updateobject
File mpmissions\__CUR_MP.Napf\Custom\A_Plot_for_Life\Action\player_upgrade.sqf, line 172I can manage door, it show mee online people and door friends and i'm a friend of this door. But when i try to unlock it with eye scan nothing happen and when i try again i receive message that doors is allready opening.
After restart i try to manage door and at client side i see this error:
SpoilerError in expression <"doorfriends",[]];
{
if ((_x select 0) == (getPlayerUID player)) then{ _canOpen>
Error position: <== (getPlayerUID player)) then{ _canOpen>
Error ==: Type Array, expected Number,String,Object,Side,Group,Text,Config entry,Display (dialog),Control,Team member,Task,Location
File mpmissions\__CUR_MP.Napf\doorManagement\initDoorManagement.sqf, line 13When i try open door i see this at client side:
SpoilerError in expression <;
};
_allowed = [];
{
_friendUID = _x select 0;
_allowed = _allowed + [_fri>
Error position: <select 0;
_allowed = _allowed + [_fri>
Error select: Type Number, expected Array,Config entry
File mpmissions\__CUR_MP.Napf\doorManagement\player_unlockDoor.sqf, line 24
Error in expression <;
};
_allowed = [];
{
_friendUID = _x select 0;
_allowed = _allowed + [_fri>
Error position: <select 0;
_allowed = _allowed + [_fri>
Error Generic error in expression
File mpmissions\__CUR_MP.Napf\doorManagement\player_unlockDoor.sqf, line 24and this at server side:
Spoiler3:39:03 "infiSTAR.de Log: DOOR UNLOCK ATTEMPT: ID:654 UID:0 BY habahaba(76561198071372372) @154109 Code Entered: 000 | Correct Code: 733"
EDIT1: I have removed one thing that i have addet. It's at first post and it's only for non p4l users. now i do not have errors when build doors and upgrade them. But i do not able to manage dor after restart and unable to open door not before restart not after restart.
I found that inventory of doors at database is empty. So that mean that problem stored at server_updateObject.sqf inside _object_inventory = { Here is my part of that file:
Spoiler_object_inventory = {
private["_inventory","_previous","_key"];
_isNormal = true;
if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then{
_isNormal = false;
_inventory = _object getVariable ["plotfriends", []]; //We're replacing the inventory with UIDs for this item
};
if (typeOf (_object)in DZE_DoorsLocked) then{
_isNormal = false;
_inventory = _object getVariable ["doorfriends", []]; //We're replacing the inventory with UIDs for this item
};if(_isNormal)then {
_inventory = [
getWeaponCargo _object,
getMagazineCargo _object,
getBackpackCargo _object,
/*ZSC*/
_object getVariable["bankMoney",0]
/*ZSC*/
];
};
_previous = str(_object getVariable["lastInventory",[]]);
if (str(_inventory) != _previous) then {
_object setVariable["lastInventory",_inventory];
if (_objectID == "0") then {
_key = format["CHILD:309:%1:%2:",_uid,_inventory];
} else {
_key = format["CHILD:303:%1:%2:",_objectID,_inventory];
};
//diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
};
};EDIT2: I have added _object setVariable ["ownerPUID", _ownerPUID, true]; to my server_monitor.sqf file. Problem is here. :( When object (pole or door) created inventory show as [], when i add someone to pole or to the door oject invetrory become [[[],[]],[[],[]],[[],[]],0]
So as i can see plot and door do not put ID's to the database.
EDIT3: Yes, i continue my scary storry my friends. I have solved problem with database store. I found taht i have duplicate of my lovely server_updateObject.sqf. I removed dublicate (diffet before remove to check what file i need) and now when i add people to plot or door friend they add to database.
But i found other problem. When owner build door or plot owner do not stored at database at plot friends. I do not know is it normal (cause p4l is installed) so if someone give me a light on it i will appresiate it.
-
On 01.02.2016 at 4:35 AM, NoxSicarius said:
Step 8A:
In your root server folder open custom\system\server_monitor.sqf
Find
_object setVariable ["ObjectID", _idKey, true];
Replace with
if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then { _object setVariable ["plotfriends", _inventory, true]; };
If you remove _object setVariable ["ObjectID", _idKey, true]; all your spawned vehicles will be removed from map. It can remove locked vehicles too.
[Release] Advanced Trading 2.1 !UPDATED!
in A2: Epoch Mods (1.0.5.1)
Posted
Typical problem. Z_MoneyVariable = "cashMoney"; it's must not be changed. You do not need to change "cashMoney".