Quantcast

Jump to content

» «
Photo

[PROBLEM] Unsupported old files versions

Best Answer Jestic, 27 March 2017 - 06:28 PM

For the time being, here's qucik guide on how to use GIMS Evo and change the openFormats version
 
To start gims evo, temporarily replace ShaderManager.xml inside #:\Users\<current user>\AppData\Local\New Technology Studio\Apps\OpenIV\Games\Five\openFormats
Now can you open GIMS Evo fine and import\export ODR files.
 
Next, once you exported a model from GIMS, we need to change the openFormats to work with the new openiv. Open your ODR file and replace '30' at the top by '31' (Version 165 30 --> Version 165 31)
Change all lowercase letters by uppercase letters for every shader (some already are but most aren't)
bumpSelfShadowAmount  --> BumpSelfShadowAmount 
bumpiness --> Bumpiness
materialWetnessMultiplier --> MaterialWetnessMultiplier 
etc.
 
Save ODR, open your .MESH
Again, change version from 30 to 31
Under  'Flags' of each shader group. you need to add a 'Vertex Declaration' number. This is different depending on which shader you use, here are a few:
default.sps --> VertexDeclaration N209731BE
normal.sps --> VertexDeclaration N51263BB5
normal_tnt.sps --> VertexDeclaration N51263BB5
normal_decal_tnt.sps --> VertexDeclaration N51263BB5
If you use another shader, export a YDR model from OpenIV and copy\paste the right vertex declaration number.
Save .MESH, you're now done and your openformats are compatible with the new openiv. Don't forget to restore the aforementioned 'ShaderManager.xml before using OpenIV
 
Reverse the process if you want to import ODR files with GIMS Evo.
 
GooD tool you have their GooD, sucks I need to write up this 'guide' because you lock everyone out of editing the game. (which coincidentally, is what your tool is primarily made for). Go to the full post


5 replies to this topic
RekRam
  • RekRam

    Player Hater

  • New Members
  • Joined: 26 Mar 2017
  • Argentina

#1

Posted 26 March 2017 - 04:00 PM

Good morning,

 

 

I've seen this countless of times and never decided to inform about this problem.

 

When using OpenFormats tool for .ydd files, like peds, We get .odd, .odr and meshes files.

 

Each of this files appear to be linked to a specific version of openIV. That makes them useless each time openIV updates.

 

Not being able to import old exported .odd, .odr and meshes files is something that bothers.

 

Is there any way to restore this files and make them work with the newer compatibility version of OpenFormat?

 

 

http://imgur.com/1kre4us

 

http://imgur.com/mUOLg3Z

 

http://imgur.com/ROdSjFU

 

 

As you can visualize right there... Format version 30 cant be imported.

 

There is no logic on removing a format version, making it useless... That means i need to re-export all the used/edited (zm3) parts and need to import them back in a new open format state.

 

I hope there is another way to save my old files (openIV 2.8)

 

Looking forward to the reply,

 

RekRam


GooD-NTS
  • GooD-NTS

    OpenIV lead developer

  • Members
  • Joined: 03 May 2008
  • Russia
  • Best Tool 2016 [OpenIV]
    Best Tool 2012 [OpenIV]
    Major Contribution Award [Mods]

#2

Posted 26 March 2017 - 04:16 PM

You should not keep your files in openFormats form. openFormats is meant to be intermediate/temp files which you import/export between tools.
We are always working on improving openFormats and that is why version is changed from time to time (not exactly with each OpenIV update).

There is no way to import old version in the current OpenIV, unless you change files to new version by your self, which not always possible.

_CP_
  • _CP_

    Boss

  • Feroci
  • Joined: 27 Dec 2007
  • Poland
  • Most Helpful Modding 2016 [Runner-up]
    Best Vehicle 2016 [IVPack]
    Best Map 2013 "ViceCityStories PC Edition"

#3

Posted 27 March 2017 - 06:01 PM

So what's the point of improving openFormats without proper scripts offered by your team? This is disturbing.

  • Jestic, GTARandom and dkluin like this

Jestic
  • Jestic

    Chris

  • GTA Mods Staff
  • Joined: 16 Oct 2005
  • Netherlands
  • Helpfulness Award
    Contribution Award [Mods]
    Best Conversion 2014 [ViIV for GTANY Contribution]
    Best Map 2011 [IVSA]
    Modding Milestone [IVSA/Ped Paths]
    Best Map 2013 [ViceCityStories PC Edition][Contribution]

#4

Posted 27 March 2017 - 06:28 PM   Best Answer Edited by Jestic, 27 March 2017 - 06:36 PM.

For the time being, here's qucik guide on how to use GIMS Evo and change the openFormats version
 
To start gims evo, temporarily replace ShaderManager.xml inside #:\Users\<current user>\AppData\Local\New Technology Studio\Apps\OpenIV\Games\Five\openFormats
Now can you open GIMS Evo fine and import\export ODR files.
 
Next, once you exported a model from GIMS, we need to change the openFormats to work with the new openiv. Open your ODR file and replace '30' at the top by '31' (Version 165 30 --> Version 165 31)
Change all lowercase letters by uppercase letters for every shader (some already are but most aren't)
bumpSelfShadowAmount  --> BumpSelfShadowAmount 
bumpiness --> Bumpiness
materialWetnessMultiplier --> MaterialWetnessMultiplier 
etc.
 
Save ODR, open your .MESH
Again, change version from 30 to 31
Under  'Flags' of each shader group. you need to add a 'Vertex Declaration' number. This is different depending on which shader you use, here are a few:
default.sps --> VertexDeclaration N209731BE
normal.sps --> VertexDeclaration N51263BB5
normal_tnt.sps --> VertexDeclaration N51263BB5
normal_decal_tnt.sps --> VertexDeclaration N51263BB5
If you use another shader, export a YDR model from OpenIV and copy\paste the right vertex declaration number.
Save .MESH, you're now done and your openformats are compatible with the new openiv. Don't forget to restore the aforementioned 'ShaderManager.xml before using OpenIV
 
Reverse the process if you want to import ODR files with GIMS Evo.
 
GooD tool you have their GooD, sucks I need to write up this 'guide' because you lock everyone out of editing the game. (which coincidentally, is what your tool is primarily made for).
  • GTARandom likes this

quechus13
  • quechus13

    Boss

  • Members
  • Joined: 19 Dec 2008
  • None

#5

Posted 27 March 2017 - 07:48 PM

Thank you so much for this, I appreciate this A LOT.

  • Jestic likes this

GooD-NTS
  • GooD-NTS

    OpenIV lead developer

  • Members
  • Joined: 03 May 2008
  • Russia
  • Best Tool 2016 [OpenIV]
    Best Tool 2012 [OpenIV]
    Major Contribution Award [Mods]

#6

Posted 27 March 2017 - 08:03 PM

...
Change all lowercase letters by uppercase letters for every shader (some already are but most aren't)
...
Under  'Flags' of each shader group. you need to add a 'Vertex Declaration' number. This is different depending on which shader you use, here are a few:
...

You can find all new shader parameters names (with correct case) and all Vertex Declarations in the new version of ShaderManager.xml




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users