[BOUNTY] Played-time ban

How, what and why to code in BYOND.
Post Reply
User avatar
WineAllWine
In-Game Admin Trainer
Joined: Thu Jun 27, 2019 8:17 pm
Byond Username: Wineallwine
Location: LANDAN

[BOUNTY] Played-time ban

Post by WineAllWine » #682456

I want to be able to place a ban that will automatically expire after a certain amount of hours played. The main thing I'd want to use this for is antag bans - I want to ensure a player plays, say 30 hours as crew before they can do antag again. I can imagine similar useful things for assistant, sec or head bans.

It must be life hours, not observed.

The bounty is 15GBP, doubled if you instead choose to donate it to a charity

Vekter has also kindly offered another £10

[Edit by Timberpoes ft. Misdoubtful and Kieth4]
We are also happy to add antag token(s) to this bounty.
Last edited by WineAllWine on Thu Aug 17, 2023 4:36 pm, edited 1 time in total.
User avatar
TheSmallBlue
Joined: Thu Oct 31, 2019 3:55 pm
Byond Username: SmallBlue

Re: [BOUNTY] Played-time ban

Post by TheSmallBlue » #682471

this isnt a thing already??
When human I go by Bluti Kabooti, when AI I go by Azure
Image
Comm from
User avatar
Timberpoes
In-Game Game Master
Joined: Wed Feb 12, 2020 4:54 pm
Byond Username: Timberpoes

Re: [BOUNTY] Played-time ban

Post by Timberpoes » #682473

This could be very useful. I'll ask the other headmins if they're willing to chip in an antag token for this as well.
/tg/station Codebase Maintainer
/tg/station Game Master/Discord Jannie: Feed me back in my thread.
/tg/station Admin Trainer: Service guarantees citizenship. Would you like to know more?
Feb 2022-Sep 2022 Host Vote Headmin
Mar 2023-Sep 2023 Admin Vote Headmin
User avatar
Timberpoes
In-Game Game Master
Joined: Wed Feb 12, 2020 4:54 pm
Byond Username: Timberpoes

Re: [BOUNTY] Played-time ban

Post by Timberpoes » #682475

Misdoubtful also expressed an interest in additionally supporting this via antag token(s), so I've incorporated that into the OP.
/tg/station Codebase Maintainer
/tg/station Game Master/Discord Jannie: Feed me back in my thread.
/tg/station Admin Trainer: Service guarantees citizenship. Would you like to know more?
Feb 2022-Sep 2022 Host Vote Headmin
Mar 2023-Sep 2023 Admin Vote Headmin
User avatar
Timberpoes
In-Game Game Master
Joined: Wed Feb 12, 2020 4:54 pm
Byond Username: Timberpoes

Re: [BOUNTY] Played-time ban

Post by Timberpoes » #682479

And also Kieth4, so full headmin backing on this one. Good bounty.
/tg/station Codebase Maintainer
/tg/station Game Master/Discord Jannie: Feed me back in my thread.
/tg/station Admin Trainer: Service guarantees citizenship. Would you like to know more?
Feb 2022-Sep 2022 Host Vote Headmin
Mar 2023-Sep 2023 Admin Vote Headmin
User avatar
Itseasytosee2me
Joined: Sun Feb 21, 2021 1:14 am
Byond Username: Rectification
Location: Space Station 13

Re: [BOUNTY] Played-time ban

Post by Itseasytosee2me » #682550

How the heck am I supposed to donate my github good boy points to charity.
I hope the starving kids in south sudan appreciate being able to make TWO feature prs and maybe a balance change.
- Sincerely itseasytosee
See you later
LeekiLoku
Joined: Fri Mar 03, 2023 12:58 am
Byond Username: Lokuthewise

Re: [BOUNTY] Played-time ban

Post by LeekiLoku » #682902

Time to learn how to code on byonds broken system. I need those anteg tokuns
User avatar
Mothblocks
Code Maintainer
Joined: Fri Jul 27, 2018 9:33 am
Byond Username: Jaredfogle

Re: [BOUNTY] Played-time ban

Post by Mothblocks » #682923

the harder part is setting up the database
Shaps-cloud wrote: Mon Dec 07, 2020 7:59 am May eventually become one of the illusive maintainer-headmins if they choose to pursue that path, having a coder in the senior admin leadership has usually been positive for both sides in the past.
Head Coder of /tg/station, hi!

Head Admin of /tg/station Feb 2022.

Mothblocks everywhere, >>> Say nice things about me <<<
User avatar
Nabski
Joined: Thu Oct 20, 2016 5:42 pm
Byond Username: Nabski
Github Username: Nabski89
Location: TN

Re: [BOUNTY] Played-time ban

Post by Nabski » #682987

You've already got tracked playtime for roles. Couldn't it just compare what that is to a value set when the ban is placed?
That seems better than setting up a new database.
User avatar
TheFinalPotato
Code Maintainer
Joined: Sun Oct 13, 2019 7:58 am
Byond Username: LemonInTheDark

Re: [BOUNTY] Played-time ban

Post by TheFinalPotato » #683124

It's impossible to test code like this without a db running locally, which is a pain because the default "testing" template in the codebase is aggressively outdated
My ancestors are smiling at me, Imperials. Can you say the same?
Image
Image
Image
Image
User avatar
Vekter
In-Game Admin
Joined: Thu Apr 17, 2014 10:25 pm
Byond Username: Vekter
Location: Fucking around with the engine.

Re: [BOUNTY] Played-time ban

Post by Vekter » #683200

TheSmallBlue wrote: Wed Apr 26, 2023 10:38 pm this isnt a thing already??
No, bans can only be placed based on real-time duration.
AliasTakuto wrote: Thu Jan 04, 2024 1:11 pm As for the ear replacing stuff, you can ask Anne but I don't think this is what I was banned for. If I was all I can say is "Sorry for being hilarious"...
Omega_DarkPotato wrote:This sucks, dude.
Spoiler:
Reply PM from-REDACTED/(REDACTED): i tried to remove the bruises by changing her gender

PM: Bluespace->Delaron: Nobody wants a mime's asscheeks farting on their brig windows.

PM: REDACTED->HotelBravoLima: Oh come on, knowing that these are hostile aliens is metagaming

[17:43] <Aranclanos> any other question ping me again
[17:43] <Vekter> Aranclanos for nicest coder 2015
[17:44] <Aranclanos> fuck you
User avatar
Pandarsenic
Joined: Fri Apr 18, 2014 11:56 pm
Byond Username: Pandarsenic
Location: AI Upload

Re: [BOUNTY] Played-time ban

Post by Pandarsenic » #683201

Ban with autocalc of living connected hours? Hell yeah let's go.
(2:53:35 AM) scaredofshadows: how about head of robutts
I once wrote a guide to fixing telecomms woohoo
User avatar
Mothblocks
Code Maintainer
Joined: Fri Jul 27, 2018 9:33 am
Byond Username: Jaredfogle

Re: [BOUNTY] Played-time ban

Post by Mothblocks » #683321

TheFinalPotato wrote: Sat Apr 29, 2023 9:43 am It's impossible to test code like this without a db running locally, which is a pain because the default "testing" template in the codebase is aggressively outdated
You will soon have no excuse
Shaps-cloud wrote: Mon Dec 07, 2020 7:59 am May eventually become one of the illusive maintainer-headmins if they choose to pursue that path, having a coder in the senior admin leadership has usually been positive for both sides in the past.
Head Coder of /tg/station, hi!

Head Admin of /tg/station Feb 2022.

Mothblocks everywhere, >>> Say nice things about me <<<
User avatar
Vekter
In-Game Admin
Joined: Thu Apr 17, 2014 10:25 pm
Byond Username: Vekter
Location: Fucking around with the engine.

Re: [BOUNTY] Played-time ban

Post by Vekter » #700141

I'm willing to add £10 to this bounty.
AliasTakuto wrote: Thu Jan 04, 2024 1:11 pm As for the ear replacing stuff, you can ask Anne but I don't think this is what I was banned for. If I was all I can say is "Sorry for being hilarious"...
Omega_DarkPotato wrote:This sucks, dude.
Spoiler:
Reply PM from-REDACTED/(REDACTED): i tried to remove the bruises by changing her gender

PM: Bluespace->Delaron: Nobody wants a mime's asscheeks farting on their brig windows.

PM: REDACTED->HotelBravoLima: Oh come on, knowing that these are hostile aliens is metagaming

[17:43] <Aranclanos> any other question ping me again
[17:43] <Vekter> Aranclanos for nicest coder 2015
[17:44] <Aranclanos> fuck you
User avatar
TypicalRig
Joined: Sat May 01, 2021 8:18 pm
Byond Username: TypicalRig

Re: [BOUNTY] Played-time ban

Post by TypicalRig » #700786

Living connected hours isn't enough. We already have players that will SSD but stay connected and have SS13 semi-afk in the background with maybe their sounds on so they can check the game. There's no point in having this kind of ban if it can be easily bypassed. Let's maybe extend the code to check for actual ingame input every so and so minutes?
Imitates-The-Lizards
Joined: Mon Oct 11, 2021 2:28 am
Byond Username: Typhnox

Re: [BOUNTY] Played-time ban

Post by Imitates-The-Lizards » #700832

TypicalRig wrote: Sat Aug 19, 2023 10:39 pm Living connected hours isn't enough. We already have players that will SSD but stay connected and have SS13 semi-afk in the background with maybe their sounds on so they can check the game. There's no point in having this kind of ban if it can be easily bypassed. Let's maybe extend the code to check for actual ingame input every so and so minutes?
This is true but living hours played is still definitely a huge improvement over just "amount of time", and at least if they do this sort of thing, they will leave logs (or lack of logs, rather) that can be scrutinized if need be.

I don't think we need to aim for absolute perfection when just the played time ban would be a huge improvement for a lot of situations.
Image
Image
User avatar
oranges
Code Maintainer
Joined: Tue Apr 15, 2014 9:16 pm
Byond Username: Optimumtact
Github Username: optimumtact
Location: #CHATSHITGETBANGED

Re: [BOUNTY] Played-time ban

Post by oranges » #700920

TypicalRig wrote: Sat Aug 19, 2023 10:39 pm Living connected hours isn't enough. We already have players that will SSD but stay connected and have SS13 semi-afk in the background with maybe their sounds on so they can check the game. There's no point in having this kind of ban if it can be easily bypassed. Let's maybe extend the code to check for actual ingame input every so and so minutes?
this is literally already how it works.

if you go afk you're set as afk and time stops accruing.
Post Reply

Who is online

Users browsing this forum: No registered users