AsYetUntitled / Framework

Altis Life RPG mission framework for Arma 3 originally made by @TAWTonic.
Other
247 stars 310 forks source link

ClothingFilter errors. #724

Closed Cocaina-Ricky closed 4 years ago

Cocaina-Ricky commented 4 years ago

Expected behaviour

Errors on client side > life_fnc_clothingFilter

Actual behaviour

Filters work however getting some weird error...

18:51:23 Error in expression <};};private"_pic";private"_details";{_x params[["_className","NONE",[""]],["_dis> 18:51:23 Error position: <params[["_className","NONE",[""]],["_dis> 18:51:23 Error Params: Type String, expected Number 18:51:23 File core\shops\fn_clothingFilter.sqf [life_fnc_clothingFilter], line 35

Steps to reproduce the behaviour

No idea what happened here honestly.


Mission version: 5.X.X

Launcher version: Latest

Game version: Latest

Branch: 5.X.X

DomT602 commented 4 years ago

Have you double checked your config for the clothing shop which produces this error?

imthatguyhere commented 4 years ago

Based on the error, it seems there is a string instead of a number in one of the prices in the clothing store arrays in your config.

Cocaina-Ricky commented 4 years ago

I think I might be stupid.

Pastebin: https://pastebin.com/UqXdrVL7

I can't see what's wrong, I'm missing something but god knows.

DomT602 commented 4 years ago

Which shop have you been opening? @Cocaina-Ricky

Cocaina-Ricky commented 4 years ago

All of them, they are all showing prices of 1,000. I cannot figure out what's happening

DomT602 commented 4 years ago

Can we see your fn_clothingFilter.sqf please.

Cocaina-Ricky commented 4 years ago

https://pastebin.com/VSsLfSBH

DomT602 commented 4 years ago

@Cocaina-Ricky your Config_Clothing is wrong in many ways, look at the one from the GitHub (https://github.com/AsYetUntitled/Framework/blob/v5.X.X/Altis_Life.Altis/config/Config_Clothing.hpp). For example; { "NONE", $STR_C_Remove_uniforms, 0}, { "U_C_Poloshirt_stripped", 75}, { "U_C_Poloshirt_redwhite", 75},

comparing to { "NONE", $STR_C_Remove_uniforms, 0, "" }, { "U_C_Poloshirt_stripped", "", 125, "" }, { "U_C_Poloshirt_redwhite", "", 150, "" }, You're missing many elements, and they are in different orders resulting in errors - you need to sort your config, not an error with the framework.

Cocaina-Ricky commented 4 years ago

Hi,

Yeah this fixed it. Sorry for slow replies.