MMORPG Advice
Posted: Sun Feb 18, 2007 7:34 am
I've bumped into a sudden problem which could be a great issue later on if i don't get it fixed now. As a few people should know i've been working on a MMORPG for the last month.
I've made it up to the stage where people are able to see each other... However i've noticed a huge security flaw where anyone with smarts could easyily determine where anyone is on the map. I've came to a conclusion that if i was to send a packet to a player with the locations of others within a radius that this would fix it. However, The way i was planning on doing it may not be so great (speed wise).
The player information is simply stored in an array of the players position. What i was planning on doing it was for EACH player every run was to have it search through the array, grab the X and determine if it was in that player radius... However that would not be a very good idea if i was to have 100 people online. (100x100 = 10,000 checks per loop).
I was wondering if anyone could suggest a much quicker way to do what i am looking for.
Thanks for reading.
I've made it up to the stage where people are able to see each other... However i've noticed a huge security flaw where anyone with smarts could easyily determine where anyone is on the map. I've came to a conclusion that if i was to send a packet to a player with the locations of others within a radius that this would fix it. However, The way i was planning on doing it may not be so great (speed wise).
The player information is simply stored in an array of the players position. What i was planning on doing it was for EACH player every run was to have it search through the array, grab the X and determine if it was in that player radius... However that would not be a very good idea if i was to have 100 people online. (100x100 = 10,000 checks per loop).
I was wondering if anyone could suggest a much quicker way to do what i am looking for.
Thanks for reading.