snatcher Posted June 22 Report Posted June 22 I just picked up a readable and a coin and the inventory is showing me the loot count. What readable did I just pick up? Whenever you pick up an item it goes to the first position in its group in the inventory. If you want to find the last readable you picked up you just have to cycle through the groups and as soon you reach the Readables group it will be there, in the first position. Neat. The Inventory grid decides to break this logic and list items in the opposite order, forcing you to put any logic aside and learn how to interact with what essentially is the same thing in two different ways. - Wait, is the first item listed the last I picked up or the first? Please help me understand why things are the way they are. In the meantime, the inventory and the inventory grid can have the same item sorting by going to game/Player.cpp and exchanging: // Reverse order. New items at the end. CInventoryItemPtr item = category->GetItem((category->GetNumItems() - 1) - j); // Except for the weapons, where reverse order is unintuitive... if ( item->GetType() == CInventoryItem::IT_WEAPON ) item = category->GetItem( j ); For: CInventoryItemPtr item = category->GetItem( j ); Cheers! Quote
nbohr1more Posted June 22 Report Posted June 22 @Durandall I have no idea about why you chose the current design and do not care either way. Does the current sorting have advantages or is it just a personal preference? If the latter, perhaps we should add a cvar to toggle this? Quote Please visit TDM's IndieDB site and help promote the mod: http://www.indiedb.com/mods/the-dark-mod (Yeah, shameless promotion... but traffic is traffic folks...)
wesp5 Posted June 22 Report Posted June 22 (edited) 2 hours ago, snatcher said: Please help me understand why things are the way they are. In the meantime, the inventory and the inventory grid can have the same item sorting by going to game/Player.cpp and exchanging... Can we add this to our mod and patch? Also speaking about inventory sorting, I don't like that weapons are listed first and not permanent tools which would make more sense. Any way to change that as well? Edited June 22 by wesp5 Quote
snatcher Posted June 23 Author Report Posted June 23 23 hours ago, wesp5 said: Can we add this to our mod and patch? Not as a mod, as we understand mods currently. Distributing a modded executable requires a proper justification: a game-changing change or a set of many minor but relevant changes. 23 hours ago, wesp5 said: Also speaking about inventory sorting, I don't like that weapons are listed first and not permanent tools which would make more sense. Please elaborate. Picture it in your head and document the idea. What happens first? What happens next? What happens if? Quote
wesp5 Posted June 23 Report Posted June 23 (edited) 59 minutes ago, snatcher said: Not as a mod, as we understand mods currently. Distributing a modded executable requires a proper justification: a game-changing change or a set of many minor but relevant changes. Please elaborate. Picture it in your head and document the idea. What happens first? What happens next? What happens if? As for the cpp file, I feared as much so we need to wait what the core team thinks about your idea. As for the inventory sorting, it seems to be similarily hard-coded, because whatever I do, the weapons are always listed first in the inventory grid. I would like to have the Blow, Whistle and Numbers tools in the first line so people are more aware that they exist :)! Edited June 23 by wesp5 Quote
snatcher Posted June 24 Author Report Posted June 24 21 hours ago, wesp5 said: [...] we need to wait what the core team thinks [...] So far no objections. Players may get lucky this time Quote
nbohr1more Posted June 24 Report Posted June 24 LOL, many team members and players objected to the inventory grid feature in the first place. I think most team members are agnostic about any further development on it other than it's visual design. If players really want something improved about it, I doubt anyone but Durandall would be precious about changing the current design. Most of the core team would rather you become proficient with the classic hot-keys and key-rings. 1 Quote Please visit TDM's IndieDB site and help promote the mod: http://www.indiedb.com/mods/the-dark-mod (Yeah, shameless promotion... but traffic is traffic folks...)
wesp5 Posted June 24 Report Posted June 24 (edited) Well, to be honest I wasn't really aware that it existed until I fixed something in my patch. I always use the hot keys :)! Edited August 12 by wesp5 Quote
Durandall Posted June 24 Report Posted June 24 Don't care. Also, I never added weapons in the grid, so someone already changed that. 2 Quote
datiswous Posted June 24 Report Posted June 24 (edited) Oh, I think removing the weapons would be good. Edited November 18 by datiswous Quote
wesp5 Posted June 25 Report Posted June 25 Maybe there is a variable which determines the sorting? I tried everything in the file but nothing worked. Quote
snatcher Posted June 25 Author Report Posted June 25 On 6/23/2024 at 11:41 PM, wesp5 said: [...] the weapons are always listed first in the inventory grid. I would like to have [..] 22 hours ago, Durandall said: [...] I never added weapons in the grid, so someone already changed that. 21 hours ago, datiswous said: Oh, I think removing the weapons would be good. Regardless of your personal preferences, and until someone comes up with an alternative, it is sensible to have weapons listed first so that players can tell at a glance what key tools and ammo they have instead of pressing 8 to see if a Noisemaker comes up. 1 Quote
demagogue Posted June 27 Report Posted June 27 If I were designing it from the ground up, I'd have a top row of small boxes designated for weapons ordered numerically, actually now that I think about it, with the ability to rearrange objects into those boxes so the designated object pops up when you push 1-9 on the keyboard, Minecraft style. 1 Quote What do you see when you turn out the light? I can't tell you but I know that it's mine.
snatcher Posted August 11 Author Report Posted August 11 Helloooo TDM fans. Anybody opposed to this change? Anybody in favor of this change? Quote
datiswous Posted August 11 Report Posted August 11 Is there a feature request made on the bugtracker? Quote
snatcher Posted August 12 Author Report Posted August 12 20 hours ago, datiswous said: Is there a feature request made on the bugtracker? I don't know. Nobody cares, anyway. Quote
demagogue Posted August 13 Report Posted August 13 He's right though. The first step in any feature request is to make an entry in the bugtracker, so it's in a list, and it gets discussed and developed from there. It just gets buried and forgotten about if it's only in a thread. I was going to do it myself, but it apparently takes some time to dig through the entries even with the filter. Quote What do you see when you turn out the light? I can't tell you but I know that it's mine.
snatcher Posted August 13 Author Report Posted August 13 Sure but let's first collect some feedback and opinions from the community. I might have gotten it wrong after all and members prefer it the way it is. Quote
datiswous Posted November 18 Report Posted November 18 I made a feature request in the bugtracker: https://bugs.thedarkmod.com/view.php?id=6592 Feel free to edit the text, maybe I didn't describe it correctly. It's a feature request, but it could also be seen as a bug that the grid sorting is oposite. Quote
nbohr1more Posted November 19 Report Posted November 19 Avoiding arguements, made it into a cvar: tdm_invgrid_sortstyle 1 Quote Please visit TDM's IndieDB site and help promote the mod: http://www.indiedb.com/mods/the-dark-mod (Yeah, shameless promotion... but traffic is traffic folks...)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.