TGA`s and TOBJ`s

Post Reply
User avatar
Icyn
Posts: 8
Joined: 27 Jan 2020 13:20

TGA`s and TOBJ`s

#1 Post by Icyn » 14 Jan 2022 04:36

So i got the authorization from a modder to edit his old mod, i already imported it, made some changes on the cab and stuff and wanted to export the entire truck but when i tried to export it i realized that all the textures in the mod in TOBJ format, is there a faster way to convert all the mod textures to TGA other than doing it one by one?

Code: Select all

00:00:11.024 : [linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc] tobjcopy /material/environment/glass.tobj 
00:00:11.024 : <ERROR> errwarn:
00:00:11.025 : <ERROR> *** ERROR *** : [texobj parse] syntax error in (<C:/Mods/Tools/Conversion Tools 2.12/linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc | >/material/environment/glass.tobj) at line 2 - token []

*** ERROR *** : Parse error '<C:/Mods/Tools/Conversion Tools 2.12/linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc | >/material/environment/glass.tobj'


00:00:11.037 : [linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc] tobjcopy /material/ui/accessory/volvfh13_bw.tobj 
00:00:11.040 : <ERROR> errwarn:
00:00:11.042 : <ERROR> *** ERROR *** : [texobj parse] syntax error in (<C:/Mods/Tools/Conversion Tools 2.12/linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc | >/material/ui/accessory/volvfh13_bw.tobj) at line 2 - token []

*** ERROR *** : Parse error '<C:/Mods/Tools/Conversion Tools 2.12/linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc | >/material/ui/accessory/volvfh13_bw.tobj'


00:00:11.067 : [linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc] tobjcopy /material/ui/accessory/interior_volvo_fh16_cstm.tobj 
00:00:11.071 : <ERROR> errwarn:
00:00:11.074 : <ERROR> *** ERROR *** : [texobj parse] syntax error in (<C:/Mods/Tools/Conversion Tools 2.12/linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc | >/material/ui/accessory/interior_volvo_fh16_cstm.tobj) at line 2 - token []

*** ERROR *** : Parse error '<C:/Mods/Tools/Conversion Tools 2.12/linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc | >/material/ui/accessory/interior_volvo_fh16_cstm.tobj'


00:00:11.075 : [linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc] tobjcopy /material/ui/accessory/r_hatch.tobj 
00:00:11.076 : <ERROR> errwarn:
00:00:11.078 : <ERROR> *** ERROR *** : [texobj parse] syntax error in (<C:/Mods/Tools/Conversion Tools 2.12/linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc | >/material/ui/accessory/r_hatch.tobj) at line 2 - token []

*** ERROR *** : Parse error '<C:/Mods/Tools/Conversion Tools 2.12/linked_bt_66b1bcf5fa4198e4a1dcb584e01f6572efe215bc | >/material/ui/accessory/r_hatch.tobj'
Thanks in advance
User avatar
Madkine
Global moderator
Posts: 12255
Joined: 08 Oct 2018 16:35
Location: Australia
Contact:

Re: TGA`s and TOBJ`s

#2 Post by Madkine » 14 Jan 2022 06:07

A tobj isn't a texture file, it's a textlike file that points to the texture file.
If the tobj isn't in the right format, then blender will error when reading it.

The tobj files need to be run through a converter before being used in blender.
WoT Profile
ATS Workshop

"never attribute to malice that which is adequately explained by stupidity"
User avatar
Icyn
Posts: 8
Joined: 27 Jan 2020 13:20

Re: TGA`s and TOBJ`s

#3 Post by Icyn » 14 Jan 2022 23:40

@Madkine Do i need to convert all the textures inside the mod? and if so to which format?

Is there a way to convert them all at once?
Thanks in advance.
User avatar
Madkine
Global moderator
Posts: 12255
Joined: 08 Oct 2018 16:35
Location: Australia
Contact:

Re: TGA`s and TOBJ`s

#4 Post by Madkine » 15 Jan 2022 00:05

I'm not sure. Converting the tobj files may fix the issues you are seeing without needing to touch the textures.
WoT Profile
ATS Workshop

"never attribute to malice that which is adequately explained by stupidity"
Alarthon
Posts: 127
Joined: 08 Nov 2018 00:11

Re: TGA`s and TOBJ`s

#5 Post by Alarthon » 15 Jan 2022 01:45

Like Madkine said, have the tobj files in text format not binary. I keep all my textures in .dds and haven't had a problem yet.
User avatar
kartal2339
Posts: 235
Joined: 01 Aug 2018 09:27

Re: TGA`s and TOBJ`s

#6 Post by kartal2339 » 21 Jan 2022 08:41

@Icyn
Convert all dds to TGA with paint.net and choose tga in material instead of tobj when you export the model your new tobj will be created after convert your mod
User avatar
Icyn
Posts: 8
Joined: 27 Jan 2020 13:20

Re: TGA`s and TOBJ`s

#7 Post by Icyn » 27 Jan 2022 21:28

Alright, this might sound dumb but... how do i convert them to binary format?
Last edited by Icyn on 28 Jan 2022 10:38, edited 2 times in total.
User avatar
aerlenkoenig
Posts: 197
Joined: 17 Jun 2020 18:50
Contact:

Re: TGA`s and TOBJ`s

#8 Post by aerlenkoenig » 27 Jan 2022 23:21

Converting a DDS file to a TGA file with Paint.NET:
  1. Download Paint.NET and install it. It is a freeware, just google it.
  2. Choose a DDS file and open it with Paint.NET.
  3. Go to File > Save As... > File Type > TGA
You can then proceed with the steps above.
Post Reply

Return to “Blender Tools”

Who is online

Users browsing this forum: No registered users and 6 guests