Jump to content

[Release] HS Blackmarket 1.6 | 'New' Trader System | Special Trader | Blackmarket


Suppe

Recommended Posts

  • 2 weeks later...

Hello im getting kicked for this error

 

30.03.2016 17:25:07: Alex Jett (68.199.181.171:2304) 2764b948e9fbdf34032ea789c170560d - #41 "teMarker [format["HSBlackmarket_%1",_i], _coords];
_marker setMarkerShape "ICON";
_marker setMarkerType "hd_pickup";
_marker set"

Is there anyway to fix this?

Link to comment
Share on other sites

On 3/31/2016 at 8:22 PM, Alex_ said:

Hello im getting kicked for this error

 


30.03.2016 17:25:07: Alex Jett (68.199.181.171:2304) 2764b948e9fbdf34032ea789c170560d - #41 "teMarker [format["HSBlackmarket_%1",_i], _coords];
_marker setMarkerShape "ICON";
_marker setMarkerType "hd_pickup";
_marker set"

Is there anyway to fix this?

You will need to edit scripts.txt to add an exception that reads !="_marker" at the end of the line that reads 7 setMarker, which is most likely line 43.

 

See one of the excellent guides to editing battleye exceptions on the forums here for more information.

Link to comment
Share on other sites

Hey guys, anyone else having problems since the update to 0.3.8?

For me the take crypto isn't working so anything bought it not deducted from the players balance.

This is the error:

 0:11:31 Error in expression <';
_vars = _player getVariable['VARS',[]+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
 0:11:31   Error position: <+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
 0:11:31   Error +: Type code, expected Number,Array,String,Not a Number
 0:11:31 File mpmissions\__cur_mp.Altis\custom\HALV_takegive_crypto.sqf, line 9

Has anyone else managed to fix this?

Thanks 

Link to comment
Share on other sites

Hey He-man,

Sorry but, this did clear the last error but, now there is a new one and the traders still don't credit or debit crypto. Here is the whole file below:

/*
	HALV_takegive_crypto.sqf
	by Halv
	
	Copyright (C) 2015  Halvhjearne & Suppe
	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
	Contact : [email protected]
*/

_player = _this select 0;
_nr = _this select 1;
_cIndex=EPOCH_customVars find 'Crypto';
_vars = _player getVariable['VARS', call EPOCH_defaultVars_SEPXVar];_curcrypt = _vars select _cIndex;
_newcrypt = _curcrypt+_nr;
[['effectCrypto',_newcrypt],(owner _player)]call EPOCH_sendPublicVariableClient;
_vars set[_cIndex,_newcrypt];
_player setVariable["VARS",_vars];

This is the new error:

 3:13:45 Error in expression <';
_vars = _player getVariable['VARS',[]+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
 3:13:45   Error position: <+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
 3:13:45   Error +: Type code, expected Number,Array,String,Not a Number
 3:13:45 File mpmissions\__cur_mp.Altis\custom\HALV_takegive_crypto.sqf, line 9

Any ideas.....?

Thanks for your help

EDIT: Sorry reposted old error message before, have edited to show the new error message

Edited by ReDBaroN
Link to comment
Share on other sites

Hmm, for me this seems to be ok, but you also have to change: 

[['effectCrypto',_newcrypt],(owner _player)]call EPOCH_sendPublicVariableClient;

because, Epoch is not using publicvariableeventhandler anymore.

Try this:

Spoiler

    _player = _this select 0;
    _nr = _this select 1;
    _cIndex = EPOCH_customVars find "Crypto";
    _vars = _player getVariable["VARS", call EPOCH_defaultVars_SEPXVar];
    _current_crypto = _vars select _cIndex;
    _current_cryptoRaw = _current_crypto;
    _playerCryptoLimit = EPOCH_customVarLimits select _cIndex;
    _playerCryptoLimit params ["_playerCryptoLimitMax","_playerCryptoLimitMin"];
    _current_crypto = ((_current_cryptoRaw + _nr) min _playerCryptoLimitMax) max _playerCryptoLimitMin;
    _current_crypto remoteExec ['EPOCH_effectCrypto',(owner _player)];
    _vars set[_cIndex, _current_crypto];
    _player setVariable["VARS", _vars];
 

 

Link to comment
Share on other sites

He-Man, so sorry! For some reason, as I have two of Halvs scripts that call this file, I had made it so they both call the same one but, for some crazy reason left the old one in another folder and have spent all this time editing that wrong one. I have now made your first reply's changes in the called version and all is good.

Really appreciate your help :)

 

 

Link to comment
Share on other sites

So yes for me everything in blackmarket trader is for free too since 0.3.8.0.

i added your part He-Man but then getting rtp log:

 

"[HSBlackmarket] Server: loading 'HALV_takegive_crypto.sqf'"
Error in expression <_current_crypto];
_player setVariable[""VARS"", _vars];>
  Error position: <VARS"", _vars];>
  Error Missing ]
File mpmissions\__cur_mp.Altis\trader\HALV_takegive_crypto.sqf, line 12
Error in expression <_current_crypto];
_player setVariable[""VARS"", _vars];>
  Error position: <VARS"", _vars];>
  Error Missing ]
File mpmissions\__cur_mp.Altis\trader\HALV_takegive_crypto.sqf, line 12

Link to comment
Share on other sites

  • 3 weeks later...

I keep getting kicked out of the server even after adding everything to the BE filter.

in the script log it says 

#0 " _send,0,0 * safezoneH + safezoneY,15,0,0,8407] spawn bis_fnc_dynamicText;
};

HS_buyorsell = {
disableSerialization;
if((_this "
 

I have tried adding it to the script filter, but it doesn't work.

Link to comment
Share on other sites

17 minutes ago, shakazahn said:

I keep getting kicked out of the server even after adding everything to the BE filter.

in the script log it says 

#0 " _send,0,0 * safezoneH + safezoneY,15,0,0,8407] spawn bis_fnc_dynamicText;
};

HS_buyorsell = {
disableSerialization;
if((_this "
 

I have tried adding it to the script filter, but it doesn't work.

Are you adding this to the end of the first line in scripts.txt? 

!="_send,0,0 * safezoneH + safezoneY,15,0,0,8407] spawn bis_fnc_dynamicText;\n};\n\nHS_buyorsell = {\ndisableSerialization;\nif((_this"

 

Link to comment
Share on other sites

6 minutes ago, BetterDeadThanZed said:

Are you adding this to the end of the first line in scripts.txt? 


!=" _send,0,0 * safezoneH + safezoneY,15,0,0,8407] spawn bis_fnc_dynamicText;\n};\n\nHS_buyorsell = {\ndisableSerialization;\nif((_this "

 

Thanks that worked, but fixing that one only brought up a new one

#18 "indOf)then{
_WH addItemCargo [_x select 0,1];
}else{
_WH addWeaponCargo [_x select 0,1];
};
};
case "cfgmagazines":{
_WH addMaga"

Link to comment
Share on other sites

30 minutes ago, shakazahn said:

Thanks that worked, but fixing that one only brought up a new one

#18 "indOf)then{
_WH addItemCargo [_x select 0,1];
}else{
_WH addWeaponCargo [_x select 0,1];
};
};
case "cfgmagazines":{
_WH addMaga"

You should really learn how to create your own exceptions.

This exception would be added to the end of the 20th line of scripts (Assuming this is a Script Restriction - You didn't post that part of the kick) as follows:

!="indOf)then{\n_WH addItemCargo [_x select 0,1];\n}else{\n_WH addWeaponCargo [_x select 0,1];\n};\n};\ncase "cfgmagazines":{\n_WH addMaga"

 

Link to comment
Share on other sites

On 5/1/2016 at 10:38 AM, BetterDeadThanZed said:

You should really learn how to create your own exceptions.

This exception would be added to the end of the 20th line of scripts (Assuming this is a Script Restriction - You didn't post that part of the kick) as follows:


!="indOf)then{\n_WH addItemCargo [_x select 0,1];\n}else{\n_WH addWeaponCargo [_x select 0,1];\n};\n};\ncase "cfgmagazines":{\n_WH addMaga"

 

The kick is the first additem which would be "addItemCargo". "addweaponcargo has it's own filter. No need to to add the whole line, and could possibly be unsafe.

 

Link to comment
Share on other sites

6 minutes ago, Robio said:

The kick is the first additem which would be "addItemCargo". "addweaponcargo has it's own filter. No need to to add the whole line, and could possibly be unsafe.

 

Adding the whole line with the != at the beginning means it's an exception for that specific kick. 

Link to comment
Share on other sites

25 minutes ago, Robio said:

Yes, I know. But the whole kick message is not needed.  But I'm guessing you are using infistar and he has:


7 addItemCargo

exemption ?

 

Simply do "Epoch scripts text".


7 addItems !="_WH addItemCargo"

 

I'm not the one who needed help with the exception.

The kick the person indicated is a script #18 kick, so the line I suggested went on line 20 of his script.txt file. I have no idea what line that is.

Link to comment
Share on other sites

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
×
×
  • Create New...