Jump to content


Lua Plugin 2.00


  • Please log in to reply
17 replies to this topic

#1 Lee

Lee

    Project Manager

  • Management
  • 3,231 posts

Posted 12 April 2009 - 01:08 PM

Crise has provided us with a new Lua plugin version for 1.2.0 Final.

How it install
Simply extract the files to ApexDC++ installation folder.

Enjoy. ;)
Stay up to date: Subscribe to our news feed

#2 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 13 April 2009 - 10:52 AM

I get some problem with the new plugin API.


I use my antispam script, witch use a couple of the" DC():ToUtf8() ". It's worked fine on lua 1.3 Now when i enter some hubs, like this: pro-fili.com:411, the client crash, and i got an expections file, witch writes something with ToUtf8.

So i uploaded my expection file.

Attached Files



#3 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 13 April 2009 - 02:20 PM

well I can't even run your script (1.1) properly (your ownChatOut seems to block all messages for me).

Edit: this same issue with ownChatOut is also valid for 1.3 version of the lua plugin and 1.2.0 beta.
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#4 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 13 April 2009 - 03:03 PM

View PostCrise, on Apr 13 2009, 04:20 PM, said:

well I can't even run your script (1.1) properly (your ownChatOut seems to block all messages for me).

Edit: this same issue with ownChatOut is also valid for 1.3 version of the lua plugin and 1.2.0 beta.

Ohm jes. I leaved some testing lines in the script witch i don't want. Now i uploaded the correct file in the spam topic.

#5 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 13 April 2009 - 04:23 PM

with what settings (for the script) did you get the crash on that hub... since with defaults it seems to work just fine
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#6 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 13 April 2009 - 05:19 PM

View PostCrise, on Apr 13 2009, 06:23 PM, said:

with what settings (for the script) did you get the crash on that hub... since with defaults it seems to work just fine

Sorry for another problem, i don't see the redirect. This is the correct address: 93.81.252.156:65411

While load the users, it's ok. When the MOTD comes, the crash comes.

Same crash with this hub: dc.bemyguest.ro:411

#7 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 13 April 2009 - 05:36 PM

I tried both of those hubs still running stable here... (with default settings for the script). But I can still venture a guess, since by the looks of it at least one of those hubs uses "weird" characters for it's messages (ie. cyrillic or other).

My guess is that this is the source for the issue since majority of hubs still seem to work without any issues. I'll dig deeper into this, however, in the worst case scenario it might not be possible to fix this inside the plugin but a new version of Apex might be necessary (in which case the fix itself won't be released so soon, since at least a few fixes are needed to warrant an update for ApexDC++ itself).
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#8 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 13 April 2009 - 05:52 PM

View PostCrise, on Apr 13 2009, 07:36 PM, said:

I tried both of those hubs still running stable here... (with default settings for the script). But I can still venture a guess, since by the looks of it at least one of those hubs uses "weird" characters for it's messages (ie. cyrillic or other).

I thinked too to the strange characters. The wierd is, i got the crash with a hub, witch runs without problem erlier, with lua 1.3, and script 1.1


On my script topic, another guy posted the same crash, so it's not only in my computers. Maybe a quick fix, i can temponary reove the utf8 formatting, it will result some strange char in the saved pm's, but it's gooder than the crash.

#9 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 13 April 2009 - 06:52 PM

It's simply a matter of finding the common factor... with the hubs causing this.
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#10 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 13 April 2009 - 08:38 PM

I think, you will get the crash only, if u got a spam PM from that probleme hub.

I found other hubs, and i find something intresting. (crash)

dchub://diablohub.hu:411
dchub://new.thecobwebnet.net:765
dchub://solarionhub.hu:411

On solarion and Diablo, the caracters are bad on open hublist.
Posted Image

Solarion and diablo uses PtokaX DC Hub 0.4.1.1, thecowbwebnet uses verlihub 0.9.8c


I uploaded my script's PM output from these hubs. (from under bcdc++) All of them contains idiotic characters in text or sander name or hub name, maybe it will help.

Attached Files



#11 skull

skull

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 15 April 2009 - 08:52 AM

It worked all good for me   Thanx crise :)

#12 nickolyaz

nickolyaz

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 15 April 2009 - 02:47 PM

i have a problem with new lua plugin (script ignore.lua). it crashes when recieve PM from ignored users.

Code: c0000005 (Access violation)
Version: 1.2.0 (Apr 11 2009)
Major: 5
Minor: 1
Build: 2600
SP: 3
Type: 1
Time: 2009-04-15 17:45:36
TTH: TRRT5H2EK5AZD6WVEZJN5R6JBKWVFARDVNVCFSI

ntdll!0x7C9369DC: _wtol
LuaPlugin!0x011C5441: ?
LuaPlugin!0x011BE2AD: ?


#13 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 16 April 2009 - 08:23 PM

I removed all DC():FromUtf8() and DC():ToUtf8() from my script, but the access violation error in lua still present.

#14 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 16 April 2009 - 10:10 PM

View PostPatch, on Apr 16 2009, 08:23 PM, said:

I removed all DC():FromUtf8() and DC():ToUtf8() from my script, but the access violation error in lua still present.

That is troublesome... I'll see if I can reproduce the issue (though unfortunately no success thus far). So that I can look into it more.
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#15 Patch

Patch

    Member

  • Member
  • PipPip
  • 47 posts

Posted 17 April 2009 - 09:41 AM

View PostCrise, on Apr 17 2009, 12:10 AM, said:

That is troublesome... I'll see if I can reproduce the issue (though unfortunately no success thus far). So that I can look into it more.

Now, i know what caused the error!

This is not needed any more: DC():ToUtf8(user:getNick()), because the nicks are good without this.

I writed a simple script, wtich just record all PM to the spamsfile. This nicks recorded without the DC():ToUtf8(user:getNick()) thing:

[-CooL-BoT-]
««S•O•L•A•R•I•O•N»»
»»D•I•A•B•L•O««
!ŔŐŇ?ÍĂ!

You can chack these things, i uploaded the script. link - why not have enough space, to upload 600b zip file?  :)

Update: and same with other ToUtf8 things, not needed to use these.

#16 martix

martix

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 11 March 2010 - 03:26 AM

Got only one thing to say:

Error Loading LuaPlugin.dll: %1 is not a valid Win32 application.

//ADC 1.3.1 x32

#17 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 11 March 2010 - 07:05 AM

View Postmartix, on 11 March 2010 - 03:26 AM, said:

Got only one thing to say:

Error Loading LuaPlugin.dll: %1 is not a valid Win32 application.

//ADC 1.3.1 x32

Make sure you don't mix and match ie. 32bit exe means you need 32bit plugins as well... that error is most likely caused by that exactly.

Also use the binaries from: http://forums.apexdc...for-apexdc-131/
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#18 martix

martix

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 11 March 2010 - 02:16 PM

I used the plug-in from this thread's first post obviously...

Now the files from the other thread you linked work however.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users