lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO Stand-Alone Plugins > Bags, Bank & Inventory


Post A Reply
Author Comments Comment Options
Unread 03-25-2012, 07:14 AM  
Levva
The Wary

Forum posts: 0
File comments: 7
Uploads: 0
Quote:
I'm not sure if it's 100% functional because it was functioning with me before your changes anyway I did the changes in case :P Thx Levva!
The issue is that the LUA base code table.sort is not a stable algorithm so it WILL have the potential to fail if it EVER encounters a situation where the two items compared are "equal" however "equal" is defined in your sort function.

It is essentially random as to whether the table.sort function changes the order of the two items or not when they are equal and its this very randomness that makes things appear fine during testing as sods law says as the author you never see the problem in your own testing, only when users test it

So it was simply a matter that you had accidentally not covered a possible two items are equal scenario and thus it would randomly fail. ie: it was a core lua failure really and you not being fully aware of having to cover that condition. Now you have added a check that GUARANTEES uniqueness it will never fail.

Last edited by Levva : 03-25-2012 at 07:59 AM.
Levva is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 03-28-2012, 09:46 AM  
mglinka99
The Wary

Forum posts: 0
File comments: 30
Uploads: 0
Same sorting problem with newest version.

If its an LUA issue i guess we have to wait for a LUA fix.

Anyway, I dont wanna miss this plugin.

Great job
mglinka99 is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 03-29-2012, 10:09 AM  
Levva
The Wary

Forum posts: 0
File comments: 7
Uploads: 0
Quote:
If its an LUA issue i guess we have to wait for a LUA fix.
NO you misunderstand. It is NOT a LUA problem and it will NEVER be fixed by the LUA code.

LUA tables have a sort routine called table.sort() this function is working EXACTLY as designed. The issue is that if any two items are considered identical then the outcome is not guaranteed to swap the position of the two objects. Thus the author of a plugin must ensure his sort function that tells table.sort how to work always has unique items so that the sort never compares two identical values.

I called it a "core LUA failure" due to the fact that its not at all obvious to an author not fully familiar with LUA coding that they MUST be careful in their sort routine design to avoid duplicate comparison issues. However it is always the author that must avoid the problem that is simply how LUA was designed to work, ie: a lightweight and fast coding language that leaves the authors to do a bit of extra work if they use some of the more intensive features.

If you actually say what the exact issue you are having is and what items you have that are not getting sorted then the author might have a chance of fixing it. ie: what two items do you have that could be identical? Screenshots before and after could help too.

BTW how did you install the fix? To be 100% sure of a fix you need to have the game unloaded, delete the old version and copy the files in new and then and only then start the game. If you simply overwrite one folder with another then you may not have replaced the fixed files as version stamping can cause issues. Delete and install is the only guaranteed way of ensuring you have the latest version.

Last edited by Levva : 03-29-2012 at 10:13 AM.
Levva is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 03-30-2012, 03:53 AM  
mglinka99
The Wary

Forum posts: 0
File comments: 30
Uploads: 0
Ok. Here are some screenshots. I hope it helps finding the error.

Sorry, i can not attach the pics into this post. So I've uploaded them to a hoster.

Start

Sort_success

New_Items

Sort_error
mglinka99 is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-09-2012, 04:49 AM  
Dwamur
The Wary
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 12
Uploads: 0
>>
"You are too busy to do that right now" is a LOTRO reply that means you are doing something that prevents using other functions. eg: in the middle of crafting, in the middle of a trade, dismounting, carrying stuff on a carry quest etc.
>>

In this case, standing still in a crafting hall waiting for the sort function to finish. Once the error has triggered, sort will no longer work, as it believes it is still in sort mode. Detecting the lotro error and ending the sort function early would allow another go at sorting. Another option would be a slight (0.1s) delay between item moves to avoid the race condition that I think is at the root of this. Although that would slow sort noticeably.

Usually, the sort will start, shuffle a few things around, then stop with "you are too busy to do that right now". I am thinking it has to be a race condition: Something got moved around, but lotro isn't quite finished with registering that this event has occured, then the next piece in the bag gets moved around, and hence the error. We'd not see it with anything but the lightning-fast shuffle that a bag sort routine can bring to the table.
Dwamur is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-12-2012, 07:33 PM  
Habna
The Wary
 
Habna's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 247
Uploads: 3
Quote:
Something got moved around, but lotro isn't quite finished with registering that this event has occured
I think that to. Adding a delay of 0.2 sec will totaly prevent the "busy" thing, but i'm not going to add this delay. In early version this delay was there. It was remove to achive super fast sorting. So i'm waiting for lotro to get as fast as there update function! If sort get stuck you can quickly re-load HugeBag by right clicking the left bar (in widget mode) or on the title (in window mode) until I found something to prevent this bug.
Habna is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-16-2012, 10:50 PM  
iSpawnAtHome
The Wary

Forum posts: 0
File comments: 1
Uploads: 0
Question Scalability

Hello, I've always been bothered by how small the inventory icons are. Is there a possibility to make the addon scale? Like make it bigger
iSpawnAtHome is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-18-2012, 09:20 PM  
Habna
The Wary
 
Habna's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 247
Uploads: 3
Re: Scalability

Hum! IDK let me check.
Habna is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 05-06-2012, 05:03 PM  
Thaodan
The Undefeated
 
Thaodan's Avatar

Forum posts: 8
File comments: 16
Uploads: 0
Is it normal that lotro lags for a short when i load hugebag and open my inventory and switch my weapon?
Thaodan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 05-07-2012, 01:32 AM  
Habna
The Wary
 
Habna's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 247
Uploads: 3
Quote:
Is it normal that lotro lags for a short when i load hugebag and open my inventory and switch my weapon?
Yes. It's cause by the fact that HugeBag is unloaded then reloaded when swapping bug is detected.
Habna is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 05-07-2012, 11:23 AM  
Thaodan
The Undefeated
 
Thaodan's Avatar

Forum posts: 8
File comments: 16
Uploads: 0
Which swapping bug?
Thaodan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 05-08-2012, 08:54 PM  
Habna
The Wary
 
Habna's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 247
Uploads: 3
Quote:
Which swapping bug?
Try "Satchel", "BigPack", "FilterBag", "One Big Bag" or "Tobii" you will see the swapping bug . The bug: Swapped item not place properly in bag.

Last edited by Habna : 05-08-2012 at 08:57 PM.
Habna is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 05-10-2012, 05:11 PM  
Bolt
The Wary

Forum posts: 0
File comments: 1
Uploads: 0
6th bag?

Love this plug in. Been using it for almost a year now and couldn't be happier. I recently heard that we will be able to get a 6th inventory bag with pre-order of RoR. Is this still going to work with that or will it have to be updated? Thanks again for the hard work of making LoTRO more user friendly for the rest of us :-)
Bolt is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 05-11-2012, 04:53 PM  
Habna
The Wary
 
Habna's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 247
Uploads: 3
Re: 6th bag?

Quote:
I recently heard that we will be able to get a 6th inventory bag with pre-order of RoR. Is this still going to work with that or will it have to be updated?
With this current version, you will need to update it, but soon I will update HugeBag and in this update It should work with the 6th bag.
Habna is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 05-12-2012, 06:20 PM  
K1R4D3L
The Undying
Interface Author - Click to view interfaces

Forum posts: 34
File comments: 30
Uploads: 1
Thanks for the locale support!

I run English normally, but I switch languages to test my own plugin. HugeBag is a staple plugin for me, so it's great that I'll now be able to use it while testing.
K1R4D3L is offline Report comment to moderator   Reply With Quote Reply With Quote
Post A Reply

 
Category Jump:
Search this Category:
 

All times are GMT -5. The time now is 06:08 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui