Jump to content

meta.xml manage (server-side)


JeViCo

Recommended Posts

32 minutes ago, Overkillz said:

You need to create your own fileRead system to compile the TXD / DFF files with teaEncode and base64encode I guess.

It is the best choice imo.

Regards.

Oh, you get it. Well, my system creates compiled file. I can't use it because it isn't in meta.xml. Also it gets different password each time(deletes old file and creates new one) so i want to update changes directly somehow

Link to comment

as far as I know, you can set a property in meta.xml 

<file src="fileName.TXD/DFF" download="false" />

Well, if you update/create another system to compile the file without requesting to change it a password each time u can keep the file on the client cache and it cant be used in other servers and I think thats your goal.

Link to comment
9 minutes ago, Overkillz said:

as far as I know, you can set a property in meta.xml 


<file src="fileName.TXD/DFF" download="false" />

Well, if you update/create another system to compile the file without requesting to change it a password each time u can keep the file on the client cache and it cant be used in other servers and I think thats your goal.

everything is server-side so i can't just re-write original .dff or .txd file. I just want to add new one. I tried but it don't work for me :с

Link to comment
28 minutes ago, Juuve said:

everything is server-side so i can't just re-write original .dff or .txd file. I just want to add new one. I tried but it don't work for me :с

example:

-- client

function onResourceStart()
    engineImportTXD(engineLoadTXD ( "myTxd.txd" ), --[[ ID Object -> --]] 3976)
end
addEventHandler("onClientResourceStart",resourceRoot,onResourceStart)

-- meta 

<meta>
    <script src="berko.lua" type="client" />
    <file src="myTxd.txd" download="false" />
</meta>

 

Link to comment
11 minutes ago, Berko said:

example:

-- client


function onResourceStart()
    engineImportTXD(engineLoadTXD ( "myTxd.txd" ), --[[ ID Object -> --]] 3976)
end
addEventHandler("onClientResourceStart",resourceRoot,onResourceStart)

-- meta 


<meta>
    <script src="berko.lua" type="client" />
    <file src="myTxd.txd" download="false" />
</meta>

 

it doesn't work. I can't believe that editing meta.xml ingame is impossible\ :-(

Link to comment
23 minutes ago, Berko said:

What is the error that prints you in a list debugscript?

engineLoadTXD ( "myTxd.txd" )

error loading myTxd.txd and that's it. i added to meta.xml txd file. Client can't find this file so it gives errors.

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