aliens

Author Topic: [DONE][Suggestion] Image options for the Ufopaedia and armors  (Read 16696 times)

Offline Alex_D

  • Colonel
  • ****
  • Posts: 498
    • View Profile
[DONE][Suggestion] Image options for the Ufopaedia and armors
« on: October 25, 2020, 04:38:53 am »
I'd like to suggest two features:

1. Currently the image option for a "type_id: 5" pedia article (armor) is the inventory_image of the armor. There is no other option. Adding "image_id" to this type of article doesn't do anything. I'd like to propose an alternate image option (either regular, bigbos, or CPAL) that would replace the inventory image of the armor if specified. If not specified, things remain as usual.

The reason is maybe sometimes one may want to create a special image for the armor than just the inventory image. If it's too complicated, is there a template for the type 5's like in "BACK08.SCR" that we can use?

2. Kind of related to above. The game will look for the pedia article based on the string of the armor. I'd like to propose a default article to be added under "armors:" (e.g. "alternate_pedia: STR_MY_FAMILY_OF_ARMORS") that the game will look for if specified. If not things remain as usual.

Same reason as #1, maybe we have created several types of armors that only differ from each other on the image and this way we could reduce clutter in the ufopaedia.


All of these suggestions came to my mind after checking the "Xeno Ops" mod and its approach to multiple armors. There is no MMB linking to the pedia article in that mod.

If there is a similar solution in ruleset commands that will give the two features requested, I'd like to know them.
« Last Edit: October 25, 2020, 06:53:34 pm by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: [Suggestion] Image options for the Ufopaedia and armors
« Reply #1 on: October 25, 2020, 11:20:48 am »
1. Currently the image option for a "type_id: 5" pedia article (armor) is the inventory_image of the armor. There is no other option. Adding "image_id" to this type of article doesn't do anything. I'd like to propose an alternate image option (either regular, bigbos, or CPAL) that would replace the inventory image of the armor if specified. If not specified, things remain as usual.

The reason is maybe sometimes one may want to create a special image for the armor than just the inventory image. If it's too complicated, is there a template for the type 5's like in "BACK08.SCR" that we can use?

1/ done, for both standard palette and custom palette

custom palette info: https://openxcom.org/forum/index.php/topic,4957.0.html
« Last Edit: November 22, 2020, 04:05:42 pm by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Suggestion] Image options for the Ufopaedia and armors
« Reply #2 on: October 25, 2020, 05:52:51 pm »
I think what Alex means is something I've encountered myself in XCF as a sort of issue. A common example is two gender versions of enemies (like male and female Pioneers, or male and female Tough People in Piratez). These two need two units, two armours, and two items, so also I need to make two separate armour entries (even if the mechanical values are exactly the same). It would be nice to have just one Pedia entry, showing both paperdolls or something.
Not a big deal, but still.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: [Suggestion] Image options for the Ufopaedia and armors
« Reply #3 on: October 25, 2020, 06:00:46 pm »
It would be nice to have just one Pedia entry, showing both paperdolls or something.

You mean one Pedia entry, showing the SAME paperdoll, right?

Like Male Pioneer and Female Pioneer would point to the exactly same ufopedia article, showing the same paperdoll, same stats, same everything.

Offline Alex_D

  • Colonel
  • ****
  • Posts: 498
    • View Profile
Re: [Suggestion] Image options for the Ufopaedia and armors
« Reply #4 on: October 25, 2020, 06:41:39 pm »
1/ done, for both standard palette and custom palette

custom palette info: https://openxcom.org/forum/index.php/topic,4957.0.html

2/ I don't understand how that is supposed to reduce clutter in Ufopedia... you still need to create separate Ufopedia entries because of different images. Please clarify.

1. Thank you!

2. The clutter part was an idea of a possible benefit. Some mods (*cough* Piratez *cough*) have an armor for multiple soldier types (gal, other gal, yet another gal) and for multiple environments (land, sea, space) are essentially the same (in stats anyways). These multiple entries, could be reduced to only one (plus a bit of reworked text) to refer to a single type of armor. Like "storeItem" but for armors.

EDIT: Yes, what Solarius said.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: [DONE][Suggestion] Image options for the Ufopaedia and armors
« Reply #5 on: October 25, 2020, 06:53:42 pm »
2/ added

Example:

Code: [Select]
armors:
  - type: STR_PERSONAL_ARMOR_UC
    ufopediaType: STR_SKYRANGER
  - type: STR_POWER_SUIT_UC
    ufopediaType: STR_SKYRANGER
  - type: STR_FLYING_SUIT_UC
    ufopediaType: STR_SKYRANGER

Please note that unless the armors are identical, the Stats for Nerds will be lying to the player.
You've been warned.
« Last Edit: November 22, 2020, 04:06:15 pm by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Suggestion] Image options for the Ufopaedia and armors
« Reply #6 on: October 25, 2020, 09:02:28 pm »
You mean one Pedia entry, showing the SAME paperdoll, right?

Like Male Pioneer and Female Pioneer would point to the exactly same ufopedia article, showing the same paperdoll, same stats, same everything.

Basically yes. I would like to see both pictures there (female and male), but technically it's just one article.

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: [DONE][Suggestion] Image options for the Ufopaedia and armors
« Reply #7 on: October 25, 2020, 09:03:41 pm »
Maybe option for multi page article that change only graphic for each variant?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [DONE][Suggestion] Image options for the Ufopaedia and armors
« Reply #8 on: March 07, 2022, 11:51:28 am »
It appears that the ufopediaType command doesn't extend to the display on this screen:



That armour is set up to use this Pedia page instead:



Should I add this string (duplicate "Muton Combat Analysis")? Or should the feature also update this description?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: [DONE][Suggestion] Image options for the Ufopaedia and armors
« Reply #9 on: March 07, 2022, 12:19:07 pm »
I'll check...

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: [DONE][Suggestion] Image options for the Ufopaedia and armors
« Reply #10 on: August 06, 2022, 10:10:17 am »
It appears that the ufopediaType command doesn't extend to the display on this screen:

Yes, `ufopediaType` only says which pedia article will be opened on M-click.
It doesn't rename the armor.

Should I add this string ?

Yes.

(duplicate "Muton Combat Analysis")?

Actually, I would prefer to see the correct armor description there, e.g. "Muton Engineer Armor".
The pedia article title and the armor name don't have to be the same.

Or should the feature also update this description?

No.
« Last Edit: August 06, 2022, 10:20:56 am by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [DONE][Suggestion] Image options for the Ufopaedia and armors
« Reply #11 on: August 08, 2022, 01:42:51 am »
Thank you, that clears this up.

Offline Buscher

  • Colonel
  • ****
  • Posts: 168
    • View Profile
Re: [DONE][Suggestion] Image options for the Ufopaedia and armors
« Reply #12 on: January 29, 2023, 08:35:59 pm »
Hi,

is it possible to extend this feature to items: ?

I have a few items that are pretty much a reskin. These items cannot be loaded on your craft and are for selling only (Chaos vs Sanctioned items). For the battle relevant stats they are the same. If not I can live with creating duplicate articles inside another section.

Thanks.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: [DONE][Suggestion] Image options for the Ufopaedia and armors
« Reply #13 on: January 29, 2023, 08:41:01 pm »
ok

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: [DONE][Suggestion] Image options for the Ufopaedia and armors
« Reply #14 on: April 22, 2023, 12:01:55 pm »
added in OXCE 7.8.19

Example:

Code: [Select]
items:
  - type: STR_PISTOL
    ufopediaType: STR_GRENADE
  - type: STR_RIFLE
    ufopediaType: STR_GRENADE
  - type: STR_LASER_RIFLE
    ufopediaType: STR_GRENADE

Please note that unless the items are identical, the Stats for Nerds will be lying to the player.
You've been warned.