Background images

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
User avatar
Metzelmax
Posts: 364
Joined: Wed Sep 26, 2012 7:59 am

Background images

Post 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?
Here is the Stuff I made:
ImageImageImageImage
And stuff is always better than no stuff, right?
User avatar
Ora_unit_SR388
Posts: 190
Joined: Fri Apr 12, 2013 2:41 pm

Re: Background images

Post by Ora_unit_SR388 »

hm. It shouldn't do that. :cry: no idea
speedoflight
Posts: 660
Joined: Mon Feb 18, 2013 11:08 am

Re: Background images

Post 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.
My currently mods / wips ->
ImageImage
User avatar
Metzelmax
Posts: 364
Joined: Wed Sep 26, 2012 7:59 am

Re: Background images

Post 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.
Here is the Stuff I made:
ImageImageImageImage
And stuff is always better than no stuff, right?
speedoflight
Posts: 660
Joined: Mon Feb 18, 2013 11:08 am

Re: Background images

Post 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..
My currently mods / wips ->
ImageImage
Post Reply