[MP4] [SCRIPT MODE][Solved] Not able to disable respawn
- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
[MP4] [SCRIPT MODE][Solved] Not able to disable respawn
Respawn disabled it will give up on respawn instead of just ignoring the button. Had several servers with several controllers that had this issue on the matchday today. Please look into all the script bugs asap as now litterly every competition is broken.
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller

Re: [MP4] [SCRIPT MODE] Not able to disable respawn
Are you talking about the S_AllowRespawn setting? It is the intended behavior that when it is set to False, the respawn button will have the same effect that the restart button. It was like that since the first version of the scripts I think.
What you want is probably a new setting that gives you full control over the behavior of the respawn button?
You can try with the modifications from this commit. It adds a new setting S_RespawnBehaviour that you can set to 2 if you want to ignore the respawn button.
What you want is probably a new setting that gives you full control over the behavior of the respawn button?
You can try with the modifications from this commit. It adds a new setting S_RespawnBehaviour that you can set to 2 if you want to ignore the respawn button.
- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
Re: [MP4] [SCRIPT MODE] Not able to disable respawn
So it's not a bug, haha nice
.
Okay, the new setting would be useful then. I can't test right now, but I assume it would work like you committed and tested yourself.
Thanks,
Toffe

Okay, the new setting would be useful then. I can't test right now, but I assume it would work like you committed and tested yourself.
Thanks,
Toffe
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller

-
- Posts: 6
- Joined: 11 May 2017, 18:09
Re: [MP4] [SCRIPT MODE][Solved] Not able to disable respawn
Hello,
Even thought that option will definitely help, I observed the following behavior.
If you disable respawn (set S_AllowRespawn to False) - it happens as described above so I'm assuming S_RespawnBehaviour changes.
But if you enable it again, the respawn behaviour will not change, as it will still act as a retire even though S_AllowRespawn is True.
Apparently only if you toggle between the S_AllowRespawn option you won't be able to enable it again, most likely because of this second option you have mentioned also changes.
I tested it on three servers. I did the toggle option on 2 of them, and now both are stuck with no respawn. On the third server where the S_AllowRespawn was never False, respawn still works as it should.
I'd suggest still taking a look over the script regarding these 2 variables.
Thanks,
MnM| nevermind
Even thought that option will definitely help, I observed the following behavior.
If you disable respawn (set S_AllowRespawn to False) - it happens as described above so I'm assuming S_RespawnBehaviour changes.
But if you enable it again, the respawn behaviour will not change, as it will still act as a retire even though S_AllowRespawn is True.
Apparently only if you toggle between the S_AllowRespawn option you won't be able to enable it again, most likely because of this second option you have mentioned also changes.
I tested it on three servers. I did the toggle option on 2 of them, and now both are stuck with no respawn. On the third server where the S_AllowRespawn was never False, respawn still works as it should.
I'd suggest still taking a look over the script regarding these 2 variables.
Thanks,
MnM| nevermind
Re: [MP4] [SCRIPT MODE][Solved] Not able to disable respawn
Technically you can only use one setting at a time. If S_RespawnBehaviour is set to anything beside 0, then the value of S_AllowRespawn will be completely ignored. If S_RespawnBehaviour is set to 0, then the S_AllowRespawn setting will take effect.
By default S_AllowRespawn = True and S_RespawnBehaviour = 0
The settings should work as follow:
S_RespawnBehaviour = 0
S_AllowRespawn = True
-> Player respawns when pressing the respawn button
S_RespawnBehaviour = 0
S_AllowRespawn = False
-> Player gives-up when pressing the respawn button
S_RespawnBehaviour = 1
S_AllowRespawn = True/False
-> Player respawns when pressing the respawn button
S_RespawnBehaviour = 2
S_AllowRespawn = True/False
-> Nothing happens when pressing the respawn button
S_RespawnBehaviour = 3
S_AllowRespawn = True/False
-> Player gives-up when pressing the respawn button before crossing the first checkpoint, player respawns when pressing the respawn button after crossing the first checkpoint
S_RespawnBehaviour = 4
S_AllowRespawn = True/False
-> Player gives-up when pressing the respawn button
By default S_AllowRespawn = True and S_RespawnBehaviour = 0
The settings should work as follow:
S_RespawnBehaviour = 0
S_AllowRespawn = True
-> Player respawns when pressing the respawn button
S_RespawnBehaviour = 0
S_AllowRespawn = False
-> Player gives-up when pressing the respawn button
S_RespawnBehaviour = 1
S_AllowRespawn = True/False
-> Player respawns when pressing the respawn button
S_RespawnBehaviour = 2
S_AllowRespawn = True/False
-> Nothing happens when pressing the respawn button
S_RespawnBehaviour = 3
S_AllowRespawn = True/False
-> Player gives-up when pressing the respawn button before crossing the first checkpoint, player respawns when pressing the respawn button after crossing the first checkpoint
S_RespawnBehaviour = 4
S_AllowRespawn = True/False
-> Player gives-up when pressing the respawn button
-
- Posts: 6
- Joined: 11 May 2017, 18:09
Re: [MP4] [SCRIPT MODE][Solved] Not able to disable respawn
Thanks a lot for your detailed example.
This really helps a lot.
This really helps a lot.
Who is online
Users browsing this forum: No registered users and 0 guests