Jump to content

Cache mechanizm in MTA


abadabadu

Recommended Posts

Example...

I have resource "resCool". It is gamemode for 100 players.

Resurce has 1000mb client files.

I run server1 "MTA Server1" on machine with IP1:port1. Set maxplayers value to 100. Install resource "resCool" to server1 and start it.

Invite my friend Mike. Mike joins server1 "MTA Server1" and download 1000 mb client files.

Next day I realize that my "MTA Server1" contains 100 players and i cant accept new players.

I run server2 "MTA Server2" in same machine with IP1:port2. Install same resource "resCool" to server2 and start it.

Invite my friend Mike to this new server2.

Question:

1) Will Mike download 1000mb client files again? IP is not new, port is new, server is new, resource is not new ( same files, same name ).

I think answer is "Yes, Mike will download the same client files again. Because client files are cached to each new IP:PORT/recoursename".

2) Is it possible to avoid this?

I mean, if i write resource "res" ( has 1000 mb client files), run server1 with IP1:port1 contains my resource "res", then players join server and download all client files. If then i run next server2 with IP1:port2 contains same resource "res" ( same 1000 mb client files), is it possible to re-use those 1000 mb client files in any way? Or all same players must re-download it when join server2?

Link to comment

My question is why don't you just change the max players in mtaserver.conf?

1. No, he won't download the files again, because the cached files are stored in [mta dir]/mods/deathmatch/ and all server files are stored to the same location

2. No need, because question one is no

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