Jump to content

[Help] Cache Map In Client


Recommended Posts

Posted

hi, i want to set cache of my maps to true

so i want use a lot of maps for my server but i dont like players download and download again maps in every connect!

download .map only once in first joining...

how its possible?

[sry for my bad english]

Posted

A little note.

To cache a file is to store it for later use and faster loading. Setting cache to false means that it will not be downloaded and saved.

  • Like 1
Posted
10 hours ago, loki2143 said:

 

10 hours ago, loki2143 said:

A little note.

To cache a file is to store it for later use and faster loading. Setting cache to false means that it will not be downloaded and saved.

i want my client download maps once and will not download on every join...

Posted
1 minute ago, rouzbeh_TopGTA said:

i just want my players download maps once! not everytime! and after that, dont download any map again!

how i can do that?

Don't think it's possible. Unless there is some mod on mta community, but I haven't seen anything like it.

Posted

If you would develop your own map loader, you could simply transfer map data from server to client and keep it there and load when needed (however keeping .map file on client without encrypting it will result in your maps to be easily stolen)

  • Like 1
Posted (edited)

Maps stored in *.map files is not cached, those are downloaded every time a player join. You cold however convert them to a *.lua script using a tool like this to let them be cached properly. That would also reduce your download size for each map with up to 80%. Just remember to keep the *.map file in case you'd like to edit your map later using map editor.

Edited by Mr_Moose
  • 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...