Hello,
Can someone explain how to convert the script's 'get playing time' function, that returns the number of seconds someone has played the game, can be converted to the ingame date and time that is e.g. displayed in the message logs and player information section (764-07-01 00.00 format)
Or explain how the days, months and years are calculated by parsing the playing time?
Greetings
Gesture
Converting Playing Time to ingame Date and Time
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 22552
- Joined: Sat, 23. Apr 05, 21:42
Not sure, but I guess that one simply follows:
60s=1min
[Edit
]60min=1d
60min=1h
24h=1d
30d=1m
12m=1y
and adds to the date from the start of game. Takes some simple number crunching.
X3 has a Script Editor command that does the formatting, but X2 apparently not.
60s=1min
[Edit

60min=1h
24h=1d
30d=1m
12m=1y
and adds to the date from the start of game. Takes some simple number crunching.
X3 has a Script Editor command that does the formatting, but X2 apparently not.
Last edited by jlehtone on Thu, 18. Nov 10, 22:11, edited 1 time in total.
-
- Posts: 1840
- Joined: Thu, 1. Mar 07, 11:39
jlehtone wrote: 60min=1d

I'm not so sure if he is right

Shadow
Wahre Gentlemen behalten sogar umzingelt von Löwen ihren Leitsatz: Ladies first.
Wann lernt die Gesellschaft endlich, dass Geld erst die Probleme macht, die wir haben?
[ external image ]
Topic - Gallery - Forum - Freiheit
Wann lernt die Gesellschaft endlich, dass Geld erst die Probleme macht, die wir haben?
[ external image ]
Topic - Gallery - Forum - Freiheit
-
- Posts: 22552
- Joined: Sat, 23. Apr 05, 21:42