View Issue Details

IDProjectCategoryView StatusLast Update
0006592The Dark ModGUIpublic19.11.2024 00:07
Reporterdatiswous Assigned Tonbohr1more  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product VersionTDM 2.12 
Target VersionTDM 2.13Fixed in VersionTDM 2.13 
Summary0006592: Inventory Item sorting same in both classic inventory and grid
DescriptionWhenever 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.

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.

Feature request:

Same listing order in both inventory systems.


Possible fix:

Change in game/Player.cpp :

// 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 );


to:


CInventoryItemPtr item = category->GetItem( j );

Additional InformationSee forum topic: https://forums.thedarkmod.com/index.php?/topic/22487-inventory-grid-item-sorting/
Tagsinventory, inventory grid

Activities

nbohr1more

nbohr1more

19.11.2024 00:07

developer   ~0016919

Rev 10905

Create cvar:

tdm_invgrid_sortstyle

so that players can choose how they prefer grid sorting works.

Default = 0 ( pre-2.13 behavior )
New = 1 ( matches key-ring and weapon sorting )

Issue History

Date Modified Username Field Change
18.11.2024 11:43 datiswous New Issue
18.11.2024 11:44 datiswous Additional Information Updated
18.11.2024 11:44 datiswous Additional Information Updated
18.11.2024 11:56 datiswous Description Updated
18.11.2024 11:56 datiswous Description Updated
18.11.2024 11:57 datiswous Description Updated
18.11.2024 11:58 datiswous Description Updated
18.11.2024 12:01 datiswous Description Updated
18.11.2024 12:02 datiswous Description Updated
18.11.2024 12:03 datiswous Description Updated
18.11.2024 12:05 datiswous Description Updated
18.11.2024 12:05 datiswous Description Updated
18.11.2024 12:08 datiswous Tag Attached: inventory
18.11.2024 12:08 datiswous Tag Attached: inventory grid
19.11.2024 00:07 nbohr1more Note Added: 0016919
19.11.2024 00:07 nbohr1more Assigned To => nbohr1more
19.11.2024 00:07 nbohr1more Status new => resolved
19.11.2024 00:07 nbohr1more Resolution open => fixed
19.11.2024 00:07 nbohr1more Fixed in Version => TDM 2.13
19.11.2024 00:07 nbohr1more Target Version => TDM 2.13