GoldenEye: Source Forums
November 29, 2024, 11:27:29 pm
Welcome,
Guest
News:
Home
Help
Wiki
Search
Staff List
Login
Register
GoldenEye: Source Forums
»
Debriefing
»
Bug Reports & Fixes
»
[Bug] End match
Add to Reputation:
What do you think of this post?
I agree
I disagree
Comment:
« previous
next »
Pages: [
1
]
Go Down
Print
Author
Topic: [Bug] End match (Read 6989 times)
0 Members and 1 Guest are viewing this topic.
Troy
GE:S Coder
00 Agent
Posts: 821
Reputation Power: 260
Offline
[Bug] End match
«
on:
April 22, 2013, 04:30:34 am »
I want the match to automatically end if the round ends x amount of times. As a test I did this:
Code:
[Select]
def OnRoundEnd(self):
GERules.EndMatch()
The results is:
Match Ending...
Match Ending...
I suppose this may this be happening because I'm overriding the normal end round process. There isn't an end round report. I've also noticed that when I close the match score report window, another one pops up right behind it...
«
Last Edit: April 22, 2013, 08:46:15 am by Troy
»
Logged
Complete - Arsenal, One Bullet is Enough, Tournament DM v2, TurboDM
Defunct - Agent Under Fire
VC - Being such a dick, KM must be stroked before springing into action.
killermonkey
GES Programmer
Retired Lead Developer
GE:S Fanatic
Posts: 5,473
Reputation Power: 346
Offline
Re: [Bug] End match
«
Reply #1 on:
April 22, 2013, 10:27:49 am »
Interesting... What times did you have for match and round? Did you disable the round clock?
Logged
Check us out on Github!
https://github.com/goldeneye-source
Troy
GE:S Coder
00 Agent
Posts: 821
Reputation Power: 260
Offline
Re: [Bug] End match
«
Reply #2 on:
April 22, 2013, 05:32:23 pm »
Map time: 30 minutes
Round time: 5 minutes
It only happens with this function. I tested this by creating a LAN server.
Logged
Complete - Arsenal, One Bullet is Enough, Tournament DM v2, TurboDM
Defunct - Agent Under Fire
VC - Being such a dick, KM must be stroked before springing into action.
killermonkey
GES Programmer
Retired Lead Developer
GE:S Fanatic
Posts: 5,473
Reputation Power: 346
Offline
Re: [Bug] End match
«
Reply #3 on:
April 24, 2013, 01:58:34 am »
Ok I fixed it. The problem was a recursive call because you are calling to end the match while in the process of ending the round. This resulted in calling back into "OnRoundEnd" multiple times, repeating itself. Good catch!
Logged
Check us out on Github!
https://github.com/goldeneye-source
Print
Pages: [
1
]
Go Up
« previous
next »
GoldenEye: Source Forums
»
Debriefing
»
Bug Reports & Fixes
»
[Bug] End match