MeBoingus
Member
Hiya all,
I'm currently working on a small platformer MMO and I've made a script that exports all of the room data (tiles and objects) to a txt file.
I use this to load rooms on the fly, in the client. I want to use this system to have the ability to change and add rooms on the server-side, and have them automatically update on the client-side.
My main issue is actually sending that room data to the client. Each room file is around 20-30kb, and has a 'version' number, so that the client can check with the server if their copy of the room is up to date.
What would be the best way to send this data to the player? I'm currently considering uploading it to a web server and simply sending the file name to the client to download.
Would it be more efficient to simply send the data as a string?
TL;DR - What is the fastest / most reliable way to send small (<100kb) files over a networked connection?
Kind regards,
L. Jacobs
I'm currently working on a small platformer MMO and I've made a script that exports all of the room data (tiles and objects) to a txt file.
I use this to load rooms on the fly, in the client. I want to use this system to have the ability to change and add rooms on the server-side, and have them automatically update on the client-side.
My main issue is actually sending that room data to the client. Each room file is around 20-30kb, and has a 'version' number, so that the client can check with the server if their copy of the room is up to date.
What would be the best way to send this data to the player? I'm currently considering uploading it to a web server and simply sending the file name to the client to download.
Would it be more efficient to simply send the data as a string?
TL;DR - What is the fastest / most reliable way to send small (<100kb) files over a networked connection?
Kind regards,
L. Jacobs