aliens

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

Offline Alex_D

  • Colonel
  • ****
  • Posts: 380
    • 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: 6798
  • OXCE developer
    • View Profile
    • My Wiki
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: 10105
  • 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: 6798
  • OXCE developer
    • View Profile
    • My Wiki
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: 380
    • 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: 6798
  • OXCE developer
    • View Profile
    • My Wiki
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: 10105
  • 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

  • Moderator
  • Commander
  • ***
  • Posts: 2454
    • 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?