Entity spawning from map and fixes for mplayer