aliens

Author Topic: UFOpedia text  (Read 4382 times)

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
UFOpedia text
« on: May 02, 2018, 08:46:52 pm »
Hi everyone!

I just have some questions. I'm working on some UFOpedia entries and I don't understand some things.

What are  type_id and text_width?

I imagine "type_id" it's the "type" of UFOpedia it's displayed, like "crafts entries", "weapons entries", "base buildings entries" etc. But I'm not sure what number represents each page. And in regards to a "text_width" how to know what number to assign? Does it represent any particular position in the entry? Is there any guide for, for example, not to put the text over my image?

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: UFOpedia text
« Reply #1 on: May 02, 2018, 09:00:24 pm »
"type_id" is the type of an article and defines the structure of the article, the background and the palette used... so choose carefully.

"text_width" is the width of the description/main text field... so that you can make it wider/narrower based on, for example, how big your background picture is.

...best documentation is the existing ruleset of xcom1 and xcom2

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: UFOpedia text
« Reply #2 on: May 02, 2018, 09:22:04 pm »
Oh, I see. And yes, I give a quick look at the xcom1 ruleset and now I understand. :)

So not all the pages of the Ufopedia have the same palette?
If it's not too much trouble, could you tell me what type of palette does each "type_id" use? :0

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: UFOpedia text
« Reply #3 on: May 02, 2018, 09:50:08 pm »
1 = craft = PAL_UFOPAEDIA
2 = craft weapon = PAL_BATTLEPEDIA
3 = vehicle = PAL_UFOPAEDIA
4 = item = PAL_BATTLEPEDIA
5 = armor = PAL_BATTLEPEDIA
6 = facility = PAL_BASESCAPE
7 = text = PAL_UFOPAEDIA
8 = text/image = PAL_UFOPAEDIA.... in OXCE+ custom palettes are possible too
9 = UFO = PAL_GEOSCAPE

10-17 is for TFTD, they all use PAL_BASESCAPE in vanilla... in OXCE+ you could choose also other standard palettes
« Last Edit: May 02, 2018, 09:52:38 pm by Meridian »

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: UFOpedia text
« Reply #4 on: May 04, 2018, 01:56:29 am »
1 = craft = PAL_UFOPAEDIA
2 = craft weapon = PAL_BATTLEPEDIA
3 = vehicle = PAL_UFOPAEDIA
4 = item = PAL_BATTLEPEDIA
5 = armor = PAL_BATTLEPEDIA
6 = facility = PAL_BASESCAPE
7 = text = PAL_UFOPAEDIA
8 = text/image = PAL_UFOPAEDIA.... in OXCE+ custom palettes are possible too
9 = UFO = PAL_GEOSCAPE

10-17 is for TFTD, they all use PAL_BASESCAPE in vanilla... in OXCE+ you could choose also other standard palettes
Wow! Thank you, Meridian! This is super useful. ;D

I've already seen some custom palettes in The X-Com Files, how to use them?

Enviado desde mi Blade A510 mediante Tapatalk


Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: UFOpedia text
« Reply #5 on: May 04, 2018, 10:24:06 am »