Mods / An AFK Story

Tags: #Utility
Authors: Syd, Ritzga
Side: Server
Created: Nov 28th 2024 at 7:42 PM
Last modified: Mar 16th at 6:16 PM
Downloads: 3721
Follow Unfollow 45

Latest release (for outdated Vintage Story v1.20.x):
AnAFKStory-v0.9.5-1.20.0.zip  1-click install


I fixed most of the mess in the comments. Again my deepest apologies. I never anticipated the mod to break the game that badly.

 

Players, which stand around for 30 seconds, go "AFK". They have full saturation and get the "invulnerable" status. As soon as the player moves (or uses mouse buttons) they will leave the AFK status.

 

You can set the AFK annoucement to be server wide or only you.

 

You can type /afk to set you AFK manually (disabled on default, but can be enabled in config)

 

  • The 30 Seconds are configurable in a config json. (set "MaxTimeOut" to the desired time in seconds)
  • to make the announcement server wide change the "SendMessageTo" to anything else but "self"
  • to enable the AFK command set "EnableAfkCommand" to true

 

I made this mod, because I'm standing around AFK while I work on my other Mods and die of hunger. (I can't got into creative mode for reasons)

 

outstanding known bugs:

  • if you don't move while chopping wood you might go AFK. (IDK, how that can happen I literally use the ingame mechanic)
  • using a boat can still make you AFK -> I might turn this into a config parameter actually
  • when you log out being AFK your saturation bar is full, when you log back in.

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v0.9.5 601 Mar 16th at 6:15 PM Show AnAFKStory-v0.9.5-1.20.0.zip 1-click install
v0.9.4 124 Feb 23rd at 10:08 PM Show AnAFKStory-v0.9.4-1.20.0.zip 1-click install
v0.9.3 2417 Dec 14th 2024 at 7:57 PM Show AnAFKStory-v0.9.3-1.19.0.zip 1-click install
v0.9.2 Dec 8th 2024 at 1:29 PM Show 1-click install
v0.9.5-rc.1 20 Mar 16th at 6:16 PM Show AnAFKStory-v0.9.5-rc.1-1.19.0.zip 1-click install
v0.9.4-rc.1 22 Feb 23rd at 10:16 PM Show AnAFKStory-v0.9.4-rc.1-1.19.0.zip 1-click install
v0.9.0 Nov 28th 2024 at 7:43 PM Show 1-click install

22 Comments (oldest first | newest first)

💬 Syd , Mar 16th at 6:17 PM

I finally had the same bug as everyone. IDK, why I haven't encountered it. It should be fixed now. i continue to play on my own server to see if I run into other issues.

💬 ThomasJefferson, Mar 9th at 5:55 PM

Same issues as below. I had no problem with the previous version AND it worked in 1.20.x
However, the link to the old file is broken, so I can't even revert 🤦‍♂️

💬 GaymerMike, Feb 24th at 12:58 AM

this update is causing an issue for me on my server that my hunger is drained to 0 and eating wont help get it higher. so im dying slowly

💬 SalazarWindriver, Jan 31st at 12:58 AM

It seems to not work fully in 1.20 as intended.  It sets hunger to 0 but can still be attacked and die by drifters.

💬 YourLocalMedic, Jan 21st at 11:53 PM

I'm having an issue where being in a boat and rowing still counts as being AFK because you legally aren't moving

💬 ManaWei, Jan 20th at 11:19 AM

Game says it's asking for version 1.19.0.. 

💬 Desolae, Jan 17th at 7:09 AM

Mod seems to be not working in one of my worlds. Singleplayer world, it works fine. But in the world I used to open to LAN/internet, it doesn't work - even if I don't currently open it to LAN/internet. I see the afk message, my hunger rate goes to 0 in the character panel, but my satiety keeps dropping. Once I'm starving, I keep taking damage from starving too.

EDIT: This is in 1.19.8

💬 Syd , Jan 14th at 6:00 PM

MimiKitty invulnerable makes drifter and other monsters not able to hurt you. it is an internal status that is already in the game and might do much more.

yes you are able to look around. you are no longer AFK, when the character moves or interacts so left or right button click. So yes chatting and looking around should work intentionally (that is why I made the mod)

- I can add a way to disable the message no problem.

- I can make them vulnerable as per config. yes

💬 MimiKitty, Dec 30th 2024 at 11:13 PM

what does "invulnerable" do? can we totally disable the chat messages? can players look around without going afk? pretty much I would want it so once afk a player no longer loses hunger but can still chat and look around. mainly as a way to let players be on a server and "hang out" without being punished for not being active while playing. I still want them to be attackable/damagable and look around/chat!

💬 Syd , Dec 14th 2024 at 7:30 PM

okay I'm very sorry this didn't come up while testing. I removed all old versions of the mod, because that is unplayable and uploaded a version with a fix hopefully.

 

I also saw, that I have to unset AFK, whe you are crafting or building as that tend to set you AFK as well.

💬 Dubble, Dec 12th 2024 at 2:14 PM

Syd We are also having the same issue. We are getting stuck at 0% hungerrate due to seemingly the same reason Noa3 mentions.

💬 Noa3, Dec 12th 2024 at 3:53 AM

Hi, i put this mod on my server and AFK starts right after connecting on the server and the status doesnt get lost if moved around or even removed again from the server. Players are now stuck to 0% Hungerrate

💬 DejFidOFF, Dec 11th 2024 at 7:58 PM

Syd

Not working. player goes AFK right after connect to server and satiety did not go down..
config:

{
  "MaxTimeOut": 120,
  "SendMessageTo": "chat",
  "EnableAfkCommand": "false"
}
💬 Syd , Dec 11th 2024 at 7:07 PM

JosephOcala try to add it back in and walk around, it will try to reset itself, but looks like I have to add in a more solid reset.

💬 JosephOcala, Dec 11th 2024 at 12:31 PM

Not sure what happened but it has permanently set my hunger rate at 0, even after I removed it from my mod folder I'm still stuck at 0

💬 DejFidOFF, Dec 8th 2024 at 3:48 PM

Syd

Great! I will be testing that. Will be nice to add a kick system (configurable) so players can´t be AFK for eternity on the server

 

💬 Syd , Dec 8th 2024 at 1:48 PM

DejFidOFF I added it in. It is disabled on default, but can be enabled through server settings.

💬 Syd , Dec 8th 2024 at 12:30 PM

rayray good to know, thanks

💬 rayray, Dec 2nd 2024 at 10:01 PM

this works on 1.20 unstable as is 

💬 rayray, Dec 2nd 2024 at 10:00 PM
💬 Aricus, Dec 1st 2024 at 4:21 AM

Oh this looks amazing! I'm playing on 1.20 pre though, I can't wait until this is updated

💬 DejFidOFF, Nov 28th 2024 at 8:08 PM

Syd

Hey o/ Good job. I am looking for something like this a long ago. But will be possible implemented a msg to chat? Something like in MC? "Player XY is AFK" which everyone can see.

 (edit comment delete)