Data Realms Fan Forums
http://45.55.195.193/

Need help with new bunker module.
http://45.55.195.193/viewtopic.php?f=1&t=8146
Page 1 of 1

Author:  gnlcwr [ Fri Oct 05, 2007 11:52 pm ]
Post subject:  Need help with new bunker module.

I am trying to make a new bunker module called the tunnel bunker (its a bunker w/ tunnels) Before anybody starts telling me how gay it looks, one, when it works I'll add more tunnels for more connectivity, and two, I know the background and foreground are ugly, I was just trying to get this to work first. Anyway, when I am building my bunker, in the bunker module select menu, it shows up distorted and the game shuts down when i click it. I don't know whats wrong as I used only colors from the original bunker modules. Anyway here's the code I used to add them:

AddTerrainObject = TerrainObject
InstanceName = TunnelBunker
AddToGroup = Bunker Modules
GoldCost = 75
FGColorFile = ContentFile
Path = Base.rte/Scenes/Objects/BunkerModules/TunnelBunkerFG.bmp
MaterialFile = ContentFile
Path = Base.rte/Scenes/Objects/BunkerModules/TunnelBunkerMat.bmp
BGColorFile = ContentFile
Path = Base.rte/Scenes/Objects/BunkerModules/TunnelBunkerBG.bmp

And here are the pictures:
Image
Background

Image
Foreground

Image
Materials

These were made in paint so they are BMP's. One thing I did notice though was that compared to the other modules these had a much bigger file size (about 450 KB's bigger).

Any help is greatly appreciated and will be acknowledged in the credits.
Thanks

Author:  Raithah [ Sat Oct 06, 2007 12:41 am ]
Post subject:  Re: Need help with new bunker module.

The one problem I can think of is that you're not using the palette - though this is easily remidied.

Alls ya need to do is open up palette.bmp (it should be somewhere in base.rte) and paste your image into it. That's all. Oooh, and make sure that it's big enough to accept your sprite (make the picture a little bigger).

See, CC uses a palette system, or a series of pre-set colours, instead of using all sixteen million that you can get with RGB. Simply copy/pasting colours into an image doesn't work, you need to edit one that already had the palette applied.

Author:  gnlcwr [ Tue Oct 16, 2007 6:05 am ]
Post subject:  Re: Need help with new bunker module.

Thanks to Raithah for helping me out. I got the bunker to work, but instead of having open space within the bunker, it fills with whatever was originally there. (i.e. If I place it under the ground it fills with the ground.) Please help if you have the time. If you want the file, please PM me, as I cannot post it in this forum section.

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