Jump to content

Force the Client To Load a Distant Chunk


thebest108

Recommended Posts

If I wanted to send the Minecraft client a chunk that's thousands of blocks away (in the same world), as well as send that player all the update packets that come out of said chunk, how would I go about doing this?

 

*Key Note: Its pretty important that this Chunk is in the same dimension as the player it's being sent to

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Link to comment
Share on other sites

You might want to take a look at what Looking Glass does

https://github.com/XCompWiz/LookingGlass

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Very cool. If I understand the mod, a "camera" stands in for a player so that chunks load and run. The real player can see some of what the camera sees (reminds me of the "Wizard Eye" spell in D&D).

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

Very cool. If I understand the mod, a "camera" stands in for a player so that chunks load and run. The real player can see some of what the camera sees (reminds me of the "Wizard Eye" spell in D&D).

 

Sorta.

Looking Glass works across dimensions, too, which isn't possible with just a basic stand in (the client only knows about 1 World).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

What about mod compatibility though, how can it properly render machines and such when the packets sent to the client often use Minecraft.theWorld to set things? despite those packets being for a different world.

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Link to comment
Share on other sites

No clue.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

What about mod compatibility though, how can it properly render machines and such when the packets sent to the client often use Minecraft.theWorld to set things? despite those packets being for a different world.

It seems that it uses own packet system to give the client world information, and the client stores the world to the ProxyWorldManager.

Also if one uses proper rendering pipeline, there won't be compatibility issue.

 

..Though it also looks like that it might have severe performance issue.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

- There is no (proper) way to intercept packets sent with sendToAllAround, so mod effects caused by that won't work

But how about hooking into packet pipeline with custom

ChannelHandlerAdapter

? Or is this not a proper way?

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.