Weather.
#1
I added the New / Invalid State and Thunderbolt packets. Just for testing of the packets(one packet) I made it so rain starts when you open a workbench and stop when you open a chest.

It seems thunder is overly complex. It looks like the server needs to create a thunder entity, send the thunderbolt packet, and remove the entity. I haven't tested anything with it, I just created the packet.

Weather is going to need a lot more work. Each world need to have a raining or not raining state. If raining than all players that log on need to have the rain status sent to them. If it's a thunderstorm, than random thunder bolts need to be created.

I'm not sure how the client knows the difference between a thunderstorm and rainstorm, I don't see anything but rain on the packet list. Maybe once a thunderbolt packet is sent the client turns it into a thunderstorm.
Yup, sending just the thunderbolt packet to the client does absolutely nothing. >.>

Guess I'll get to work on creating the entity.
Reply
Thanks given by:


Messages In This Thread
Weather. - by rs2k - 11-03-2011, 06:49 AM
RE: Weather. - by rs2k - 11-03-2011, 09:51 AM
RE: Weather. - by rs2k - 11-03-2011, 11:12 AM
RE: Weather. - by rs2k - 11-10-2011, 09:29 AM



Users browsing this thread: 2 Guest(s)