ahungry Posted January 4, 2022 Share Posted January 4, 2022 In playing, I tend to have many containers (the bottomless ones, or 999 slots) filled up with hundreds of items. This obviously becomes a problem when trying to find a specific item; I couldn't find anything when searching for a mod that would organize the contents as described in the title, and when suggesting to the NearInfinity github that it may be a neat feature in that program, was dissuaded from extending it, so I put together this solution for my own usage: https://github.com/ahungry/bgee-bag-sort/ At the moment it's written in nodejs, so a bit outside the standard BG modding eco-system (but should be cross-OS, although only tested on GNU/Linux, and pretty easy for most to set up node that would like to use it - no npm dependencies are required). I chose this, as I'm pretty familiar with nodejs and the different file formats were available online (references in the source code), and I couldn't find a weidu scripting or AI scripting way to do this (although there probably is one, but just shuffling bytes in a language I'm more familiar with seemed a bit easier than learning all of weidu scripting, having 0 exposure to it). Would it be worth posting as a perma-link somewhere on this site? (Miscellaneous mods?) It runs fairly quickly (less than 10 seconds to sort a ~500 item BoH, including uncompressing, sorting, recompressing a sav game file). As noted in the linked README, back up your .sav game/folder if you plan to try it, however I haven't had any corrupt file issues (but this is only usable on a BGEE/EET install, or whatever else uses the same file formats - I didn't include the file formats/compatability for older versions of IE files). Quote Link to comment
jastey Posted January 5, 2022 Share Posted January 5, 2022 On 1/4/2022 at 2:23 AM, ahungry said: Would it be worth posting as a perma-link somewhere on this site? (Miscellaneous mods?) Perma-link definitely. It's something between a mod and a tool though, I think. I can move the thread if you want. It sounds nifty, I usually do not have that much items in the bags though. But I'm not really playing whole EET runs, so that might change if I do. Quote Link to comment
ahungry Posted January 5, 2022 Author Share Posted January 5, 2022 Sure, thanks @jastey! Wherever you think it fits best, please move it there. Quote Link to comment
jastey Posted January 6, 2022 Share Posted January 6, 2022 @ahungry Moved this into Miscellaneous Mod section as it affects gameplay, so it's more of a mod. Quote Link to comment
Endarire Posted January 6, 2022 Share Posted January 6, 2022 @Bubb How could a sort like this be added to EEex? Quote Link to comment
Bubb Posted January 6, 2022 Share Posted January 6, 2022 EEex isn't needed; pretty sure a standard UI mod could display the bag in a sorted order. Quote Link to comment
Endarire Posted January 7, 2022 Share Posted January 7, 2022 What would be involved in adding a sort container UI button and mechanic? Quote Link to comment
mickabouille Posted January 7, 2022 Share Posted January 7, 2022 Haven't I already seen a mod where your familiar could be asked to sort your inventory? (not your bag content, your inventory) I think I did but I don't remember where. Quote Link to comment
mickabouille Posted January 7, 2022 Share Posted January 7, 2022 Haven't I already seen a mod where your familiar could be asked to sort your inventory? (not your bag content, your inventory) I think I did but I don't remember where. EDIT unless I got it mixed up with nwn, that"s possible. And I can can see sorting the inventory being different Quote Link to comment
lefreut Posted January 7, 2022 Share Posted January 7, 2022 (edited) It may be possible to do it by modding the UI. It depends on which criteria you want to sort on as the UI doesn't have a direct access to the files, only to what the engine expose. And it should be easier to do that for the bag, the inventory has more hardcoded stuff. Edited January 7, 2022 by lefreut Quote Link to comment
kjeron Posted January 7, 2022 Share Posted January 7, 2022 Sorting the display of container contents is a rather easy, one line function. However, keeping it sorted is another matter, as clicking on just about anything in that screen will reset the store table, so you might have to hijack the entire store screen, at least while IsContainer(). Quote Link to comment
Endarire Posted January 7, 2022 Share Posted January 7, 2022 My main concern was keeping stores and containers sorted for personal use. And adding some sort of UI text box to search for items that matched at least part of a text string. "Bow" would match "crossbow" and "shortbow" and "longbow" and "bowl," for example. Still, thankee for your help and input! Quote Link to comment
ahungry Posted January 7, 2022 Author Share Posted January 7, 2022 I would love an option to use this without having to leave game/sort bag/reload game (had I had such an option in the past, I wouldn't have spent a night writing this). Hopefully one comes out that isn't eex as that isn't on GNU/Linux. Quote Link to comment
Gordian Posted January 15, 2022 Share Posted January 15, 2022 Dragonspear UI++ has a search function at least (select all as well now, via bat edit if downloaded from master). But sorting by type/value etc. (and then maybe reverting to a chronological order) would be nifty indeed. : ) Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.