Polak0 Posted July 4, 2018 Share Posted July 4, 2018 (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 July 4, 2018 by Polak0 Link to comment
Moderators IIYAMA Posted July 4, 2018 Moderators Share Posted July 4, 2018 You can do some stuff with MTA Lua functions, but you need to know Lua for that. Link to comment
Polak0 Posted July 4, 2018 Author Share Posted July 4, 2018 Okay, you could give this code because I do not understand a bit lua . Link to comment
Moderators IIYAMA Posted July 4, 2018 Moderators Share Posted July 4, 2018 (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 July 4, 2018 by IIYAMA Link to comment
Mr.Loki Posted July 4, 2018 Share Posted July 4, 2018 All the functions you will need to do this: FileRead TeaEncode FileCreate FileWrite FileClose Try creating something and if it does not work post ya code here and we'll help. Link to comment
Discord Moderators Pirulax Posted July 4, 2018 Discord Moderators Share Posted July 4, 2018 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) 2 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now