InGameTime-Timer does not work
InGameTime-Timer does not workNot An Issue
Same here, was just about to post this. For Rust
Same here :)
In game timer seems to send commands, but not at the chosen moment.
In response to Covfefe ():Has anyone been able to get this to work yet? I think I've only seen it work once.
FacePunch Changed the "Plugin.covalence.Server.Time.ToShortTimeString()" from "19:00:00" to "19:00".
So all you need to do ist shorten your time values in the config.json
So all you need to do ist shorten your time values in the config.json
"InGameTime-Timer": {
"07:01": "halloween.scarecrowpopulation 0",
"07:02": "del assets/prefabs/npc/scarecrow/scarecrow.prefab",
"07:03": "halloween.murdererpopulation 25",
"19:01": "halloween.murdererpopulation 0",
"19:02": "del assets/prefabs/npc/murderer/murderer.prefab",
"19:03": "halloween.scarecrowpopulation 25"
},
Somehow the plugin only executes 1 instead of all commands for the same time.
Just seperate them 1minute. :)
In response to Wulf ():Those methods aren't provided by Facepunch.
Ok.
The string-formatting was still wrong.
I noticed today, that there is even a difference in this plugin for formatting the "InGameTime-Timer" and the "RealTime-Timer"
You need to format the "InGameTime-Timer" (Plugin.covalence.Server.Time.ToShortTimeString()) like "19:00"
The string-formatting was still wrong.
I noticed today, that there is even a difference in this plugin for formatting the "InGameTime-Timer" and the "RealTime-Timer"
You need to format the "InGameTime-Timer" (Plugin.covalence.Server.Time.ToShortTimeString()) like "19:00"
"InGameTime-Timer": {
"07:01": "halloween.scarecrowpopulation 0",
"07:02": "del assets/prefabs/npc/scarecrow/scarecrow.prefab",
"07:03": "halloween.murdererpopulation 25",
"19:01": "halloween.murdererpopulation 0",
"19:02": "del assets/prefabs/npc/murderer/murderer.prefab",
"19:03": "halloween.scarecrowpopulation 25"
},
But the "RealTime-Timer" must be the long version "19:00:00" (System.DateTime.Now.ToString("HH:mm:ss") this is a c# datetime format)
"RealTime-Timer": {
"04:00:00": "del assets/content/vehicles/minicopter/minicopter.entity.prefab"
}, I noticed a quirk in the code. For Rust the interval is 4.5f (line 58) which means the timer may not fire on the exact moment specified. I was able to hack a work around (comparing the time =/+ the interval to the event time. There is a rare chance of a double execution due to the time range, so you might want it slightly less than the interval.
I can't get real-time or in-game timers to work at all
How it is handled by the plugin for InGame-Timer:

The plugin matches using this pattern: : "h:mm tt"
Ex. 11pm would be "11:00 PM"
RealTime-Timer is 00:00:00
It's 24-hour format and the plugin expects the pattern: HH:mm:ss

HH = 24 hour format in C#
Ex. 11pm would be "23:00:00"
So the formatting isn't consistent at the moment...
RealTime-Timer is 00:00:00
It's 24-hour format and the plugin expects the pattern: HH:mm:ss

HH = 24 hour format in C#
Ex. 11pm would be "23:00:00"
So the formatting isn't consistent at the moment...
Locked automatically