AgentRev / ACE3Wasteland.Altis

OUTDATED - ACE3 medical integration in A3Wasteland
GNU Affero General Public License v3.0
0 stars 4 forks source link

odd script error. seems to prevent purchasing ammo from stores. #5

Open KRDucky opened 9 years ago

KRDucky commented 9 years ago

im getting this error: 16:05:31 Error in expression <call mf_inventory_get; _current = _item select 1; _item set [1, _current - _qty]> 16:05:31 Error position: <select 1; _item set [1, _current - _qty]> 16:05:31 Error select: Type Object, expected Array,String,Config entry 16:05:31 File mpmissions__CUR_MP.Altis\client\inventory\remove.sqf, line 13

linuxmaster9 [4:28 PM] but cant for the life of me figure out why

AgentRev commented 9 years ago

I need full RPT log, that's not even related to purchasing ammo, sounds like you did a typo somewhere

KRDucky commented 9 years ago

Ignore the highlighted lines. I fixed that part already.

http://pastebin.com/DsEy3XLh

AgentRev commented 9 years ago

I need storeConfig.sqf

KRDucky commented 9 years ago

http://pastebin.com/jUnJKUcq

AgentRev commented 9 years ago

You possess an item in your player inventory that was removed from the customPlayerItems array in the store config. There is no mechanism in place to deal with that.

KRDucky commented 9 years ago

hmm I wonder what it is. All I had from there was the food and water I still can not purchase ammo from the gun stores though

AgentRev commented 9 years ago

Open up client\inventory\remove.sqf and add diag_log format ["mf_inventory_remove %1", _id]; above _item = _id call mf_inventory_get; then give RPT log again

AgentRev commented 9 years ago

Okay I found the problem, the error is caused by clicking the "Sell" button on the general store menu without having selected an item to sell, it seems to be present in all A3W variants and versions.

KRDucky commented 9 years ago

hmm ok. so do you still want me to add that line?

AgentRev commented 9 years ago

no its ok

KRDucky commented 9 years ago

im still unable to purchase ammo though

KRDucky commented 9 years ago

do i need to clear the DB?

AgentRev commented 9 years ago

no you don't need to clear the DB. Could you please explain in more detail what "unable to purchase ammo" means? What do you do and what happens?

KRDucky commented 9 years ago

I enter the store, select rifles, select the ammo and click buy......nothing happens. I can buy the rifle but not the ammo.