OpenXcom Forum
Modding => Help => Topic started by: obsidian_razor on July 15, 2021, 12:16:19 am
-
Hi, I've looked at the tutorials and tried to convert a PNG to use in the UFOpedia, but even after importing the palette as per the tutorial, I can't seem to get it to work.
I'm attaching the file I'm trying to convert.
Perhaps I'm missing something?
Thanks!
-
First you need shrink image to 320x200 resolution.
Then to convert image into 256 colors palette.
You can use standart ufopedia palette, or choose your own. In second case you will need to rename file, adding "_CPAL", so OXCE will understand that is a custom palette.
Like that:
-
Thank you so much, though I'm afraid it still doesn't work :(
This is what the pic looks in game, even after using the one you provided.
Very strange :(
EDIT: I stand corrected, the first IMG, the non-custom one works. Which palette you imported? I was importing the UFOpedia palette using Irfranview as per the tutorial and getting the result below still :(
-
You forget to name your rule for image with _CPAL, like:
- typeSingle: INTERCEPTOR_CPAL.SPK
fileSingle: Resources/Ufopedia/Concept_-_Raven_CPAL.png
-
...
need to rename file, adding "_CPAL", so OXCE will understand that is a custom palette.
You forget to name your rule for image with _CPAL, like:
- typeSingle: INTERCEPTOR_CPAL.SPK
fileSingle: Resources/Ufopedia/Concept_-_Raven_CPAL.png
Does this process work for replacing existing UFOpedia entries?
Example:
- type: UP003.SPK
singleImage: true
width: 320
height: 200
files:
0: Resources/Lightning/Custom_Lightning_CPAL.png
-
Not directly, unless you use the default palette for the image, but the same process works.
- type: UP003_CPAL.SPK
singleImage: true
width: 320
height: 200
files:
0: Resources/Lightning/Custom_Lightning_CPAL.png
[/quote]
- id: STR_LIGHTNING
type_id: 1
section: STR_XCOM_CRAFT_ARMAMENT
requires:
- STR_NEW_FIGHTER_TRANSPORTER
image_id: UP003_CPAL.SPK
...
-
Thanks Juku121!
Now, does anyone have a save from late game so I can test things?
-
Press "u" in quick battle or use config file option "debug: true", then go to debug mode by pressing "ctrl+d" on geoscape.
-
You guys are all so helpful! Thanks! I'm obviously new to modding X-Com. I try to find answers on my own as much as possible to avoid flooding the forums. Thanks again!
-
You guys are all so helpful! Thanks! I'm obviously new to modding X-Com. I try to find answers on my own as much as possible to avoid flooding the forums. Thanks again!
Dont forget to use ufopedia:
https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom) (https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom))
and Falco Tools:
http://falkooxc2.pythonanywhere.com/ (http://falkooxc2.pythonanywhere.com/)