MXXIV Posted March 3, 2016 Share Posted March 3, 2016 For debug reasons, I'd really appreciate if I knew how to put text into clipboard. If I knew that, I could already release a nice debug mod that allows you to inspect world objects and copy their properties. It's not that taht is my main aim, but my current WIP mod could be easily modified to do that. I googled but it doesn't seem like something Lua scripters usually do. And since Java is not fully exposed to Lua, I'm not sure how to do it. Link to comment Share on other sites More sharing options...
RoboMat Posted March 3, 2016 Share Posted March 3, 2016 Just print to console and pipe the output to a text file. IIRC that's how I've always done it. MXXIV 1 Link to comment Share on other sites More sharing options...
MXXIV Posted March 3, 2016 Author Share Posted March 3, 2016 True, print to console and copy from there might be enough for debugging. However if someone actually had any idea, I'd still apretiate it. Link to comment Share on other sites More sharing options...
RoboMat Posted March 3, 2016 Share Posted March 3, 2016 I'm pretty sure the OS related functions have been deactivated (for good reasons) and since the game doesn't use plain Lua you don't have much choice. Well depending on your OS I guess you could just try to pipe it directly to the clipboard when you run it from your terminal. On OSX you can do it via 'pbcopy' for example. 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