Data Realms Fan Forums
http://45.55.195.193/

tCrmitC: A command line CC Lua Debugger
http://45.55.195.193/viewtopic.php?f=73&t=21656
Page 1 of 1

Author:  blargiefarg [ Sun Mar 06, 2011 1:19 pm ]
Post subject:  tCrmitC: A command line CC Lua Debugger

I'm thinking of writing a small command line based Lua debugger. Kind of like the one that comes with the download on the Lua site, but with all of Cortex Command's stuff built in.
Edit (3/8/10) I've gotten the basic interface down, I just need to actually work in the custom Lua that is in CC.
Image
The screen that is shown upon execution.

Image
If you pressed 1...

Image
If you pressed 2...

Author:  Roast Veg [ Sun Mar 06, 2011 1:21 pm ]
Post subject:  Re: If I made this, how many people would use it?

I would like that very much. It's always rather irritating to be checking for console errors repeatedly, and I would love a way to smooth out the process.

Author:  blargiefarg [ Sun Mar 06, 2011 1:23 pm ]
Post subject:  Re: If I made this, how many people would use it?

Great! I'll also release the source code, in case I miss something.

Author:  Sims_Doc [ Sun Mar 06, 2011 3:35 pm ]
Post subject:  Re: If I made this, how many people would use it?

i would use this if it worked for the Scripting Code i uses, But other than that Great idea.

Author:  Asklar [ Sun Mar 06, 2011 10:43 pm ]
Post subject:  Re: If I made this, how many people would use it?

I'd use it, it sounds very useful.
Fixing errors faster is better.

Author:  blargiefarg [ Tue Mar 08, 2011 1:05 pm ]
Post subject:  Re: If I made this, how many people would use it?

Thanks for all of the support, guys. I've made some progress, but there's still loads to go. I'm definitely realizing how annoying it must have been for Data to set up all of this Lua-C++ integration. Respect for Data +1. I'm also very glad that this isn't really something that you'd need a GUI for, since I can't make GUIs for ♥♥♥♥.

Edit: Ok, there's not much left to be done at this point, If anyone knows something about adding custom functions and such to C/C++ Programs, Would they point me in the right direction? I initially thought it would only be a matter of running a Lua script in the background the entire time that the program is open, and pulling the custom functions from there, but tis not so, sadly almost everything about Lua is in C, which I don't understand as well as C++.

Author:  Patriot24 [ Fri Mar 11, 2011 10:15 pm ]
Post subject:  Re: tCrmitC: A command line CC Lua Debugger

what?
http://csl.sublevel3.org/lua/

integrating lua with any c-based language is a trivial matter and doesn't take much effort in the slightest, the difficult part is accurately exposing the engine to the scripting(something data only slightly did in the current build)

C is very similar to C++, post anything in C you don't understand and I'll show you the C++ representation of it?

Author:  blargiefarg [ Mon Mar 14, 2011 6:06 pm ]
Post subject:  Re: tCrmitC: A command line CC Lua Debugger

That post is quite outdated, I've been without internet for some time, I've fixed all of the problems I was having earlier.

Author:  Darkdoom [ Tue Mar 29, 2011 10:41 pm ]
Post subject:  Re: tCrmitC: A command line CC Lua Debugger

I could use this since I am dabbling in Lua, it would make it easier to tell if stuff would actually work.

Author:  blargiefarg [ Mon Apr 04, 2011 5:55 pm ]
Post subject:  Re: tCrmitC: A command line CC Lua Debugger

It should be useful, however, don't take it as the final say, since I've made scripts that have had absolutely zero errors, and yet yielded no results within the actual engine.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/