LuaGlobal Improvements - help needed

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: LuaGlobal Improvements

Post by Vadi »

It's actually supposed not to be registered at all because that register removed the whole debug table from Mudlet. Hopefully it'll be fixed in the next update.

lex
Posts: 55
Joined: Fri May 14, 2010 2:28 pm

Re: LuaGlobal Improvements

Post by lex »

Cool, thanks, I'll take it out from documentation than.

I did discover another duplicity there and I suppose that this was introduced by error as well.
grep -R -n lua_register * | grep getNet
src/TLuaInterpreter.cpp:5296: lua_register( pGlobalLua, "getNetworkLatency", TLuaInterpreter::getNetworkLatency );
src/TLuaInterpreter.cpp:5309: lua_register( pGlobalLua, "getNetworkLatency", TLuaInterpreter::getNetworkLatency );

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: LuaGlobal Improvements

Post by Vadi »


lex
Posts: 55
Joined: Fri May 14, 2010 2:28 pm

Re: LuaGlobal Improvements

Post by lex »

Enclosed files contains a lot of updated to CoreMudlet.lua doc. Have a look and pass me any feedback.

We still needs to:
  • use GIT for code changes
  • Make some extra tests and
  • transform all remaining documentation to LuaDoc
  • solve some problematic LuaDoc formatting to make it more readable
Thanks
Attachments
NewLuaGlobal_v05.zip
(73.62 KiB) Downloaded 361 times

Denarii
Posts: 111
Joined: Thu Dec 03, 2009 10:54 pm

Re: LuaGlobal Improvements

Post by Denarii »

Can you come to the IRC channel so I can talk to you about this?

lex
Posts: 55
Joined: Fri May 14, 2010 2:28 pm

Re: LuaGlobal Improvements

Post by lex »

to Denarii
of course, let me know what will be suitable time for you


LuaDoc update
I finally "force" luadoc to accept pre formatted text!
See enclosed documentation for demo (TableUtils.lua).

I can happily work on documentation because we have all we need.
(Well - we still need some testing and put this stuff into GIT.)
Attachments
NextGenLua_v6.zip
(78.76 KiB) Downloaded 329 times

Denarii
Posts: 111
Joined: Thu Dec 03, 2009 10:54 pm

Re: LuaGlobal Improvements

Post by Denarii »

I should be around during the early evening, EST

lex
Posts: 55
Joined: Fri May 14, 2010 2:28 pm

Re: LuaGlobal Improvements

Post by lex »

Another update
- fixed issue with LuaDoc @see tag
- all Mudlet core documentation is now using LuaDoc.
- few minor fixed in other documentation

All is enclosed and ready for comments...
Attachments
NextGenLua_v7.zip
(91.78 KiB) Downloaded 324 times

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: LuaGlobal Improvements

Post by Vadi »

You should remove wait, it's undocumented for the reason that it's quite useless (freezes main thread, really has no place).

Otherwise it looks quite fine, I'd do some CSS tweaks but that's about it. Only issue I see is that locating functions is harder now - no search/split on many pages.

I think I remember seeing some client-side search engines that used a pre-generated index, maybe we could stick it in.

lex
Posts: 55
Joined: Fri May 14, 2010 2:28 pm

Re: LuaGlobal Improvements

Post by lex »

That would be great if you can make it nicer :)

I did hack LuaDoc taglet again to produce index of all functions (result is enclosed).
Hopefully this will make it easy to locate any function.

I did update documentation about wait and clearly state that this is no go function and that
user should user tempTimer instead. (I think that is better to inform user that hope that
will never discover wait function.)

Babelfish and me worked on GIT, but we still have to finish few thinks.
(There is new - not master - GIT repo: http://github.com/zaxes/mudlet-lua)

PS: It would be great if somebody can update
http://www.mudlet.org/download/ source code section with babelfish's repo or
if we can have only one repository for all code (including lua).
Attachments
mudlet-lua_v08.zip
(155.8 KiB) Downloaded 331 times

Post Reply