A little news)
I created a program that automatically distributes shaders and creates a list in the right order with all the texture names, etc.)
Created for the conversion method from Zolika1351. I don't know how other authors write shaders for their mods, but now I literally do it in 5 mouse clicks)))
This may seem like a small thing to some, or to those who can handle it quickly, but I never liked going through the list of shaders, looking for the corresponding texture names, editing something, etc. And since I am a complete zero in programming, I spent a lot of time creating it)))
But it was worth it!)
How does this work:
1 - Click on the button and load the list (shaders or texture names, I don't know which is correct), obtained after creating the .oft file in 3ds max. The button turns green, this means that the file with the list has been successfully loaded.
This is what the list looks like:
2 - Click on the button and load the list obtained using yftxml_to_shaders.exe. The button also turns green, which means that the file with the list has been successfully loaded.
This is what the list looks like:
3, 4 - The program instantly analyzes both lists and creates a .txt file with the correct order and correct shaders.
This is what the list looks like:
All that remains is to copy the obtained result and replace it in the corresponding block of the .oft file.
That's it, you can import .oft into OpenIV.
Buttons 3 and 4 are the same, with only one difference, button 4 is needed to register livery support in the shaders)
The button glows yellow when you hover over it with the cursor ))
5 - Exit the program.
Of course there may be errors, but so far it works well. I will gradually improve the program.
That's the news I have. I made my life a little easier)
-----------------------------------------------------
Update:
- made some more significant changes to the program. Now it can work with .oft file and edit lines directly in it.
This means that now I just load .oft, load the list obtained using yftxml_to_shaders, click save and everything is ready, I can import the file into OpenIV )
- Added a new function "XML to Shaders".
Converts the .xml file obtained using CodeWalker into a text file containing the necessary shaders for the car model.
this means that we don't need to run yftxml_to_shaders.exe separately. Now it's done through my program.
I just click "XML to Shaders" and get the file I need.
- I'm planning to add a button to convert .yft to .dff, I spent half a day, but it doesn't work yet. =( I'll try later.
- Super! Finally I was able to do it!
Now I can convert .yft to .dff with a click of a button. )))
What a great guy I am! ))) XD