battlegear2099 Posted December 10, 2017 Share Posted December 10, 2017 Hi I have simple question in regarding to the command print(), I have tested the leadwerks 4.4 regular build and latest beta both are the same print() is not working for me. today I was just trying some simple tutorial code on leadwerks lula tutorials trying to output using print() command a variable to the debug window or even the simple print("hello") does not output anything,all its says is Debug process connected. So is it broken in leadwerks or is this somthing broke on my side , is there something I can check on my side to fix this, I have reloaded/reinstalled leadwerks beta and current and no change. I find this very strange that such simple command is not working, so figured I ask for help. Thanks Pat Quote Link to comment Share on other sites More sharing options...
reepblue Posted December 10, 2017 Share Posted December 10, 2017 Never could get simple print to work, just use System::Print. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
battlegear2099 Posted December 10, 2017 Author Share Posted December 10, 2017 OK I tried using it System:Print("Hello World") function Script:Start() System:Print("Hello World") end also tried MyVariable = 3 System:Print(MyVariable) that still outputs nothing but Debug process connected, what could be the cause of this?. can you confirm it works on your end, if you don't mind. if it does I just reinstall it again I guess somthing must be currupted. Quote Link to comment Share on other sites More sharing options...
reepblue Posted December 10, 2017 Share Posted December 10, 2017 Is the function being called? Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Thirsty Panther Posted December 10, 2017 Share Posted December 10, 2017 When you use System:Print the information is displayed in the editor output window not in your game. System:Print ("Hello World") works for me. Quote Link to comment Share on other sites More sharing options...
battlegear2099 Posted December 10, 2017 Author Share Posted December 10, 2017 33 minutes ago, reepblue said: Is the function being called? Quote Link to comment Share on other sites More sharing options...
battlegear2099 Posted December 10, 2017 Author Share Posted December 10, 2017 53 minutes ago, Thirsty Panther said: When you use System:Print the information is displayed in the editor output window not in your game. System:Print ("Hello World") works for me. 53 minutes ago, Thirsty Panther said: Quote Link to comment Share on other sites More sharing options...
Josh Posted December 10, 2017 Share Posted December 10, 2017 The Lua command print does not flush the stdout buffer:http://lua.2524044.n2.nabble.com/print-stdout-and-flush-td6406981.html Consequently, output from this command does not show up until the game stops running. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
battlegear2099 Posted December 10, 2017 Author Share Posted December 10, 2017 Ok issue resolved , first I was looking at the wrong window the log window with green text in the main editor, as my editor debug output window or tabs were hidden. Thank you all for your reply's and help. 1 Quote Link to comment Share on other sites More sharing options...
battlegear2099 Posted December 10, 2017 Author Share Posted December 10, 2017 3 minutes ago, Josh said: The Lua command print does not flush the stdout buffer:http://lua.2524044.n2.nabble.com/print-stdout-and-flush-td6406981.html Consequently, output from this command does not show up until the game stops running. ok thanks I will read that, is there a work around for lula.? 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted December 10, 2017 Share Posted December 10, 2017 No trophy for anyone? 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.