The rules have been updated, read them now: Rules!

Tron 2.0 DTX/LTB

Post questions about game models here, or help out others!
Post Reply
Nintendude
advanced
Posts: 57
Joined: Wed Oct 19, 2011 4:25 am
Has thanked: 5 times
Been thanked: 2 times

Tron 2.0 DTX/LTB

Post by Nintendude » Thu Jul 21, 2016 10:29 pm

I have 2 different file types and I have been trying to find a program to convert them with the only thing I have been able to find is something that is a paid addon for Unity. Here are a couple sample files. I would rather not use Hex2OBJ as I still have no knowledge or interest in trying to figure all of that out to convert every single model.
You do not have the required permissions to view the files attached to this post.

onelove1210
advanced
Posts: 75
Joined: Thu Apr 07, 2011 12:06 pm
Has thanked: 8 times
Been thanked: 4 times

Re: Tron 2.0 DTX/LTB

Post by onelove1210 » Fri Jul 22, 2016 2:51 am

Use noesis, same topic here :D
viewtopic.php?f=16&t=7230

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3245
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 889 times
Been thanked: 1784 times

Re: Tron 2.0 DTX/LTB

Post by shakotay2 » Fri Jul 22, 2016 5:51 am

does not support the uploaded ltb because it contains bones
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
Acewell
VIP member
VIP member
Posts: 1329
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2683 times
Been thanked: 836 times

Re: Tron 2.0 DTX/LTB

Post by Acewell » Fri Jul 22, 2016 8:44 pm

i made a Noesis script that opens your dtx sample since finale00's script didn't work with it :D
tex_Tron2_dtx.zip
it only supports dxt5 right now because i only had one texture sample to work with
if you can upload more i will update the script :)
You do not have the required permissions to view the files attached to this post.

Nintendude
advanced
Posts: 57
Joined: Wed Oct 19, 2011 4:25 am
Has thanked: 5 times
Been thanked: 2 times

Re: Tron 2.0 DTX/LTB

Post by Nintendude » Sun Jul 24, 2016 2:58 pm

Here are a few more DTX files. Along with a few more LTB just in case. I've tried to download the scripts from that thread which was linked but none of the webpages seem to work. Also tried the LTB scripts for Noesis from the Himeworks webpage but had an error on trying.

Image

Sorry would have uploaded this here but the max file size on the site is 256kb.
https://www.sendspace.com/file/h1gqfr

User avatar
Acewell
VIP member
VIP member
Posts: 1329
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2683 times
Been thanked: 836 times

Re: Tron 2.0 DTX/LTB

Post by Acewell » Sun Jul 24, 2016 4:00 pm

All of those new texture samples are dxt5 and work with the current script.
all of your model samples except for BASE_GENERAL.LTB work with finale00's ZuOnline_ltb script here
http://himeworks.com/redirect.php?type= ... Online_ltb

i think BASE_GENERAL.LTB may be animation files or something

onelove1210
advanced
Posts: 75
Joined: Thu Apr 07, 2011 12:06 pm
Has thanked: 8 times
Been thanked: 4 times

Re: Tron 2.0 DTX/LTB

Post by onelove1210 » Tue Jul 26, 2016 7:35 am

Nintendude wrote:Here are a few more DTX files. Along with a few more LTB just in case. I've tried to download the scripts from that thread which was linked but none of the webpages seem to work. Also tried the LTB scripts for Noesis from the Himeworks webpage but had an error on trying.

Image

Sorry would have uploaded this here but the max file size on the site is 256kb.
https://www.sendspace.com/file/h1gqfr
Because your sample file just contain bones + anim, no mesh so that's why finale00's plugin didn't work
You must try the Tron_tools instead :D

mariokart64n
ultra-veteran
ultra-veteran
Posts: 550
Joined: Sun Jun 05, 2005 12:00 pm
Location: Ontario, Canada
Has thanked: 33 times
Been thanked: 186 times

Re: Tron 2.0 DTX/LTB

Post by mariokart64n » Fri Jun 19, 2020 7:53 pm

Acewell wrote:
Fri Jul 22, 2016 8:44 pm
i made a Noesis script that opens your dtx sample since finale00's script didn't work with it :D
tex_Tron2_dtx.zip
it only supports dxt5 right now because i only had one texture sample to work with
if you can upload more i will update the script :)
a few more samples landed my way, here is an adjustment to read types for DXT1 and ARGB32

Code: Select all

#	Python Script Plugin for Noesis
#
#	Reads DDS Textures From .DTX files
#	
#	Author:	Acewell
#	Date:		July 22nd, 2016
#	Source:	https://forum.xentax.com/viewtopic.php?p=120609&sid=ca4f96392b14ec137869e208ab9a1719#p120609
#
#	Changelog:
#	June 19 2020
#		Added additional if statement to catch formats for DXT1 and ARGB32
#		- mariokart64n
#

from inc_noesis import *

def registerNoesisTypes():
	handle = noesis.register("Tron 2.0", ".dtx")
	noesis.setHandlerTypeCheck(handle, Tron2CheckType)
	noesis.setHandlerLoadRGBA(handle, Tron2LoadRGBA)
	#noesis.logPopup()
	return 1

#check if it's this type based on the data
def Tron2CheckType(data):
	bs = NoeBitStream(data)
	bs.seek(0x04, NOESEEK_ABS)
	Magic = bs.readBytes(4)
	print(Magic)
	if Magic != b'\xFB\xFF\xFF\xFF':
		return 0
	return 1
	
def Tron2LoadRGBA(data, texList):
	datasize = len(data) - 0xa4        
	bs = NoeBitStream(data)
	bs.seek(0x08, NOESEEK_ABS)
	imgWidth = bs.readShort()
	imgHeight = bs.readShort()
	bs.seek(0x1A, NOESEEK_ABS)
	texFmt = bs.readUByte()
	bs.seek(0xa4, NOESEEK_ABS)        
	data = bs.readBytes(datasize)     
	
	if texFmt == 3:	#ARGB32
		texList.append(NoeTexture(rapi.getInputName(), imgWidth, imgHeight, data, noesis.NOESISTEX_RGBA32))
	elif texFmt == 4:	#DXT1
		texList.append(NoeTexture(rapi.getInputName(), imgWidth, imgHeight, data, noesis.NOESISTEX_DXT1))
	elif texFmt == 5:	#DXT3
		texList.append(NoeTexture(rapi.getInputName(), imgWidth, imgHeight, data, noesis.NOESISTEX_DXT3))
	elif texFmt == 6:	#DXT5
		texList.append(NoeTexture(rapi.getInputName(), imgWidth, imgHeight, data, noesis.NOESISTEX_DXT5))
	
	return 1
Maxscript and other finished work I've done can be found on my DeviantArt account

Post Reply