Author Topic: Show number of TUs to reload a weapon next to its inventory slot.  (Read 6188 times)

Offline Yglorba

  • Sergeant
  • **
  • Posts: 48
    • View Profile
When you pick up an object on the ragdoll screen in the battlescape, it will show the TU cost to move it to each possible location (eg. your backpack, your belt, your hands, the ground, etc.)

However, this is misleading when it comes to reloading ammo.  If I have a gun in my hand, it will list the TU it would cost to move that ammo to my hand if my hand were empty, which isn't actually what I pay if I click there (and reload.)

Therefore, when you have a weapon in your hand and are moving ammo, I think the TU cost for that weapon's slot should show the total TU it will cost to reload that weapon with ammo from whatever location you're taking it from -- that is, the total TU cost you'll pay if you click there.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #1 on: April 19, 2016, 04:39:56 pm »
Well, if you have your weapon for example in the backpack, there is no way to know if you plan to reload it or just put the ammo next to it in the free part of the backpack.

Even more ridiculous, if you have two weapons in the backpack, both of which are compatible with the ammo you are currently holding, I wouldn't know which weapon you want to reload.

All this can be done only once you make that decision... which is however already too late for any TU indication.

Therefore, I don't see how I could possibly implement this request... any ideas?

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #2 on: April 19, 2016, 06:24:49 pm »
Maybe just a special case of "if empty compatible weapon in hand, show cost for reload + move as cost, instead of just move cost" ?

I also thought you could only reload weapons in your hands, but I guess it's unloading that requires hands?

Offline Xtendo-com

  • Colonel
  • ****
  • Posts: 118
    • View Profile
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #3 on: April 20, 2016, 04:25:40 pm »
Therefore, I don't see how I could possibly implement this request... any ideas?
I don't known how it's technically was implemented, but may be we can do something in a procedure that performs a TU calculation+consume? Like press special hotkey that uses same TU calculation+consume procedure, but breaks a procedure in a lines of codes that performs a TU consume operation and real action.
« Last Edit: April 20, 2016, 04:35:00 pm by Xtendo-com »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #4 on: April 20, 2016, 04:54:08 pm »
I don't known how it's technically was implemented, but may be we can do something in a procedure that performs a TU calculation+consume? Like press special hotkey that uses same TU calculation+consume procedure, but breaks a procedure in a lines of codes that performs a TU consume operation and real action.

The problem is not technical, it's logical.

Let's say I have picked up ammo A.
In my back pack, I have weapons B and C, both compatible with ammo A.
Also I have some free space in the back pack.

Reloading gun B takes 30 TUs total
Reloading gun C takes 34 TUs total
Just putting ammo A into back pack takes 20 TUs

What number should be displayed next to label "BACK PACK: " ?
a/ 30 TUs ?
b/ 34 TUs ?
c/ 20 TUs ?
d/ some combination of above?
e/ don't bother me with bullcrap Meridian and just do it dang it
f/ something else?

Offline Xtendo-com

  • Colonel
  • ****
  • Posts: 118
    • View Profile
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #5 on: April 20, 2016, 05:24:15 pm »
What number should be displayed next to label "BACK PACK: " ?
a/ 30 TUs ?
b/ 34 TUs ?
c/ 20 TUs ?
Depends on where the cursor points to after picking up an ammo.

f/ something else?
Pickup ammo with mouse. Point to weapon. Press middle button of mouse to preview TU.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #6 on: April 20, 2016, 05:58:59 pm »
So it should change in time based on where your mouse cursor is? :(

I can do that also without middle mouse button, it would be done automatically, but for me the UI stops being "self-explanatory". I'll probably get more false bug reports with this feature than without it.

Not a huge fan of such behavior, but anyway, I'll try it and we'll see if anybody likes it...

Offline Xtendo-com

  • Colonel
  • ****
  • Posts: 118
    • View Profile
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #7 on: April 20, 2016, 06:29:18 pm »
but for me the UI stops being "self-explanatory". I'll probably get more false bug reports with this feature than without it.
If TU changes automatically in UI with picked up ammo and pointing to something, it's may be "self-explanatory" enough.

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #8 on: April 20, 2016, 06:55:09 pm »
I disagree with the dynamic update. It's too "busy", and I suspect the larger ammo sprites can overlap the TU label, so you don't see the updated value.

Offline Xtendo-com

  • Colonel
  • ****
  • Posts: 118
    • View Profile
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #9 on: April 20, 2016, 06:59:43 pm »
I disagree with the dynamic update. It's too "busy", and I suspect the larger ammo sprites can overlap the TU label, so you don't see the updated value.
Another way:
Middle click of mouse on a weapon will show popup window with TU costs for reloading. Will be "self-explanatory" enough and sprites can't overlap popup window. Also since UFOpaedia shows TU costs for shooting in %, we can add to popup menu TU costs from translated % to more comfortable TU costs.
« Last Edit: April 20, 2016, 07:09:09 pm by Xtendo-com »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11454
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #10 on: April 20, 2016, 07:26:33 pm »
I'm not against improvements, but this one seems shaky to me, for reasons Meridian and Yrizoud explained.

I'd rather have it in the Ufopaedia, which now can be accessed from battlescape.

Offline Yglorba

  • Sergeant
  • **
  • Posts: 48
    • View Profile
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #11 on: April 23, 2016, 10:10:42 pm »
Well, perhaps just for weapons in your hands?  I suspect that that's by far the most common case when people are reloading anyway.

Offline hellrazor

  • Commander
  • *****
  • Posts: 2011
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #12 on: April 24, 2016, 07:06:03 am »
Reloading a weapon costs 15 TU, doesn't matter were the ammo clip is located.
And playing around with that, i strongly object.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11454
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Show number of TUs to reload a weapon next to its inventory slot.
« Reply #13 on: April 24, 2016, 11:26:27 am »
Reloading a weapon costs 15 TU, doesn't matter were the ammo clip is located.

Yes, in vanilla.
OXCE-based mods, mainly Piratez, have had variable reload cost for a long time (depending on both weapon and clip location).