-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finish up Addon sending, hook up to Obsidian web services #13
Comments
Untrusted addons only work not based just on a config option, but based on |
I have found a way to get the addon's over to the client. On client side only, as part of the handshaking, but before the handshake happens a FMLNetworkEvent.CustomPacketRegistrationEvent occurs. The operation field of the event is always REGISTER. This only happens when a client connects to a Singleplayer or Multiplayer server. So if we can get the server to send the AddonList message as normal by triggering it from the client, we can have the addon's registered before the handshake fails. |
That could work. How do you propose suspending the client until we have all addons downloaded and enabled? |
We could use some gasp blocking network IO. Or we could hope that it will sit there long enough on it's own. I'm doing some digging to see if I can use it as a way to jerry rig the handshake stuff, but I doubt I'll get it to work. So I think blocking network IO is the answer, server side we can use netty, but client side we will have to use a blocking system to force it to wait until we're ready, or we could have a infinite loop because I think netty is all on threads and just wait for netty to finish. Then we would register the addon's and load them. |
Looking into it further, I can't seem to use the forge network channels yet at that point. Working from the client side to make this work is going to be a lot more challenging than working from the server's perspective. |
With the launch of obsidianbox.org, we have the XenForo ResourceManager that backs the Addon "Store" with XenAPI by contex. Obsidian, on the client, will be pulling down addons from the store to increase the security of the content being received.
The process works as follows:
phew Sounds like a lot but really isn't. This is the production mode for the framework. I do want to support servers sending "untrusted" addons (if client has that option enabled) but needs some thought.
The text was updated successfully, but these errors were encountered: