ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Fri Jul 19, 2019 3:37 am

All times are UTC




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Tue Apr 02, 2019 9:11 am 

Joined: Tue Apr 02, 2019 9:00 am
Posts: 7
I need help unpack and repack fonts, textures.
Files:
https://ufile.io/qx92f


Top
   
PostPosted: Tue Apr 02, 2019 8:59 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 614
you tried Yabber? :)
https://github.com/JKAnderson/Yabber

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Wed Apr 03, 2019 7:01 am 

Joined: Tue Apr 02, 2019 9:00 am
Posts: 7
Acewell wrote:

Yeap. Not unpacked.
Code:
Unpacking TPF: dsfont24.tpf...
Unhandled exception: System.NotSupportedException: Yabber does not support console TPFs at the moment.
   location: Yabber.YTPF.Unpack(TPF tpf, String sourceName, String targetDir)
   location: Yabber.Program.UnpackFile(String sourceFile)
   location: Yabber.Program.Main(String[] args)

One or more errors were encountered and displayed above.
Press any key to exit.


Top
   
PostPosted: Wed Apr 03, 2019 9:01 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 614
gerald007 wrote:
I need help unpack .... fonts, textures.

here is Noesis python script to get you halfway there, modding is not my area. :D
Attachment:
tex_DemonsSouls_PS3_tpf.zip [722 Bytes]
Downloaded 16 times

supports dxt1 and dxt5

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Wed Apr 03, 2019 9:24 am 

Joined: Tue Apr 02, 2019 9:00 am
Posts: 7
Acewell wrote:
gerald007 wrote:
I need help unpack .... fonts, textures.

here is Noesis python script to get you halfway there, modding is not my area. :D
tex_DemonsSouls_PS3_tpf.zip
supports dxt1 and dxt5

Yes, unpacked textures and fonts but not support import. :(


Top
   
PostPosted: Sat Apr 06, 2019 1:07 pm 

Joined: Tue Apr 02, 2019 9:00 am
Posts: 7
Can somebody help me?


Top
   
PostPosted: Sat Apr 06, 2019 10:41 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 614
here use this bms script for reimport only. :)
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

endian big
idstring "TPF\x00"
get TOTAL_DATA_SZ long
get NUM_TEX long
goto 0x10
for i = 0 < NUM_TEX
    get OFFSET long
    get SIZE long
    get FORMAT byte
    goto 0x3 0 seek_cur
    get WIDTH short
    get HEIGHT short
    goto 0x8 0 seek_cur
    get STR_OFF long
    get UNK long
    savepos TMP
    goto STR_OFF
    get NAME string
    string NAME + .dds
    log NAME OFFSET SIZE
    goto TMP
next i


save extracted files from Noesis as dds.
edit your image, but keep same dimensions, format and mips when saving.
create a new folder and throw all your edited images in there.
open your edited images and delete the 128 byte dds header.
reimport to tpf with the provided bms script and select the new folder as output folder when prompted.

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Mon Apr 08, 2019 2:15 pm 

Joined: Tue Apr 02, 2019 9:00 am
Posts: 7
Acewell wrote:
here use this bms script for reimport only. :)
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

endian big
idstring "TPF\x00"
get TOTAL_DATA_SZ long
get NUM_TEX long
goto 0x10
for i = 0 < NUM_TEX
    get OFFSET long
    get SIZE long
    get FORMAT byte
    goto 0x3 0 seek_cur
    get WIDTH short
    get HEIGHT short
    goto 0x8 0 seek_cur
    get STR_OFF long
    get UNK long
    savepos TMP
    goto STR_OFF
    get NAME string
    string NAME + .dds
    log NAME OFFSET SIZE
    goto TMP
next i


save extracted files from Noesis as dds.
edit your image, but keep same dimensions, format and mips when saving.
create a new folder and throw all your edited images in there.
open your edited images and delete the 128 byte dds header.
reimport to tpf with the provided bms script and select the new folder as output folder when prompted.


Thank you. Import successful. Can you show me delete the 128 byte dds header?


Top
   
PostPosted: Mon Apr 08, 2019 6:34 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 614
gerald007 wrote:
Can you show me delete the 128 byte dds header?

Code:
get EXT extension
if EXT == dds
    get NAME basename
    get SIZE asize
    math SIZE - 0x80
    log NAME 0x80 SIZE
else
    cleanexit
endif

:)

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Tue Apr 09, 2019 8:11 am 

Joined: Tue Apr 02, 2019 9:00 am
Posts: 7
Acewell wrote:
gerald007 wrote:
Can you show me delete the 128 byte dds header?

Code:
get EXT extension
if EXT == dds
    get NAME basename
    get SIZE asize
    math SIZE - 0x80
    log NAME 0x80 SIZE
else
    cleanexit
endif

:)

Thanks, fonts is worked but loading screen, menu, you died, you revived textrues not worked.
When i edit textrues, Demon's Souls stick on loading screen. How can i fix this problem?


Top
   
PostPosted: Tue Apr 09, 2019 7:08 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 614
gerald007 wrote:
Acewell wrote:
How can i fix this problem?

don't know, modding is not my area as i said, it sounds like you made
error in the steps, or you didn't keep with same format, size etc or the
game just doesn't want to be modded. :)
there is nothing more i can do here.

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Sun Jun 30, 2019 10:31 am 

Joined: Tue Apr 02, 2019 9:00 am
Posts: 7
Acewell wrote:
gerald007 wrote:
Acewell wrote:
How can i fix this problem?

don't know, modding is not my area as i said, it sounds like you made
error in the steps, or you didn't keep with same format, size etc or the
game just doesn't want to be modded. :)
there is nothing more i can do here.

Hi Acewell. I need your help again.
Can you edit the Ccm files? I want to enlarge the size of the characters and change them but the characters won't show at hex. Someone prepared a template for Dark Souls before. I send you both Dark Souls and Demons Souls CCM files now. Can you compare and adapt it to Demons Souls? If you can Convert them it will be much better. It will do the job greatly if the characters are unpacked and packed up as XML or TXT files.
Dark Souls template
Code:
//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File: Dark Souls .CCM (Font Definition)
// Author: Jed "Nyxojaele" Lang
// Revision: 1
//--------------------------------------
typedef struct
{
int FirstCode;
int LastCode;
int FirstGlyphIndex;
} CodeGroup <read=ReadCodeGroup>;
string ReadCodeGroup(CodeGroup &cg)
{
string ret;
SPrintf(ret, "%d-%d @ %d", cg.FirstCode, cg.LastCode, cg.FirstGlyphIndex);
return ret;
}

typedef struct
{
float U1;
float V1;
float U2;
float V2;
short PreSpace;
short Width;
short Advance;
short ImageIndex;
} GlyphStruct <optimize=false>;


byte Signature[4] <format=hex>;
int FileSize <format=hex>;
short HorizontalStretch; //Lower number = stretched more
short ImageWidth; //Not sure if width or height, since they all use 512x512
short ImageHeight; //Not sure if width or height, since they all use 512x512
short Unknown2 <format=hex>;
short CodeGroupCount;
short GlyphCount;
int CodeGroupsOffset <format=hex>;
int GlyphsOffset <format=hex>;
short Unknown3 <format=hex>;
byte ImageCount;
byte Unknown5 <format=hex>;
CodeGroup CodeGroups[CodeGroupCount];
struct
{
GlyphStruct Glyph[GlyphCount];
} Glyphs;


Attachments:
Ccm.rar [15.48 KiB]
Downloaded 15 times
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 12 posts ] 

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited