Quantcast

Jump to content

» «
Photo

R* texture converter

28 replies to this topic
cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#1

Posted 17 November 2017 - 12:34 PM

Since MagicTXD is focused on txd format only and no other GTA related texture formats are suported, I decided to make converters for those formats. The first converter is for Bully nft format and can be downloaded here.

  • George Costanza, Mega, indirivacua and 3 others like this

deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#2

Posted 26 November 2017 - 01:22 AM

I'm desperately waiting for .pvr :D


guard3
  • guard3

    Liberty City's Finest

  • Members
  • Joined: 21 Jul 2013
  • Greece

#3

Posted 26 November 2017 - 09:37 AM

.PVR is PowerVR format. Download official PowerVR tools and voilà

Ash_735
  • Ash_735

  • Members
  • Joined: 15 Nov 2005
  • None
  • Best Newsletter 2017 [GTAF Weekly]
    Contribution Award [GTAF Weekly]
    Contribution Award [Mods]
    Most Knowledgeable [GTA] 2013
    Best Map 2013 "ViceCityStories PC Edition"

#4

Posted 26 November 2017 - 01:44 PM

Or use Magic.TXD and grab the iOS version of LCS, since you can import those into Magic.TXD.

deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#5

Posted 29 November 2017 - 04:13 AM Edited by deltaCJ, 29 November 2017 - 04:18 AM.

@Ash_735 I tried using Magic.TXD, and I have the IOS version, and it wont open.

 

Just gives me an error D:


cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#6

Posted 29 November 2017 - 01:24 PM

I'm desperately waiting for .pvr :D

At the moment Stories chk format is a problem I am worcking at, to be more precise swizzled 32 bit textures used by LCS is a real problem.

  • George Costanza, Forever L and deltaCJ like this

MAJEST1C_R3
  • MAJEST1C_R3

    Goodfella

  • Feroci
  • Joined: 21 Oct 2011
  • Russia

#7

Posted 02 December 2017 - 05:44 PM

hmm, are 32bpp textures exist in Stories CHK at all? Never noticed ones before.


The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Best Total Overhaul 2017 Contribution [GTA: Underground]
    Most Helpful Modding 2016 [Honorable Mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#8

Posted 02 December 2017 - 05:46 PM

Yes. check the colt or golfclub txds.

cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#9

Posted 05 December 2017 - 12:44 PM

hmm, are 32bpp textures exist in Stories CHK at all? Never noticed ones before.

Like The Hero said there for example colt45.chk and golfclub.chk, but existance of 32 bit textures is not a problem, the problem is that they are swizzled, and there are no unswizzling algorithms known for such textures.


The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Best Total Overhaul 2017 Contribution [GTA: Underground]
    Most Helpful Modding 2016 [Honorable Mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#10

Posted 05 December 2017 - 02:25 PM

magic.txd handles them fine. So technically you have code for it.

cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#11

Posted 06 December 2017 - 03:04 PM

magic.txd handles them fine. So technically you have code for it.

 

Thats true, but unfortunatelly finding that unswizzling algorithm inside magic.txd code is a huge problem.


George Costanza
  • George Costanza

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • [Rockstar Editor Awards 2017] Best Rockstar Editor Short
    Best Total Overhaul 2017 Contribution [GTA: Underground]
    l33t p05T3r 5t34l3r 2017
    Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#12

Posted 3 weeks ago

crashes when converting over 70 files. (and i need to convert like 4500 :D)

  • cj2000 likes this

cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#13

Posted 3 weeks ago

crashes when converting over 70 files. (and i need to convert like 4500 :D)

Can you explain more precise that crash? Is there some error mesage?

George Costanza
  • George Costanza

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • [Rockstar Editor Awards 2017] Best Rockstar Editor Short
    Best Total Overhaul 2017 Contribution [GTA: Underground]
    l33t p05T3r 5t34l3r 2017
    Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#14

Posted 3 weeks ago

Sometimes yes, sometimes no

 

also it crashes sometimes on exact files like
ammo_scatter.nft

Barr01_Switch.nft

  • cj2000 likes this

cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#15

Posted 2 weeks ago

Sometimes yes, sometimes no

 

also it crashes sometimes on exact files like
ammo_scatter.nft

Barr01_Switch.nft

Could you also post some of the error mesages?


George Costanza
  • George Costanza

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • [Rockstar Editor Awards 2017] Best Rockstar Editor Short
    Best Total Overhaul 2017 Contribution [GTA: Underground]
    l33t p05T3r 5t34l3r 2017
    Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#16

Posted 2 weeks ago

Um, it just straight crashes or
HTHkorD.png

  • cj2000 likes this

cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#17

Posted 2 weeks ago Edited by cj2000, 2 weeks ago.

Um, it just straight crashes or
HTHkorD.png

OK, thanks. That "Neotpovida" means not responding in your language, right?

All nft files are from PC, right?


George Costanza
  • George Costanza

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • [Rockstar Editor Awards 2017] Best Rockstar Editor Short
    Best Total Overhaul 2017 Contribution [GTA: Underground]
    l33t p05T3r 5t34l3r 2017
    Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#18

Posted 2 weeks ago

Yes and yes


cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#19

Posted 2 weeks ago

Yes and yes

Have you tried to convert only the other files?


George Costanza
  • George Costanza

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • [Rockstar Editor Awards 2017] Best Rockstar Editor Short
    Best Total Overhaul 2017 Contribution [GTA: Underground]
    l33t p05T3r 5t34l3r 2017
    Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#20

Posted 2 weeks ago

Well yes, but it would get stuck again, only few files later.

  • cj2000 likes this

cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#21

Posted 2 weeks ago

Well yes, but it would get stuck again, only few files later.

Strange, I took a look at that 2 files and the problem with ammo_scatter.nft should be fixed soon, but Barr01_Switch.nft seems to be corrupted, it lets nifscope also crash.

  • George Costanza likes this

George Costanza
  • George Costanza

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • [Rockstar Editor Awards 2017] Best Rockstar Editor Short
    Best Total Overhaul 2017 Contribution [GTA: Underground]
    l33t p05T3r 5t34l3r 2017
    Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#22

Posted 2 weeks ago

Maybe there is memory leak, or more files has same corruption, so when you fix one bug (like ignore the corrupt files somehow), it could fix for more files.

  • cj2000 likes this

cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#23

Posted 2 weeks ago Edited by cj2000, 2 weeks ago.

Maybe there is memory leak, or more files has same corruption, so when you fix one bug (like ignore the corrupt files somehow), it could fix for more files.

Seems you are right about memory leak. The first file (ammo_scatter.nft) can now be converted without problem, but the other one is corrupted in many places, so don´t see any way to convert it. Your buggreport was really helpfull.

The improoved version can be downloaded here.

  • George Costanza likes this

George Costanza
  • George Costanza

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • [Rockstar Editor Awards 2017] Best Rockstar Editor Short
    Best Total Overhaul 2017 Contribution [GTA: Underground]
    l33t p05T3r 5t34l3r 2017
    Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#24

Posted 2 weeks ago Edited by Tomasak, 2 weeks ago.

Nice. It works now! (but gui freezes after few files, but the conversion continues, maybe ability to use command prompt?)

Also the hosting server is pretty bad, slow, have to wait long and fill in captcha. The Hero could host it on his.
edit:
"difuse only" option should skip these purple textures, if i get it right
vLKJpdM.png

seems like it's not working with some txds like the one I posted (g_mip_trees)


cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#25

Posted 2 weeks ago Edited by cj2000, A week ago.

Command prompt is a bad idea, as it would crash while handling so many files. The solution is multithreding, but this is something problematic with C++. The GUI API has multithreading suport, so the tool could work even faster on multicore PCs, as more then 1 file could be converted at the same time.


Silent
  • Silent

    Chief Vision™ Alterer

  • GTA Mods Staff
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful in Modding 2017
    Most Helpful [Modding] 2016
    Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#26

Posted 2 weeks ago

Command prompt is a bad idea, as it would crash while handling so many files. The solution is multithreding, but this is something problematic with C++. The GUI API has multithreading suport, so the tool could work even faster on multicore PCs, as more then 1 file could be converted at the same time.


literally what

George Costanza
  • George Costanza

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • [Rockstar Editor Awards 2017] Best Rockstar Editor Short
    Best Total Overhaul 2017 Contribution [GTA: Underground]
    l33t p05T3r 5t34l3r 2017
    Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#27

Posted 2 weeks ago Edited by Tomasak, 2 weeks ago.

with cmd support you could batch conversion. like i do with The Hero's convdff.

for %i in (*.dff*) do convdff %i %i.new

(this will convert all files one by one)


cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#28

Posted A week ago Edited by cj2000, A week ago.

with cmd support you could batch conversion. like i do with The Hero's convdff.

for %i in (*.dff*) do convdff %i %i.new
(this will convert all files one by one)

But for avarage user it's still complikated.

cj2000
  • cj2000

    Homie

  • Members
  • Joined: 17 Jun 2008
  • None
  • Best Total Overhaul 2017 [GTA: Underground]
    Best Conversion 2016 [GTA: Underground]

#29

Posted A week ago

"difuse only" option should skip these purple textures, if i get it right
vLKJpdM.png

seems like it's not working with some txds like the one I posted (g_mip_trees)

Yes such files are problematic with "difuse only" option. If the option is activated the tool ignores all textures which names ends with _char where char!='d', so all texturenames ending with _s or _n are ignored.

  • George Costanza likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users