Ideas wanted on getting Southern Part of Chernarus to be night and north day.

Bendixsa

New Member
Hi guys, was wondering, The heavy script coders among you think its possible to make the time of day different for a player depending on where he is on the map, like two time zones, i want the coast to be pitch black night and then as you pass say Zelen it needs to become dawn, so essentially the further north you go the closer it gets to 12'clock noon, and the further south you go the closer it gets to 12'o clock midnight? any one up for this challange?

and is it possible. if so what are the major pro's and cons?

I feel Chernarus is big enough to make this seemless, if its possible in code?
I'm sitting on an idea to spice dayz up a bit and this is the main component for what I am planning.

If a script, Pseudo code speaking, Could check players POS on the Y axis (between north and south)
and set the time accordingly as they move about. then this will work.

Chernarus has a Ymax of 15360 if memory serves, so then from twelve noon at max north
devide 15360 by 12 hours = 1280 (12 hours not 24, cuz we only go from noon to midnight)

you can advance time or rewind time by ONE hour for every 1280 units a player moves in one or the other direction between north and south.

Also since I don't want to change Spawn points for players, essentially you will always spawn in the dark on the coast, at 12 midnight or close to it, and from there the magic should start to work.

and optionally after 12hours this entire math could flip over and south becomes day and north night, but that is not important, just a footnote.
Over to you guys...
 
I think the problem here is that the time of day is set for the whole server - so you can change the time of day but it changes for everyone.

The other problem is that many players hate night time. As soon as I enable it on my server everyone runs off to other servers. Personally I love night time but there you go.

I guess I'd have it darker the futher north I went, as bambi's will have to flail about in the dark when they spawn in and most base building goes on in the north.

It does sount batshit crazy too - zombies would be the least of our problems if the earth stopped rotating =)
 
Hehe, batshit crazy is what im going for. oyu might be right north dark south light.

heard in another thread something about the importance of synching the time for all players, this is the opposite.
at the end of the day you GPU renders the game nighttime or daytime on your computer. would you need a client side mod then...

basically how far would one have to go to get this to work?
 
This is in theory possible, however it will look gawd damn aweful if it were to be implemented.

So - lets take this into account:
Take the coords of the player and do some magic math to create a time based off the coords...
Now we use a local client setDate() command (in theory) to set their time locally however here is the issue:

Using setDate when the game is running causes all sorts of weird things to happen, from zeds & loot to stop spawning, but the main issue would cause your server to be unplayable...

Reason:
Every time, without fail that you setDate to a time that is not persistent with the current game world (aka setDate to 10:00... 10 mins later setDate to 10:20) the screen flashes as the sky is loaded in brighter and HDR goes bananas...

So as you would need a loop in the clients game code to work out the coords -> time math and setDate on the given math result, this would cause the screen to flicker/flash like crazy.
 
Ok, I see your points, but if that is the case why is the accelerated time script not cuasing this problem, look i know the accelerated time script is full of bugs etc, but not flickering. apparently there are people who got it to work.

Also the "loop" would not make the screen flash like crazy cuase it does not have to set time on every loop, Only for every 1280 units a player moves north or south, so most of those points can be circumvented,

the point you made about setdate screwing up zed spawns etc is one a can not defend, although once again if accelerated time scripts achieve this they would also have to solve that problem.

what i would like to know, also, is: is it possible for every player to have a different "time" like the real life time zones, only compressed.
 
Please share this accelerated time script with us, i am interested in its contents :)

In theory yes its possible for players to have different times, if setDate is called on their clients - not from the server.
 
I don't have the script you can get it here:
http://opendayz.net/threads/accelerated-time.8717/

This guys apparently got it working and mentions that he had to explicitly sync time to have all on same time

he says it resets time every 5mins... only way he can do that is to tell it what time to reset to. and it apperently skips time to.

now i have read this entire thread and see that its full of its own problems but none of the ones you mentioned.

please bear in mind that the last thing i want to do is come across as some kind of smart ass, im not, im asking for help, thing is, i don't want to just give up on this without PROPER investigation of the possibilities, and problems are OBVIOUSLY going to exist as with anything, what im interested in is possible solutions to those problems.

please advise me further.
anybody else with some info this, i would appreciate it BIGTIME.

also, the above mentioned script is not the only thread about accelerated time, search dayz section of forum for
"accelerated time" and plenty of threads come up on the subject.
 
Back
Top