For the server-side, I have no idea how to convert my game map so that the server side can read it and use it to consider the data being sent from the client. For example, I want to have monsters spawning on the game and they need to be controlled by the server so that all players connected on the same map see the same movements. But how do I make it so that the server knows the map boundaries in order to generate the correct positions to make the monsters move relative to the map they're on?
I did come up with one solution- which was to have a client host the monsters and send the data to the server which would then be relayed to all other connected clients to update them. When the host disconnects, another client is chosen as host and they then send out all the monster data. Of course, there are a lot of problems with this: CLient lag, client manipulation of the monster part, lots of bandwidth being used by the client on their end, the server having to send and receive lots of data.
I was just wondering if you guys had any experience in this type of game construction and what possible solutions I could use. My main problem really is converting my game level map into something the server can read so that it can reconstruct the boundaries and limits.