| Mirage Source http://www.miragesource.net/forums/ |
|
| Help Lower Bandwidth Usage http://www.miragesource.net/forums/viewtopic.php?f=193&t=4553 |
Page 1 of 1 |
| Author: | JokeofWeek [ Wed Oct 15, 2008 2:54 am ] |
| Post subject: | Help Lower Bandwidth Usage |
Well, I had an idea before. You know all those times that you send a player a message that never changes, such as 'Not enough mana points' or 'A door has opened', etc. Each time that event occurs, it sends the player the whole string. Now, that's a pointless use of bandwidth as the message will never change, and this will build up after a while of constantly sending the string over and over. So I was thinking, why not just store those repetitive message in a string table/array on the client side? Just a thought to save some bandwidth |
|
| Author: | grimsk8ter11 [ Wed Oct 15, 2008 3:13 am ] |
| Post subject: | Re: Help Lower Bandwidth Usage |
yes this is def. a thing to do. Most morpgs actually store in in either a bit file or plain text, allowing for translation to other languages to. like [byte for number][byte for color][byte for string length][plaintext string] yeah, players can edit it pretty easy, but hey, it makes funny screenshots? or you could have the lengths fixed in the client, so it only loads certain lengths, diffferent for each language. |
|
| Author: | GIAKEN [ Wed Oct 15, 2008 3:18 am ] |
| Post subject: | Re: Help Lower Bandwidth Usage |
That's a pretty good idea. It would also make it easier to change messages. |
|
| Author: | JokeofWeek [ Wed Oct 15, 2008 4:08 am ] |
| Post subject: | Re: Help Lower Bandwidth Usage |
Great idea Grim, only problem is that this would only work for certain messages, unless what you did is stored every single messages and replaced things like the Damage with \1, \2, etc., like so : 'A \1 hit you for \2 damage' and then just make a parser to replace those \1, \2 with the values, that way allowing for total translation and a huge save in bandwidth |
|
| Author: | Kraft [ Wed Oct 15, 2008 6:27 pm ] |
| Post subject: | Re: Help Lower Bandwidth Usage |
Just look at vbGORE's codes... |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|