05-18-2012, 03:47 PM
|
|
The Wary
Forum posts: 1
File comments: 50
Uploads: 2
|
Hi Queekusme, thanks for the feedback.
Unfortunately I'm not able to reproduce the issue.
Could you (or anyone else who got the same problem) please tell me if you had a previous version of the plugin running before and what the error message was like so I can fix this for everyone else?
Thank you!
With the two lines you removed the plugin wont update your commendations correctly if you buy anything for them.
EDIT: I think i found and solved the problem
Last edited by Glubby : 05-18-2012 at 06:35 PM.
|
|
|
05-18-2012, 11:30 AM
|
|
The Indomitable
Forum posts: 13
File comments: 13
Uploads: 2
|
commendatiuon glitch
i opened up the updater.lua and changed it to this and it worked, before it gave me ??? error messages, but now it works:
if (oldsecond ~= currentsecond) then
if (wallet_loaded) then
--MOVED STUFF FROM HERE
else
local player = Turbine.Gameplay.LocalPlayer.GetInstance();
local player_wallet = player:GetWallet();
local player_wallet_size = player_wallet:GetSize();
if player_wallet_size == 0 then return end --Remove when Wallet info are available before plugin is loaded
for i = 1, player_wallet_size do
local walletitem = player_wallet:GetItem(i);
local walletitem_name = player_wallet:GetItem(i):GetName();
if walletitem_name == L.Strings_Commendations then
commendations_in_wallet = walletitem;
data.numbers.commendations = commendations_in_wallet:GetQuantity();
break
end
end
overviewWindow:UpdateOverview();
wallet_loaded = true;
end
data.numbers.commendations = commendations_in_wallet:GetQuantity(); --TO HERE!!!!!
overviewWindow:UpdateOverview();
oldsecond = currentsecond;
end
|
|
|
|
|
All times are GMT -5. The time now is 08:56 PM.