Jump to content

1 Screenshot

This area is for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



MelodyZE

Posted

Whoa! =D
this is a cool little feature!! this is perfection for like a 12 days of xmas event thingy

is there a way to make it so you can give them skinned items?!

  • Love 1
ThePitereq

Posted

35 minutes ago, MelodyZE said:

Whoa! =D
this is a cool little feature!! this is perfection for like a 12 days of xmas event thingy

is there a way to make it so you can give them skinned items?!

The problem is that basic Rust calendar works on ItemDefinions which doesnt contains data about skin.
I am not sure if there is any hook for redeeming reward on calendar now (even if there is) it would require full custom reward system. And it is not worth of making it for few days of work ^^

Oldman

Posted

Nice idea but how do you get it to work? Not seeing anything after I have added it to the server.

 

ThePitereq

Posted

6 minutes ago, Oldman said:

Nice idea but how do you get it to work? Not seeing anything after I have added it to the server.

 

Basic config contains basic RUST values. You need to change anything to make it work. When player redeem reward from advent calendar he gets the custom one from the config.

Flammable

Posted

Plugin sounds good... I will wait till Xmas is over and will use it for after that to make it full time item on my server with more good rewards. Whole item logic is good and I like how fp added it to be vanilla feature...

I guess the irl counter is handled by the game itself... Every players can redeem reward from 1 advent calendar just depends from which day they used to play will give proper rewards for them?

ThePitereq

Posted

1 minute ago, Flammable said:

Plugin sounds good... I will wait till Xmas is over and will use it for after that to make it full time item on my server with more good rewards. Whole item logic is good and I like how fp added it to be vanilla feature...

I guess the irl counter is handled by the game itself... Every players can redeem reward from 1 advent calendar just depends from which day they used to play will give proper rewards for them?

Every player can redeem 1 reward from every day.
For now i am not sure if plugin will work after 25th because there is limit in calendar by default, but i can add option in config for customization.

Flammable

Posted

I hope after xmas they can just use it to redeem reward each wipe... I will make it craftable and they will place it and use it like every day calendar. I hope it's not hard locked around the dates 16-25

or even month December only... I do not need more than 10 days

Just need to be sure will works on every date/day to redeem daily reward.

ThePitereq

Posted

1 hour ago, Flammable said:

I hope after xmas they can just use it to redeem reward each wipe... I will make it craftable and they will place it and use it like every day calendar. I hope it's not hard locked around the dates 16-25

or even month December only... I do not need more than 10 days

Just need to be sure will works on every date/day to redeem daily reward.

No, it is not hard-coded. I can try to pull request to oxide repository for adding hook for this calendar so it will be possible to support skins and much more.

beetle

Posted

Hi, I was really looking forward to waiting for such a plugin to come out. Thanks for the quick release!

As a request, I'd like to have a luck system, so

{
  "Day Rewards": {
    "0": [
      {
        "Shortname": "shotgun.pump",
        "Amount": 1
      },

or
      {
        "Shortname": "ammo.shotgun.fire",
        "Amount": 10
      }
    ],

Is it possible to do something like I'm more excited about this one.

ThePitereq

Posted

13 minutes ago, beetle said:

Hi, I was really looking forward to waiting for such a plugin to come out. Thanks for the quick release!

As a request, I'd like to have a luck system, so

{
  "Day Rewards": {
    "0": [
      {
        "Shortname": "shotgun.pump",
        "Amount": 1
      },

or
      {
        "Shortname": "ammo.shotgun.fire",
        "Amount": 10
      }
    ],

Is it possible to do something like I'm more excited about this one.

The luck system cannot be made for each opening right now. For now i can make that it rolls random number between X and Y and changes it every X seconds for each player in server. I can not make random roll on opening.

  • Love 1
Flammable

Posted

2 hours ago, ThePitereq said:

No, it is not hard-coded. I can try to pull request to oxide repository for adding hook for this calendar so it will be possible to support skins and much more.

Great I just want to be usable after xmas but to have same rewards like now without X and Y and bla bla to pick random... If can be toggable from config about random rewards will be ok... Also yep skinned items can be good, this will support custom items based on skinID

beetle

Posted

2 hours ago, ThePitereq said:

The luck system cannot be made for each opening right now. For now i can make that it rolls random number between X and Y and changes it every X seconds for each player in server. I can not make random roll on opening.

Thank you for your reply. Well, as long as all players don't receive the same reward for now, I don't care how. I'll keep my fingers crossed!

Flammable

Posted

What gonna happen after tomorrow? Is there any way to reset timer or what? There's no reward for 26th... I do not want to have 100000 rewards for 10000 days... Facepunch decided to do 10 days advent calendar item and whole background logistics how this works are great. Just want to start from day 0 or wipe the data somehow and let players get rewards every wipe with this item.

ThePitereq

Posted

59 minutes ago, Flammable said:

What gonna happen after tomorrow? Is there any way to reset timer or what? There's no reward for 26th... I do not want to have 100000 rewards for 10000 days... Facepunch decided to do 10 days advent calendar item and whole background logistics how this works are great. Just want to start from day 0 or wipe the data somehow and let players get rewards every wipe with this item.

I can make full-month callendar, but not right now. Its christmas time and i don't have enough time to make that right now.

Flammable

Posted

2 hours ago, ThePitereq said:

I can make full-month callendar, but not right now. Its christmas time and i don't have enough time to make that right now.

Thanks, and do not worry... It's Christmas and for sure you have to spend more time with family, friends or do whatever else, not writing plugins... 
Just after the holidays if you have time and can modify the calendar at least to reset back at the beginning of day 1 would be great. I run for example bi-weekly wipe schedule server and the vanilla prizes for 10 days fit perfectly in my case (no need to have extra days and complex stuff) or if you write it to be full month I will not auto wipe the days data with map wipes and let players collect rewards whole month. I am just worried in overall because smell how Facepunch added this for the Xmas update planned to be from 16th to 25th and won't work at all anymore without plugin to modify the behavior of the calendar...

ThePitereq

Posted

On 12/26/2021 at 12:14 AM, Flammable said:

Thanks, and do not worry... It's Christmas and for sure you have to spend more time with family, friends or do whatever else, not writing plugins... 
Just after the holidays if you have time and can modify the calendar at least to reset back at the beginning of day 1 would be great. I run for example bi-weekly wipe schedule server and the vanilla prizes for 10 days fit perfectly in my case (no need to have extra days and complex stuff) or if you write it to be full month I will not auto wipe the days data with map wipes and let players collect rewards whole month. I am just worried in overall because smell how Facepunch added this for the Xmas update planned to be from 16th to 25th and won't work at all anymore without plugin to modify the behavior of the calendar...

Hey! The full-month support update is out! ^^

Flammable

Posted

8 hours ago, ThePitereq said:

Hey! The full-month support update is out! ^^

Thanks! How this gonna work now? I set 10 rewards (for each of the days from 0 to 9) and enable full month. Then what players will get each day? From 0 to 9th reward then again back from 0 to 9th reward then again from 0 to 9th? I am fine with 10 rewards just wan to know what to expect when last one is claimed... Just reset? Also is there any chance to start the month with the wipe or start from the beginning each wipe (aka reset player data on map wipe) or that's something hard and weird to be implemented? Just FP wipe 1st Thursday which is not exact date...

ThePitereq

Posted

5 hours ago, Flammable said:

Thanks! How this gonna work now? I set 10 rewards (for each of the days from 0 to 9) and enable full month. Then what players will get each day? From 0 to 9th reward then again back from 0 to 9th reward then again from 0 to 9th? I am fine with 10 rewards just wan to know what to expect when last one is claimed... Just reset? Also is there any chance to start the month with the wipe or start from the beginning each wipe (aka reset player data on map wipe) or that's something hard and weird to be implemented? Just FP wipe 1st Thursday which is not exact date...

You must set reward for each day. If you set start day to 1, you need to setup 0-30 values, for each day of month. They doesnt loop though whole month.

For now it is impossible to set rewards for wipes because calendar doesnt have any hook and works on internal RUST database, not plugin one. This is the only way how it can be made right now.

Flammable

Posted (edited)

I do not care what's happening visually at all but wonder about the following thing. While played in vanilla official yesterday noticed how advent calendar looks after 25th. There are X on all dates.  Wonder if this is gonna be same and stay until next Xmas or via this plugin will at least show 16-25 without X during the month till 26th then last week or so full X then again reset visually without X on 1st?

Edited by Flammable
Covfefe

Posted

What is roll frequency? I only want players to be able to redeem once per day

ThePitereq

Posted (edited)

21 hours ago, Covfefe said:

What is roll frequency? I only want players to be able to redeem once per day

Player can redeem only once per day. Roll is how often all advent callendarsroll their amounts.

Edited by ThePitereq
jaybee3

Posted

How do we set order of days? is it just the order in the rewards list? or is it a random roll on anything in the rewards list each time they open?

ThePitereq

Posted

On 12/10/2023 at 9:43 AM, jaybee3 said:

How do we set order of days? is it just the order in the rewards list? or is it a random roll on anything in the rewards list each time they open?

As i remember it counts days from the first reward, so first is 1st day, second is 2nd etc.

beetle

Posted

Failed to call hook 'OnAdventGiftAward' on plugin 'CustomAdventCalendar v2.0.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.CustomAdventCalendar.RewardPlayer (BasePlayer player, System.Int32 dayReward, System.Int32 timesUsed, System.Int32 maxDaily) [0x000d1] in <844f9cecaba149ba910350dec4cd3d42>:0 at Oxide.Plugins.CustomAdventCalendar.OnAdventGiftAward (AdventCalendar calendar, BasePlayer player) [0x004f0] in <844f9cecaba149ba910350dec4cd3d42>:0 at Oxide.Plugins.CustomAdventCalendar.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00090] in <844f9cecaba149ba910350dec4cd3d42>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

I received nothing.

ThePitereq

Posted

15 hours ago, beetle said:
Failed to call hook 'OnAdventGiftAward' on plugin 'CustomAdventCalendar v2.0.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.CustomAdventCalendar.RewardPlayer (BasePlayer player, System.Int32 dayReward, System.Int32 timesUsed, System.Int32 maxDaily) [0x000d1] in <844f9cecaba149ba910350dec4cd3d42>:0 at Oxide.Plugins.CustomAdventCalendar.OnAdventGiftAward (AdventCalendar calendar, BasePlayer player) [0x004f0] in <844f9cecaba149ba910350dec4cd3d42>:0 at Oxide.Plugins.CustomAdventCalendar.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00090] in <844f9cecaba149ba910350dec4cd3d42>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

I received nothing.

send your config please

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 3
  • Love 1

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.5k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.