[SOLVED] Textures going C-R-A-Z-Y!!!

This is where topics get moved that aren't caused by bugs in our mod
hellmade
Posts: 36
Joined: 02 Jan 2014 15:44

23 Jan 2014 23:14

hmmm... sorry, but I don't really have good news.

Except those ati2-ones, I#ve now managed to get every graphic to dxt5 but it seems to make no difference.
I changed from ImageMagick to nconvert for the conversion but same result.

I'm running out of options here.
Either there is something else wrong with the gfx, other than the compression method
Or it is something very different

Scul, you sayed that you where talking to the scs-people and they knew what would be wrong.
So, can you give a more precise description what to look for or how to fix a single broken file? Are there special color-maps or dimentions not working? Is this "end-marker" somwhere inside the file not beeing part of the dds-format?

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

23 Jan 2014 23:50

Well I'm starting to suspect that the problem may not be within the textures themselves (although it's good the broken ones are fixed), but possibly in the TOBJ files that point to the textures, and maybe include a space or character that then "trips" the 3D engine.

To analyse all TOBJ files will take me some more time :P
I am Image Dutch living in Image New Zealand and I speak Image EN Image DE Image SE Image FR
Image

hellmade
Posts: 36
Joined: 02 Jan 2014 15:44

24 Jan 2014 00:29

hi Scul,

I had the same suspicion and tried to work out a test.
So I went to "pink world" by deleting every dds-file in the mod and starting it.

As you can see. At least the map is still broken since there is anything on these roads but not a a workshop. Even the white squares appear and red and pink roads didn't appear at first.

Can SCS help with that? In the end there is one example needed. It's not that a big deal to scan all the tobj-textfiles if I know what to look for.
Attachments
ets2_00006.jpg
ets2_00006.jpg (163.21 KiB) Viewed 2436 times

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

24 Jan 2014 02:20

As far as I know the correct TOBJ format for ETS2 works as following:

Header:
01 0A B1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 03 03 03 00 02 02 00 00 00 00 00 01 00 00 2A 00 00 00 00 00 00 00
where 2A equals the length of the path to the file following;
in this case:
/model/sign/traffic/traffic_signs_se_2.dds
is 42 characters long which equals 2A in hex.

So the total file then becomes:
01 0A B1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 03 03 03 00 02 02 00 00 00 00 00 01 00 00 2A 00 00 00 00 00 00 00 2F 6D 6F 64 65 6C 2F 73 69 67 6E 2F 74 72 61 66 66 69 63 2F 74 72 61 66 66 69 63 5F 73 69 67 6E 73 5F 73 65 5F 32 2E 64 64 73


The older TOBJ format can have a different header:
01 0A B1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 03 03 03 00 02 02 00 00 00 00 00 88 39 00 28 00 00 00 00 00 00 00
(here 28 is the length)

The main difference here are the bits with 88 39. So basically if you can identify TOBJ files that have faulty headers you could track them down..
I am Image Dutch living in Image New Zealand and I speak Image EN Image DE Image SE Image FR
Image

LA-MJ
Posts: 776
Joined: 20 Dec 2013 16:07
Donation rank:

24 Jan 2014 03:55

Files with bad header:

Code: Select all

./model/sign/reflective_post_no.tobj
./model/sign/navigation/board_fi2.tobj
./model/sign/navigation/symbol_dk.tobj
./model/sign/navigation/board_fi3.tobj
./model/sign/navigation/symbol_fi.tobj
./model/sign/navigation/dk_sr_round.tobj
./model/sign/navigation/no_sr_round.tobj
./model/sign/navigation/symbol_se.tobj
./model/sign/navigation/se_sr_round.tobj
./model/sign/navigation/symbol_no.tobj
./model/sign/traffic/traffic_signs_fi_2.tobj
./model/sign/traffic/traffic_signs_fr_3.tobj
./model/sign/traffic/traffic_signs_ie_2.tobj
./model/sign/traffic/traffic_signs_dk.tobj
./model/sign/traffic/traffic_signs_se.tobj
./model/sign/traffic/traffic_signs_es.tobj
./model/sign/traffic/traffic_signs_fr_4.tobj
./model/sign/traffic/traffic_signs_dk_3.tobj
./model/sign/traffic/traffic_signs_es_2.tobj
./model/sign/traffic/traffic_signs_no.tobj
./model/sign/traffic/traffic_signs_dk_2.tobj
./model/sign/traffic/traffic_signs_es_3.tobj
./model/sign/traffic/traffic_signs_fi.tobj
./model/sign/reflective_post_dk.tobj
./model/panorama/denmark/kobenhavn.tobj
./material/ui/map/road/road_se_rv44.tobj
./material/ui/map/road/road_fi_vt3.tobj
./material/ui/map/road/road_fi_vt9.tobj
./material/ui/map/road/road_se_rv40.tobj
./material/ui/map/road/road_se_rv26.tobj
./material/ui/map/road/road_se_e20.tobj
./material/ui/map/road/road_fi_e12.tobj
./material/ui/map/road/road_se_rv50.tobj
./material/ui/map/road/road_fi_e18.tobj
./material/ui/map/road/road_se_rv49.tobj
./material/ui/map/road/road_se_e4.tobj
./material/ui/map/road/road_dk_e45.tobj
./material/ui/map/road/road_fi_vt1.tobj
./material/ui/map/road/road_dk_e47.tobj
./material/ui/map/road/road_se_e45.tobj
./material/ui/map/road/road_dk_o3.tobj
./material/ui/map/road/road_dk_e55.tobj
./material/ui/map/road/road_dk_n11.tobj
./material/ui/map/road/road_fi_e63.tobj
./material/ui/map/road/road_dk_e20.tobj
./material/ui/map/road/road_dk_e39.tobj
./material/ui/map/road/road_se_e6.tobj
./material/ui/map/road/road_se_e18.tobj
./material/ui/lp/sweden/rear.tobj
./material/ui/lp/denmark/rear.tobj
./material/ui/lp/ireland/rear.tobj
./material/ui/lp/norway/rear.tobj
But you should know that half the files don't match your 'good header' exactly

Enjoy: http://goo.gl/HeFNyH
Last edited by LA-MJ on 24 Jan 2014 06:42, edited 1 time in total.

LA-MJ
Posts: 776
Joined: 20 Dec 2013 16:07
Donation rank:

24 Jan 2014 06:08

Headers found in base.scs:

Code: Select all

01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 00 03 03 02 00 02 00 00 01 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 02 00 00 00 00 01 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 02 00 02 02 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 02 00 02 02 00 01 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 02 00 02 02 00 01 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 01 01 02 00 02 02 00 01 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 01 01 02 00 02 02 00 01 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 02 00 00 00 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 02 00 00 00 00 00 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 02 00 00 00 00 01 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 02 00 00 00 00 01 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 02 00 00 02 00 01 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 02 00 02 00 00 01 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 02 00 02 02 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 02 00 02 02 00 00 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 02 00 02 02 00 01 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 02 00 02 02 00 01 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 03 00 00 00 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 03 00 00 00 00 00 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 03 00 00 00 00 01 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 03 00 00 00 00 01 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 03 00 00 02 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 03 00 00 02 00 01 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 03 00 02 00 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 03 00 02 02 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 03 00 02 02 00 00 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 02 00 03 03 03 00 02 02 00 01 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 05 00 03 03 02 00 02 02 02 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 05 00 03 03 02 00 02 02 02 01 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 05 00 03 03 03 00 02 02 02 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 02 00 03 03 03 00 00 00 00 01 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 02 00 03 03 03 00 02 02 00 01 00 00 00 01 01 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 02 00 03 03 02 00 00 00 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 02 00 03 03 02 00 02 02 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 02 00 03 03 03 00 00 00 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 02 00 03 03 03 00 02 02 00 00 00 00 00 01 00 00 
01 0a b1 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 02 00 03 03 03 00 02 02 00 01 00 00 00 01 00 00 
Varying bytes (from 0): 22, 24, 26-28, 30-33, 38
If we exclude the bad headers, promods content has additional varying bytes (00 vs 01) at 20 and 37.

LA-MJ
Posts: 776
Joined: 20 Dec 2013 16:07
Donation rank:

24 Jan 2014 09:13

Right... So I flipped 88 39 to 01 00 in all files and updated my archive with good versions of dds and tobj files and presto:
Image
Started a trip from Denmark to Sweden and haven't seen a broken texture in 10 minutes of gameplay :D

Made my day :ugeek:

Although noticed a weird rendering glitch:
Image
Not sure if related.

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

24 Jan 2014 11:41

That last bug is not related. I've seen this too in the Windows version with Direct X.

Excellent work on tracking the texture bug ;)
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

LA-MJ
Posts: 776
Joined: 20 Dec 2013 16:07
Donation rank:

24 Jan 2014 12:32

All is not perfect though.

After a while this happened:
Image
Image

Not sure if intended:
Image

Although compared to the original issue this is nothing.

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

24 Jan 2014 12:57

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



Post Reply

Return to “Not a bug ETS2”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests