Jump to content

Game time [Day-Night] Ticks


Kara

Recommended Posts

Questions:

1. Does 4 hours in real life equals in 1 Day in Lineage 2? 

2. Do game broadcast SunRise and SunSet upon night and day? 

3. L2J set to broadcast sunset every 10 minute (using sleep thread), is that ok? Or should be done instant with a threadpool Ex. 21:00 Broadcast night until 6:00 morning e.t.c ?

 

Link to comment
Share on other sites

On 1/12/2017 at 5:10 PM, GamePsychology said:

Questions:

1. Does 4 hours in real life equals in 1 Day in Lineage 2? 

2. Do game broadcast SunRise and SunSet upon night and day? 

3. L2J set to broadcast sunset every 10 minute (using sleep thread), is that ok? Or should be done instant with a threadpool Ex. 21:00 Broadcast night until 6:00 morning e.t.c ?

 

 

1) yes

2) I think yes,but they last short

3) I think should be done instantly

Link to comment
Share on other sites

38 minutes ago, HarryHoudini said:

 

1) yes

2) I think yes,but they last short

3) I think should be done instantly

 

Have u played official? What u mean short? Ex. If is night upon  login night packet is sended to player? Have u seen that on Official?

Link to comment
Share on other sites

3 minutes ago, GamePsychology said:

 

Have u played official? What u mean short? Ex. If is night upon  login night packet is sended to player? Have u seen that on Official?

 

Nope. Just asked it from someone else who did though. By short i mean the duration of. As for example,it depends on server's time settings. I think yes, if server configured time is fitted real one, if not it would show day/night depends on what time it is in game.

Link to comment
Share on other sites

36 minutes ago, HarryHoudini said:

 

Nope. Just asked it from someone else who did though. By short i mean the duration of. As for example,it depends on server's time settings. I think yes, if server configured time is fitted real one, if not it would show day/night depends on what time it is in game.

Ok thanks a lot, ill send you a cookie for your time, give me ur mail to mail it! 

Link to comment
Share on other sites

3 minutes ago, GamePsychology said:

Ok thanks a lot, ill send you a cookie for your time, give me ur mail to mail it! 

 

Np mate. 

 

Hahaha okay, i'll wait for it. Please and some piece of chocolate on it. 

Link to comment
Share on other sites

Hi, in l2off (at least in leaked Gracia Final) it works this way:

  1. there's class CL2Time that manages this, game time runs 6 times faster than real time so each game day is 3 hours long and night 1 hour long
  2. it runs a timer each 10 seconds and checks whether day or night started, day starts at 6:00 game time, night starts at 0:00 game time
  3. when that 10 second timer expires and night changes to day or vice versa, server broadcasts SunRise packet (0x12) or SunSet packet (0x13)
  4. these packets are sent to player upon login as well
Edited by eressea
Link to comment
Share on other sites

9 hours ago, eressea said:

Hi, in l2off (at least in leaked Gracia Final) it works this way:

  1. there's class CL2Time that manages this, game time runs 6 times faster than real time so each game day is 3 hours long and night 1 hour long
  2. it runs a timer each 10 seconds and checks whether day or night started, day starts at 6:00 game time, night starts at 0:00 game time
  3. when that 10 second timer expires and night changes to day or vice versa, server broadcasts SunRise packet (0x12) or SunSet packet (0x13)
  4. these packets are sent to player upon login as well

 

ok thanks, very informative.

So the 4 hours is perfectly. And i also added the broadcast upon login if is night only cause i believe broadcast SunRise when is day is not good since the default weather is day and the sunrise looks redish. So ill just broadcast sunrise upon day change only and new login players will just see blue sky.

 

The other question is whats the best option to broadcast the dark elf skill upon change. Currently i simply did a for and just re-add the skill to those who have it to get the new effect. I havent try if getEffects work. Any other proper way?

Link to comment
Share on other sites

It's quite easy actually, p_hit_a_night pump is protected by a pump conditions which checks on server if it's night or not, and revalidated every stats recalculations.

Link to comment
Share on other sites

11 minutes ago, GamePsychology said:

 

ok thanks, very informative.

So the 4 hours is perfectly. And i also added the broadcast upon login if is night only cause i believe broadcast SunRise when is day is not good since the default weather is day and the sunrise looks redish. So ill just broadcast sunrise upon day change only and new login players will just see blue sky.

 

The other question is whats the best option to broadcast the dark elf skill upon change. Currently i simply did a for and just re-add the skill to those who have it to get the new effect. I havent try if getEffects work. Any other proper way?

 

Sorry, I wrote it wrong, time info is sent on login (not sunset/sunrise), it's part of CharSelected packet

Link to comment
Share on other sites

3 hours ago, Sdw said:

It's quite easy actually, p_hit_a_night pump is protected by a pump conditions which checks on server if it's night or not, and revalidated every stats recalculations.

 

Well yes u can do this or do the shit-way as aCis did to re-add :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Whatever @Tryskell said...   Unfortunately it is not 2005-2010 anymore... Most of the community from those days is "grown up" and probably does not play games anymore (or at least no MMOs). I think anything related to MMOs will be a nail in the coffin.   I understand that it is hard to let the thing you've built for years to "just die". I assume most people got into programming, so maybe you can try something in that direction. But then again, this is a very niche community.   We need to think of something to bring the people together. I think events may be really fun, but then you would probably need to add prizes n order for the people to participate.   So yea, just my 2 cents. Hopefully somebody can come up with some great idea so we can revive this place. I've already forgotten it for the last couple (5-6) years...
    • Thats an interface future. You can reach me out about this in discord: xbaus
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hoodservices https://campsite.bio/utchihaamkt
    • Both "MMO genre" AND "forums" are greatly deprecated those days. MMO genre, except very few games (TESO, WOW, BDO, FF14), is mostly "eaten" by fast paced games (aka games with 15-30min game parties, they are numerous). See Twitch best games, I doubt the top 10 are MMOs. Adding more MMOs categories, while MMOs themselves got less population, isn't a bright idea. Also, in the past, there was multiple games categories - none actually worked out, so far. Forums type were replaced by Discord, mostly. You communicate faster, you got voice, you can group up and it's already thematized (by server, by guild, by game,...)... Unfortunately, there is nothing you can do about. You already did it multiple times without success (3 or 4 times at least ?). It's not due to staff. MMO forum is just "niche" nowadays, while 20 years ago it was "dope" and the thing to do. Your main problem is MxC is a community based on "nothing". It was first cheater dedicated, then mostly L2 development dedicated,... With a mix of random things here and there. The formula is lightly-themed as "community" (that's actually why you still have some ppl posting), and in same time community never was expanded to retain ppl (notably through MxC servers - no matter the game : L2, GTA, Conan Exiles, Lost Ark, whatever else). In the end, you end with "nothing", since people comes and goes (and mostly goes, since MMO isn't a thing anymore), but both MMO genre is greatly endangered by other types of games AND forums isn't the proper way to communicate in 2024. Actually, the only use of a forums compared to Discord is to search through archives, and the main point is it's a better "showcase" than Discord (a static website would end with the same output). The proposed formula will never work, or at best will attract greedy ppl.
    • Welcome to my store :https://ultrasstore11.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord :@ultrasstore11 Telegram : https://t.me/ultrastore11  
  • Topics

×
×
  • Create New...