See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Exception: Invalid EFFE Header in file: c:\users\john\documents\conquer stuff\take two\ini\3deffectobj.dbc
at CO2_CORE_DLL.IO.DBC.EFFE.LoadFromDat(String Path)
at DBC_Converter.Form1.button3_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
using System;
using System.Windows.Forms;
using System.IO;
namespace DBC_Converter
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
var result = openFileDialog1.ShowDialog();
if (result == DialogResult.OK)
{
textBox1.Text = openFileDialog1.FileName.ToLower();
}
}
private void button3_Click(object sender, EventArgs e)
{
if (File.Exists(textBox1.Text))
{
switch (Header(textBox1.Text))
{
case "EFFE":
{
var dbc = new CO2_CORE_DLL.IO.DBC.EFFE();
if (IsDbc(textBox1.Text))
{
dbc.LoadFromDat(textBox1.Text);
dbc.SaveToTxt(ExtDbc(true));
}
else
{
dbc.LoadFromTxt(textBox1.Text);
dbc.SaveToDat(ExtDbc(false));
}
Done();
break;
}
case "RSDB32":
{
var dbc = new CO2_CORE_DLL.IO.DBC.RSDB_SMALL();
if (IsDbc(textBox1.Text))
{
dbc.LoadFromDat(textBox1.Text);
dbc.SaveToTxt(ExtDbc(true));
}
else
{
dbc.LoadFromTxt(textBox1.Text);
dbc.SaveToDat(ExtDbc(false));
}
Done();
break;
}
case "RSDB64":
{
var dbc = new CO2_CORE_DLL.IO.DBC.RSDB_BIG();
if (IsDbc(textBox1.Text))
{
dbc.LoadFromDat(textBox1.Text);
dbc.SaveToTxt(ExtDbc(true));
}
else
{
dbc.LoadFromTxt(textBox1.Text);
dbc.SaveToDat(ExtDbc(false));
}
Done();
break;
}
case "SIMO":
{
var dbc = new CO2_CORE_DLL.IO.DBC.SIMO();
if (IsDbc(textBox1.Text))
{
dbc.LoadFromDat(textBox1.Text);
dbc.SaveToTxt(ExtDbc(true));
}
else
{
dbc.LoadFromTxt(textBox1.Text);
dbc.SaveToDat(ExtDbc(false));
}
Done();
break;
}
case "MESH":
{
var dbc = new CO2_CORE_DLL.IO.DBC.MESH();
if (IsDbc(textBox1.Text))
{
dbc.LoadFromDat(textBox1.Text);
dbc.SaveToTxt(ExtDbc(true));
}
else
{
dbc.LoadFromTxt(textBox1.Text);
dbc.SaveToDat(ExtDbc(false));
}
Done();
break;
}
case "EMOI":
{
var dbc = new CO2_CORE_DLL.IO.DBC.EMOI();
if (IsDbc(textBox1.Text))
{
dbc.LoadFromDat(textBox1.Text);
dbc.SaveToTxt(ExtDbc(true));
}
else
{
dbc.LoadFromTxt(textBox1.Text);
dbc.SaveToDat(ExtDbc(false));
}
Done();
break;
}
case "MATR":
{
var dbc = new CO2_CORE_DLL.IO.DBC.MATR();
if (IsDbc(textBox1.Text))
{
dbc.LoadFromDat(textBox1.Text);
dbc.SaveToTxt(ExtDbc(true));
}
else
{
dbc.LoadFromTxt(textBox1.Text);
dbc.SaveToDat(ExtDbc(false));
}
Done();
break;
}
case "ROPT":
{
var dbc = new CO2_CORE_DLL.IO.DBC.ROPT();
if (IsDbc(textBox1.Text))
{
dbc.LoadFromDat(textBox1.Text);
dbc.SaveToTxt(ExtDbc(true));
}
else
{
dbc.LoadFromTxt(textBox1.Text);
dbc.SaveToDat(ExtDbc(false));
}
Done();
break;
}
default:
{
MessageBox.Show("The DBC file is not recognized.");
break;
}
}
}
else
{
MessageBox.Show("You either forgot to select a file or somehow selected a non-existing one.");
}
}
private void button2_Click(object sender, EventArgs e)
{
MessageBox.Show("So you probably clicked here because of the program not working.\nYou probably did something weird, try again.");
}
private void button4_Click(object sender, EventArgs e)
{
MessageBox.Show("Credits:\nCptSky for his .dll, program wouldn't have existed without him.\nMe for putting together this for the lazy ones.\nGoogle for random stuff.");
}
public bool IsDbc(string path)
{
if (path.EndsWith(".dbc"))
return true;
return false;
}
public string ExtDbc(bool extension)
{
if(extension)
return textBox1.Text.Replace(".dbc", ".txt");
return textBox1.Text.Replace(".txt", ".dbc");
}
public string Header(string text)
{
if (text.Contains("3deffectobj") || text.Contains("3dobj") || text.Contains("3dtexture") || text.Contains("sound"))
return "RSDB32";
if (text.Contains("3deffect"))
return "EFFE";
if (text.Contains("motion") && !text.Contains("emotionico"))
return "RSDB64";
if (text.Contains("3dsimpleobj"))
return "SIMO";
if (text.Contains("armet") || text.Contains("armor") || text.Contains("head") || text.Contains("misc") || text.Contains("mount") || text.Contains("weapon"))
return "MESH";
if (text.Contains("emotionico"))
return "EMOI";
if (text.Contains("material"))
return "MATR";
if (text.Contains("rolepart"))
return "ROPT";
return "NONE";
}
public void Done()
{
MessageBox.Show("Done converting.");
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
Tiny code changes, but that now will work with all of the .dbc files.
There was a few useless else's and if's that I have removed. That class works fine and is abit better.
[Release] DBC Converter Source 12/13/2012 - CO2 Exploits, Hacks & Tools - 21 Replies Right, the majority of this works, however i decided in the end that it would just be best to dump the source of the project here and people can make changes and modify it as they need to.
To start off you will need some .dbc files to decode to .txt files, and then you can convert them back again. Make sure you update the Count at the top of the file if you make changes, and ensure that the layout is correct, if something is placed in the wrong place or missing, then it wont work, this is...
[Release].php SQL zu XML Converter 06/14/2012 - Metin2 PServer Guides & Strategies - 8 Replies Hey ho,
ich hab mir mal die Mühe gemacht *hust* und habe einen .php Script erstellt, mit welchem man Items & Monster ( item_proto & mob_proto ) aus der Datenbank in das XML Format umwandelt.
Wozu man das braucht?
Wenn ihr "locale_name" habt:
[Release]DDS-Converter 01/20/2011 - Metin2 PServer Guides & Strategies - 22 Replies Hey ich habe heute mal mein Desktop aufgeräumt :P und da fand ich plötzlich eine komische Datei. Aufeinmal stellte sich raus das es ein DDS-Converter war. Er wandelt DDS Dateien in jpg und png dateien um.
Da das für manche Client´s nützlich ist dachte ich ich stell es mal hier rein.
Virustotal Screen
http://img3.fotos-hochladen.net/uploads/virrustot al0t16k9zq.png
Screen vom Programm
http://img3.fotos-hochladen.net/uploads/programmn gw8demb.png
MfG Fun-Zocker
[RELEASE] DDS converter 08/18/2009 - EO PServer Guides & Releases - 9 Replies Well, because this is a tool, i post it here and not on another section :bandit:
People were complaining they cant open or edit a dds file..
This tool, can convert the dds file to jpg,png,bmp,tga
and it can convert "to" dds :handsdown: