Jump to content
vbawol

What is an Epoch Event?

Recommended Posts

This system can be used to execVM a script on a specific Year,Month,Day,Hour,Minute or ANY.

 

Example Events config in init.sqf:

 EpochEvents = [["any","any","any","any",0,"hello_word"],["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"]];

This will fire the hello_word.sqf and crash_spawner.sqf found inside the dayz_server.pbo "modules" folder at the top of the hour and crash_spawner.sqf again on 30.

Share this post


Link to post
Share on other sites

so if we want a script to run every day at 20:00 we'll do something like this ?

 

 

 EpochEvents = [["any","any","any","20",0,"custom_script"],["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"]];

 

And how is the Year,Month,Day set ?

Full year ? like 2013

Month 1-12

Day 1-7  (Which one is 1 ? sunday or Monday ?)

Share this post


Link to post
Share on other sites

 

This system can be used to execVM a script on a specific Year,Month,Day,Hour,Minute or ANY.

 

Example Events config in init.sqf:

 EpochEvents = [["any","any","any","any",0,"hello_word"],["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"]];

This will fire the hello_word.sqf and crash_spawner.sqf found inside the dayz_server.pbo "modules" folder at the top of the hour and crash_spawner.sqf again on 30.

 

 

I don't have a "modules" folder in my dayz_server.pbo. I only have compile, init and system. My files such as init.sqf and mission.sqm, etc go into a seperate folder on my server, not into my pbo. Do I put the event sqf into the folder with those files?

Share this post


Link to post
Share on other sites

I don't have a "modules" folder in my dayz_server.pbo. I only have compile, init and system. My files such as init.sqf and mission.sqm, etc go into a seperate folder on my server, not into my pbo. Do I put the event sqf into the folder with those files?

If you do not have have a modules folder then your not using our server pbo, maybe your using a modified version from a host?

Share this post


Link to post
Share on other sites

when using the [Year,Month,Day,Hour,Minute,"blah];

 

what is the time relative to?  Real world time?  Server time?  Game time?

 

ie.  I'm running a Dayz.st server and have full moon nights enabled which has the setDate [year, month, day, hour, minute] already run.  Not to mention I am running on GMT -12 but live in GMT-5.

Share this post


Link to post
Share on other sites

Can someone please make a turtorial or list steps to get the missions on my server. I have been looking all over and this is the closest I've gotten but still no one actually says how I can install or add the scripts to get the Epoch Events on your own server. 

Share this post


Link to post
Share on other sites

I am having a small problem with the time the events start. For example:

EpochEvents = [
["any","any","any","any",0,"crash_spawner"],
["any","any","any","any",15,"supply_drop"],
["any","any","any","any",20,"supply_drop"],
["any","any","any","any",30,"crash_spawner"],
["any","any","any","00",00,"Military"],
["any","any","any","00",30,"Supplyitems"],
["any","any","any","01",00,"sidemissions"],
["any","any","any","02",40,"Treasure"],
["any","any","any","03",50,"Military"],
["any","any","any","04",40,"Construction"],
["any","any","any","06",30,"Supplyitems"],
["any","any","any","07",30,"sidemissions"],
["any","any","any","08",20,"Military"],
["any","any","any","10",38,"Construction"],
["any","any","any","12",10,"Supplyitems"],
["any","any","any","14",30,"Treasure"],
["any","any","any","17",50,"Military"],
["any","any","any","18",20,"sidemissions"],
["any","any","any","21",50,"Military"],
["any","any","any","23",10,"Treasure"]];

Is the hour 00:00 and all the way up to the 10:38, are set like this ?

That extra 0 should be there or not ?

Cause right now, some events fire up at the same time and NOT at 00:30 (for example)...but some time after that.

Its just acts weird....i dont know why.....Not to mention that the markers on the map, sometimes dont correspond to the colors i selected in the .sqf files.

Sometimes Treasure.sqf is Brown, when i have it Yellow, etc...

Share this post


Link to post
Share on other sites
Guest

could be because all the event markers are defined by _event_marker, so if there 2 events at the same time running it will create a conflict

 

just a wild guess, i dont guarantee anything

Share this post


Link to post
Share on other sites

Hmmm i thought the private variables at the top of each file would guarantee that wont happen.
That means any variable is a gobal variable?
Why do we have setvariable and getvariable the ?

I am mot attacking you, dont get me wrong. I am getting winded up with the arma engine. I thought (if this is why its doing that) that i shouldnt worry about such things.

 

Edit:

 

Yeah, this is total BS: my log file a few minutes ago with the above Event settings:

21:20:04 "RUNNING EVENT: supply_drop on [2013,11,30,17,20]"
21:20:04 "RUNNING EVENT: Military on [2013,11,30,17,20]"
21:20:04 "RUNNING EVENT: sidemissions on [2013,11,30,17,20]"

I dont see any event starting at 21:20.....anyone ?

Share this post


Link to post
Share on other sites

Well, thanks to the AWESOME non existing documentation of dayz epoch events and after wasting 2h trying to figure this out i came to the conclusion that in order to make the epoch event function to work every specific hour of a day, you must NOT use double quote at the time integers.

So the proper way of writing an event for ex. 20:32 is :

 

["any","any","any",20,32,"sidemissions"],

 

putting the extra quotes will break the event.

 

Thank you again for the detailed documentation on how to make an epoch event ....... (not).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...