Recent Topics

Ads

MGRemix lags fix

Here you can post addons, or anything related to addons.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
User avatar
Sybreal
Posts: 40

Re: MGRemix lags fix

Post#11 » Sat Apr 24, 2021 3:30 pm

Eisboleas wrote: Thu Apr 15, 2021 12:26 pm
lolwut wrote: Sun Nov 15, 2020 3:49 am If this fix makes MGR window shown with different textures, buttons unclickable and window unmovable in layout editor, put the code from
kaloel wrote: Sun Sep 06, 2020 10:10 amFirst some indentation:

Code: Select all

...
after the last line of MGRemix.lua
Doesnt seem to work for me, any idea ?
I would use MiracleGrowLight that was made by Idrinth here: viewtopic.php?f=66&t=44026

Ads
User avatar
lolwut
Posts: 29

Re: MGRemix lags fix

Post#12 » Mon May 10, 2021 4:41 am

Eisboleas wrote: Thu Apr 15, 2021 12:26 pm
lolwut wrote: Sun Nov 15, 2020 3:49 am If this fix makes MGR window shown with different textures, buttons unclickable and window unmovable in layout editor, put the code from
kaloel wrote: Sun Sep 06, 2020 10:10 amFirst some indentation:

Code: Select all

...
after the last line of MGRemix.lua
Doesnt seem to work for me, any idea ?
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.
Ain't Nobody Gafflin Me.

User avatar
Eisboleas
Posts: 140

Re: MGRemix lags fix

Post#13 » Wed May 12, 2021 2:49 pm

lolwut wrote: Mon May 10, 2021 4:41 am
Eisboleas wrote: Thu Apr 15, 2021 12:26 pm
lolwut wrote: Sun Nov 15, 2020 3:49 am If this fix makes MGR window shown with different textures, buttons unclickable and window unmovable in layout editor, put the code from after the last line of MGRemix.lua
Doesnt seem to work for me, any idea ?
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.
"If you want to know who you are, you have to look at your real self and acknowledge what you see."

Darkenya [WE]

User avatar
Golaz
Posts: 18

Re: MGRemix lags fix

Post#14 » Fri Jul 30, 2021 5:53 pm

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)
I have just downloaded the addon from Indrinth's Tools and there is no such file as "MGRemix.lua"
There is however a file called "MiracleGrow.lua" but the function you're specifying doesn't exit.

Edit:
I downloaded it MGR addon from an old website and fixed it now.
Thanks a lot for this! :)

User avatar
Golaz
Posts: 18

Re: MGRemix lags fix

Post#15 » Fri Jul 30, 2021 8:17 pm

Here is a direct download link to a fixed version of the Miracle Grow Remix addon. No editing needed: https://1drv.ms/u/s!Apbu44ktNwGvhbITM1O ... Q?e=RuOgMm

Who is online

Users browsing this forum: No registered users and 18 guests