View unanswered posts | View active topics It is currently Fri Dec 27, 2024 11:09 pm



Reply to topic  [ 3 posts ] 
 Need help with new bunker module. 
Author Message
User avatar

Joined: Wed Oct 03, 2007 10:38 pm
Posts: 3
Location: Phoenix, AZ, USA
Reply with quote
Post 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


Fri Oct 05, 2007 11:52 pm
Profile
User avatar

Joined: Tue Jul 03, 2007 1:26 am
Posts: 165
Reply with quote
Post 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.


Sat Oct 06, 2007 12:41 am
Profile
User avatar

Joined: Wed Oct 03, 2007 10:38 pm
Posts: 3
Location: Phoenix, AZ, USA
Reply with quote
Post 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.


Tue Oct 16, 2007 6:05 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.023s | 14 Queries | GZIP : Off ]