|
You last visited: Today at 05:38
Advertisement
[Question]DDJ Convert
Discussion on [Question]DDJ Convert within the SRO Private Server forum part of the Silkroad Online category.
11/11/2011, 21:27
|
#1
|
elite*gold: 0
Join Date: Nov 2008
Posts: 374
Received Thanks: 31
|
[Question]DDJ Convert
How i can convert from png or other to ddj ? because i make image in photo shop and cant save .ddj .. if i pui name.ddj and put in media.pk2 ,,, media dont read it and cant open client... any idea?
|
|
|
11/11/2011, 21:54
|
#2
|
elite*gold: 0
Join Date: Jun 2009
Posts: 51
Received Thanks: 25
|
DDJ can be easily converted to DDS which can be opened in various image editors.
c# snippet:
Code:
static public byte[] DDJ_to_DDS(byte[] ddjStream)
{
byte[] ddsStream = new byte[ddjStream.Length - 20];
Array.Copy(ddjStream, 20, ddsStream, 0, ddsStream.Length);
return ddsStream;
}
static public byte[] DDS_to_DDJ(byte[] ddsStream)
{
byte[] ddjStream = new byte[ddsStream.Length + 20];
Int32 ddjStreamLen = ddsStream.Length + 8;
byte[] header1 = {0x4A, 0x4D, 0x58, 0x56, 0x44, 0x44, 0x4A, 0x20, 0x31, 0x30, 0x30, 0x30};
byte[] header2 = BitConverter.GetBytes(ddjStreamLen);
byte[] header3 = {0x03, 0x00, 0x00, 0x00};
Array.Copy(header1, 0, ddjStream, 0, header1.Length);
Array.Copy(header2, 0, ddjStream, header1.Length, header2.Length);
Array.Copy(header3, 0, ddjStream, header1.Length + header2.Length, header3.Length);
Array.Copy(ddsStream, 0, ddjStream, header1.Length + header2.Length + header3.Length, ddsStream.Length);
return ddjStream;
}
|
|
|
11/11/2011, 23:08
|
#3
|
elite*gold: 0
Join Date: Nov 2008
Posts: 374
Received Thanks: 31
|
Quote:
Originally Posted by bheaven
DDJ can be easily converted to DDS which can be opened in various image editors.
c# snippet:
Code:
static public byte[] DDJ_to_DDS(byte[] ddjStream)
{
byte[] ddsStream = new byte[ddjStream.Length - 20];
Array.Copy(ddjStream, 20, ddsStream, 0, ddsStream.Length);
return ddsStream;
}
static public byte[] DDS_to_DDJ(byte[] ddsStream)
{
byte[] ddjStream = new byte[ddsStream.Length + 20];
Int32 ddjStreamLen = ddsStream.Length + 8;
byte[] header1 = {0x4A, 0x4D, 0x58, 0x56, 0x44, 0x44, 0x4A, 0x20, 0x31, 0x30, 0x30, 0x30};
byte[] header2 = BitConverter.GetBytes(ddjStreamLen);
byte[] header3 = {0x03, 0x00, 0x00, 0x00};
Array.Copy(header1, 0, ddjStream, 0, header1.Length);
Array.Copy(header2, 0, ddjStream, header1.Length, header2.Length);
Array.Copy(header3, 0, ddjStream, header1.Length + header2.Length, header3.Length);
Array.Copy(ddsStream, 0, ddjStream, header1.Length + header2.Length + header3.Length, ddsStream.Length);
return ddjStream;
}
|
i have convertor to dds . but .. i cant open dds with photoshop ... and i want to convert jpg or png or to save directly dds or ddj ..
|
|
|
11/12/2011, 08:05
|
#4
|
elite*gold: 0
Join Date: Aug 2007
Posts: 191
Received Thanks: 109
|
You need the .dds plugin for photoshop to be able to edit them.
|
|
|
11/12/2011, 09:50
|
#5
|
elite*gold: 0
Join Date: Nov 2008
Posts: 374
Received Thanks: 31
|
Quote:
Originally Posted by whyt3boi
You need the .dds plugin for photoshop to be able to edit them.

|
FINALY THANKS SO MUCH :X
|
|
|
 |
Similar Threads
|
How do i convert JPG to DAT
02/23/2011 - SRO Private Server - 2 Replies
Hello, i've been editing media.pk2, i have exported some files in .DAT format from the media.pk2 and changed them to .JPG (to modify them) just by renaming .DAT to .JPG, but when i try to rename JPG back to DAT it stays as JPG file. so, how do i convert JPG to DAT?
|
[C++] how to convert dec to hex?
05/11/2009 - C/C++ - 1 Replies
I need to convert a decimal integer into hex.
The decimal integer is the value of a pointer and i need to get in hex to use it as a address for writeprocessmemory.
So is there any way to convert a dec into a hex and use the hex value as a argument for writeprocessmemory?
EDIT:meeh...forgot that the value is only displayed as decimal number -.-
/close plz
|
convert [help]
11/20/2008 - General Coding - 2 Replies
Hello guys,
I'm pretty new to stuff like reading Data out of games,such as warhammer. I found out the pointer + offset for the x / y / z / heading value right now and they're correct, found the same info in a forum, but my problem is, that in cheat engine it looks like this:
X =
Array of Byte = 55 6F 81 49
4bytes = 1233219413
float: 1060330.625
And I was wondering, how I can convert them in C# or in any other language, to get the correct value, which is telling me the x value.
|
All times are GMT +1. The time now is 05:45.
|
|