Problem using string objects when exported as .x files

N

nikescar

  • nikescar

I've been using BTB for a game I'm making and it's been working great until this problem popped up. For some reason string objects use textures differently than surfaces, terrain, regular objects, etc.

Here is how the textures are defined in those models:
Rural Australia\Textures\Ground\Grass\grass_E.dds

and here is how they are defined in string objects:
Great Britain (RBR)\Materials\Objects\Block04a_rw\mat0

Notice the lack of file extension. It should read:
Great Britain (RBR)\Materials\Objects\Block04a_rw\mat0.jpg
or so I think.

Without the extension my content importer cannot assign a content processor to the texture. Also the texture does not load when using DirectX Viewer in the DirectX SDK which leads me to believe it should have an extension.

I've tried editing the .x file to include the extension using a hex editor but any editing whatsoever of a .x file seems to corrupt it.

Any ideas?
 
  • nikescar

I should've added that I tried that in my original post. Using DX text and then editing still produces a "Error 1 Could not read the X file. The file is corrupt or invalid. Error code: D3DXFERR_PARSEERROR."
 

Latest News

How long have you been simracing

  • < 1 year

    Votes: 256 15.3%
  • < 2 years

    Votes: 169 10.1%
  • < 3 years

    Votes: 167 10.0%
  • < 4 years

    Votes: 125 7.5%
  • < 5 years

    Votes: 231 13.8%
  • < 10 years

    Votes: 200 11.9%
  • < 15 years

    Votes: 125 7.5%
  • < 20 years

    Votes: 97 5.8%
  • < 25 years

    Votes: 77 4.6%
  • Ok, I am a dinosaur

    Votes: 228 13.6%
Back
Top