Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

GTA IV fxc->xml/xml->fxc converter


Shvab
 Share

Recommended Posts

Hi guys. I present a program that will allow you to edit the shader using notepad. Editing parameters, methods, etc. is possible with notepad, and to edit sco shaders, you must first decompile it. It's kind of like OpenFormat, but for fxc files.

MIRROR

 

Changelog:

Version 1.0:

- Packing shaders into an IV fxc file.

Version 1.1:

- Added compilation of HLSL/FX shaders when packing shaders.

- Compilating shaders from ASM.

Version 2.0:

- Unpacking IV fxc files.
- Removed shader compilation from ASM.
- Added new options.

- Added support for global parameters.

First public release. Version 3.0:

- New format.
- Disabled HLSL/FX compilation when packing shaders.

Version 3.0.1:

- Fixed bugs in the old format.
- Unpacking Red Dead Redemption fxc files.
- Unpacking Max Payne 3 fxc files(sm3, sm4 and above).

- Fixed writing intShort and int32.

Small update. Version 3.0.1.1:

- Unpacking and packing IV fxc files from Xbox360.

- Unpacking and packing MC:LA fxc files Xbox360.

- Fixed a problem due to which folders were not created during unpacking and sco shaders were not exported.

- Read shader from any folder. Now you don't need fxc/xml to be in the same folder as the converter.

- Unpacking fxc rdr and mp3 files broke. Will be fixed in the next updates.

- Automatic platform detection(pc or xbox/ps).

- The line where the program stopped is now displayed. Now you can see in which line you made a mistake.

Edited by Shvab
Version 3.0.1.1
  • Like 2
Link to comment
Share on other sites

  • 4 weeks later...
MaxOnFeed

When I try to run the program it gives me an error (0xc000007b)

Link to comment
Share on other sites

Finally a tool for fxc shaders, when Im in home Ill try it.

 

 

Link to comment
Share on other sites

VCRUNTIME140D.dll was not found and MSVCP140D.dll was not found and I have all visual c software since 2005. Also there is no name Іван Іванович#8929 in Discord

 

Edited by T-ru
Link to comment
Share on other sites

On 9/8/2022 at 6:35 PM, T-ru said:

VCRUNTIME140D.dll was not found and MSVCP140D.dll was not found and I have all visual c software since 2005. Also there is no name Іван Іванович#8929 in Discord

 

Corrected nick. A few days ago I changed my Discord nickname and forgot to put it here. I'm not sure if the VCRUNTIME140D.dll not found error is up to me, try looking for solutions on the internet or message me on discord.

On 9/7/2022 at 7:49 PM, MaxOnFeed said:

When I try to run the program it gives me an error (0xc000007b)

You need Visual C++ 2005-2015 packages

Link to comment
Share on other sites

On 9/8/2022 at 6:35 PM, T-ru said:

VCRUNTIME140D.dll was not found and MSVCP140D.dll was not found and I have all visual c software since 2005. Also there is no name Іван Іванович#8929 in Discord

 

+
ucrtbased. dll not found as well then VCRUNTIME140D.dll was not found and MSVCP140D.dll was not found!!! Why I cannot find you in discord Іван Іванович#8929 ?!

Link to comment
Share on other sites

3 hours ago, T-ru said:

+
ucrtbased. dll not found as well then VCRUNTIME140D.dll was not found and MSVCP140D.dll was not found!!! Why I cannot find you in discord Іван Іванович#8929 ?!

ḏ̵̉3̶̾̕g̶̾́0̷̾̓ṉ̵̂#8929

Link to comment
Share on other sites

3 hours ago, T-ru said:

+
ucrtbased. dll not found as well then VCRUNTIME140D.dll was not found and MSVCP140D.dll was not found!!! Why I cannot find you in discord Іван Іванович#8929 ?!

I don't know why you have this problem. The dll names point to vcredist2015. I recently upgraded from win 10 to win 11 and it worked without error

Link to comment
Share on other sites

On 9/10/2022 at 1:19 AM, Shvab said:

Corrected nick. A few days ago I changed my Discord nickname and forgot to put it here. I'm not sure if the VCRUNTIME140D.dll not found error is up to me, try looking for solutions on the internet or message me on discord.

You need Visual C++ 2005-2015 packages

I have all Visual C++ 2005-2015 packages installed

On 9/8/2022 at 8:35 PM, T-ru said:

VCRUNTIME140D.dll was not found and MSVCP140D.dll was not found and I have all visual c software since 2005. Also there is no name Іван Іванович#8929 in Discord

 

I just found all the required files on the Internet and threw them into the system folders. That helped. But then i ran into an error 0xc000007b

Edited by MaxOnFeed
initially conveyed the idea incorrectly
Link to comment
Share on other sites

This is software (tool) problem, something with the compatibility with the Windows, maybe.

Link to comment
Share on other sites

1 hour ago, T-ru said:

This is software (tool) problem, something with the compatibility with the Windows, maybe.

I tested on 4 different PC (win10 and win11) and my tool worked. Try to put the missing dll in a folder or wait for an update.

Link to comment
Share on other sites

8 hours ago, T-ru said:

Still the same,missing tons of .dll files :(

 

The problem is not with the tool. 3.0.1 was written from scratch in early September. Look for a problem on your pc

Link to comment
Share on other sites

On 9/18/2022 at 7:48 AM, T-ru said:

Still the same,missing tons of .dll files :(

 

I tested on clean Windows today and got errors, but after installing c++ redist and .NET FXCTo XML worked successfully.

All C+ Redistributable Packages

Link to comment
Share on other sites

I want to divide the project into subprojects and clean up unnecessary code that has been there since the days of ODR2ODR. There is a lot of code and I have already started to get confused in it. I also plan to add full support for the rest of the FXC files from RAGE games (Table Tennis, Red Dead Redemption, Max Payne 3, GTA Five) and for this I don't need to get confused in my code. If I disappear for more than a month, know that I tried to do it

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 2 Users Currently Viewing
    1 member, 0 Anonymous, 1 Guest

    • T-ru
×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.