Mellnik Posted July 29, 2014 Share Posted July 29, 2014 Hi I love the way how you can add mods to your MTA server. The only problem I encounter is the total size of the mods. I don't want players to download more than 70-100MB so I am asking if there are any tricks to reduce the download size. I have looked around and found this post by ccw (http://bugs.mtasa.com/view.php?id=5015) How can I do that? Does he mean to zip the mods and upload the an http server or something like gzip on nginx? Another small question. Do you think 70-100MB is too much for an average player to download? Seeing most other servers don't have more than ~40MB. Thanks. Link to comment
Bonsai Posted July 29, 2014 Share Posted July 29, 2014 Another small question. Do you think 70-100MB is too much for an average player to download? Seeing most other servers don't have more than ~40MB. Personally, if I join a server I have never played on before and it has more than 10mb to download, I just disconnect and go somewhere else. Link to comment
Controlled Posted July 29, 2014 Share Posted July 29, 2014 Once 1.4 comes out, use https://wiki.multitheftauto.com/wiki/DownloadFile downloadFile Link to comment
Mellnik Posted July 29, 2014 Author Share Posted July 29, 2014 @Bonsai Why's that? @Et-win What's the difference between downloadFile fromv1.4? And how would I compress and extract it? @Controlled Yeah, saw that but it does not reduce the file size but rather download it in the background which would cause lag doesn't it? Link to comment
vx89 Posted July 29, 2014 Share Posted July 29, 2014 Hi Mellnik Just curious, (if you're using windows) cd to your most demanding resource and run: @echo off & for /f %a in ('dir /s /b') do echo %~fa %~za This will list all the files (including files in subdirectories) and file size in bytes. Which filetypes are the largest ones? Link to comment
Controlled Posted July 29, 2014 Share Posted July 29, 2014 You can't compress it and then extract it once the client has it, you can do what I said, so that after they join they have the option to download the files. That way its not a large initial download. Just using downloadFile you can make a GUI with all the mods you want on it and have the player choose what they want to download. Link to comment
Bonsai Posted July 29, 2014 Share Posted July 29, 2014 @Bonsai Why's that? Mostly its just some big size car models or something and its not worth to wait until its finally finished. Link to comment
Mellnik Posted July 30, 2014 Author Share Posted July 30, 2014 @vx89 The command doesn't work properly. But my largest files are .txd texture files. (They are already compressed) @Controlled That's an option, true. But I'm still curious what ccw meant in his post. Link to comment
xXMADEXx Posted July 30, 2014 Share Posted July 30, 2014 As ccw said, if you do have a web server on the same host (such as a vps) you can use this script https://community.multitheftauto.com/index.php?p= ... ls&id=8249 Link to comment
Mr_Moose Posted July 30, 2014 Share Posted July 30, 2014 Packing the resource in a zip archive may reduce the size a bit too if you haven't done it already. 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