Lua Plugin 1.3 Beta
#21
Posted 21 January 2009 - 10:24 PM
#22
Posted 22 January 2009 - 03:04 PM
#23
Posted 22 January 2009 - 05:58 PM
#24
Posted 24 January 2009 - 10:37 AM
or is lua different in this one ?
#25
Posted 24 January 2009 - 04:03 PM
**Edit : lua 5.1 (tnx Plop)
#26
Posted 25 January 2009 - 09:56 AM
#27
Posted 25 January 2009 - 11:50 AM
but it doesn't work ok in apex. at best i can trigger it but in some hubs like Geek-Op i get kicked for supplying a different nickname. my correct nick is [Vatosâ?¢]Yeppy but the script sends [Vatos]Yeppy.
so the â?¢ is missing so i get a kick.
i attached all 3 versions so you can have a look if you want
matrix-1 (oldest)works ok in rsx but changes my nick in apex by removing the â?¢
matrix-2 (last by szmeby) works ok in rsx but changes my nick in apex by removing the â?¢
matrix-3 (lua5.1 version by ATAG) works ok in rsx but in apex i get *** Unknown command: matrix
Attached Files
#28
Posted 25 January 2009 - 01:03 PM
In your client tick option:
Settings/Advanced/Send unknown / commands to the hub
restart, load the script and type /matrix text
#29
Posted 25 January 2009 - 04:08 PM
#30
Posted 25 January 2009 - 05:30 PM
#31
Posted 25 January 2009 - 05:32 PM
#32
Posted 25 January 2009 - 06:06 PM
#33
Posted 25 January 2009 - 09:48 PM
#34
#35
Posted 26 January 2009 - 08:48 PM
every string that goes outide the core is in utf8 - no matter if this comes from adc or nmdc
it's already implemented in latest build of rsx++ and works like a charm in lua ^^
#36
Posted 28 January 2009 - 12:55 PM
Edit: also those missing the timer that has been fixed also and was also a stupid mistake, even more so than this one...
#37
Posted 28 January 2009 - 04:56 PM
#38
#39
Posted 20 February 2009 - 01:37 AM
adrian_007, on Jan 26 2009, 08:48 PM, said:
BTW can I ask if the next idea will ever work with this? Somehow data (3-byte kanji characters) were transmitted and utf-8 encoding were restored in spite of NMDC-hub, but the only place, where they displayed correctly, was status-bar.
--// skipping superfluous code.. dcpp:setListener( "ownChatOut", "encodeUTF8", function( hub, text ) DC():PrintDebug( " ** Sent: "..text) if string.find( text, "[^%z\1-\127\194-\244][^\128-\191]*") then DC():SendHubMessage( hub:getId(), "<"..hub:getOwnNick().."> "..DC():FromUtf8(utf8_url_encode(text)).."|" ) DC():PrintDebug( " ** Encoded: "..text) return 1 end end ) dcpp:setListener( "chat", "decodeUTF8", function( hub, user, text ) DC():PrintDebug( " ** Received: "..text) if string.find( text, "%%([a-fA-F0-9]+)%+") then text = url_utf8_decode(text) --Displays 3-byte chars incorrectly in the main chat, (2-bytes still ok). DC():InjectHubMessage( hub:getId(), "<"..user._nick.."> "..text ) --Displays correctly. DC():PrintDebug( " ** Decoded: "..text) return 1 end end )
#40
Posted 12 April 2009 - 01:11 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


This topic is locked










