CardinalPGM icon indicating copy to clipboard operation
CardinalPGM copied to clipboard

Long distance render tnt

Open Pablete1234 opened this issue 9 years ago • 11 comments

Needs testing, and i'm not sure about how this affects performance with a big amount of players & tnt

Small demo of what a big explosion looks like: https://www.youtube.com/watch?v=82I_gTsthWI

Pablete1234 avatar Dec 07 '15 03:12 Pablete1234

Real scrimm test: http://www.youtube.com/watch?v=fp6IA3ZzFeE

Pablete1234 avatar Jan 28 '16 23:01 Pablete1234

https://youtu.be/ibI4F2GTNKQ

ghost avatar Jan 28 '16 23:01 ghost

New testing: https://youtu.be/dFLmknc8fDw IMO it's pretty much done

Pablete1234 avatar Mar 04 '16 18:03 Pablete1234

As soon as 1.9 is merged I want to get this on master

twizmwazin avatar Mar 18 '16 00:03 twizmwazin

@twizmwazin in 1.9 some entity rendering changed, the render distance for tnt is now half the client chunk render distance, and armor stands now render as far as your render distance goes, so i would rather use them than fake players

Pablete1234 avatar Mar 18 '16 00:03 Pablete1234

That's fine

twizmwazin avatar Mar 18 '16 00:03 twizmwazin

@twizmwazin the issue is, how far away tnt should render dependes on the client settings, so having long render distance tnt is a bit harder, as we need to get the data from the client settings packet to know the amount of chunks the player is rendering

Pablete1234 avatar Mar 18 '16 15:03 Pablete1234

I believe there is a way of getting some of players' settings. The server uses it to know how many chunks to send to the client.

twizmwazin avatar Mar 18 '16 15:03 twizmwazin

@twizmwazin yes, the setting exists, and it's sent by the client in the client settings packet, but that packet doesn't have an event, and doesn't get saved anywhere (that i'm aware of) in NMS (i tried to find it in 1.8 for the wither)

Pablete1234 avatar Mar 18 '16 17:03 Pablete1234

Fixed and updated for 1.10, missing the setting for chunks, default to 64 blocks (as if all players had 8 chunks, if playing with more than 8 chunks, you will see the tnt twice (the real tnt and the fake tnt) in specific distances). Videos of it in action (with 8 chunks render distance) : https://youtu.be/xzaCbt5FtFI https://youtu.be/4LVwyeOQxrs

Pablete1234 avatar Oct 05 '16 05:10 Pablete1234

It's now working, and it reads player's chunks, but 2 things to keep in mind:

  • You need SportBukkit with OvercastNetwork/SportBukkit#210 merged to run this.
  • There is currently a bug in the minecraft client, where it won't tell the server you changed your render distance if you use esc key to exit the settings menu (make sure you press "done") #MC-108315.

Pablete1234 avatar Oct 06 '16 03:10 Pablete1234