| Mirage Source http://miragesource.net/forums/ |
|
| LeftGame Fix http://miragesource.net/forums/viewtopic.php?f=210&t=3186 |
Page 1 of 1 |
| Author: | Leighland [ Fri Dec 21, 2007 7:49 am ] |
| Post subject: | LeftGame Fix |
I'm not sure if this has been posted yet but it seems to be a small bug with the vanilla MSE1. Basically what happens is when more than one person is online, on the same map, and someone logs off or gets booted, the map stops processing npc movement. So, server side, find this: Code: Sub LeftGame(ByVal Index As Long) Dim n As Long If Player(Index).InGame = True Then Player(Index).InGame = False ' Check if player was the only player on the map and stop npc processing if so If GetTotalMapPlayers(GetPlayerMap(Index)) = 1 Then PlayersOnMap(GetPlayerMap(Index)) = NO End If and change it to this: Code: Sub LeftGame(ByVal Index As Long) Dim n As Long If Player(Index).InGame = True Then Player(Index).InGame = False ' Check if player was the only player on the map and stop npc processing if so If GetTotalMapPlayers(GetPlayerMap(Index)) < 1 Then PlayersOnMap(GetPlayerMap(Index)) = NO End If In the first block of code, the server stops processing npc movement if there is only 1 person on the map. Obviously, we want to keep processing them for that 1 person. All I've done here is changed the = to a < so that if there is less than one person on the map it stops processing movement. Some people may have noticed this, however I couldn't find anything on it and this stumped me for about 5 minutes. More info here: viewtopic.php?f=7&t=1867 |
|
| Author: | William [ Fri Dec 21, 2007 11:44 am ] |
| Post subject: | Re: LeftGame Fix |
From what I can see quickly it should be correct. |
|
| Author: | Robin [ Fri Dec 21, 2007 1:44 pm ] |
| Post subject: | Re: LeftGame Fix |
This is an existing bugfix, and is probably in the old 'Temporary' archive. |
|
| Author: | William [ Fri Dec 21, 2007 9:45 pm ] |
| Post subject: | Re: LeftGame Fix |
I never seen that bug fix before, so it was good you reposted it at least. |
|
| Author: | Rezeyu [ Fri Dec 21, 2007 11:29 pm ] |
| Post subject: | Re: LeftGame Fix |
It's in.. bugs and errors I think. It's been posted a few times. I actually meant to post it 2 days ago, but I forgot. |
|
| Author: | Leighland [ Sat Dec 22, 2007 8:58 am ] |
| Post subject: | Re: LeftGame Fix |
meh, I didn't look very hard, but then again I rarely do Anyways, I had never come across it before until now, for whatever reason, so I figured I'd post it anyway. Edited post to have link from the other topic as well. verrigan had a different fix for it. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|