Author
Message
Asperhead
Newbie poster
Joined: 18 Oct 2017 Posts: 13
Yesterday I was playing 1vs1. At some point both commanders were laughting at something in the chat and we both got moved to spec. We both had EXP and were chatting (certainly not AFK). Can this be fixed?
Posted: Thu Oct 19, 2017 7:25 am
drk
Newbie poster
Joined: 20 Feb 2011 Posts: 370
Asperhead wrote: Yesterday I was playing 1vs1. At some point both commanders were laughting at something in the chat and we both got moved to spec. We both had EXP and were chatting (certainly not AFK). Can this be fixed?
At this time there is only one checker:
Quote:
if object_type == "CLIENT":
exp = int(server.GetClientInfo(guid, STAT_EXPERIENCE))
if exp == 0:
switch_client(guid)
I doubt that you had exp
Posted: Thu Oct 19, 2017 7:51 am
Asperhead
Newbie poster
Joined: 18 Oct 2017 Posts: 13
drk wrote: I doubt that you had exp
Hmmm... Maybe we haven't, I in fact didn't check that at the moment, I was just assuming because we both had built some stuff. Anyway, it wasn't big deal, we get into each team again and became commander as soon as we hit the buttons.
However, could the chat activity be considered in the script?
Posted: Thu Oct 19, 2017 8:07 am
Marbello
Newbie poster
Joined: 19 Sep 2008 Posts: 42
Asperhead wrote: drk wrote: I doubt that you had exp
Hmmm... Maybe we haven't, I in fact didn't check that at the moment, I was just assuming because we both had built some stuff. Anyway, it wasn't big deal, we get into each team again and became commander as soon as we hit the buttons.
However, could the chat activity be considered in the script?
Or commanders being excluded from the script?
Posted: Thu Oct 19, 2017 8:53 am
drk
Newbie poster
Joined: 20 Feb 2011 Posts: 370
I won't track any chat avtivity but I can (it's easy) exclude commanders from the script.
Posted: Thu Oct 19, 2017 1:25 pm
Asperhead
Newbie poster
Joined: 18 Oct 2017 Posts: 13
Is it possible to store XPs at a given time and later compare the value with the current one.
Last game I was AFK for like 40 seconds at start (ofc. chatting nonsense, with djinhis), then I spawned and went to kill some monkits and I got moved to spec.
Again, not a problem, I just moved back to team in no time. So the innability to track chat activity is not a real concern.
However, later in the game I got a phone call and I was dead in the field for like two minutes, with my comm falling into despair, and I was not automatically moved to spec.
Posted: Fri Oct 20, 2017 12:20 pm
Groentjuh
Site Admin
Joined: 20 Oct 2006 Posts: 618 Location: World > Europe > Benelux > The Netherlands > The hague
The current script does simply check if you have 0 xp at the 1 minute mark. That means that you either spawn within 30 seconds of the game starting or spawn between 30 and 60 in the game and make sure you gather 1 xp before the 1 minute mark (by mining, building, killing etc).
There are plenty to parameters drk can use to prevent those false-positive, he just needs to use some of them.
_________________
Posted: Fri Oct 20, 2017 1:17 pm
drk
Newbie poster
Joined: 20 Feb 2011 Posts: 370
Asperhead wrote: Is it possible to store XPs at a given time and later compare the value with the current one.
Last game I was AFK for like 40 seconds at start (ofc. chatting nonsense, with djinhis), then I spawned and went to kill some monkits and I got moved to spec.
Again, not a problem, I just moved back to team in no time. So the innability to track chat activity is not a real concern.
However, later in the game I got a phone call and I was dead in the field for like two minutes, with my comm falling into despair, and I was not automatically moved to spec.
I had an idea to make a command like "!here" or "!back" that moves an afk back to his team or moves a reconnected client back in case if there is no place in his old team.
Posted: Fri Oct 20, 2017 2:30 pm
Asperhead
Newbie poster
Joined: 18 Oct 2017 Posts: 13
I think the false positives are not a problem because you can get back to your team quickly and easily.
However, it would be nice if you could ammend the innability of the script to move to spec actually AFK players past the 1 minute mark. E.g. by checking at every minute the current XPs of each player and the XPs the player had a minute before. Again, no idea if you can store values on variables in this case.
Posted: Sat Oct 21, 2017 8:12 am
drk
Newbie poster
Joined: 20 Feb 2011 Posts: 370
Added an AFK checker for every N minutes (now it's set to 5).
It checks exp, position, stats (close to Milka's old script).
Report if you notice any bugs please.
Posted: Tue Aug 28, 2018 1:47 pm
Display posts from previous: All Posts 1 Day 7 Days 2 Weeks 1 Month 3 Months 6 Months 1 Year Sort by: Post Time Post Subject Author Ascending Descending