Page 1 of 1

Background images

Posted: Thu Aug 01, 2013 1:14 pm
by Metzelmax
Hi, I tried to add a custom bg, but if i try to access it via

Code: Select all

<text back="BG_ANT_HOME" planet="NONE">This is the Anterian Home World. Enjoy.</text>
it doesnt load it, but just a random background

I then loaded it directly with

Code: Select all

<img back="BG_ANT_HOME" planet="NONE"/>
which worked... but it crashed the game once I pressed jump... no clue why.
could it be that 2times loading the same image crashes the game, since I ofc loaded that even 20 times?

Re: Background images

Posted: Fri Aug 02, 2013 3:45 am
by Ora_unit_SR388
hm. It shouldn't do that. :cry: no idea

Re: Background images

Posted: Fri Aug 02, 2013 6:50 pm
by speedoflight
I believe u need to declare it on the events_imagelist.xml file, where u specify the size of the image and something like that.

Re: Background images

Posted: Sat Aug 03, 2013 7:09 am
by Metzelmax
did that.

I really think it comes down to the fact that in order to test the event I spawn it 20 times. And I tried it: if you load 2 times the same bg image it crashes the game wtf. So I made it a quest and traveled to it: no problem at all. So I guess I can use a new custom bg only once.

Re: Background images

Posted: Sat Aug 03, 2013 5:42 pm
by speedoflight
Metzelmax wrote:did that.

I really think it comes down to the fact that in order to test the event I spawn it 20 times. And I tried it: if you load 2 times the same bg image it crashes the game wtf. So I made it a quest and traveled to it: no problem at all. So I guess I can use a new custom bg only once.
Maybe, maybe not. I discovered that FTL engine is so crappy that will crash / bug for the most stupid reason. Something similar, when u make event codes. I dont think thats the problem, i really think u must be able to load the same background more than once, but i never tried to use custom backgrounds yet, so i wouldn know..