Author Topic: Removing/Replacing UFOPedia pages  (Read 714 times)

Offline skyhawk

  • Captain
  • ***
  • Posts: 98
    • View Profile
Removing/Replacing 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.

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6606
  • OXCE developer
    • View Profile
    • My Wiki
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

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 9894
  • 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

  • Captain
  • ***
  • Posts: 98
    • 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]