Jump to content
  • Advertisement
Sign in to follow this  

[Lua IrrConsole luabind] Redirecting Lua output

This topic is 3856 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
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!