Jump to content
  • Advertisement
Sign in to follow this  
GreyHound

[Lua IrrConsole luabind] Redirecting Lua output

This topic is 3775 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, i modified IrrConsole to lua_dostring(state, str) every entry. That works great. I can easily use the console to enter lua code that will actually execute. Now i wonder how i could get lua to do it's output on the console instead of stdout. I've looked into the lua src a bit and i think i can overwrite the output and somehow reach my goals. Unfortunately i haven't piped any output yet and i'm not really sure what i should do to get that done. Therefore i ask if anyone could give me advice how to redirect that output so i can get my hands on output and work with it, e.g. output it on the ingame console. Mayb someone has a project in mind which could be a nice reference to look at? Would be so great if anyone knew something that helps me out. I appreciate anything leading me to understand how to approach this.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!