Author Topic: [DONE][Suggestion] Removing UFOPedia pages  (Read 2076 times)

Offline skyhawk

  • Colonel
  • ****
  • Posts: 115
    • View Profile
[DONE][Suggestion] Removing UFOPedia pages
« on: December 01, 2019, 06:28:03 am »
I'm considering having multiple research projects for a given alien weapon.

One project as a quick "How do I make the unfriendly end of this thing work?" project, followed later by a more demanding "How does this thing work and how do I build more of it?" project.

I would like to unlock one UFOPedia page upon initial research, then remove that page and replace it with another upon completion of the second project.

Can I ask for something like a "removedby" field, which will basically act as the inverse of "requires"?


Hrm. This might not be viable if "id" must match the actual item ID, and must be unique.
« Last Edit: February 19, 2023, 09:36:05 am by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Removing/Replacing UFOPedia pages
« Reply #1 on: December 01, 2019, 09:34:25 am »
pedia pages depend on research... and research can be disabled and removed

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Removing/Replacing UFOPedia pages
« Reply #2 on: December 02, 2019, 08:35:14 pm »
Of course you're right Meridian, but it's just way too much trouble on the modder's part. There are hundreds of such items, the tech tree would be absolutely insane.

As a proponent of a similar solution (here, no. 3), I can only support this request. Well, as long as it's not too much trouble to code.

Offline skyhawk

  • Colonel
  • ****
  • Posts: 115
    • View Profile
Re: Removing/Replacing UFOPedia pages
« Reply #3 on: December 03, 2019, 05:06:36 am »
Without examining the underlying code, which is kinda-mostly outside my skillset, I offer the following suggestion as a way to possibly implement this without breaking things or requiring massive effort:

Give us these two fields with the following logic

replacementText: - An alternative UFOPEDIA blurb from the language file
replacementRequires: - Same logic as requires:

This might not be the most elegant solution, and it only allows for a single replacement [Adequate for my purposes, but I could see someone wanting more flexibility than this provides]


Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: [DONE][Suggestion] Removing UFOPedia pages
« Reply #4 on: February 18, 2024, 08:01:41 pm »