Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Effect 2038
Author Message
Ordoñez
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2013
Reputation: 0



Post: #1
Effect 2038
From time to time, drugaddicts like me go back to bad times, and start to script again.

Recently i've been scripting some kind of "definitive characters death" for encouraging players to have descendence that may inherit and improve beyond ingame parents generation values.

The problem comes when you set definitive death values higher than "19 January 2038 04:14:07" or... in other words 7FFFFFFF in SERV.RTICKS value...

You still got time for a fix, so no hurry. Just telling!

Thanks for the Job Guys.

PD.: XuN, Recuerdos de GM Unnamed, por si aún te acuerdas xD
(This post was last modified: 02-10-2017 03:15 AM by Ordoñez.)
02-10-2017 03:14 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Effect 2038
try using the latest build, I changed SERV.RTIME value on source from 'unsigned long' (max value: 2147483647 / 0x7FFFFFFF) to 'unsigned long long' (max value: 9223372036854775807 / 0x7FFFFFFFFFFFFFFF)
02-10-2017 09:19 AM
Find all posts by this user Like Post Quote this message in a reply
Ordoñez
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Dec 2013
Reputation: 0



Post: #3
RE: Effect 2038
Thankyou, I guess I need 64 bits based OS for this, right? it makes an error of GetTickCount64() in Kernel32.dll

EDIT: I'm thinking about it, and another plausible fix, without need of changing variable size, it's to get RTICKS=0 different to "1 January 1970 01:00:00" (dont know why does Sphereserver get that date as 0 point, and why its 01:00:00 and not 00:00:00) and make "seteable" to any date past or future you want, instead of your system actual date.
(This post was last modified: 02-10-2017 09:12 PM by Ordoñez.)
02-10-2017 08:47 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)