View unanswered posts | View active topics It is currently Wed Dec 25, 2024 7:41 am



Reply to topic  [ 11 posts ] 
 Adding/referencing new assets + various other questions 
Author Message
User avatar

Joined: Wed Apr 21, 2010 1:54 am
Posts: 124
Location: UK, Surrey
Reply with quote
Post Adding/referencing new assets + various other questions
Hello,

It's been several years and updates since I last played Cortex Command, I expect the file system/module system has changed a lot since I last used it (not that I would remember how it was set up anyway). However, in between commitments I wish to make progress on what I was working on before.

So at the present time, there are a few things that I'm trying to do. I would like to add custom assets that I have made, to the map that I was working on, "Tettaia Dusts", preferably with editing the least base/stock game files as possible (if not none at all).

These assets this far include:

- New textures / (materials?)

- New terrain objects (with their associated material files and background files [colourmaps])

Current file structure (this *might* help):

Map module -

http://i.imgur.com/mLjmGDX.png

Assets folder -

http://i.imgur.com/U532WoK.png

Index.ini for TettaiaDusts.rte

DataModule
ModuleName = TettaiaDusts
IncludeFile = TettaiaDusts.rte/TettaiaDusts.ini
IncludeFile = TettaiaDusts.rte/Tettaia Dusts.ini
IncludeFile = TettaiaDusts.rte/Scenes.ini
IncludeFile = TettaiaObjects/Index.ini

Materials.ini

AddMaterial = Material
Index = 226
PresetName = Bentite Stone
Bounce = 0.7
Friction = 0.75
StructuralIntegrity = 80
DensityKGPerVolumeL = 3.75
GibImpulseLimitPerVolumeL = 15
GibWoundLimitPerVolumeL = 0.1
Priority = 6
Color = Color
R = 130
G = 130
B = 130
TextureFile = ContentFile
Path = TettaiaDusts.rte/Textures/Rock2aTTex.bmp

TettaiaObjects folder -

Index.ini

AddTerrainObject = TerrainObject
PresetName = Tettaia Mother Cave Cutout
MaterialFile = ContentFile
Path = TettaiaObjects/TettaiaMotherCaveSPACE.bmp
BGColorFile = ContentFile
Path = TettaiaObjects/TettaiaMothercave.bmp
BitmapOffset = Vector
X = 0
Y = 0

Objects.ini

////////////////////////////////////////////////////
// Bunker Modules
////////////////////////////////////////////////////
// For TettaiaDusts
AddTerrainObject = TerrainObject
PresetName = TettaiaMotherCave
AddToGroup = TettaiaDusts
GoldCost = 0
BGColorFile = ContentFile
Path = TettaiaObjects/TettaiaMothercave.bmp
BitmapOffset = Vector
X = 0
Y = 0

Most of these .ini files contain only one entry, I'm just trying to learn how to get these assets to load into Cortex Command without crashing before I continue with adding more.

Hopefully somebody could be able to help me get this working, then I should be able to carry on with these elements from example.

Thanks in advanced for the help.


Mon May 04, 2015 4:41 pm
Profile
DRL Developer
DRL Developer
User avatar

Joined: Thu Jun 11, 2009 2:34 pm
Posts: 966
Location: Moscow, Russia
Reply with quote
Post Re: Adding/referencing new assets + various other questions
Why don't you just let download your whole rte module?


Tue May 05, 2015 9:25 am
Profile
User avatar

Joined: Wed Apr 21, 2010 1:54 am
Posts: 124
Location: UK, Surrey
Reply with quote
Post Re: Adding/referencing new assets + various other questions
http://www.mediafire.com/download/21987 ... stsNew.RAR

I would have preferred to first show the finished product, though.


Tue May 05, 2015 9:38 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Thu Jun 11, 2009 2:34 pm
Posts: 966
Location: Moscow, Russia
Reply with quote
Post Re: Adding/referencing new assets + various other questions
Well, there's nothing wrong with your ini's there's something wrong with your bitmaps. First most bitmaps CC uses (except glows) can't be 32-bit, they must be 8-bit color depth bitmaps with a specific palette. The best way to get such bitmap is to copy an existing scene, material or background bitmap, open it in your graphical editor and then paste whatever you want to have in it. BTW newest ms paint is known to break palette, photoshop and gimp should work just fine.


Tue May 05, 2015 2:34 pm
Profile
User avatar

Joined: Wed Apr 21, 2010 1:54 am
Posts: 124
Location: UK, Surrey
Reply with quote
Post Re: Adding/referencing new assets + various other questions
Thanks for the help, although I still seem to be getting the same error:

---------------------------
RTE Aborted! (x_x)
---------------------------
Failed to load datafile object with following path and name:

TettaiaObjects/TettaiaMothercave.bmp

The last frame has been dumped to 'abortscreen.bmp'

You can copy this message with Ctrl+C
---------------------------
OK
---------------------------

I pasted the image file ontop of another stock CC image and exported it to .bmp although I still receive the same error. Not sure what I'm doing wrong.

http://www.mediafire.com/view/hkvpyhdd3 ... ercave.bmp


Tue May 05, 2015 6:34 pm
Profile
User avatar

Joined: Wed Apr 21, 2010 1:54 am
Posts: 124
Location: UK, Surrey
Reply with quote
Post Re: Adding/referencing new assets + various other questions
Bump.


Wed May 06, 2015 11:01 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Adding/referencing new assets + various other questions
I'm unsure why you bumped because not a single other thread has had an update since you posted.
So your image was not in palette. I'm not sure what image editor you used but I highly recommend you find a tutorial for it on how to use a custom palette, or utilize my own tutorial on how to do so in Gimp (my editor of choice). The pasting an image into a previously paletted Cortex image trick only really works in some editors (notably, the Windows XP version of paint), so I don't really trust it.
Attachment:
TettaiaMothercave_idx.zip [364.69 KiB]
Downloaded 903 times


Thu May 07, 2015 2:51 am
Profile
User avatar

Joined: Wed Apr 21, 2010 1:54 am
Posts: 124
Location: UK, Surrey
Reply with quote
Post Re: Adding/referencing new assets + various other questions
I indexed it since I last uploaded that file, using gimp.

I will try the version you sent.

Edit: Nope, sadly still no avail. Not sure why it specifically doesn't work for me.

Quote:
---------------------------
RTE Aborted! (x_x)
---------------------------
Failed to load datafile object with following path and name:

TettaiaDusts.rte/TettaiaObjects/TettaiaMothercave_idx.bmp

The last frame has been dumped to 'abortscreen.bmp'

You can copy this message with Ctrl+C
---------------------------
OK
---------------------------


TettaiaDusts.rte/TettaiaObjects/ObjectsNew.ini

AddTerrainObject = TerrainObject
PresetName = Tettaia Mother Cave
AddToGroup = TettaiaRegion
GoldCost = 0
//FGColorFile = ContentFile
//Path = TettaiaDusts.rte/TettaiaObjects/TettaiaMothercaveFG.bmp
//MaterialFile = ContentFile
//Path = TettaiaDusts.rte/TettaiaObjects/TettaiaMotherCaveMAT.bmp
BGColorFile = ContentFile
Path = TettaiaDusts.rte/TettaiaObjects/TettaiaMothercave_idx.bmp
BitmapOffset = Vector
X = 0
Y = 0


TettaiaDusts.rte/Index.ini
DataModule
ModuleName = TettaiaDusts
IncludeFile = TettaiaDusts.rte/TettaiaDusts.ini
IncludeFile = TettaiaDusts.rte/Tettaia Dusts.ini
IncludeFile = TettaiaDusts.rte/Scenes.ini
IncludeFile = TettaiaDusts.rte/TettaiaObjects/ObjectsNew.ini

These are big images, I wonder if it has something to do with the amount of RAM Cortex Command is allocated ... ?


Thu May 07, 2015 6:25 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Adding/referencing new assets + various other questions
It's been a while since I modded, but I think you might also need the other bmps there? Don't know if that's the issue at hand, however.


Thu May 07, 2015 8:49 pm
Profile
User avatar

Joined: Wed Apr 21, 2010 1:54 am
Posts: 124
Location: UK, Surrey
Reply with quote
Post Re: Adding/referencing new assets + various other questions
You mean the foreground and material? Those are actually included. Unless you mean something else.

Edit: I'm starting to have a feeling it has something to do with the way Gimp exports indexed bitmaps, I tried it on an experimental image which prior to being re-exported, worked. I'm using the very latest version of Gimp (unless it's been updated within the past hour).

I have been trying what weegee first suggested; pasting my desired graphic ontop of a duplicated-stock CC image in order to match its colour palette. Maybe I'm missing a necessary plugin for exporting 8 bit images/bitmaps or something?

__________________________________________________________________________________________

Edit2: Okay, it was. Gimp wasn't exporting the indexed palette/8-bit depth properly, I had to break out an obscure program which can modify palette information and such which I found after doing some searching. The program is called "IrfanView", to note, for anyone else having bit-depth/palette problems.


Thu May 07, 2015 9:45 pm
Profile
User avatar

Joined: Wed Apr 21, 2010 1:54 am
Posts: 124
Location: UK, Surrey
Reply with quote
Post Re: Adding/referencing new assets + various other questions
After fixing that problem, I can now load my object/images into CC, but after adding it into the map, the next time I start CC and run the map in the scene editor; I receive the error -

---------------------------
RTE Aborted! (x_x)
---------------------------
TerrainObject's bitmaps are null when drawing!

The last frame has been dumped to 'abortscreen.bmp'

You can copy this message with Ctrl+C
---------------------------
OK
---------------------------

Would be nice if this just worked.

I also forgot to mention, I am using build 30, I don't know if build 31 fixes most of these problems that I'm having.


Sun May 10, 2015 1:03 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 11 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.067s | 16 Queries | GZIP : Off ]