-
Notifications
You must be signed in to change notification settings - Fork 2
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
When Connecting to with the mod Lsky Pro, all config options fail on image upload, No API Key can be found. #4
Comments
There's an error in the tutorial, I forgot to update that |
Ah, that explains why none of my attempts were successful. I also noticed you mentioned not knowing how to save locally yet. Why not consider using SQLite? It would be a straightforward solution to store the information along with a base64 representation of the file data. Then, you can easily reverse the process when retrieving the data. Moreover, all the necessary functions are already available in your framework. |
Bandwidth's the main concern here, I was afraid that occupying the server to client network bandwidth (which can be quite limited esp. for hosting at home and accessing from somewhere far away, or for some budget hosting providers) with image transfers would increase latency of the more important gameplay packets. |
I recommend steering clear of using the game's networking infrastructure. Given that you already have the file data, there's no need to package it and transmit it to a server or over the network stack. Instead, opt for converting the data to base64 and securely storing it in a database. Consequently, when the comment reopens, it can effortlessly retrieve the data from the database on the client side without the necessity of sending it elsewhere or using the networking stack. |
Well for a multiplayer session, the image has to go over the network one way or another, to appear on the other player's computer, isn't it |
Transform the textual data encoded in base64 effortlessly by dispatching it to a web server through a straightforward URL invocation. No need for intricate peer-to-peer connections or sophisticated socket configurations; a classic web server will suffice. Establish a streamlined framework for periodic check-ins to receive any gameplay updates, and effortlessly retrieve data as required through a straightforward webpage pull. Convert the response from base64 into its original data format, and voila, network concerns elegantly resolved. |
Ah sorry for that, this was sorta more like a personal project at that time and I did it badly |
You mean instead of the current "comment texts still via Minecraft, but images via separate web server", just put everything on a separate web server instead, nothing gets stored in the Minecraft savefile, and get the data going through HTTP requests and store everything in a proper database? |
Wow, it's finally working! I can't express how relieved I am right now—I actually shed a few tears. I dedicated a solid 36 hours trying to troubleshoot it solo, and I only reached out to you after hitting a wall. 😅 In terms of storing the data, I came across this mod on https://modrinth.com/mod/cesium that aligns perfectly with my initial suggestion. They're tackling the storage issue for entire world files. Have you considered integrating a hook into this? It could potentially resolve all your storage concerns. As for a decentralized, non-webserver-based data linking solution, you might explore implementing a main networking stack to transmit concise connection setup configurations upon joining. Then, each client could run a smaller server on a separate socket, facilitating communication within your networking stack. A nimble, event-based system could handle the data exchange between the mini-server and the main thread loop seamlessly. |
So I was able to hack together support for local, theirs really only 2 ways to do it, Run another scripting mod inside the client (I used Minescript for python) and just create a complete and custom solution *best option Use the main networking stack but base64 for image, split it into much smaller packets of data then stagger send them over a longer period with plenty of time padding so as not to impact the main stack, this makes it MUCH slower but the trade off is that the network isn't impacted greatly anymore. |
I set up everything as it should however I cannot for the life of me find where the API key I use for the mod is located after setting up and hosting Lsky Pro cloud photo album, Where do I find the API key and if it's not needed how do I format the config to just allow uploads from the mod?
The text was updated successfully, but these errors were encountered: