Allow me to spectate when cheats are on

Allow me to spectate when cheats are on

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Allow me to spectate when cheats are on

Post by zwzsg »

When testing stuff, it's usefull to be able to play one team, then other, then watch both, etc...

But I can't anymore! Spring call me a hacker for merely typing /spectator after /cheat when alone in my test game!

[ 0] Player NoName connected with number 0 (client version 0.79.1.2 (0.79.1.2-0-gbb45722{@}-cmake-tdm))
[ 0] GameID: 4c6b674ab89bf2edc79eb60297174d8b
[ 125] /spectator
[ 126] Player 0 resigned and is now spectating!
[ 337] /team 0
[ 503] /spectator
[ 503] Spectator NoName tried to hack the game (spoofed TEAMMSG_RESIGN)
[ 901] /cheat
[ 901] Cheating!
[ 978] /spectator
[ 978] Spectator NoName tried to hack the game (spoofed TEAMMSG_RESIGN)

Please fix this nonsense! When I do expressly type /cheat, I want to be able to turn back and from playing a team and speccing.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Allow me to spectate when cheats are on

Post by Peet »

Without looking at the code I'd say that's simply a missing !
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Allow me to spectate when cheats are on

Post by zwzsg »

If you look closer at the log, you'd see that /spectator worked once, didn't work the second time (no cheat) and didn't work the third time (with cheat). I don't know what logic it uses. But it's not just inverted one.
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Re: Allow me to spectate when cheats are on

Post by yuritch »

I have the same problem - once switched from spec to a player, you can't switch back to spec (at last in games with bots that is). Must be some new 0.79 "feature".
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Allow me to spectate when cheats are on

Post by Auswaschbar »

yuritch wrote:I have the same problem - once switched from spec to a player, you can't switch back to spec (at last in games with bots that is). Must be some new 0.79 "feature".
Yes, it protects you from beeing "resigned" by a spectator, which is usually what you want. Looks like some variables doesn't get reset properly when using "/team". That they may not work correctly is the reson for them requiring "/cheat".
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Allow me to spectate when cheats are on

Post by zwzsg »

That they may not work correctly is the reson for them requiring "/cheat".
No, I never said /spectator required cheat as it is now.

I said that if you are afraid that merely typing /spectator is some kind of dangerous spoof-hacking that must be stopped at all cost, then consider it a cheat. But still leave me a way to use it.

Right now I have to test stuff, and I can't because of Spring.exe is being silly and insulting my honor for no reason.


yuritch wrote:at last in games with bots that is
Maybe this, just like the problem with getting game with bots started I had previously, are due to bot not being given enough consideration in 0.79? Like, when a human plays a team, you acknowledge that this team is being played, but when a bot plays a team, then you consider that team is not being played.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Allow me to spectate when cheats are on

Post by hoijui »

zwzsg wrote:Maybe this, just like the problem with getting game with bots started I had previously, are due to bot not being given enough consideration in 0.79? Like, when a human plays a team, you acknowledge that this team is being played, but when a bot plays a team, then you consider that team is not being played.
please try latest master, i made a commit that should fix it (though it was nearly too easy to work).
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Allow me to spectate when cheats are on

Post by hoijui »

tested myself today, seems to work properly now.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Allow me to spectate when cheats are on

Post by TradeMark »

i hope all these restrictions are taken out when you are playing alone, because it doesnt make sense to limit your playing when you play alone...
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Allow me to spectate when cheats are on

Post by zwzsg »

hoijui wrote:tested myself today, seems to work properly now.
It sorta work, in that I can alternate /team X and /spectator

If I type /spectator twice, I still have the message about "Spectator Player tried to hack the game (spoofed TEAMMSG_RESIGN)". Which would technically be still a bug, except it doesn't really matter, as I can still exit spectator by typing /team X.
Post Reply

Return to “Help & Bugs”