Author Topic: [DONE][Suggestions] Show every ammo clip size in the UFOPedia page  (Read 1964 times)

Offline 0xEBJC

  • Colonel
  • ****
  • Posts: 180
  • Y'all are awesome! Thankful for this community.
    • View Profile
    • My Projects
One thing that I have always wanted is for each clip to show it ammo count in the UFOPedia page... without navigating to the "INFO" page, either by each clip type if the clips are different? 

If the gun determines the ammo count then have the the info listed by the weapon name, or if each clip by type, i.e. kenetic, incinderary, etc. can have different ammo counts then place the value next to the clips on the UFOPedia like it shows in the soldier inventory next to the ammo clip icon.

I use the mod "Weapon Ranges Shown" which is really nice QoL to have on the weapons page, so maybe there is an easy way to make a mod to show the ammo count? I thought that was pretty slick to change the language string to include the range value.


The other suggestion is to be able to navigate to the UFOPedia page for a particular item or weapon from the buy, sell, craft equip, or soldier inventory screens.  This could be accomplished by a CTRL + mouse click or ALT + click, etc.  That would mean the items would have to have a UFOPedia page tag to know where to go. An there would need to be a check to see if the UFOPedia page is visible yet by research or discovery, etc. and if not then do nothing.
« Last Edit: November 19, 2023, 02:46:23 am by 0xEBJC »

Offline Juku121

  • Commander
  • *****
  • Posts: 1790
  • We're all mad here.
    • View Profile
Re: [Suggestions] QoL UFOPedia Info Enhancements and Navigation
« Reply #1 on: November 19, 2023, 09:21:38 am »
The other suggestion is to be able to navigate to the UFOPedia page for a particular item or weapon from the buy, sell, craft equip, or soldier inventory screens.  This could be accomplished by a CTRL + mouse click or ALT + click, etc.  That would mean the items would have to have a UFOPedia page tag to know where to go. An there would need to be a check to see if the UFOPedia page is visible yet by research or discovery, etc. and if not then do nothing.
Middle mouse button, except for selling, where it's CTRL+MMB. Does nothing if there's no pedia page available, too.

Offline 0xEBJC

  • Colonel
  • ****
  • Posts: 180
  • Y'all are awesome! Thankful for this community.
    • View Profile
    • My Projects
Re: [Suggestions] QoL UFOPedia Info Enhancements and Navigation
« Reply #2 on: November 20, 2023, 02:20:23 am »
Middle mouse button, except for selling, where it's CTRL+MMB. Does nothing if there's no pedia page available, too.

Hey Juku121

Awesome, thank you!

Offline 0xEBJC

  • Colonel
  • ****
  • Posts: 180
  • Y'all are awesome! Thankful for this community.
    • View Profile
    • My Projects
Re: [Suggestions] QoL UFOPedia Info Enhancements and Navigation
« Reply #3 on: November 20, 2023, 02:24:40 am »
Is there an Openxcom or OXCE+ manual? 

I've played this game since it came out in the early 90s, but seams like there is always something new that i wished I had know before.  I just recently learned about the right click on a weapon to get the yellow dot to designate it as the preferred weapon.

Online psavola

  • Commander
  • *****
  • Posts: 792
    • View Profile
Re: [Suggestions] QoL UFOPedia Info Enhancements and Navigation
« Reply #4 on: November 20, 2023, 06:36:46 am »
This lists quite a few:

https://www.ufopaedia.org/index.php/Hidden_Features_(OpenXcom)#Battlescape

It's organized in a bit messy manner and it's missing some, for example escort-feature when managing your crafts.

Offline 0xEBJC

  • Colonel
  • ****
  • Posts: 180
  • Y'all are awesome! Thankful for this community.
    • View Profile
    • My Projects
Re: [Suggestions] QoL UFOPedia Info Enhancements and Navigation
« Reply #5 on: November 28, 2023, 08:33:11 pm »
I'm still trying to find a way to show the clip size on the weapon info page in the ufopedia, next to each clip icon.  Based of the 'INFO' nerd stuff it looks like the clip size if a parameter of each clip so the clips could vary in clip size so I would need to get that from the clip data.

I'm looking through the source on github, but it's not apparent yet. I did find the info about the range values.
https://github.com/MeridianOXC/OpenXcom/blob/oxce-plus/src/Ufopaedia/ArticleStateItem.cpp

if (item->getBattleType() == BT_FIREARM)
{
...
}

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8974
    • View Profile
Re: [Suggestions] QoL UFOPedia Info Enhancements and Navigation
« Reply #6 on: December 09, 2023, 11:22:48 am »
I'm still trying to find a way to show the clip size on the weapon info page in the ufopedia, next to each clip icon.

There is no such thing atm.

Based of the 'INFO' nerd stuff it looks like the clip size is a parameter of each clip so the clips could vary in clip size so I would need to get that from the clip data.
I'm looking through the source on github, but it's not apparent yet.

RuleItem::getClipSize()

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8974
    • View Profile
Re: [DONE][Suggestions] Show every ammo clip size in the UFOPedia page
« Reply #7 on: December 31, 2023, 06:45:10 pm »

Offline 0xEBJC

  • Colonel
  • ****
  • Posts: 180
  • Y'all are awesome! Thankful for this community.
    • View Profile
    • My Projects
Re: [DONE][Suggestions] Show every ammo clip size in the UFOPedia page
« Reply #8 on: February 14, 2024, 02:53:36 am »
This is awesome! Thank you.

Very helpful to help.