Register for your free account! | Forgot your password?

You last visited: Today at 23:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



.dbc

Discussion on .dbc within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
.dbc

i extracted c3.wdb from ini got the .dbc files, is there a way to read that files, are thy like text or? i need to read them to be able to add new mounts and stuff like that,

i searched on google and only legit thing so far i found was FoxPro but thats a brwoser not sure how is that going to open the file.
LordGragen. is offline  
Old 05/17/2013, 03:24   #2
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
They are not text files, they got a specific file structure and most of the structures have been released. There is a dbc file editor released as well, however not all the dbc files are supported. At least last time I checked, someone may have made a new. Just search around here.
Super Aids is offline  
Thanks
1 User
Old 05/17/2013, 03:56   #3
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
CptSky did a software for that i guess.
U2_Caparzo is offline  
Thanks
1 User
Old 05/17/2013, 04:13   #4
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
perfect i will check that editor, now thank you guys if you found feel free to post it here thx.
LordGragen. is offline  
Old 05/17/2013, 17:46   #5
 
elite*gold: 0
Join Date: Sep 2012
Posts: 51
Received Thanks: 32
Quote:
Originally Posted by LordGragen. View Post
i extracted c3.wdb from ini got the .dbc files, is there a way to read that files, are thy like text or? i need to read them to be able to add new mounts and stuff like that,
Besides lots of code published, I have found more info by trial and error, and have almost finished classes to handle these dbc files, either in binary or text format. Text format I got some files from some very old patches for Heroes of Might and Magic Online, but not full documented yet. These files seems to be in same format for Conquer (I tested just a few patches with dbc files from Conquer).
Unfortunately, my Visual Studio now crashes when hit any breakpoint, after installed C++ over C#, and I'm not able to repair it or uninstall, so I'm unable to complete the classes. If you want, I could post here what I have, but I was rewriting it all from scratch, after adquired new knowledge in programming; so the code is not very good yet...
Anyway, for mounts you just need to handle 2 main dbc files:
- mount.ini (MESH type)
- mountmotion.ini (RSDB 64 bits IDs type)

"mount.ini", as mesh file, is a collecion of models to use when showing animated 3D graphics. Every model is a collection of linked parts, from 1 to 4 parts at most. For example, head, body, tail.
"mountmotion.ini", as a RSDB file, defines the C3 files where you can find how a skeleton moves when animated.

When showing animated 3D graphics, the game uses C3 files to define the skeleton of a model, DDS files to define the textures, and Materials definition to handle the properties of every surface.

- mount.ini defines the Mesh ID (3D skeleton in C3 format) and Texture IDs (2D images in DDS format) files to use, the options to mix textures, and the materials used. The C3 files corresponding to the ID can be found in "3DObj.ini" (RSDB file). The DDS files corresponding to the IDs can be found in "3DTexture.ini" (RSDB file).
- mountmotion.ini defines the movements of each model part (in C3 format).
- Material.ini defines the properties of every surface.

To create new mounts you need to handle dbc files in RSDB, MESH and MATR formats, as well as DDS files and C3 files.

C3 files also contains different classes of data. I have almost completed the definition for every type and programmed classes, if you are interested, but as the dbc files, I was rewriting it from scratch.

If you want to team, we could start a repository to work together...

EDIT: Some samples of what you can find inside these files.
mount.ini
Quote:
[80300060]
Part=1
Mesh0=803060
Texture0=803060
MixTex0=0
MixOpt0=0
Asb0=5
Adb0=6
Material0=default
This mount model have only 1 part, with MeshID=803060 and TextureID=803060. Do not mix textures, uses Alpha channel from source, and inverse alpha channel from destination. Uses default material.
Mesh file is "c3/mount/803/803060.c3", which is in PHY4 format and have 8 objects (body, head, 4 x legs, mount and tail) with a total of 2492 polygons and 2010 vertices, using 1 texture file.
Texture file is "c3/mount/803/803060.dds"

mountmotion.ini
Quote:
803000600001=c3/Mount/803/101.c3
803000600002=c3/Mount/803/101.c3
803000600003=c3/Mount/803/101.c3
This mount motion is defined in "c3/Mount/803/101.c3" file, which is in motion (MOTI) format, and have 1 animation with 29 frames.

Material.ini
Quote:
default FFAFC9F1 FFFFFFFF FF43341D FF515151 0
This material named "default" have the following properties:
Diffuse color = 0xFF, 0xAF, 0xC9, 0xF1 (ARGB)
Ambient color = 0xFF, 0xFF, 0xFF, 0xFF (ARGB)
Specular 'shininess' = 0xFF, 0x43, 0x34, 0x1D (ARGB)
Emissive color = 0xFF, 0x51, 0x51, 0x51 (ARGB)
Sharpness if specular highlight = 0x00


If you want to edit also the mount effects, check ini/MountEffect.ini
urgabel is offline  
Thanks
1 User
Old 05/17/2013, 19:26   #6
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
You could always install Sharpdevelop rather than Visual Studio. There is a tons alternative to it.
Super Aids is offline  
Thanks
1 User
Old 05/17/2013, 20:20   #7


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,445
Received Thanks: 1,176
Kyono did bunch of tools for DBC to TXT and vice versa based on my CO2_CORE_DLL which contains every DBC format.
CptSky is offline  
Thanks
1 User
Old 05/18/2013, 00:12   #8
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
Quote:
Originally Posted by CptSky View Post
Kyono did bunch of tools for DBC to TXT and vice versa based on my CO2_CORE_DLL which contains every DBC format.
is Kyono a member? coz i searched that name found nothing.
LordGragen. is offline  
Old 05/18/2013, 01:08   #9
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
Quote:
Originally Posted by LordGragen. View Post
is Kyono a member? coz i searched that name found nothing.
U2_Caparzo is offline  
Thanks
1 User
Old 05/18/2013, 01:13   #10
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
Quote:
Originally Posted by U2_Caparzo View Post
well thx for that,

thank you alll soooo much!! now i can add my new mounts and all .

found the tool tested it works perfect.

#request close
LordGragen. is offline  
Closed Thread




All times are GMT +1. The time now is 23:18.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.