Mods / FendragonPlayerTimeReward

Tags:
Utility Other
Author:
UA_Shaman
Side:
Both
Created:
Jan 8th at 2:34 PM
Last modified:
Sep 27th at 9:48 AM
Downloads:
1409
Recommended download (for Vintage Story 1.22.0 - 1.22.7):
FendragonPlayerTimeReward-v.0.0.7.zip  1-click install

WIP (Work In Progress)

 
 

[DonatikIO]

Fendragon Player Time Reward (FPTR)


-ENG-
Is a server–client mod for Vintage Story that rewards players for time spent playing on the server.
The mod tracks playtime per day, grants configurable rewards, and have visual + audio feedback when a reward is received.

Fixes, edits, development and testing are done specifically for/on the server:
Fendragon Story Tale

[Discord]


-ENG-

🔹 What the mod does 🧐

  • Tracks real online time per player (only while the player is online)

  • Uses Kyiv time (Europe/Kyiv) to separate playtime by days

  • Grants configurable rewards at specific minute thresholds (e.g. 60, 120, 180 minutes)

  • Each reward is given only once per player per day

  • Automatically creates daily save files and archives previous days

  • Fully safe for restarts and server crashes

🔹 Server features 💽

  • Server-only configuration (players cannot modify it)

  • Configurable:

    • reward intervals and items

    • save/check intervals

    • Kyiv time source (local or internet time)

  • Admin commands:

    • /fptr timeplayer <name> – view another player’s playtime

    • /fptrconfigserverrebuid – rebuild/update server config without restart

🔹 Client features 🤗

  • Client-side reward feedback (fully optional and configurable):

    • on/off reward sound

    • on/off reward image

    • configurable location for image

  • Each player has their own client config

  • Client commands:

    • /fptrsoundtest – test reward sound

    • /fptrimagetest – test reward image

    • /fptrconfigclientrebuid – rebuild client config

🔹 Commands 📝

  • /fptr time – show your playtime for the current Kyiv day

  • /fptr timeplayer <name> – admin only

  • Client test and config commands (see above)

🔹 Data storage 📚

  • Daily files stored in:
    /Saves/FendragonPTR/

  • Current day and archived day files are handled automatically

  • The config files are located at:
    /ModConfig/Fendragon/

🔹 Compatibility 🔌

  • Server-side safe

  • Multiplayer friendly

  • Does not modify gameplay mechanics


-UA-

Це серверно-клієнтський мод для Vintage Story, який видає нагороди гравцям за проведений час на сервері.
Мод відстежує ігровий час за день, автоматично видає нагороди та має візуальні й звукові сповіщення.

Виправлення, редагування, розробка та тестування виконуються спеціально для/на сервері:
Fendragon Story Tale
[Discord]


-UA-

🔹 Що робить мод 🧐

  • Відстежує реальний онлайн-час гравця (лише коли гравець онлайн)

  • Працює по днях за київським часом (Europe/Kyiv)

  • Видає налаштовані нагороди за досягнення порогів у хвилинах (60, 120, 180 тощо)

  • Кожна нагорода видається лише один раз на гравця за день

  • Автоматично створює щоденні файли та архівує попередні

  • Безпечно працює при рестартах сервера

🔹 Серверні можливості 💽

  • Окремий серверний конфіг (гравці не мають до нього доступу)

  • Налаштовується:

    • нагороди та пороги часу

    • інтервали збереження і перевірки

    • джерело київського часу (локальний або інтернет-час)

  • Команди адміністратора:

    • /fptr timeplayer <name> – перегляд часу іншого гравця

    • /fptrconfigserverrebuid – оновлення серверного конфігу без перезапуску

🔹 Клієнтські можливості 🤗

  • Клієнтський візуальний та звуковий фідбек нагород:

    • вкл/викл звук нагороди

    • вкл/викл відображення малюнка про нагороду

    • налаштовується розташування малюнка

  • Кожен гравець має власний клієнтський конфіг

  • Клієнтські команди:

    • /fptrsoundtest – тест звуку

    • /fptrimagetest  – тест малюнку

    • /fptrconfigclientrebuid – оновлення клієнтського конфігу

🔹 Команди 📝

  • /fptr time – показати свій ігровий час за поточний київський день

  • /fptr timeplayer <name> – лише для адміністраторів

  • Клієнтські тестові та конфіг-команди (див. вище)

🔹 Зберігання даних 📚

  • Файли зберігаються у:
    /Saves/FendragonPTR/

  • Поточний день та архіви обробляються автоматично

  • Файли конфігів знаходяться:
    /ModConfig/Fendragon/

🔹 Сумісність 🔌

  • Безпечний для серверів

  • Повністю мультиплеєрний

  • Не змінює ігрову механіку

  • Працює в одиночній грі та на виділених серверах


I apologize for possible long updates or developments, I live in Ukraine 💛💙.

I hope you understand that there may be delays with updates and why. Thank you.

Прошу вибачення за можливі довгі оновлення та розробку, я живу в Україні 💛💙.
Сподіваюся, ви розумієте, що можуть бути затримки з оновленнями та чому саме. Дякую.

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
0.0.7 fendragonptr
1.22.0 - 1.22.7
14 Sep 27th at 9:48 AM FendragonPlayerTimeReward-v.0.0.7.zip 1-click install

-UA-
▪️ Додано підтримку Discord-команди /announce при використанні моду Th3Essentials.
▪️ Оголошення показується по центру екрана з текстом та анімованим дзвіночком.
▪️ Додано окремий звук анонсу/дзвіночка.
▪️ Через серверний конфіг налаштовуються розмір тексту, час показу, швидкість анімації, звук і його гучність.

-ENG-
▪️ Added support for the Discord command /announce when using the Th3Essentials mod.
▪️ The announcement appears in the center of the screen, displaying text and an animated bell icon.
▪️ Added a dedicated announcement/bell sound.
▪️ Text size, display duration, animation speed, sound, and volume can be configured via the server config.

5888

0.0.6 fendragonptr
1.22.0 - 1.22.7
951 May 4th at 3:57 PM FendragonPTR-v.0.0.6.zip 1-click install

Little fix

0.0.5 fendragonptr
1.22.0 - 1.22.2
37 Apr 26th at 8:00 AM FendragonPTR-v0.0.5.zip 1-click install

- UA -
🤩 Мод адаптовано під нову версію гри - 1.22 🎉

- ENG -
🤩 The mod has been adapted for the new version of the game - 1.22 🎉

0.0.4 fendragonptr
1.21.2 - 1.21.5
273 Jan 17th at 11:50 AM FendragonPTR-v.0.0.4.zip 1-click install

-UA-
❌ Видалено мигання по краю екрану при отриманні нагороди
✅ Додано появу картинки по центру екрану коли отримуєте нагороду
✅ Додано можливість виставляти позицію малюнку при отриманні нагороди або повністю виключити її в конфіг файлі
✅ Додана можливість регулювати й встановлювати свій звук, через конфіг, коли отримуєте нагороду
✅ Додано додаткову синхронізацію серверу з гравцем
♻️ Змінено колір тексту в чаті при отриманні нагороди
♻️ Оптимізація коду в моді
♻️ Змінено розположення конфігів, їх можна знайти за шляхом ModConfig/Fendragon/

-ENG-
❌ Removed blinking on the edge of the screen when receiving an award
✅ Added the appearance of a picture in the center of the screen when receiving an award
✅ Added the ability to set the position of the picture when receiving an award or completely exclude it in the config file
✅ Added the ability to adjust and set your sound, through the config, when receiving an award
✅ Added additional synchronization of the server with the player
♻️ Changed the color of the text in the chat when receiving an award
♻️ Optimization of the code in the mod
♻️ Changed the location of the configs, they can be found at the path ModConfig/Fendragon/

reward osnova

0.0.3 fendragonptr
1.21.2 - 1.21.5
47 Jan 13th at 7:55 PM FendragonPTR-v.0.0.3.zip 1-click install

-UA-
♻️Виправлена функція "видачі" предмету в нагороду.
♻️Виправлено дублювання предмету в лівому кутньому слоті рюкзака (при отриманні нагороди він дублювався)
✅Додана функція, якщо у вас немає вільного місця то предмет випадає на землю.
✅Додано функцію для адміністраторів - пропис в server-main.log предметів й гравців про отримання нагороди.

-ENG-
♻️Fixed the function of "giving" an item as a reward.
♻️Fixed the duplication of an item in the left corner slot of the backpack (when receiving the reward, it was duplicated)
✅Added a function, if you have no free space, the item falls to the ground.
✅Added a function for administrators - a record in the server-main.log of items and players about receiving a reward.

0.0.2 fendragonptr
1.21.2 - 1.21.5
42 Jan 13th at 6:36 PM FendragonPTR-v.0.0.2.zip 1-click install

-UA-
📝Невеликий фікс конфігів
Примітка: Мод в розробці, не забувайте про це! Ви все робите на свій страх і ризик! Я не відповідальний за наслідки!


-ENG-

📝Small config fix
Note: The mod is in development, don't forget about it! You do everything at your own risk! I am not responsible for the consequences!

0.0.1 fendragonptr
1.21.2 - 1.21.5
45 Jan 8th at 2:39 PM FendragonPTR-v.0.0.1.zip 1-click install

-ENG-
Release version of the mod
(Work In Progress - WIP)

-UA-
Релізна версія моду (В процесі розробки - WIP)

Disclaimer

By downloading a mod you consent to our Terms of Use.

We tell you this specifically because we want to make sure you are aware that we cannot validate every mod, and you are responsible for any damages you might incur by installing or loading mods.

This prompt will not be shown to you again (for the current browser session) if you proceed.


11 Comments (oldest first | newest first) (threaded | flat)

Endercake, Sep 27th at 11:14 AM

Could I lk interest you in exchanging the horrible AI generated thumbnail and banner stuff for pictures of the actual mod or some art? It really condemns a rather interesting mod to Mediocrity, and I'd be super down to help you with it

UA_Shaman , Sep 30th at 4:29 PM
@Endercake: Could I lk interest you in exchanging the horrible AI generated thumbnail and banner stuff for pictures of the actual mod or some art? It really condemns a rather interesting mod to Mediocrity, and I'd be super down to help you with it

Do you want to create artwork for the mod? You are more than welcome to do so, provided the result is genuinely better than what AI generates.
I don't have much time, so I don't prioritize artwork; I handle it quickly and only when I have spare time away from coding and development.

Aekiel, Jun 19th at 11:32 PM (modified Jun 19th at 11:33 PM)

Hey there, pretty interesting mod.

UA_Shaman

However, strangely, the rewards aren't working as expected: I should be earning 20 gears every hour.

But I only get 1 gear the first hour, and then nothing at all in the following hours. I get the animation and sound, but 0 gears.

Any ideas?

Aekiel, Jun 23rd at 5:16 PM
@UA_Shaman: Show you config file pls
Spoiler

{
"Help": [
"=== FendragonPlayerTimeReward: Commands ===",
"Player: /fptr time - show play hour, /fptrconfigclientrebuid - rebuild Player config",
"Admin: /fptr timeplayer <playername> - see Player time, /fptrconfigserverrebuid - rebuild Server config",
"Test: /fptrsoundtest - sound test, /fptrimagetest - image test",
"Image textures are hardcoded in mod (reward.png, reward-1.png, reward-2.png, reward-3.png).",
"RewardImageDurationMs controls TOTAL duration for whole block of 4 images.",
"Reveal timing is AUTO: interval = (RewardImageDurationMs/1000)/4. For 1s steps set RewardImageDurationMs=4000.",
"Admins control: rewards, image duration/on-off, sound asset/volume/on-off.",
"Players control: image X/Y + size locally (moves whole 4-layer block).",
"=========================================="
],
"SaveIntervalMinutes": 1,
"RewardCheckIntervalSeconds": 30,
"UseInternetKyivTime": true,
"InternetTimeApiUrl": "https://worldtimeapi.org/api/timezone/Europe/Kyiv",
"InternetTimeSyncMinutes": 360,
"Rewards": [
{
"MinutesRequired": 60,
"ItemCode": "game:gear-rusty",
"Quantity": 20}
],
"RewardImageEnabled": true,
"RewardImageDurationMs": 4000,
"RewardSoundEnabled": true,
"RewardSoundAsset": "fendragonptr:sounds/reward",
"RewardSoundVolume": 1.0
}

UA_Shaman , Jun 23rd at 6:26 PM (modified Jun 23rd at 6:27 PM)
@Aekiel: Spoiler {"Help": ["=== FendragonPlayerTimeReward: Commands ===","Player: /fptr time - show play hour, /fptrconfigclientrebuid - rebuild Player config","Admin: /fptr timeplayer <playername> - see Player time, /fptrconfigserverrebuid - rebuild Server config

Aekiel
From the config I see that you have only one reward set, when 60 minutes pass you will receive 20 rusty gears. And that's it!.
If you want to have a reward every hour, then you need to write something like this:

Spoiler!
{
"MinutesRequired": 60,
"ItemCode": "game:gear-rusty",
"Quantity": 20
},
{
"MinutesRequired": 120,
"ItemCode": "game:gear-rusty",
"Quantity": 20
},
{
"MinutesRequired": 180,
"ItemCode": "game:gear-rusty",
"Quantity": 20
},
etc....



In this case, you will receive 20 rusty gears every hour. You need to register every hour until the day is reset. Then everything will be new.

TheeButterMan, Apr 19th at 1:30 PM

UA_Shaman I Have what I think should have worked but I am still not able to get these. I can use "coinage:coin-uranium-sm" just fine, it's when trying to add the pressed coin with the type and shape!

TheeButterMan, Apr 17th at 2:20 PM (modified Apr 17th at 8:19 PM)

UA_Shaman Thank you I am still trying to figure out how this mod works. Is there any restrictions on to what this mod can work with or giveitem? and can you do a combo of rewards and how would that format look like in the config? One of the things we are trying to do with this mod is hand out a coin from coinage and the giveitem command is coinage:coin-uranium-sm{"coinType": 2, "coinShape": 2} but when I add it to the mod it will simply not do anything for that one! Once again I am sorry but I feel like I have tried everything at this point!


I am now trying it with : coinage:coin-uranium-sm{coinType: 2, coinShape: 2} intstead

TheeButterMan, Apr 11th at 7:42 PM

Sorry for the late response as I leave my server open for players and and dont have much time to bring it down to edit and config. But I did go in and delete the cache for fendragon ftp and didnt make any changes, however as I am typing this I realize I missed the Save part So I am giving that a try next chance!

UA_Shaman , Apr 6th at 7:00 AM

TheeButterMan
Try deleting the Cache deck and the Save/FendragonPTR deck. And test again.

TheeButterMan, Apr 6th at 5:20 AM (modified Apr 6th at 5:21 AM)

Hello I am new to your mod as we have only been using it for about a week or so on our Community server. while we were getting things figured out I had left the config to default configuration until I knew what I was going to do with the rewards and what not. I went in the config and trippled the reward values so setting the interval to 240 and the quantity to 3, We rebooted the server and players tested this and got the reward as planned but they also seem to still be getting the original reward at the 1 hour mark making it 4 gears in total. Is there some file that is being save that needs to be removed or updated so that this doesn't happen again and that the only get the one specified reward.

here is the current config that we are using : 

Spoiler
{
"Help": [
"=== FendragonPlayerTimeReward: Commands ===",
"Player: /fptr time - show play hour, /fptrconfigclientrebuid - rebuild Player config",
"Admin: /fptr timeplayer - see Player time, /fptrconfigserverrebuid - rebuild Server config",
"Test: /fptrsoundtest - sound test, /fptrimagetest - image test",
"Image textures are hardcoded in mod (reward.png, reward-1.png, reward-2.png, reward-3.png).",
"RewardImageDurationMs controls TOTAL duration for whole block of 4 images.",
"Reveal timing is AUTO: interval = (RewardImageDurationMs/1000)/4. For 1s steps set RewardImageDurationMs=4000.",
"Admins control: rewards, image duration/on-off, sound asset/volume/on-off.",
"Players control: image X/Y + size locally (moves whole 4-layer block).",
"=========================================="
],
"SaveIntervalMinutes": 1,
"RewardCheckIntervalSeconds": 30,
"UseInternetKyivTime": true,

"InternetTimeApiUrl": "https://worldtimeapi.org/api/timezone/Europe/Kyiv",


"InternetTimeSyncMinutes": 360,
"Rewards": [
{
"MinutesRequired": 240,
"ItemCode": "game:gear-rusty",
"Quantity": 3
}
],
"RewardImageEnabled": true,
"RewardImageDurationMs": 4000,
"RewardSoundEnabled": true,
"RewardSoundAsset": "fendragonptr:sounds/reward",
"RewardSoundVolume": 1.0
}