cocowen Posted July 13, 2013 Posted July 13, 2013 I know that if you want to play at a server , you need to download two steps , and the second steps only need to download one time , but each time you enter the server the , first step of download have to do , and my question is I am making a gamemode , the first step need to download 2Mb files then I add 600 vehilce , the first step need to download 3Mb files so I want to ask : 1.what increase the files which need to be download at first step , is it serverside script? 2.will it cause many waste of Bandwidth ? 3. do we have some function to control it ? or decrease the files size?
Jaysds1 Posted July 13, 2013 Posted July 13, 2013 The first download is always the client files, after that, the server files would be downloaded and saved in the players ram. 1. I'm not sure what increases it, but I think it's something to do with how much characters are in a file and integers. 2. It also depends on how you write your script 3. No, we do not have any. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
ixjf Posted July 13, 2013 Posted July 13, 2013 Jaysds1: Server-side code is run on the server, not on the client (pretty obvious). cocowen: The size increases because you add more files to download, again, obvious. I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
Moderators IIYAMA Posted July 13, 2013 Moderators Posted July 13, 2013 The first step is downloading, scripts,models etc. The second step a far as I know, elementdata, playerdata, anti cheat things etc. The second step got increased by the amount of synchronisation data. I don't know if that is true what I just did said, but it sounds very logistic to me. YOU CAN: 3. do we have some function to control it ? or decrease the files size? 1: Just reduce the amount of models/images/music. 2: try working with: https://wiki.multitheftauto.com/wiki/FetchRemote 3: or you have to wait for this: https://wiki.multitheftauto.com/wiki/DownloadFile Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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