scottd564 Posted January 10, 2014 Share Posted January 10, 2014 (edited) Hello there. Is their any functions that are accessible via Lua which will allow me to send HTTP requests? I've looked around the JavaDoc and couldn't seem to find anything that stood out. Sorry in advance if this is the incorrect section to ask about this. Thank you. EDIT: Or Sockets. That works too. Edited January 10, 2014 by scottd564 Link to comment Share on other sites More sharing options...
Kyun Posted January 12, 2014 Share Posted January 12, 2014 Hi, I'm not really the best person to answer you, but I remember seeing that no TCP/UDP methods or whatever were available, yet (i.e. not implemented ) You can't mod multiplayer in with lua, you would have to implement this in the class files (decompile, correct 1500 errors, recompile, add your code, recompile). Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted January 12, 2014 Share Posted January 12, 2014 I could use the same functionality but right this seems not possible. @Kyun: I wouldn´t need it for a multiplayer or anything that complex, have something rather simple in mind but really need some kind of way to pass information to a webserver. Link to comment Share on other sites More sharing options...
scottd564 Posted January 12, 2014 Author Share Posted January 12, 2014 I was also looking for such functions to pass data onto a webserver, Dr_Cox. I hope that this will be available in the future. My modifications were being made ready for multiplayer anyhow so this isn't so much of a problem at this current time. I guess I will go onto look for a way to implement my own work around for now, unless someone has an alternative. Link to comment Share on other sites More sharing options...
harakka Posted January 12, 2014 Share Posted January 12, 2014 One way to implement a workaround might be to find a simple, single-use class in the game, and make a shim for it. That is, to modify the part where the single-use class is used, so that your shim class is used instead. Everything pertaining to the original class is just passed through by the shim's code. Then you can implement whatever methods you need inside the shim as it now gets loaded by the game, and export those into Lua world. If you find a simple enough candidate for the shim, this could even be relatively future-proof. scottd564 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now