vbawol Posted August 12, 2013 Report Share Posted August 12, 2013 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. amandabif 1 Link to comment Share on other sites More sharing options...
Sandbird Posted August 12, 2013 Report Share Posted August 12, 2013 Is there a way to remove the script after X minutes ? For example load racetrack.sqf on Tuesday night and 2h later remove it. Link to comment Share on other sites More sharing options...
maca134 Posted August 12, 2013 Report Share Posted August 12, 2013 You would have to create another event script to remove the objects. You could add the objects to a global variable and then loop through it when you want to remove it. Sandbird 1 Link to comment Share on other sites More sharing options...
Sandbird Posted August 14, 2013 Report Share Posted August 14, 2013 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 ?) Link to comment Share on other sites More sharing options...
maca134 Posted August 14, 2013 Report Share Posted August 14, 2013 I think the day is 1-31 And yes that looks correct. Link to comment Share on other sites More sharing options...
Sandbird Posted August 14, 2013 Report Share Posted August 14, 2013 Oh yeah, lol...i am a dumbass. thanks maca Link to comment Share on other sites More sharing options...
MassAsster Posted August 20, 2013 Report Share Posted August 20, 2013 Example Events config in init.sqf to be clear, we are talking about the map init, arn't we ? Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted August 26, 2013 Report Share Posted August 26, 2013 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? Link to comment Share on other sites More sharing options...
babylonstew Posted September 11, 2013 Report Share Posted September 11, 2013 is there a way to have it trigger once per reset?, as im trying to have a roaming trader who changes locationtyo one of several every reset. similar to what maca has on uk420 ;) Link to comment Share on other sites More sharing options...
vbawol Posted September 13, 2013 Author Report Share Posted September 13, 2013 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? Link to comment Share on other sites More sharing options...
vbawol Posted September 13, 2013 Author Report Share Posted September 13, 2013 to be clear, we are talking about the map init, arn't we ? yes Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted September 13, 2013 Report Share Posted September 13, 2013 If you do have have a models folder then your not using our server pbo, maybe your using a modified version from a host? That was posted 3 weeks ago. I've since changed hosts. Link to comment Share on other sites More sharing options...
grillorj Posted September 19, 2013 Report Share Posted September 19, 2013 In this Event ["any","any","any","any",30,"crash_spawner"] this 30 means that will execute 30 in 30 minutes? Is this? Link to comment Share on other sites More sharing options...
rukx Posted September 28, 2013 Report Share Posted September 28, 2013 I used a simple setDate script to shorten days and nights! Awesome sauce. Link to comment Share on other sites More sharing options...
GhostTown Posted September 30, 2013 Report Share Posted September 30, 2013 I used a simple setDate script to shorten days and nights! Awesome sauce. Can you explain this? I Have been looking for a script that I change the Length of days and nights.. Link to comment Share on other sites More sharing options...
duncajcb Posted October 23, 2013 Report Share Posted October 23, 2013 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. Link to comment Share on other sites More sharing options...
duncajcb Posted October 23, 2013 Report Share Posted October 23, 2013 Can you explain this? I Have been looking for a script that I change the Length of days and nights.. so far ive found http://community.bistudio.com/wiki/setDate Link to comment Share on other sites More sharing options...
vbawol Posted October 23, 2013 Author Report Share Posted October 23, 2013 In this Event ["any","any","any","any",30,"crash_spawner"] this 30 means that will execute 30 in 30 minutes? Is this? That will execute on the :30 minute mark of each hour. Link to comment Share on other sites More sharing options...
Adminlaststand Posted October 23, 2013 Report Share Posted October 23, 2013 I used a simple setDate script to shorten days and nights! Awesome sauce. care to share with us how you did this? Cheers Link to comment Share on other sites More sharing options...
Turtle Posted November 21, 2013 Report Share Posted November 21, 2013 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. Link to comment Share on other sites More sharing options...
Sandbird Posted November 30, 2013 Report Share Posted November 30, 2013 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... Link to comment Share on other sites More sharing options...
Guest Posted November 30, 2013 Report Share Posted November 30, 2013 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 Link to comment Share on other sites More sharing options...
Sandbird Posted November 30, 2013 Report Share Posted November 30, 2013 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 ? Link to comment Share on other sites More sharing options...
Sandbird Posted November 30, 2013 Report Share Posted November 30, 2013 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). 31_D!4b10 1 Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2013 Report Share Posted December 7, 2013 jeah well, everyone else did figure it out xD Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now