Re: MGRemix lags fix
Posted: Sat Apr 24, 2021 3:30 pm
I would use MiracleGrowLight that was made by Idrinth here: viewtopic.php?f=66&t=44026
I would use MiracleGrowLight that was made by Idrinth here: viewtopic.php?f=66&t=44026
Doesn't work in some particular way? TBH I have no recollection of what the bug I encountered half a year ago actually was, and can't read much minds.
So when copypasting ur code to fix the lag, the MGRemix window becomes un usable, you cant add any components or grow anything.lolwut wrote: Mon May 10, 2021 4:41 amDoesn't work in some particular way? TBH I have no recollection of what the bug I encountered half a year ago actually was, and can't read much minds.
I have just downloaded the addon from Indrinth's Tools and there is no such file as "MGRemix.lua"Raito wrote: Thu Aug 27, 2020 8:18 pm MGRemix.lua search for function mg.function mg.GetSlotByItemId(uniqueID,aExclude) (uniqueID,aExclude) --around line 120
rename function to function mg.GetSlotByItemIdOld(uniqueID,aExclude)
copy paste this in the file:
mg.InvTable = {}
mg.InvTable_nTime=-1000
function mg.GetSlotByItemId(uniqueID,aExclude)
local vBagItems=DataUtils.GetCraftingItems()
local iSmall=10000
local iSlot=0
local nLoc=mg.TYPE_CRAFTING
local vItem
if (mg.nTime > mg.InvTable_nTime+5)then
mg.InvTable_nTime = mg.nTime;
mg.InvTable = {};
for k,v in pairs(vBagItems) do
mg.InvTable[v.uniqueID]=k;
end
end
if (mg.InvTable[uniqueID])then
iSlot = mg.InvTable[uniqueID];
vItem=vBagItems[iSlot];
end
return iSlot,nLoc,vItem
end
checks no longer normal inventory,saves inventory data for 5sec(use at own risk and have larger seed reserve)