.dds to .gnf Need a tad help

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
User avatar
Crazy Potato
ultra-n00b
Posts: 6
Joined: Mon Mar 26, 2018 4:56 am

.dds to .gnf Need a tad help

Post by Crazy Potato » Mon Mar 26, 2018 2:21 pm

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: Select all

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

Post Reply