Jump to content
  • Advertisement
Sign in to follow this  
kwaung

How can I print Lua result on my console?

This topic is 4418 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, I make a Quak-like console and use Lua as script. So far I can show only error on my console, I cant show a positive result on my console. I tried a lua_toXXX() command to pull out the result from top stack. And used lua_gettop() just like a stackdump() in the book. But its didn't work. Could you guys tell me how to complete this? Thanks in advance. :)

Share this post


Link to post
Share on other sites
Advertisement
Can you explain a bit more of what your trying to do? Typically you simply call print or debug to display something on the console. If your trying to do this inside of your engine, then you need to override the default methods provided by Lua. If this is your problem, then there is plenty of sample code that you can be pointed to.

- Jeremy

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.

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!