Jump to content

Recommended Posts

Posted

So i came across this quite old gist that lets you inject a http handler into a bukkit server. I was trying to make it work with forge but with no success, thought you guys might know better if that even possible.

Here's why: i made a mod that enables server owners to write some simple logic in javascript, whether it is custom command on the server or some hud texture rendering on client. The point is, they should be loaded before connecting to the server and unloaded when player leaves the server. This way two servers can have separate set of scripts, you get the idea. For now i implemented it with regular forge packets, means that when player joins it receives a pretty big packet. The problem i have so far is max packet size since i need to send textures, its somewhere around 2MB in 1.7.10 (even less in 1.8+), and i really don't want to split them in multiple packets... HTTP handler could kinda solve that, but what is more important is caching. That would be pain in the ass to do with minecraft packets.

 

P.S. Minecraft version is 1.7.10 if that makes any difference

Posted
1 minute ago, Snail said:

P.S. Minecraft version is 1.7.10 if that makes any difference

It does. 1.7.10 is no longer supported here.

 

Also there's probably a better way you can do what you want to do.

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.

Posted
1 minute ago, Draco18s said:

It does. 1.7.10 is no longer supported here.

 

Also there's probably a better way you can do what you want to do.

If that can be done in the latest version of minecraft, that would be even better

Posted
1 minute ago, Differentiation said:

Update your mod to a newer version or start off with a clean slate 1.12(.2) mod.

Thats not gonna solve my issue

Posted
2 hours ago, diesieben07 said:

It is over 200MB in recent versions for server to client packets. Update.

 

No, it wouldn't.

Well here's the thing, thats just part of the problem. Client require some data before connecting to server

Posted (edited)
9 hours ago, diesieben07 said:

What is your question then?

The approach taken in the gist you linked is terrible.

Look up how to make a HTTP server in Java.

I thought 1.7.10 is no longer supported on this Forum?...

Then this Thread should be locked right away?

20 hours ago, Snail said:

P.S. Minecraft version is 1.7.10 if that makes any difference

20 hours ago, Draco18s said:

It does. 1.7.10 is no longer supported here.

 

Edited by Differentiation

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.