Data Realms Fan Forums
http://45.55.195.193/

Can someone make these work?
http://45.55.195.193/viewtopic.php?f=75&t=20846
Page 1 of 1

Author:  Antti1x [ Thu Dec 23, 2010 10:46 pm ]
Post subject:  Can someone make these work?

I was thinking that "Hey, I could create better and smaller bunker holes." So, I edited the old concrete skins and...
Image
Image

Can someone PLEASE make these work in-game?

Author:  Roast Veg [ Fri Dec 24, 2010 5:15 pm ]
Post subject:  Re: Can someone make these work?

Look in Base.rte at all the bunker bits. They have a foreground sprite, a background sprite and material key. If you make one of each for this bunker module I will make it work for you.

Author:  Antti1x [ Sat Dec 25, 2010 7:45 pm ]
Post subject:  Re: Can someone make these work?

Oh, you mean these?

Attachments:
File comment: Bunker files
Bunker.rar [3.8 KiB]
Downloaded 152 times

Author:  dragonxp [ Sat Dec 25, 2010 7:58 pm ]
Post subject:  Re: Can someone make these work?

Before considering roast veg's offer, I think it'll be more beneficial for you to learn to make it yourself.

So, before we begin you'd need those FG, BG and MAT files which indeed you have.

Then to make your own .rte make a newfolder and name it BunkerNew.rte or something to that effect.

Open the folder and make a new text document, write this:

Datamodule
[tab]ModuleName = [whatever you desire]
[tab]IncludeFile = BunkerNew.rte/Bunker.ini

save as all files with a .ini extension.

Now make a new text document and put this:


Code:
AddTerrainObject = TerrainObject
   PresetName = Left Barrier
   AddToGroup = Bunker Modules
   GoldCost = 50
   FGColorFile = ContentFile
      Path = NewBunker.rte/[filename]
   MaterialFile = ContentFile
      Path = NewBunker.rte/[filename]
   BGColorFile = ContentFile
      Path = NewBunker.rte/[filename]


Copy paste the code and adjust name for the right barrier.
Make sure you use tabs not spaces.
Make sure there is a blank line in between the two codes.

save as extension .ini as well, now boot up cc and you should be able to place your bunker during the building phase.

Feel free to give errors.

Author:  mail2345 [ Sat Dec 25, 2010 9:29 pm ]
Post subject:  Re: Can someone make these work?

Also don't use jpg, use bmp, and make sure it's in pallet.

Author:  Antti1x [ Sun Dec 26, 2010 10:23 pm ]
Post subject:  Re: Can someone make these work?

Sorry for giving not-so-good instructions, I actually just wanted to get the .bmp:s work in-game. I have all that .ini stuff and .rte folder but the bunker files look ♥♥♥♥ in the game.

Author:  dragonxp [ Sun Dec 26, 2010 10:44 pm ]
Post subject:  Re: Can someone make these work?

Oh, you have to palette them, right now they aren't using colours that are indexed with the palette.

Open up a a sprite file and paste your sprites over them, save as and they should be in palette.

Author:  mail2345 [ Sun Dec 26, 2010 10:46 pm ]
Post subject:  Re: Can someone make these work?

Or import the CC palette in GIMP as a palette, then you can set the mode to indexed, with the palette as the colormap.

Author:  Antti1x [ Mon Dec 27, 2010 2:08 pm ]
Post subject:  Re: Can someone make these work?

Maybe I am stupid as hell but they still look like this:
http://i54.tinypic.com/261zs5j.png

So, open palette in paint.net. I copy paste my sprite on the palette and save. (btw I didn't replace the old palette)
They still look like that...

Author:  carriontrooper [ Mon Dec 27, 2010 2:55 pm ]
Post subject:  Re: Can someone make these work?

That is definitely palette problems. Here's how to do it in Photoshop (well, GIMP works too):

1.) open up a bunker FG file, duplicate it in your folder. (I usually use the tomb but use what you like)
2.) open up the duplicate, fill it all with transparent pink (255, 0, 255), and paste your module there. Resize. Save. Make sure it's .bmp.
3.) do the same with your BG and Mat pics, but for the Mat file you have to duplicate a Mat file in step 1.
4.) ????
5.) PROFIT!

Author:  Antti1x [ Mon Dec 27, 2010 4:39 pm ]
Post subject:  Re: Can someone make these work?

... Tried it and ...
http://i53.tinypic.com/50h1jt.png

:facepalm:

Author:  mail2345 [ Mon Dec 27, 2010 5:48 pm ]
Post subject:  Re: Can someone make these work?

Try use GIMP.
Import CC's palette, and then set the image mode to Indexed, with the CC palette.
Uncheck remove unused colors.

Author:  Duh102 [ Mon Dec 27, 2010 8:52 pm ]
Post subject:  Re: Can someone make these work?

This topic covers how to palette images in Gimp. The only extra thing you'd need to do is use the second materials palette for your Mat file. The BG and FG images are in the normal CC palette, but the Mat uses the materials palette.

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