XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sun Jun 24, 2018 6:36 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: .dds to .gnf Need a tad help
PostPosted: Mon Mar 26, 2018 2:21 pm 
Offline
ultra-n00b
User avatar

Joined: Mon Mar 26, 2018 4:56 am
Posts: 1
Has thanked: 0 time
Have thanks: 0 time

I'm trying to texture edit using Noesis to export .gnf however there are a few errors I seem to have...
I have Chrrox's script to convert my edited .dds but it's not working, It shuffles the texture in horizontal lines and pixelate them.
Image

Here is a link to a .gnf
http://www95.zippyshare.com/v/Yg1l1DMv/file.html
and an edited version in .dds format.
http://www79.zippyshare.com/v/8qdbKbl7/file.html
This is the code snippet I used
Code:
get NAME basename
string NAME += _fixed
string NAME += .gnf
goto 0xC
get HEIGHT long
get WIDTH long
get SIZE long
set SIZE2 SIZE
math SIZE2 + 0x30
goto 0x54
getdstring TYPE 4
set MEMORY_FILE binary "\x47\x4E\x46\x20\x28\x00\x00\x00\x02\x01\x00\x00\x30\x00\x10\x00\x00\x00\x00\x00\x01\x00\x50\x92\xFF\xC3\xFF\x70\xAC\x0F\xD0\xA4\x01\xE0\x7F\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00"
math WIDTH - 1
math WIDTH + 0xC000
math HEIGHT - 1
math HEIGHT > 2
math HEIGHT + 0x7000
print "%HEIGHT%"
putVarChr MEMORY_FILE 0X1A HEIGHT short
putVarChr MEMORY_FILE 0x18 WIDTH short
putVarChr MEMORY_FILE 0xC SIZE2 long
putVarChr MEMORY_FILE 0x2C SIZE long
if TYPE == "DXT1"
putVarChr MEMORY_FILE 0x16 0x30 BYTE
putVarChr MEMORY_FILE 0x17 0x92 BYTE
elif TYPE == "DXT5"
putVarChr MEMORY_FILE 0x16 0x50 BYTE
putVarChr MEMORY_FILE 0x17 0x92 BYTE
elif TYPE == "ATI2"
putVarChr MEMORY_FILE 0x16 0x70 BYTE
putVarChr MEMORY_FILE 0x17 0x92 BYTE
endif

append
log MEMORY_FILE 0x80 SIZE
append

log NAME 0 SIZE2 MEMORY_FILE


You can make the ads go away by registering





Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group