Data Realms Fan Forums
http://forums.datarealms.com/

Background doesn't apper!
http://forums.datarealms.com/viewtopic.php?f=8&t=11826
Page 1 of 1

Author:  BloodyPirate [ Tue Jul 29, 2008 7:34 pm ]
Post subject:  Background doesn't apper!

I just finished my level, and it works just fine, however whenever I play it the background is nothing but black.

How do I get it to show my background pictures?

Author:  Lord Tim [ Wed Jul 30, 2008 1:15 am ]
Post subject:  Re: Background doesn't apper!

It could be that you've added the background layers in the wrong order. Especially if one of your layers is entirely black. Try adding them in the opposite order and see if that fixes it.

Author:  BloodyPirate [ Thu Jul 31, 2008 7:56 pm ]
Post subject:  Re: Background doesn't apper!

None of my backgrounds are solid black.

This is my first mod really, and I am really new to this stuff. How would I change the order of the layers?

Author:  Lord Tim [ Fri Aug 01, 2008 1:29 am ]
Post subject:  Re: Background doesn't apper!

You just change the order that it's added in the code.

I.E. For Grasslands, it's:
Code:
   AddBackgroundLayer = SceneLayer
      CopyOf = Near Layer
   AddBackgroundLayer = SceneLayer
      CopyOf = Clouds Layer
   AddBackgroundLayer = SceneLayer
      CopyOf = Sky Layer


The near layer is the first one added, and it goes on top of each one added after it.

Author:  Aspect [ Sun Aug 03, 2008 7:38 pm ]
Post subject:  Re: Background doesn't apper!

I have the exact same problem, but it's not the order of the layers that is doing it. All I did was copy the base backdrops and edit them a bit. All I changed in the background code is the path of the file. I've attached it if you wanna give it a look.

edit: aha, figured out what the problem is! I tabbed wrong. That's probably what you did wrong too, so I hope you see this message.

Author:  BloodyPirate [ Sun Aug 10, 2008 4:13 am ]
Post subject:  Re: Background doesn't apper!

What do you mean by tabbed? as in indentation?

Author:  Aspect [ Sun Aug 10, 2008 5:44 am ]
Post subject:  Re: Background doesn't apper!

yeah, there is a tab before the line

Author:  Yukio [ Wed Oct 08, 2008 10:17 pm ]
Post subject:  Re: Background doesn't apper!

What code do I need to define a single background image to a custom scene in v21?
I tried to study other scene ini-files but it didn't help and I'm going nuts already.

Author:  Aspect [ Wed Oct 08, 2008 11:37 pm ]
Post subject:  Re: Background doesn't apper!

in scene.ini in base.rte there is a addscenelayer=scenelayer or something like that and you use that and all the stuff under it to get a background. You have to change the filepath though, and if you wanna change the speed or anything you can do that too.

Author:  Yukio [ Thu Oct 09, 2008 7:17 pm ]
Post subject:  Re: Background doesn't apper!

Sucks. I have it like this but it's black.
Code:
AddBackgroundLayer = SceneLayer
   PresetName = Street Near Layer
   AddToGroup = Near Backdrops
   DrawTransparent = 1
   WrapX = 0
   WrapY = 0
   ScrollRatio = Vector
      X = 0
      Y = 0
   BitmapFile = ContentFile
      Path = Base.rte/Null.bmp

AddBackgroundLayer = SceneLayer
   PresetName = Street Clouds Layer
   AddToGroup = Mid Backdrops
   DrawTransparent = 1
   WrapX = 0
   WrapY = 0
   ScrollRatio = Vector
      X = 0
      Y = 0
   BitmapFile = ContentFile
      Path = Base.rte/Null.bmp

AddBackgroundLayer = SceneLayer
   PresetName = Street Sky Layer
   AddToGroup = Far Backdrops
   DrawTransparent = 0
   WrapX = 0
   WrapY = 0
   ScrollRatio = Vector
      X = 0
      Y = 0
   BitmapFile = ContentFile
      Path = Street.rte/Scenes/StreetBack.bmp
I'm making a one-screen map. (800x600)

Author:  Aspect [ Fri Oct 10, 2008 1:25 am ]
Post subject:  Re: Background doesn't apper!

It's because you have two null backdrops in front of it. You really don't need to have any code there at all, just cut the first 2 backgrounds out.

Author:  Yukio [ Fri Oct 10, 2008 1:09 pm ]
Post subject:  Re: Background doesn't apper!

Good to know, thanks.
...But it's still black.

Author:  LowestFormOfWit [ Fri Oct 10, 2008 1:18 pm ]
Post subject:  Re: Background doesn't apper!

If it's just one image, take out the line AddToGroups. My one image scene background works that way anyway.

Author:  Yukio [ Fri Oct 10, 2008 3:16 pm ]
Post subject:  Re: Background doesn't apper!

darkness prevails...

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/