Jump to content

How to encode the *.dff, *.col, *.txd file ?


Polak0

Recommended Posts

Hello. For some time I have been making models for MTA:SA, 
and I am wondering if one can encode * .dff, * .txd and * .col files? 
If so, how, I do not mean methods such as (dff protection by 3ds max *the LOCK DFF* option, 
but for something else, to change the format other than dff, col and txd.  
 Sorry for my english, i've using google translate ;v
Edited by Polak0
Link to comment
  • Discord Moderators

Read the dff/col/txd file, then use base64Encode(which Mr.Loki forgot), then encode the string u got, then write it.
And there you have ur encoded file.
To load it, you'll need the key you provided to T.E.A. base64Decode, with that you'll get the bytes, pass the bytes to the function (engineLoadlDFF, and such,be sure it accepts raw data)

  • Like 2
Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...