I can't do a .tobj (please help)

Swedish
User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

29 May 2014 17:15

Edwin_B wrote: I'm Trying to do a overlay/texture (route 25 and 27)!
OK, that's clear enough for me ;)
Edwin_B wrote: I have tobj, dds and Microsoft Access Table Shortcut! But I think I have done wrong!
Microsoft Access Table shortcut? Don't you mean the MAT file? That's just a text file (should be something like "se_rv25.mat")
Anyway, you should have three files per overlay, preferably with these file names (for the RV25):
- road_se_rv25.dds
- road_se_rv25.tobj
- se_rv25.mat
Edwin_B wrote: tobj: I've done everything I know to do:
material: "eut2.sign" {
Texture [0]: "road_se_rv27.tobj"
texture_name [0]: "texture_base"
diffuse: {1, 1, 1}
specular: {0, 0, 0}
shininess: 4
add_ambient: 0
}
Wait, that should be the content of the MAT file, not the TOBJ file! The TOBJ file is a completely different format. This tool contains a TOBJ editor, so, that may help.
Edwin_B wrote: In: matrial/overlay/road_se_rv27 or road_se_rv25

I have convert the PNG to DDS! And place it in: matrials/overlay
Check! That's correct. Make sure that DDS is in the DXT5 with mipmaps format
Edwin_B wrote: Have write this in: world/overlay... ; road_names[]: "se_rv27"
road_names[]: "se_rv25"
Yup, that should do if you put it in world/overlay.promods.sii. promods-def-v162.scs should not be locked, actually.

So, I think only your TOBJ and MAT files got a bit switched around.

Best,
MandelSoft
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
edde479
Posts: 82
Joined: 29 Dec 2013 20:04
Donation rank:
Location: Östergötland, Sweden

29 May 2014 19:01

MandelSoft wrote:
Edwin_B wrote: tobj: I've done everything I know to do:
material: "eut2.sign" {
Texture [0]: "road_se_rv27.tobj"
texture_name [0]: "texture_base"
diffuse: {1, 1, 1}
specular: {0, 0, 0}
shininess: 4
add_ambient: 0
}
MandelSoft wrote: Wait, that should be the content of the MAT file, not the TOBJ file! The TOBJ file is a completely different format.

Oops, I pasted wrong there! I think that there is MAT-file! :?


Edwin_B wrote: In: matrial/overlay/road_se_rv27 or road_se_rv25

I have convert the PNG to DDS! And place it in: matrials/overlay
MandelSoft wrote: Check! That's correct. Make sure that DDS is in the DXT5 with mipmaps format
Ummm, What do you mean with DXT5, how I do that! I have size 8320! I don't know why! And how I do it to DXT5! :?:

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

30 May 2014 08:27

Depending on what converter you use to convert PNG files to DDS files, you should be able to set the DDS-format somewhere. For instance, DXT1 has no alpha layer or mipmaps, but DXT5 does have an alpha layer (but not necessarily mipmaps).
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
edde479
Posts: 82
Joined: 29 Dec 2013 20:04
Donation rank:
Location: Östergötland, Sweden

30 May 2014 10:08

Can I use "texture converter"? http://vvvv.org/contribution/texture-converter

or, what do you use

User avatar
ScuL
Founder
Posts: 10555
Joined: 31 Jul 2013 23:51
Location: Auckland, New Zealand

30 May 2014 10:20

DXTBMP
I am Image Dutch living in Image New Zealand and I speak Image EN Image DE Image SE Image FR
Image

User avatar
edde479
Posts: 82
Joined: 29 Dec 2013 20:04
Donation rank:
Location: Östergötland, Sweden

30 May 2014 10:23

Good, I have that, but how I change it to DXT5!

(My overlay is now around size 16000, and when I click on rv27 in map overlay it is red and black! And when I test on a sign it crash!!!!!!)

User avatar
edde479
Posts: 82
Joined: 29 Dec 2013 20:04
Donation rank:
Location: Östergötland, Sweden

30 May 2014 10:25

AAAH! How can I change to DXT5. I have press "DXT5" but what happend next... NOTHING!

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

30 May 2014 11:23

You can always check the log after a crash, ya know...
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
edde479
Posts: 82
Joined: 29 Dec 2013 20:04
Donation rank:
Location: Östergötland, Sweden

30 May 2014 11:28

I have change to DXT5 now and I have size 22000! BUT, (this is the game.log):

00:00:46.063 : <ERROR> [zipfs] The was an error while decoding (road_se_rv27.tobj)
00:00:46.063 : <ERROR> [zipfs] Failed to decode data! (road_se_rv27.tobj).
00:00:46.063 : <ERROR> [fs] cached read - buffer update failed (/material/overlay/road_se_rv27.tobj)
00:00:46.063 : <ERROR> [tobj] Can not read '/material/overlay/road_se_rv27.tobj'
00:00:46.127 : <ERROR> [tobj] NULL texture data
00:00:46.128 : <ERROR> [tobj] NULL texture data
00:00:46.128 : <ERROR> [dx9] Failed to create texture in hw_load().
00:00:46.128 : <ERROR> FIXME: Texture update failed (/material/overlay/road_se_rv27.tobj)
00:00:46.128 : <ERROR> [tobj] NULL texture data
00:00:46.128 : <ERROR> [tobj] NULL texture data
00:00:46.128 : <ERROR> [dx9] Failed to create texture in hw_load().

I think ETS2 Can't "read" my tobj file: this is my tobj file:

..±p.................................... ......./material/overlay/road_se_rv27.dds
Last edited by edde479 on 30 May 2014 11:32, edited 1 time in total.

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

30 May 2014 11:29

That clearly indicates that there's something wrong with your TOBJ file. Start over with the TOBJ file again.
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.



Locked

Return to “Svenska”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests