Author Topic: Base information custom background not working  (Read 2010 times)

Offline robin

  • Commander
  • *****
  • Posts: 1225
  • ULTIMATE ROOKIE
    • View Profile
Base information custom background not working
« 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

Offline B1ackwolf

  • Colonel
  • ****
  • Posts: 178
  • im back...i guess
    • View Profile
Re: Base information custom background not working
« Reply #1 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.

Offline Nord

  • Commander
  • *****
  • Posts: 1749
  • The Gate is open.
    • View Profile
Re: Base information custom background not working
« Reply #2 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.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9115
    • View Profile
Re: Base information custom background not working
« Reply #3 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...

Offline Nord

  • Commander
  • *****
  • Posts: 1749
  • The Gate is open.
    • View Profile
Re: Base information custom background not working
« Reply #4 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.

Offline robin

  • Commander
  • *****
  • Posts: 1225
  • ULTIMATE ROOKIE
    • View Profile
Re: Base information custom background not working
« Reply #5 on: October 17, 2023, 09:37:51 pm »
Thank you all :)

Offline Alex_D

  • Colonel
  • ****
  • Posts: 498
    • View Profile
Re: Base information custom background not working
« Reply #6 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

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9115
    • View Profile
Re: Base information custom background not working
« Reply #7 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