IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Nexus Clock, anyone feel like updating this?
George
post Nov 26 2006, 01:58 AM
Post #1


Il san
Group Icon

Group: Nobles
Posts: 225
Joined: 5-July 06
Member No.: 138



Anyone feel like updating this for the whole Mhul thinger? Just needs new stamps for IG/IRL and Yuri to whatever Mhul thinger is now.

CODE


<?

$startIG  = 196001400;
$startIRL = 1124942800;
$stamp    = time();
$pass     = $stamp - $startIRL;
$calc     = $pass * 8;
$sync     = $startIG + $calc;

echo "Current Nexus Time is:   ";

echo date('\\Y\u\r\i  y     \\M\o\o\n  m     \\D\a\y   d      H:i:s', $sync);

?>



--------------------
IPB Image
Go to the top of the page
 
+Quote Post
George
post Nov 27 2006, 11:28 AM
Post #2


Il san
Group Icon

Group: Nobles
Posts: 225
Joined: 5-July 06
Member No.: 138



omg I'll pay you 1 MILLION coins to do this.

takes me 40min IRL to make 1 million coins
takes me 15min IRL to fix this clock

= good deal!

-gets banned for trading nexus resources for IRL resources-


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
AceoStar
post Nov 27 2006, 11:42 AM
Post #3


Oh san
Group Icon

Group: Retired Staff
Posts: 3,120
Joined: 3-July 06
Member No.: 2
Characters: AceoStar



Should just need to subtract 83 or whatever it was from the yuri to get the mhul right?


--------------------
AceoStar, Imperial Guard of Buya.

Put www.StatAddict.com in your profile to track your stats today!


Learn to keep up


Errr, NF is filtered at work these days, I'll be checking the forums a lot less often.
Go to the top of the page
 
+Quote Post
stabme
post Nov 27 2006, 12:32 PM
Post #4


Sam san
Group Icon

Group: Nobles
Posts: 907
Joined: 4-July 06
Member No.: 66



quick'n'dirty fix

CODE

function fix_yuri($matches)
{ return $matches[1]-83; }

$x = date('\\Y\u\r\i  y     \\M\o\o\n  m     \\D\a\y   d      H:i:s', $sync);
echo preg_replace("/Yuri ([0-9]+)/", "fix_yuri", $x);


regex code might be wrong; might be "/Yuri ([0-9]?)/"; i'm rusty on it ;p

im curious how you got the timestamps

(easier fix might be $sync-(60*60*24*365.25))


--------------------
IMEDIAT: I am the Lixir! I speak for the Wars!
I no longer Elixir or draw Imediat. I now help make music free for all: Grooveshark
Go to the top of the page
 
+Quote Post
George
post Nov 27 2006, 01:46 PM
Post #5


Il san
Group Icon

Group: Nobles
Posts: 225
Joined: 5-July 06
Member No.: 138



LOL, such a good fix ROFL... subtract 83 haha! good game.

(using tranquil's legend as a reference, his profile in nexus reads Hyul 4 while his Nexus user page reads Yuri 86) you guys sure it is 83 and not 82?

Also, in another 13 nexus years, what is this fix going to do?

Does preg_replace compensate for "y" output being for last two digits only? Nuhuh I don't think it dooo! It gonnas read us a negative! but it not support integer value (only whole number I think right?) omg it going to be like... how many bit it set aside? gunna rap last two digits of highest bit value it gots? end up be something like 1-2=255 ROFL!! but wait no it give the full 3+ digit cause you break it out of date function and just search echo output string and use preg_replace for output so it free use more two digit!!!!!!! OMG THE CRAZY OUTRAGEOUSNESS OF IT ALL!!!! I don't know I confuzzle myself now, lol maybe you gots it figured out?

Second fix you got there look much better lol.
but again, is it be -83 or is it be -82? @.o just small error there =)

Time stamp just fetched same time from Ox NPC at inn. Use old time stamp from year 1978 to set us up with good time start. Now is one more thing need you remember when you do this. You second fix subtract 1 year, this is not right, going need subtract 82 year if fix this way, this be very bad cause need you remember that Unix epoch start January 1st, 1970 LOL so this is going output very strange and bad year. cause not subtract beyond that.

Best way to do this is start year 2004 for Hyul 4. Now this is good till January 19, 2038. This buy us more time on clock than 13 nexus year. This give us 34 nexus year =) is problem at Hyul 38 cause Unix epoch time stamp is 32 bit so we get overflow after that cause too many second to show in 32 bits... maybe we all be 64 bit by then, but I doubt it, cause that be in like 4 3/4 years IRL. We prob still have people use XP then lolness which not do 64 bit lolness. by time we in 2038 IRL we prob all be 62 bit or change new system, so be fine IRL, but not Nexus!!!

Fix this means get new startIG and startIRL time stamp =) pwease =) This what I pay for. Not theory with many implement problem, just simple new stamp start after year 2000 so last till 2038 =) paweeeaase!!!!!!

Anyone notice how user page still runs over to Yuri 83 they have own function no site to calc dates for legend, not take it out of game, is funny I think cause say a lot. They have user page down for so long and try fix so many thing and they still not fix that hehe


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
AceoStar
post Nov 27 2006, 01:52 PM
Post #6


Oh san
Group Icon

Group: Retired Staff
Posts: 3,120
Joined: 3-July 06
Member No.: 2
Characters: AceoStar



put down the speed pls sir <3


--------------------
AceoStar, Imperial Guard of Buya.

Put www.StatAddict.com in your profile to track your stats today!


Learn to keep up


Errr, NF is filtered at work these days, I'll be checking the forums a lot less often.
Go to the top of the page
 
+Quote Post
George
post Nov 27 2006, 01:57 PM
Post #7


Il san
Group Icon

Group: Nobles
Posts: 225
Joined: 5-July 06
Member No.: 138



short version of above rant

Can't subtract 83 years because Unix epoch starts in 1970 and can not subtract beyond that point. Very good in theory though >.< (try use your windows clock, is even worse lol)

Even if you could it would rap around in 13 Nexus Years. You would also need to subtract 82, not 83.

What you need to do is get the new time stamps and sync it at above year 2000 IRL (Hyul 4 = 2004). This will work till Hyul 38 (at which point the 32-bit overflow applies and we'll have to all be using 64-bit machines or switch systems... that is only 4 3/4 years IRL for nexus time, which is not as realistic as it is for IRL time - 32 years IRL)

give or take =)


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
George
post Nov 27 2006, 02:03 PM
Post #8


Il san
Group Icon

Group: Nobles
Posts: 225
Joined: 5-July 06
Member No.: 138



QUOTE(AceoStar @ Nov 27 2006, 02:52 PM) [snapback]19539[/snapback]

put down the speed pls sir <3


What do you mean the speed? Nexus time is exactly 8 * IRL time. Is that what you mean? =)

Each moon is equal to each month IRL. Moon 1 has the same amount of days as January... etc. The hard part is leap years and that jazz. We have a leap year coming up in 2008. So if clock is synced this way we need to see what happens in Hyul 8... my guess is if there is a problem it will fall a day behind, so that will need to be fixed and resynced. But their time should include leap years so it should be ok =) We see on Moon 2 of Hyul 8!


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
stabme
post Nov 27 2006, 02:33 PM
Post #9


Sam san
Group Icon

Group: Nobles
Posts: 907
Joined: 4-July 06
Member No.: 66



okay... im home now. let me try working out whatever you're..ranting about. ;p

when does myul 1 start?

edit: is this what you want? i'm sort of confused to what you want - a function that handles BOTH yuri and mhuls? i don't know what mhul we're in right now or what yuri mhuls started, so this is the best i have to offer with the information i assume.

CODE
<?

$startIG  = 196001400;
$startIRL = 1124942800;
$stamp    = time();
$pass     = $stamp - $startIRL;
$calc     = $pass * 8;
$sync     = $startIG + $calc;

echo "Current Nexus Time is:   ";

$year = date('y', $sync) - 82;
if ($year <= 0)
    $year_txt = "Yuri " . $year+82;
else
    $year_txt = "Mhul ". $year;

echo $year_txt . date(' \\M\o\o\n  m     \\D\a\y   d      H:i:s', $sync);

?>


--------------------
IMEDIAT: I am the Lixir! I speak for the Wars!
I no longer Elixir or draw Imediat. I now help make music free for all: Grooveshark
Go to the top of the page
 
+Quote Post
stabme
post Nov 27 2006, 03:05 PM
Post #10


Sam san
Group Icon

Group: Nobles
Posts: 907
Joined: 4-July 06
Member No.: 66



oh.. okay.. i think i understand what you mean now. i'm too tired to figure a workaround to carry over a bit overflow, or to figure out the math eq to find the start of hyuls or how to manipulate mktime().... but realstically, do you really think nexus is going to run another 4.5 years? - i'd just do what most programmers do....don't worry about it until it breaks.


--------------------
IMEDIAT: I am the Lixir! I speak for the Wars!
I no longer Elixir or draw Imediat. I now help make music free for all: Grooveshark
Go to the top of the page
 
+Quote Post
George
post Nov 27 2006, 03:31 PM
Post #11


Il san
Group Icon

Group: Nobles
Posts: 225
Joined: 5-July 06
Member No.: 138



rofl stabme....


just need to fetch a time stamp at the exact same time you get current nexus time from Ox. Then look at the time from Ox, say it is Hyul 4, Moon 1, day 18, 5:30. Then fetch the time stamp for 2004, January 18th 5:30. The first time stamp = startIRL the second time stamp = startIG. So now whenever you want the current nexus time you simply fetch a fresh time stamp, subtract startIRL from it, times the results by eight and add the product to startIG, this will give you the current nexus time =)

The question here is, say you are .34 seconds off when you collect the first two time stamps, what happens? Does it stay .34 seconds off, or does this error multiply? Best to have nexus in a window when you do this so that you do not need to alt tab... or use a macro program to send the enter key to minimized nexus at exact same time as fetching startIRL stamp... the menu box which pops up will stay the same as when it was sent (will not change as you take the time to maximize nexus). This may or may not be legal though tongue.gif The other option would be to actually use the packets, but that can't be legal lol... just clicking at the same time is pretty darn close though, so no need to do anything iffy =)


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
stabme
post Nov 27 2006, 04:00 PM
Post #12


Sam san
Group Icon

Group: Nobles
Posts: 907
Joined: 4-July 06
Member No.: 66



okay, if this is the solution you're looking for, why don't you do it?

my solution is to build off from the existing information. it's a linear function so it doesn't seem necessary to gather information again, and very much possible to set up a mathematical equation based on the original information to find out the exact timestamp at the moment, or when hyuls started, etc.


--------------------
IMEDIAT: I am the Lixir! I speak for the Wars!
I no longer Elixir or draw Imediat. I now help make music free for all: Grooveshark
Go to the top of the page
 
+Quote Post
George
post Nov 27 2006, 04:55 PM
Post #13


Il san
Group Icon

Group: Nobles
Posts: 225
Joined: 5-July 06
Member No.: 138



QUOTE(stabme @ Nov 27 2006, 05:00 PM) [snapback]19554[/snapback]

okay, if this is the solution you're looking for, why don't you do it?

my solution is to build off from the existing information. it's a linear function so it doesn't seem necessary to gather information again, and very much possible to set up a mathematical equation based on the original information to find out the exact timestamp at the moment, or when hyuls started, etc.



lol, go for it, I'll give you 1million coins.

However, finding the exact moment when Hyuls started will not be easy at'll, unless you've got a method I can't think of >.<


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
Choucatzin
post Nov 27 2006, 05:39 PM
Post #14


Enchanted
***

Group: Citizens
Posts: 88
Joined: 12-November 06
Member No.: 1,171



A ouija board.
Go to the top of the page
 
+Quote Post
stabme
post Nov 27 2006, 05:58 PM
Post #15


Sam san
Group Icon

Group: Nobles
Posts: 907
Joined: 4-July 06
Member No.: 66



all i can tell you at the moment, after playing around with the clock for a minute is, $startIG + 214225800 = Yuri 83, Moon 0, Day 0, 00:00:00.

edit

okay, i was able to find the irl timestamp that hyul 1 start, so now you have timestamp irl and ig of yuri 83/hyul 1. i have no idea what that's going to do though since you sitll have the problem of unix epoch ending (although for nexus to keep on running 4.5 years is unrealistic at best). all you have now are the "updated numbers." they're the same numbers just on ad ifferent part of the curve; it doesn't matter because it's a linear equation, so my fix above does the same thing regardless. but anyway.

CODE
$startIG  = 196001400;
$startIRL = 1124942800;
$stamp    = time();
$pass     = $stamp - $startIRL;
$calc     = $pass * 8;
$sync     = $startIG + $calc;

$stampIG = $startIG + (($stamp-$startIRL)*8);

startIG known, stamp known, startIRL known

find when $stampIG = Yuri 83, moon 0, day 0, etc.
$sync     = $startIG+214225800 = 410227200

$startHyulIG = 410227200;

$stampIG = $startIG + (($stamp-$startIRL)*8);
$stampIG-$startIG = ($stamp-$startIRL)*8
($stampIG-$startIG)/8 = $stamp-$startIRL
($stampIG-$startIG)/8+$stamp = $startIRL
let cur sync ($sync) = 513806104, cur stamp ($stamp) = 1164668388
(410227200-196001400)/8+1164668388=1191446613
startHyulIRL = 1191446613


dont ask me my mathematical proof for finding startHyulIG. I did trial and error using the clock ($startIG+x, changing x until it outputted Yuri 83 etc). if i really wanted to i could write a program to find the pinpoint in the same manner i did, but it was just easier to do trial and error at the time.


--------------------
IMEDIAT: I am the Lixir! I speak for the Wars!
I no longer Elixir or draw Imediat. I now help make music free for all: Grooveshark
Go to the top of the page
 
+Quote Post
George
post Nov 27 2006, 08:52 PM
Post #16


Il san
Group Icon

Group: Nobles
Posts: 225
Joined: 5-July 06
Member No.: 138



coolies, I'll test her out and contact you soon IG for payment =)

maybe KRU get you to fix their stuff too LOL!


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
stabme
post Nov 28 2006, 02:16 PM
Post #17


Sam san
Group Icon

Group: Nobles
Posts: 907
Joined: 4-July 06
Member No.: 66



I barely go IG :/ you could parcel a check


--------------------
IMEDIAT: I am the Lixir! I speak for the Wars!
I no longer Elixir or draw Imediat. I now help make music free for all: Grooveshark
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 21st September 2017 - 09:41 PM
Nexus Forums is part of: Nexus Atlas © all rights reserved.