Author Topic: New section in ufopaedia  (Read 1068 times)

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
New section in ufopaedia
« on: December 12, 2023, 05:04:24 pm »
Hello, everybody.

Any clue how to create new section in ufopaedia? I tried just to create an article with new section ID but it didn't pick up.

Is it allowed to create new sections? Will they fit in the screen?

Another question if the above is not possible. Is it possible to create sub articles in the list of articles within the section?
Another question if it is possible to create multi page article?

Thank you.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: New section in ufopaedia
« Reply #1 on: December 12, 2023, 05:56:36 pm »
Answer to all questions is yes.

Well, I don't know what you mean by "sub articles", but if it's the same as "multi page articles", then yes.

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: New section in ufopaedia
« Reply #2 on: December 12, 2023, 06:14:33 pm »
Great! How to create multi page article? Any examples in wiki?



Never mind. Found "pages" option in ruleset.
« Last Edit: December 12, 2023, 06:19:19 pm by Alpha Centauri Bear »

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: New section in ufopaedia
« Reply #3 on: December 12, 2023, 06:34:50 pm »
Tried this pages option. It does create multiple pages. They look like a regular pages accessible with "next" button, though. There is no indication these pages are part of the same multi page article and there is no indication on main/first page that there are more pages in this article.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: New section in ufopaedia
« Reply #4 on: December 12, 2023, 06:42:42 pm »

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: New section in ufopaedia
« Reply #5 on: December 12, 2023, 07:21:21 pm »
Added this for test to the end of my ufopedia.rul:

Code: [Select]
  - id: STR_TRITON1
    type_id: 10
    section: STR_XCOM_CRAFT_ARMAMENT
    image_id: UP001.BDY
    text: STR_TRITON_UFOPEDIA
    pages:
      - title: STR_GAUSS_PISTOL
        text: STR_PISTOL_PISTOL_UFOPEDIA
      - title: STR_GAUSS_RIFLE
        text: STR_PISTOL_RIFLE_UFOPEDIA

Additional page is accessible by regular right/left navigation buttons and by keyboard right/left keys but no additional double arrows are added anywhere on the screen.



Reading through the link you posted it looks like this multi page feature is for weapon/ammo only? Should I set a specific article type (weapon) to make it appear?
« Last Edit: December 12, 2023, 07:23:47 pm by Alpha Centauri Bear »