[FIXED] Unusable interface while trying to edit an item in version 1021
3 posters
Page 1 of 1
[FIXED] Unusable interface while trying to edit an item in version 1021
Message: ...AddOns\totalRP2_Creation\totalRP2_Creation_Objet.lua line 340:
bad argument #1 to 'floor' (number expected, got nil)
Debug:
[C]: floor()
...AddOns\totalRP2_Creation\totalRP2_Creation_Objet.lua:340: TRP2_CreateObjetTabCreation()
...AddOns\totalRP2_Creation\totalRP2_Creation_Objet.lua:133: TRP2_PanelCreationOnUpdate()
...AddOns\totalRP2_Creation\totalRP2_Creation_Objet.lua:123: TRP2_ChargerCreaObjetPanel()
...\AddOns\totalRP2_Creation\totalRP2_Creation_Main.lua:117: TRP2_CreationPanel()
...\AddOns\totalRP2_Creation\totalRP2_Creation_Main.lua:968:
...\AddOns\totalRP2_Creation\totalRP2_Creation_Main.lua:943
I'll look into it later.
bad argument #1 to 'floor' (number expected, got nil)
Debug:
[C]: floor()
...AddOns\totalRP2_Creation\totalRP2_Creation_Objet.lua:340: TRP2_CreateObjetTabCreation()
...AddOns\totalRP2_Creation\totalRP2_Creation_Objet.lua:133: TRP2_PanelCreationOnUpdate()
...AddOns\totalRP2_Creation\totalRP2_Creation_Objet.lua:123: TRP2_ChargerCreaObjetPanel()
...\AddOns\totalRP2_Creation\totalRP2_Creation_Main.lua:117: TRP2_CreationPanel()
...\AddOns\totalRP2_Creation\totalRP2_Creation_Main.lua:968:
...\AddOns\totalRP2_Creation\totalRP2_Creation_Main.lua:943
I'll look into it later.
arekku- Posts : 14
Join date : 2014-02-17
Re: [FIXED] Unusable interface while trying to edit an item in version 1021
Changed
objet["Qualite"] = math.floor(TRP2_DefautToNil(tonumber(TRP2_CreationFrameObjetFrameGeneralQualite:GetValue()),1));
to
objet["Qualite"] = math.floor(tonumber(TRP2_CreationFrameObjetFrameGeneralQualite:GetValue()),1);
and it seems to work.
It should not make a difference, TRP2_DefautToNil seems to work properly, have fun
objet["Qualite"] = math.floor(TRP2_DefautToNil(tonumber(TRP2_CreationFrameObjetFrameGeneralQualite:GetValue()),1));
to
objet["Qualite"] = math.floor(tonumber(TRP2_CreationFrameObjetFrameGeneralQualite:GetValue()),1);
and it seems to work.
It should not make a difference, TRP2_DefautToNil seems to work properly, have fun
arekku- Posts : 14
Join date : 2014-02-17
Re: [FIXED] Unusable interface while trying to edit an item in version 1021
Thank you for reporting this issue. This error is because of the way I've changed Total RP to make it bulletproof from the corruption from patch 5.4. However, for some reason, I left this mistake. I will correct this quickly and release a fixed version tomorrow.
Ellypse- Admin
- Posts : 215
Join date : 2013-09-26
Age : 32
Location : Paris, France
Re: [FIXED] Unusable interface while trying to edit an item in version 1021
the issue with this is because math.floor expects an integer, which nil is not, off the top of my head, the correct code should be:
i'll have a proper look tomorrow when i have some more time to check the fix works.
EDIT: or Ellypse could beat me to it, damn you!
- Code:
if TRP2_DefautToNil(tonumber(TRP2_CreationFrameObjetFrameGeneralQualite:GetValue()),1) then
objet["Qualite"] = math.floor(TRP2_DefautToNil(tonumber(TRP2_CreationFrameObjetFrameGeneralQualite:GetValue()),1));
else
objet["Qualite"] = nil;
end
i'll have a proper look tomorrow when i have some more time to check the fix works.
EDIT: or Ellypse could beat me to it, damn you!
Saelora- Posts : 3
Join date : 2014-02-11
Age : 31
Location : Brighton, England (Argent Dawn, EU)
Re: [FIXED] Unusable interface while trying to edit an item in version 1021
It should be
There is also an issue with the auras bar. I'm working on it right now.
- Code:
objet["Qualite"] = TRP2_DefautToNil(TRP2_GetInt(TRP2_CreationFrameObjetFrameGeneralQualite:GetValue()),1);
There is also an issue with the auras bar. I'm working on it right now.
Last edited by Ellypse on Mon Feb 17, 2014 8:10 pm; edited 1 time in total
Ellypse- Admin
- Posts : 215
Join date : 2013-09-26
Age : 32
Location : Paris, France
Re: [FIXED] Unusable interface while trying to edit an item in version 1021
Ah, fair enough, also, looking back at my code i remembered why i should be going to sleep, not bugfixing right now, i can think of atleast two more elagant ways of doing that snippet than i did there.
Saelora- Posts : 3
Join date : 2014-02-11
Age : 31
Location : Brighton, England (Argent Dawn, EU)
Similar topics
» [FIXED] Wrong version #
» [CLOSED] Item not updating in other player's inventory
» Total RP 2 version 1.021 (and 1.022)
» Total RP 2 version 1.026
» Total RP 2 version 1.023
» [CLOSED] Item not updating in other player's inventory
» Total RP 2 version 1.021 (and 1.022)
» Total RP 2 version 1.026
» Total RP 2 version 1.023
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|