OpenXcom Forum
Modding => Help => Topic started by: efrenespartano 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?
-
"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
-
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
-
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
-
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
-
Read through this thread: https://openxcom.org/forum/index.php/topic,4957.msg72548.html#msg72548