Jump to content

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


Polak0

Recommended Posts

Posted (edited)
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
  • Moderators
Posted

You can do some stuff with MTA Lua functions, but you need to know Lua for that.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted (edited)

Nope, I am following the forum rules. 

 

 

The only thing I can do for you, is pointing you to the right information. Or helping you with the code you haven't written yet.

https://wiki.multitheftauto.com/wiki/TeaEncode

 

Edited by IIYAMA

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

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

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...