OpenXcom Forum

Modding => Help => Topic started by: robin on October 15, 2023, 10:37:28 pm

Title: Base information custom background not working
Post by: robin on October 15, 2023, 10:37:28 pm
I defined a custom image, but it is not used ingame, I don't understand why.

Ruleset:
Code: [Select]
  - type: BACK07.SCR  # base stats
    singleImage: true
    width: 320
    height: 200
    files:
      0: Resources/apoc/BACK_SCR/BACK07_SCR.png

Image attached.
Full mod here: https://openxcom.org/forum/index.php/topic,3319.0.html

Anyone could help me understand what's wrong?
Thank you
Title: Re: Base information custom background not working
Post by: B1ackwolf on October 17, 2023, 06:39:14 am
Hi, I apologize if this could be seen as thread hijacking (I didn't want to create a duplicate post with essentially the same issue), but I'm genuinely eager to hear any possible solution. I'm encountering a similar problem, having made changes to the same image(and having the same .rul changes as robin), and unfortunately, I haven't been able to make it work. It's quite perplexing as I can freely modify any other background file, except for this particular one.
Title: Re: Base information custom background not working
Post by: Nord on October 17, 2023, 09:29:52 am
Try to move image file from "mod/Resources/apoc/BACK_SCR" to "mod/geograph/". Then you will need no file definition, it will just replace original one when game loads your mod.
Title: Re: Base information custom background not working
Post by: Meridian on October 17, 2023, 11:16:01 am
Try to move image file from "mod/Resources/apoc/BACK_SCR" to "mod/geograph/". Then you will need no file definition, it will just replace original one when game loads your mod.

That will not work.
He would have to use the original image format (instead of PNG), which is not practical.

Anyone could help me understand what's wrong?

I'll check later why it doesn't work, it's likely some special case...
Title: Re: Base information custom background not working
Post by: Nord on October 17, 2023, 12:11:42 pm
...
He would have to use the original image format (instead of PNG), which is not practical.
...
Oh. Missed that part. Sorry. This way works with terrains, maps e.t.c.
Title: Re: Base information custom background not working
Post by: robin on October 17, 2023, 09:37:51 pm
Thank you all :)
Title: Re: Base information custom background not working
Post by: Alex_D on October 18, 2023, 05:27:56 am
@ Robin,

I have mine in ALT mode, like this:

Code: [Select]
extraSprites: #only sprites for interface changes
  - typeSingle: ALTBACK07.SCR #PAL_BASESCAPE
    fileSingle: Resources/Backgrounds/BACK07_scxc_alt.png 
    #Used only in the base information screen
Title: Re: Base information custom background not working
Post by: Meridian on October 18, 2023, 01:57:27 pm
for "Storage Limits" option turned off, we use BACK07.SCR

for "Storage Limits" option turned on, we use ALTBACK07.SCR