aliens

Author Topic: [DONE][Suggestion] Alternate loadout system #2  (Read 9027 times)

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9303
    • View Profile
Re: [DONE][Suggestion] Alternate loadout system #2
« Reply #30 on: May 01, 2023, 04:49:51 pm »
according to author:

The code currently assumes no items limit on the craft. If there is an item limit, then it may not be able to fit all of the base's items - and so... that will be kind of annoying. I thought about temporarily repressing the item limit; but I'm not sure how best to re-impose the limit afterwards. So I'm just leaving it on the 'todo' list for now.

The humvee has a limit of 999 items.

Offline psavola

  • Commander
  • *****
  • Posts: 903
    • View Profile
Re: [DONE][Suggestion] Alternate loadout system #2
« Reply #31 on: May 01, 2023, 05:01:28 pm »
Unfortunate.

But this made me wonder: would it be easy to implement a similar "hiding" mechanism (mouse right click to toggle) in the equip screen that already exists in Buy or Manufacture screens? This would also make equipping more straightforward as you could hide the junk you almost never will want. I suppose it shouldn't be too difficult. Then the loadout could be modified so that it doesn't automatically add those items you hidden, you have to do it manually (or remove the hiding).

Maybe this should be posted or moved to as a separate suggestion.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9303
    • View Profile
Re: [DONE][Suggestion] Alternate loadout system #2
« Reply #32 on: January 26, 2025, 06:56:24 pm »
The way this is implemented is by temporarily moving all base equipment on the craft, and then moving it off again after the changes have been made.

There are a couple of things that still need to be improved:
  • The code currently assumes no items limit on the craft. If there is an item limit, then it may not be able to fit all of the base's items - and so... that will be kind of annoying. I thought about temporarily repressing the item limit; but I'm not sure how best to re-impose the limit afterwards. So I'm just leaving it on the 'todo' list for now.

Changed, more info here: https://openxcom.org/forum/index.php?topic=11412.msg169362#msg169362
« Last Edit: January 26, 2025, 07:01:21 pm by Meridian »