Jump to content

[1.7.10] Sending load of data on client connection.


Recommended Posts

Posted

So basically dedicated server loads whole game from very bulky config, puts that together into objects and loads textures (e.g 32x32 image for "warrior" class) then sends it to client that connects (once per session, on login).

Note: By "loads whole game" I only mean my stuff far-related to normal MC (so no block and stuff that has to be initialized on mod startup).

 

Till now I was doing it by simpy sending huge-ass packet cargo containing NBTTags and decoded it on client. Problem is that it may take some time (sometimes even few sec in which case it spams in terminal)

 

Question:

Is there a way to send data (that is not referenced to EntityPlayer) using packets? I mean before EntityPlayer constructing so basically somewhere near client-server handshake?

 

OR

 

Maybe it could be sent inside constructor (as if entityToBeConstructed == you), so in that case question - how would sending bunch of packets affect player constructing?

 

Problem is - I want Client to be able to use loaded data right after you log in, so it must be done loading before "player logged in".

1.7.10 is no longer supported by forge, you are on your own.

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.