|
Post by chanterelle on Jan 25, 2006 4:44:46 GMT -5
Yeah, the debug console is a little funky. printf wont print to it, but conio will. I use a cute bit of code that wedges vargs into conio and writes to a log file at the same time. That way I can write to the debug console and log to file with a single function. Sorta handy I guess. HANDLE stdHandle = GetStdHandle(STD_OUTPUT_HANDLE); int hConHandle = _open_osfhandle(((intptr_t)stdHandle), _O_TEXT); FILE* fp = _fdopen( hConHandle, "w" ); *stdout = *fp; setvbuf( stdout, NULL, _IONBF, 0 );
I have no idea what your code is like but I usually use this to hook stuff up to standard output when it isn't hooked up already.
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Jan 25, 2006 5:06:41 GMT -5
Yeah, the debug console is a little funky. printf wont print to it, but conio will. I use a cute bit of code that wedges vargs into conio and writes to a log file at the same time. That way I can write to the debug console and log to file with a single function. Sorta handy I guess. Ya, it's a little weird. My custom EXP monitor script, debug.debug() and print() both work, but it doesn't work in my ScriptMgr script (another custom make). Lol, I made ScriptMgr to supply quick reloads of scripts to help with debugging while writing code. I just run a simple command to the script .Lunar command scriptmgr.lua load myscript.lua What happens is that ScriptMgr binds the commands to unload and reload myscript.lua to the windower command 'scriptmgr_reload' Although I made this to work with any script, more recent scripts I make, I put in a debug mode in and bind a windower command to safely reload the script without having Lunar force it out.
|
|
|
Post by TinyTerror on Feb 2, 2006 7:54:25 GMT -5
Ok, here is my situation: 1. Getting evicted at the end of the month. 2. New job prevents any recreational use of either the internet or computers in general. 3. I spend an hour and a half in traffic every day. 4. I work longer hours. As you can see, I am slightly busy. I wanted to get a new version of Lunar out soon, but that requires free time. All of this stuff came up in the last week, so it caught me a bit by supprise. Hopefully I can get an apartment really close to my job and cut out the long commute. I might be able to resume work on lunar in about 2 weeks to a month. Sorry for making yet another delay
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Feb 2, 2006 9:15:39 GMT -5
Sorry for making yet another delay np ^^ Life happens and sometimes it gets in the way of a personal project.
|
|
|
Post by deathravin on Feb 2, 2006 10:02:57 GMT -5
I have problem 2, 3, and 4... well not so much 2... I'm part of the IT department, so I can sort of "get around" #2 (plus I have my own locked server room so I can just go in there and get away from all those bothersome questions.)
But ya... Working 60-70 hours a week can be taxing. I have 3 or 4 scripts I've been wanting to write, but when I get home the last thing I want to do is look at another computer... and i'll be damned if I'm going to use paper to write code lol.
|
|
oni
New Member
Posts: 10
|
Post by oni on Feb 2, 2006 11:53:49 GMT -5
newbish question but arent there any other developers that can help you do this work? I suck at writing code but id gladly help out if I had any idea. My point is there has to be many more like me out there and some with great coding skills.
|
|
|
Post by X-Drop on Feb 2, 2006 11:59:03 GMT -5
I don't think it's possible to help Tiny Terror. His Lunar code is tied directly with the almightly Windower API. And we all know that knowledge should not be distributed no matter how honest the intentions.
|
|
|
Post by TinyTerror on Feb 2, 2006 15:51:53 GMT -5
I wouldn't have a problem with releasing the source to someone I trusted. The problem is that getting to that point without my ever having met someone is a little difficult. Also, they would need to get permission from cliff and starhawk.
|
|
|
Post by azural on Feb 2, 2006 22:19:05 GMT -5
If you check the windower site as of Yesterday they are asking for help for all the same reasons. But gotta prove yourself.
|
|